Prose editor for the Django admin based on ProseMirror and Tiptap. Announcement blog post.
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 is the default when using extensions
)
Check the documentation.