Wrap the output of the richtext filter in a 'rich-text' div - fixes #224

pull/225/head
Matt Westcott 2014-05-02 10:01:55 +01:00
rodzic ec99bfed84
commit cfcc67f514
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -8,4 +8,4 @@ register = template.Library()
@register.filter
def richtext(value):
return mark_safe(expand_db_html(value))
return mark_safe('<div class="rich-text">' + expand_db_html(value) + '</div>')