2
0

legacy_richtext.rst 538 B

1234567891011121314151617181920212223242526
  1. .. _legacy_richtext:
  2. =====================
  3. Legacy richtext
  4. =====================
  5. .. module:: wagtail.contrib.legacy.richtext
  6. Provides the legacy richtext wrapper.
  7. Place ``wagtail.contrib.legacy.richtext`` before ``wagtail.core`` in ``INSTALLED_APPS``.
  8. .. code-block:: python
  9. INSTALLED_APPS = [
  10. ...
  11. "wagtail.contrib.legacy.richtext",
  12. "wagtail.core",
  13. ...
  14. ]
  15. The ``{{ page.body|richtext }}`` template filter will now render:
  16. .. code-block:: html+django
  17. <div class="rich-text">...</div>