mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-29 17:36:49 +01:00
e140c41a89
- 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)
25 lines
410 B
Markdown
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>
|
|
```
|