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

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>
```