0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00
wagtail/docs/reference/contrib/legacy_richtext.md
2021-01-26 22:09:52 +00:00

432 B

Legacy richtext

.. module:: wagtail.contrib.legacy.richtext

Provides the legacy richtext wrapper.

Place wagtail.contrib.legacy.richtext before wagtail.core in INSTALLED_APPS.

INSTALLED_APPS = [
    ...
    "wagtail.contrib.legacy.richtext",
    "wagtail.core",
    ...
]

The {{ page.body|richtext }} template filter will now render:

<div class="rich-text">...</div>