Skip to content

matthiask/django-prose-editor

Repository files navigation

django-prose-editor

Prose editor for the Django admin based on ProseMirror and Tiptap. Announcement blog post.

Intro

After installing the package (using pip install django-prose-editor[sanitize]) the following should get you started:

from django_prose_editor.fields import ProseEditorField

content = ProseEditorField(
    extensions={
        "Bold": True,
        "Italic": True,
        "BulletList": True,
        "Link": True,
    },
    sanitize=True,  # Server side sanitization is strongly recommended.
)

Check the documentation.