kopia lustrzana https://github.com/wagtail/wagtail
Wrap the output of the richtext filter in a 'rich-text' div - fixes #224
rodzic
ec99bfed84
commit
cfcc67f514
|
@ -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>')
|
||||
|
|
Ładowanie…
Reference in New Issue