DJ Tiptap
Opinionated TipTap editor implementation for Django sites.
Docs are still a work in progress. See the example app for usage.
Settings
All settings are optional; the package works with sensible defaults. Upload and browse buttons only appear in the toolbar when the corresponding URL is configured.
| Setting | Default | Purpose |
|---|---|---|
DJ_TIPTAP_UPLOAD_URL |
unset (uploads disabled) | URL name or path of the attachment upload endpoint |
DJ_TIPTAP_BROWSE_URL |
unset (library disabled) | URL name or path of the media-library browse endpoint |
DJ_TIPTAP_MAX_UPLOAD_SIZE_MB |
10 |
Maximum image upload size |
DJ_TIPTAP_MAX_VIDEO_UPLOAD_SIZE_MB |
100 |
Maximum video upload size |
DJ_TIPTAP_ALLOWED_IMAGE_TYPES |
JPEG/PNG/GIF/WebP | Dict of Pillow format → mime type accepted by the upload view |
DJ_TIPTAP_ALLOWED_VIDEO_TYPES |
{"video/mp4", "video/webm"} |
Set of video mime types accepted by the upload view; set to set() to disable video uploads |
Images are inserted as <img> and validated with Pillow; videos are inserted
as HTML5 <video controls> elements and validated by magic bytes with
puremagic. The upload endpoint
lives in the host project (see example/website/views.py for the reference
implementation) — its JSON response's content_type field tells the editor
which element to insert.
Release files for dj-tiptap 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dj_tiptap-0.1.7.tar.gz | 268.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dj_tiptap-0.1.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 528.2 kB
Release files / dj_tiptap-0.1.7.tar.gz
| Download URL | dj_tiptap-0.1.7.tar.gz |
|---|---|
| Size | 268.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
68425225520e10aef307e3f2293478a2d6fcd2ecb981824f03546b17edf87cbf
|
|
BLAKE2b-256 checksum How to use checksums |
8bd0c21aa57542933af8aaca5a959aa0ce66717d5152c82fc623c2a22da67972
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.28.0 CPython/3.14.6 Linux/6.17.0-1018-azure
|
Release files / dj_tiptap-0.1.7-py3-none-any.whl
| Download URL | dj_tiptap-0.1.7-py3-none-any.whl |
|---|---|
| Size | 260.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b9882e82193362faa6fc975bd2f4aa170e7337675f0b56aed5796954aaf15cc0
|
|
BLAKE2b-256 checksum How to use checksums |
c7006223987b2605307f3542b1c0f79c1c6d1624de70fb61847e776540da6e92
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.28.0 CPython/3.14.6 Linux/6.17.0-1018-azure
|