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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wagtail-typograf-0.1.3.tar.gz.
File metadata
- Download URL: wagtail-typograf-0.1.3.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.8.12 Darwin/21.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7a6bf0c9faca804d700db1b4811d6092baa2e8dbe7e715c6757d5e3d302cd22
|
|
| MD5 |
ab710df1c0bd0d5abb508dacf65e4054
|
|
| BLAKE2b-256 |
24f8335f695b2d035f961e1da618356e15d7ac1cd79c42a1b9bc4c81c97afc70
|
File details
Details for the file wagtail_typograf-0.1.3-py3-none-any.whl.
File metadata
- Download URL: wagtail_typograf-0.1.3-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.8.12 Darwin/21.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4ffd2263d68ca3ae8b5873c2501466f903ed4f115320f8f3098a40d56c0f516
|
|
| MD5 |
d3c2fbbeade56fb921d7875bc507f627
|
|
| BLAKE2b-256 |
fd06e446c4ac7f55cec77292da6bc97fdc69fc2feca77368cb687856b1ced33f
|