A plugin to add typus functionality to wagtail rich text editor (draftail).
Install with pip
pip install wagtail-typograf
Add app name to your list of installed apps
INSTALLED_APPS = [
...
"wagtail_typograf",
]
Add typograf url to your urlpatterns (for now "/api/typograf/" is strongly hardcoded in js)
urlpatterns = [
...
path('api/', include('wagtail_typograf.urls')),
...
]
If you use limit number of features in RichTextBlock, don't forget to add typograf to its list
text_block = RichTextBlock(
features=[
"bold", "italic", "ol", "ul", "hr",
"link", "document-link", "typograf",
],
...
)
Write or paste text content, push the ¶-button.
