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