0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 03:31:04 +01:00
wagtail/docs/reference/contrib/legacy_richtext.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
410 B
Markdown
Raw Normal View History

# Legacy richtext
```{module} wagtail.contrib.legacy.richtext
```
Provides the legacy richtext wrapper.
Place `wagtail.contrib.legacy.richtext` before `wagtail` in `INSTALLED_APPS`.
```python
INSTALLED_APPS = [
...
"wagtail.contrib.legacy.richtext",
2022-03-17 15:38:02 +01:00
"wagtail",
...
]
```
The `{{ page.body|richtext }}` template filter will now render:
```html+django
<div class="rich-text">...</div>
```