Skip to main content

Django-TUI.Editor

Django WYSIWYG markdown editor that supports GFM

This is a django app that adds a markdown widget utilizing the TOAST UI Editor. Among other things it also adds a MarkdownField type that is an extension of the TextField but will use a WYSIWYG Markdown editor in the admin interface. The editor allows editing the markdown source code with a preview on the side.

How it works

The module adds 3 widgets based on django's own widget API:

  1. MarkdownEditorWidget: A WYSIWYG editor that also supports Markdown source code editing with syntax highlighting and a preview of the rendered implemented using the TOAST UI Editor
  2. MarkdownViewerWidget: A markdown viewer also implemented using the TOAST UI Editor which falls back to statically rendered markdown
  3. StaticMarkdownViewerWidget: A statically rendered markdown viewer that should work on all browsers without any javascript

On NoScript support

The rendering supports both a fancy viewer and editor in script-enabled environments but allows falling back to statically rendered elements if scripts are not supported or disabled. For static rendering of the viewer the python bindings for Github's GFM Markdown implementation cmark-gmf are used while the editor falls back to a simple text area input.

Metadata

Release files for django-tuieditor 0.2.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-tuieditor 0.2.0
File Size Uploaded
django_tuieditor-0.2.0.tar.gz 460.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-tuieditor 0.2.0
File Interpreter ABI Platform
django_tuieditor-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 926.8 kB

Release files / django_tuieditor-0.2.0.tar.gz

Download URL django_tuieditor-0.2.0.tar.gz
Size 460.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f59fe8778a26ce77d7105a30f9ffe45a1a9e31da3f64cb9c0417ed3863b8d5ae
BLAKE2b-256 checksum
How to use checksums
8fcc301e0be1d6a61ffc29a3d0ddb97c8ea00fdf4a102159154a9ade3fc49273
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

Release files / django_tuieditor-0.2.0-py3-none-any.whl

Download URL django_tuieditor-0.2.0-py3-none-any.whl
Size 466.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
68df3eb1a1d0b95a85a0056325cb8a973555f1c2b60ba1e718a9e7b647685067
BLAKE2b-256 checksum
How to use checksums
56e01536475ea19763add6193c25115badc9ba04908629cfd000f27868878809
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

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