django-mdeditor-widget

Django widget to edit markdown in forms.


License
Other
Install
pip install django-mdeditor-widget==1.1.8

Documentation

django-mdeditor-widget

A Markdown editor widget for textarea fields.

Installation and usage

  1. Install with pip
pip install django-mdeditor-widget
  1. Add "mdeditor" to your INSATLLED_APPS setting like:
INSTALLED_APPS = [
    ...
    'mdeditor',
]
  1. In the form set the wdget to be "MDeditorWidget":
self.fields['text'].widget = MDeditorWidget(attrs={'rows': '30'})