3

I am using django-summernote as a wysiwyg editor. And till now, I can save the post from the summernote editor and can display it too using the safe filter. But some of its functionalities are not there in my template.

  1. There is no image upload button in the editor.
  2. The Code style is displaying fine, but the Quote style is displaying just a regular text.

And finally, is it safe to use safe filter in the templates?

Please help me how do I solve this problem. Or I can't use it in django? Thank you.

Karl
  • 1,689
  • 3
  • 15
  • 23

1 Answers1

2

summernote toolbar is configurable, but there is no backend/model for storing image/attachment (yet), so I disabled it by default. This issue is already posted at github issue of django-summernote.

Another problem - about styling paragraph is also posted in above issue.

And safe filter must be used for displaying HTMLs without escaping. See this link.

lqez
  • 2,898
  • 5
  • 25
  • 55