wagtail/docs/reference/contrib/legacy_richtext.md

24 wiersze
410 B
Markdown
Czysty Zwykły widok Historia

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