Skip to main content

Django Tiptap Suite

Django Tiptap Suite Logo

PyPI version License: MIT

A modern, high-quality, and feature-complete rich text editor for Django based on Tiptap v2. It offers a premium, Notion-like distraction-free writing experience with fixed & floating toolbars, responsive designs, automatic dark-mode support matching Django Admin, and CSRF-secure local image uploads.

📖 Read the Step-by-Step Getting Started Guide


Features

  • 🦄 Modern UI/UX: Designed to look like Notion, Ghost, and Linear—no legacy 2010s rich-text container vibes.
  • ⚡ Slash Command Menu (/): Type / to open a quick-access dropdown for headings, lists, quotes, dividers, tables, and images.
  • 💬 Bubble Menu: A floating formatting context menu that automatically appears when selecting text.
  • 📊 Rich Table Support: Insert and edit fully-featured tables with header rows directly from the toolbar or / menu.
  • 📝 Task Lists: Add checkbox task lists for interactive notes.
  • 🔠 Underline & Text Align: Format text with underline and align left, center, right, or justify.
  • 🖥️ Fullscreen Mode: Switch the editor to screen-filling focus mode with a single click.
  • 🧹 Clear Formatting & Spacing Correction: Remove all styles, headers, links, and lists from a selection with a single click, and automatically correct common punctuation spacing typos (e.g. inserting spaces after commas).
  • 🎨 Dark Mode Native: Automatically detects and adapts to the Django Admin light/dark modes.
  • 🖼️ CSRF-Safe Local Image Uploads: Secure drag-and-drop & file uploads with file size limit validation and configurable date-based directory paths.
  • ⚙️ Zero Configuration: Works out of the box with standard Django forms and model fields.
  • 🛠️ Configurable: Define global styles, placeholders, enabled extensions, and image upload limits via Django Settings.

Installation

Install the package via pip:

pip install django-tiptap-suite

Setup

  1. Add django_tiptap_suite to your INSTALLED_APPS in settings.py:
INSTALLED_APPS = [
    # ...
    "django.contrib.staticfiles",
    "django_tiptap_suite",
    # ...
]
  1. Include the package's URLs in your project's main urls.py (required for CSRF-safe image uploads):
from django.urls import path, include

urlpatterns = [
    path("admin/", admin.site.urls),
    path("tiptap/", include("django_tiptap_suite.urls", namespace="django_tiptap_suite")),
]

Usage

In Django Models

The easiest way to use the editor is via the HTMLField:

from django.db import models
from django_tiptap_suite.fields import HTMLField

class Post(models.Model):
    title = models.CharField(max_length=200)
    content = HTMLField()

In Django Forms / Admin

You can also apply the widget manually to any standard Django TextField:

from django import forms
from django_tiptap_suite.widgets import TiptapEditorWidget
from .models import Post

class PostForm(forms.ModelForm):
    class Meta:
        model = Post
        fields = "__all__"
        widgets = {
            "content": TiptapEditorWidget(config={
                "placeholder": "Start typing your masterpiece here...",
            }),
        }

Customization & Configuration

You can globally configure settings for the editor by adding TIPTAP_SUITE_CONFIG to your settings.py:

# settings.py

TIPTAP_SUITE_CONFIG = {
    # Custom placeholder text
    "placeholder": "Type '/' for commands or start writing...",
    
    # Enable/disable specific Tiptap extensions
    "enabled_extensions": [
        "bold", "italic", "underline", "strike", "heading",
        "bulletList", "orderedList", "blockquote", "codeBlock",
        "link", "image", "textAlign", "table", "taskList"
    ],
    
    # Hide the '/' slash commands menu entirely
    "disable_slash_commands": False,
    
    # Hide the image button/upload option (keeps the extension active if loaded)
    "disable_image_button": False,
    
    # Style customization
    "inject_css": True,                 # Auto-injects default CSS styles when rendering HTML
    "css_class": "tiptap-content",      # The wrapper CSS class name
    
    # Image upload configuration
    "image_upload_path": "tiptap_uploads/%Y/%m",  # Custom datetime formatted upload path
    "image_max_size": 5 * 1024 * 1024,             # Max upload size limit (e.g. 5MB)
}

License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for django-tiptap-suite 1.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-tiptap-suite 1.0.8
File Size Uploaded Provenance Actions
django_tiptap_suite-1.0.8.tar.gz 582.0 kB With provenance Details for django_tiptap_suite-1.0.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-tiptap-suite 1.0.8
File Interpreter ABI Platform Actions
django_tiptap_suite-1.0.8-py3-none-any.whl Python 3 none any Details for django_tiptap_suite-1.0.8-py3-none-any.whl

Total release size: 790.5 kB

Release files / django_tiptap_suite-1.0.8.tar.gz

Download URL django_tiptap_suite-1.0.8.tar.gz
Size 582.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4f512c4185e1a47b0e0dc53afb67181116e95b5fdd225b95a673a9ded01326e1
BLAKE2b-256 checksum
How to use checksums
3008fce63058e30576a0b548dd852986eb01488e088661c423cc63b19b7c398e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / django_tiptap_suite-1.0.8-py3-none-any.whl

Download URL django_tiptap_suite-1.0.8-py3-none-any.whl
Size 208.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5eb5858477884d22c0d774852a9f7eb9700921f87a7f540f06b56d8f296fd1fd
BLAKE2b-256 checksum
How to use checksums
b66cbcc5c75ce3b8d10d9fa303eacb569060a0e64b11c40df5c9c013d6339221
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Security for django-tiptap-suite 1.0.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for django_tiptap_suite-1.0.8.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page