Brings russian typography to Wagtail rich text editor based on draftail
Project description
A plugin to add typus functionality to wagtail rich text editor (draftail).
Demo
Installation
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", ], ... )
Usage
Write or paste text content, push the ¶-button.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wagtail-typograf-0.1.3.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for wagtail_typograf-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4ffd2263d68ca3ae8b5873c2501466f903ed4f115320f8f3098a40d56c0f516 |
|
MD5 | d3c2fbbeade56fb921d7875bc507f627 |
|
BLAKE2b-256 | fd06e446c4ac7f55cec77292da6bc97fdc69fc2feca77368cb687856b1ced33f |