Drop-in TipTap (ProseMirror) rich-text editor widget for Django forms and admin.
Project description
django-tiptap-editor
A reusable, pip-installable Django package providing a drop-in rich-text editor
backed by TipTap (headless ProseMirror): a form Widget, an
admin widget, a ModelAdmin mixin, a settings default, and vendored static assets —
node-free for consumers.
What this is
A reusable rich-text editor for Django: a form Widget, an admin widget, a
ModelAdmin mixin, a settings-driven config, and committed static assets — with a
clean, options-object surface and its own config schema.
- Stored value is HTML (render it with
|safe), never JSON. - ProseMirror's schema is a sanitizer: scripts and unknown nodes are dropped on
parse, and link/image protocols are allowlisted — so
|safeis justified. - Node-free for consumers: the editor ships as a committed, self-contained bundle. An optional glue-only ESM build lets you bring your own TipTap via CDN / import maps.
- Extensible without a build step: a runtime registry for custom extensions, toolbar buttons, and layered (CSS-variable) theming.
- Full toolbar (formatting, font size/family, colour, highlight, lists, alignment, links, images, tables, source view), image upload + library picker, merge tags, and en/sv i18n out of the box.
Installation
pip install django-tiptap-editor
Add the app to INSTALLED_APPS (it ships the static bundle):
INSTALLED_APPS = [
# ...
"django_tiptap_editor",
]
Quickstart
from django import forms
from django_tiptap_editor.forms.fields import TipTapFormField
class ArticleForm(forms.Form):
body = TipTapFormField()
In the admin:
from django.contrib import admin
from django_tiptap_editor.admin.mixin import TipTapModelAdminMixin
@admin.register(Article)
class ArticleAdmin(TipTapModelAdminMixin, admin.ModelAdmin):
pass # every TextField becomes a TipTap editor
Render the field with {{ form.media }} (or {% tiptap_media %}) in your template, and
display the stored HTML with {{ article.body|safe }}. See the
documentation for configuration,
the upload/image-list contracts, theming, extension authoring, asset modes, and the
migration guide.
Documentation
Full documentation is published at artui.github.io/django-tiptap-editor.
License
MIT — see LICENSE.
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 django_tiptap_editor-0.4.0.tar.gz.
File metadata
- Download URL: django_tiptap_editor-0.4.0.tar.gz
- Upload date:
- Size: 325.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32e745a9736d55a3965f75657971847beae0b82cfc99154fa44569ced702393b
|
|
| MD5 |
603413aa0594e5d271ac5d849c03b5a6
|
|
| BLAKE2b-256 |
cf6460a47bee8c440475b021993400ff9fb3a259bc7565d159c6c202d824ca29
|
Provenance
The following attestation bundles were made for django_tiptap_editor-0.4.0.tar.gz:
Publisher:
release.yml on Artui/django-tiptap-editor
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_tiptap_editor-0.4.0.tar.gz -
Subject digest:
32e745a9736d55a3965f75657971847beae0b82cfc99154fa44569ced702393b - Sigstore transparency entry: 1948892115
- Sigstore integration time:
-
Permalink:
Artui/django-tiptap-editor@a1bd40d4c796943fbbf98b92a773a1d884ccc224 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Artui
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a1bd40d4c796943fbbf98b92a773a1d884ccc224 -
Trigger Event:
push
-
Statement type:
File details
Details for the file django_tiptap_editor-0.4.0-py3-none-any.whl.
File metadata
- Download URL: django_tiptap_editor-0.4.0-py3-none-any.whl
- Upload date:
- Size: 164.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d66bfae108754fd9a8957a8cd656485a9e68e9f9e25adbfa554683b61585f5af
|
|
| MD5 |
8cfa533e7f193c3c1453ddccd57b34a1
|
|
| BLAKE2b-256 |
4d5474b34795053c559ec01303cd84f536910d8eea2ee37d65ca171d60b7802f
|
Provenance
The following attestation bundles were made for django_tiptap_editor-0.4.0-py3-none-any.whl:
Publisher:
release.yml on Artui/django-tiptap-editor
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_tiptap_editor-0.4.0-py3-none-any.whl -
Subject digest:
d66bfae108754fd9a8957a8cd656485a9e68e9f9e25adbfa554683b61585f5af - Sigstore transparency entry: 1948892188
- Sigstore integration time:
-
Permalink:
Artui/django-tiptap-editor@a1bd40d4c796943fbbf98b92a773a1d884ccc224 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Artui
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a1bd40d4c796943fbbf98b92a773a1d884ccc224 -
Trigger Event:
push
-
Statement type: