Skip to main content

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

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)

Uploaded Source

Built Distribution

wagtail_typograf-0.1.3-py3-none-any.whl (6.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page