Skip to main content

Markdown editor and viewer widgets for Django

Project description

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.

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

django_tuieditor-0.2.0.tar.gz (460.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_tuieditor-0.2.0-py3-none-any.whl (466.4 kB view details)

Uploaded Python 3

File details

Details for the file django_tuieditor-0.2.0.tar.gz.

File metadata

  • Download URL: django_tuieditor-0.2.0.tar.gz
  • Upload date:
  • Size: 460.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for django_tuieditor-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f59fe8778a26ce77d7105a30f9ffe45a1a9e31da3f64cb9c0417ed3863b8d5ae
MD5 1359a2fdc52e7d7db02258e908246758
BLAKE2b-256 8fcc301e0be1d6a61ffc29a3d0ddb97c8ea00fdf4a102159154a9ade3fc49273

See more details on using hashes here.

File details

Details for the file django_tuieditor-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: django_tuieditor-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 466.4 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for django_tuieditor-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 68df3eb1a1d0b95a85a0056325cb8a973555f1c2b60ba1e718a9e7b647685067
MD5 3d4029ff223696fd70404eeadbbf20bd
BLAKE2b-256 56e01536475ea19763add6193c25115badc9ba04908629cfd000f27868878809

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page