Skip to main content

A markdown editor (with preview) for Django

Use a simple markdown editor https://github.com/Ionaru/easy-markdown-editor in django forms. This project is inspired by https://github.com/sparksuite/simplemde-markdown-editor and https://github.com/douglasmiranda/django-wysiwyg-redactor/.

Note that SimpleMDE is no longer in development, and has been forked to create EasyMDE, which is in active development as of mid-2024.

Getting started

  • install django-easymde
pip install django-easymde
  • add 'easymde' to INSTALLED_APPS.
INSTALLED_APPS = (
    # ...
    'easymde',
    # ...
)

Using field in models

from django.db import models
from easymde.fields import EasyMDEField

class Entry(models.Model):
    title = models.CharField(max_length=250, verbose_name=u'Title')
    content = EasyMDEField(verbose_name=u'mardown content')

Note: The widget EasyMDEWidget can also be used in forms on existing fields.

EasyMDE options

EasyMDE options can be set in settings.py:

EASYMDE_OPTIONS = {
    'placeholder': 'Type here...',
    'status': False,
    'autosave': {
        'enabled': True
    }
}

For the autosave option, this plugin will generate uniqueId with python's uuid.uuid4 automatically.

Right now, this plugin supports EasyMDE Configurations, but only the static ones(no support for javascript configurations such as previewRender)

Get EasyMDE instance from DOM

After EasyMDE is initialized, a EasyMDE instance can be retrieved from the DOM element:

$('.easymde-box')[0].EasyMDE

Release files for django-easymde 1.0.4

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-easymde 1.0.4
File Size Uploaded
django_easymde-1.0.4.tar.gz 113.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-easymde 1.0.4
File Interpreter ABI Platform
django_easymde-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 228.6 kB

Release files / django_easymde-1.0.4.tar.gz

Download URL django_easymde-1.0.4.tar.gz
Size 113.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0690902bde591461138e174e47f58363f1f7b7fb637ebae7401e7a6449177e26
BLAKE2b-256 checksum
How to use checksums
d454abbd9ce6107405a87c57e6a2f664241da6d7fcf4e8e326b4c15d896a0e01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Release files / django_easymde-1.0.4-py3-none-any.whl

Download URL django_easymde-1.0.4-py3-none-any.whl
Size 114.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5b2fd94953b76cb69aebd5d6169056084188e079609bee1300174ad54cfa346a
BLAKE2b-256 checksum
How to use checksums
267b0981dbbc659c2cd3281a24e0daf1181dae832e73c5039933ac46e9fbfe43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

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