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