Spec-Zone.ru › Wagtail 2

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>
  • Previous Redirects
  • Next Management commands

© 2014-present Torchbox Ltd and individual contributors.
All rights are reserved.
Licensed under the BSD License.
https://docs.wagtail.org/en/v2.16.3/reference/contrib/legacy_richtext.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API