0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 17:36:49 +01:00
wagtail/docs/reference/contrib/legacy_richtext.md
LB Johnston e140c41a89 documentation - markdown formatting
- apply general fixes to existing markdown documentation
- various cases of rst syntax still used
- update some links to be the new format
- clean up line breaks (prettier)
2022-06-25 22:44:42 +10:00

25 lines
410 B
Markdown

# 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",
"wagtail",
...
]
```
The `{{ page.body|richtext }}` template filter will now render:
```html+django
<div class="rich-text">...</div>
```