Django TinyMCE component.Contribute to this page
Important: This Integration is maintained by a third-party developer. Tiny Technologies, Inc. bears no responsibility for this integration, which is not covered by the Tiny Self-Hosted Software License Agreement. For issues related to the integration, contact the third-party project directly.
For information on adding TinyMCE to a Django project, try using the Python-based
django-tinymce package. For information on setting up
django-tinymce, see: the django-tinymce Documentation. To use an newer version of TinyMCE, use the Tiny Cloud or statically host a manually downloaded copy of TinyMCE.
To load TinyMCE from the Tiny Cloud, update the project’s
TINYMCE_JS_URLto the Tiny Cloud CDN.
TINYMCE_COMPRESSORis set to
TINYMCE_JS_URL = 'https://cdn.tiny.cloud/1/no-api-key/tinymce/5/tinymce.min.js' TINYMCE_COMPRESSOR = False
If you’d rather download and install the script manually:
- Get the package from TinyMCE Downloads.
- Unzip the package and move the
'path/to/tinymce/'directory into the django project.
- Add a URL path to the
Add the relevant configuration setting:
If you do not need the
TINYMCE_COMPRESSOR = False), add
TINYMCE_JS_URLto the project’s
settings.pyfile pointing to
tinymce/tinymce.min.js. Such as:
TINYMCE_JS_URL = os.path.join(MEDIA_URL, "path/to/tinymce/tinymce.min.js") TINYMCE_COMPRESSOR = False
If you do need the
TINYMCE_COMPRESSOR = TRUE), add
TINYMCE_JS_ROOTto the project’s
settings.pyfile pointing to the
tinymce/root directory. Such as:
TINYMCE_JS_ROOT = os.path.join(MEDIA_URL, "path/to/tinymce") TINYMCE_COMPRESSOR = True
Thanks for the feedback!
Can't find what you're looking for? Let us know.