wagtail/docs/reference/contrib/legacy_richtext.md

25 wiersze
432 B
Markdown
Czysty Zwykły widok Historia

# Legacy richtext
```eval_rst
.. module:: wagtail.contrib.legacy.richtext
```
Provides the legacy richtext wrapper.
Place `wagtail.contrib.legacy.richtext` before `wagtail.core` in `INSTALLED_APPS`.
```python
INSTALLED_APPS = [
...
"wagtail.contrib.legacy.richtext",
"wagtail.core",
...
]
```
The `{{ page.body|richtext }}` template filter will now render:
```html+django
<div class="rich-text">...</div>
```