kopia lustrzana https://github.com/wagtail/wagtail
25 wiersze
410 B
Markdown
25 wiersze
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>
|
|
```
|