Skip to content

truetug/wagtail-typograf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wagtail-typograf

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.

About

Typograf for draftail integrated into wagtail working through django

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors