Reputation: 1769
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.
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.
Upvotes: 3
Views: 3345
Reputation: 3008
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.
Upvotes: 2