django-tinymce is a Django application that contains a widget to render a form field as a TinyMCE editor.
$ pip install django-tinymce
Add tinymce to INSTALLED_APPS in settings.py for your project:
INSTALLED_APPS = ( ... 'tinymce', )
Add tinymce.urls to urls.py for your project:
urlpatterns = [ ... path('tinymce/', include('tinymce.urls')), ]
In your code:
from django.db import models from tinymce.models import HTMLField class MyModel(models.Model): ... content = HTMLField()
django-tinymce uses staticfiles so everything should work as expected, different use cases (like using widget instead of HTMLField) and other stuff is available in documentation.
Latest release is 3.3.0. It supports Python 3.6+ Django 2.2, 3.0 and 3.1
Using TinyMCE 5.5.0.
Previous releases can be found on github, but they are no longer maintained.