Skip to main content

django-toastui-markdown-editor

A Django widget that integrates Toast UI Editor into Django forms and admin as a drop-in replacement for standard textarea fields with rich markdown editing.

Features

  • TuiEditorWidget - Form widget that replaces textareas with Toast UI Editor
  • AdminTuiEditorWidget - Specialized widget with admin-specific styling (full width, larger height)
  • TuiEditorField - Model field (TextField) that automatically uses the Toast UI Editor in forms
  • Configurable - Editor settings (edit type, preview style, height, toolbar) via config parameter
  • Formset support - Works with Django admin inlines and dynamically added forms
  • content-editor plugin - Integrates with django-content-editor activation/deactivation events

Requirements

  • Python 3.10+
  • Django 4.2+

Installation

pip install django-toastui-markdown-editor

Add to your INSTALLED_APPS:

INSTALLED_APPS = [
    ...
    'tui_editor',
]

Quick Start

In a Model

from django.db import models
from tui_editor.fields import TuiEditorField

class Article(models.Model):
    body = TuiEditorField()

In a Form

from django import forms
from tui_editor.widgets import TuiEditorWidget

class ArticleForm(forms.Form):
    body = forms.CharField(widget=TuiEditorWidget())

In Django Admin

from django.contrib import admin
from tui_editor.widgets import AdminTuiEditorWidget

class ArticleAdmin(admin.ModelAdmin):
    formfield_overrides = {
        models.TextField: {'widget': AdminTuiEditorWidget()},
    }

Configuration

Pass a config dict to the widget to customize the editor:

TuiEditorWidget(config={
    'initialEditType': 'wysiwyg',  # or 'markdown' (default)
    'previewStyle': 'vertical',     # or 'tab' (default)
    'height': '500px',              # default: '300px'
})

Disclaimer

This project is not affiliated with, endorsed by, or associated with NHN or the Toast UI project. It is an independent, third-party Django integration that bundles the Toast UI Editor library.

License

MIT License - see LICENSE for details.

Metadata

Release files for django-toastui-markdown-editor 0.1.0

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-toastui-markdown-editor 0.1.0
File Size Uploaded
django_toastui_markdown_editor-0.1.0.tar.gz 290.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-toastui-markdown-editor 0.1.0
File Interpreter ABI Platform
django_toastui_markdown_editor-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 583.0 kB

Release files / django_toastui_markdown_editor-0.1.0.tar.gz

Download URL django_toastui_markdown_editor-0.1.0.tar.gz
Size 290.7 kB
Tags Source
SHA-256 checksum
How to use checksums
fd4e4732b7c516be387e88cbef078c5499072d5dd00d871ebec87829100f3a20
BLAKE2b-256 checksum
How to use checksums
b208318884fb7655600224648408351a7bca2af73b2be1b00d2e62b48af48367
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Apr 4, 2026.

Transparency log

Release files / django_toastui_markdown_editor-0.1.0-py3-none-any.whl

Download URL django_toastui_markdown_editor-0.1.0-py3-none-any.whl
Size 292.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ce716b8c4ac710679d3869a776ddd7847d8ab03bd3d53e2185ad1725f8cc2c44
BLAKE2b-256 checksum
How to use checksums
05811b3762da2d07d8f5d6b2fe66c4a657f09924c218b59641fef70ba9f6a2d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Apr 4, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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