Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Awesome Wagtail | 1,803 | 2 months ago | 1 | |||||||
A curated list of awesome packages, articles, and other cool resources from the Wagtail community. | ||||||||||
Django Summernote | 934 | 226 | 1 | 9 months ago | 73 | October 14, 2021 | 61 | mit | Python | |
Simply integrate Summernote editor with Django project. | ||||||||||
Booktype | 840 | 2 years ago | 6 | agpl-3.0 | JavaScript | |||||
Booktype is a free, open source platform that produces beautiful, engaging books formatted for print, Amazon, iBooks and almost any ereader within minutes. | ||||||||||
Django Markdownx | 784 | 116 | 5 | 9 days ago | 53 | January 03, 2022 | 48 | other | Python | |
Comprehensive Markdown plugin built for Django | ||||||||||
Django Markdown Editor | 726 | 20 | 3 | 15 days ago | 51 | March 31, 2022 | 34 | gpl-3.0 | JavaScript | |
Awesome Django Markdown Editor, supported for Bootstrap & Semantic-UI | ||||||||||
Django Wysiwyg | 468 | 149 | 5 | 7 years ago | 14 | August 17, 2016 | 17 | mit | HTML | |
A Django application for making Django textareas rich text editors. Certainly as a template tag and possibly as a form widget. | ||||||||||
Django Mdeditor | 407 | 21 | a year ago | 19 | January 05, 2022 | 23 | gpl-3.0 | Python | ||
Django-mdeditor is Markdown Editor plugin application for django base on Editor.md. | ||||||||||
Django Concurrency | 388 | 18 | 2 | a year ago | 23 | February 25, 2022 | 6 | mit | Python | |
Optimistic lock implementation for Django. Prevents users from doing concurrent editing. | ||||||||||
Django Widgy | 328 | 2 years ago | 66 | other | JavaScript | |||||
A CMS framework for Django built on a heterogenous tree editor. | ||||||||||
Django Json Widget | 281 | 9 | 11 | 2 years ago | 8 | February 17, 2021 | 16 | mit | Python | |
An alternative widget that makes it easy to edit the new Django's field JSONField (PostgreSQL specific model fields) |
Adds Medium Editor to Django.
Install django-mediumeditor
via PyPi:
pip install django-mediumeditor
via GIT:
pip install git+https://github.com/g3rd/django-mediumeditor.git
Install app
INSTALLED_APPS = [
...
'mediumeditor',
]
Add to Admin class
from mediumeditor.admin import MediumEditorAdmin
@admin.register(MyModel)
class MyModelAdmin(MediumEditorAdmin, admin.ModelAdmin):
...
mediumeditor_fields = ('my_text_field', )
...
Override the Widget for the field
from mediumeditor.widgets import MediumEditorTextarea
class MyForm(forms.ModelForm):
...
class Meta:
model = MyModel
widgets = {
'my_text_field': MediumEditorTextarea(),
}
In the <head>
of the template
{{ form.media }}
Optionaly change theme or change medium editor options in your settings.py
# Theme options `default`, `roman`, `mani`, `flat`, `bootstrap`, `tim`, `beagle`
MEDIUM_EDITOR_THEME = 'beagle' # `default` is default theme
MEDIUM_EDITOR_OPTIONS = {..}
Example:
MEDIUM_EDITOR_THEME = 'bootstrap'
MEDIUM_EDITOR_OPTIONS = {
'toolbar': {
'static': True,
'buttons': [
'bold',
'italic',
'underline',
'strikethrough',
'subscript',
'superscript',
'h1',
'h2',
'h3',
'h4',
'h5',
'h6',
]
},
'paste': {
'forcePlainText': True,
'cleanPastedHTML': False,
'cleanReplacements': [],
'cleanAttrs': ['class', 'style', 'dir'],
'cleanTags': ['meta']
}
}
Report issues or feature requests
MIT: https://github.com/g3rd/django-mediumeditor/blob/master/LICENSE