diff --git a/docs/configuration.md b/docs/configuration.md index c4e484c..5f824b6 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -34,9 +34,10 @@ DEFAULT = { If you are using a custom TinyMCE configuration, don't forget to add [spellchecker](https://www.tinymce.com/docs/plugins/spellchecker/) plugin to your configuration, and add the necessary menu item/toolbar button. Also read [Language Configuration](#language-configuration) subsection about how to configure the spellchecker. ``` -`TINYMCE_JS_URL` -- a path to TinyMCE JavaScript library. Default: {file}`{your_static_url}/tinymce/js/tinymce/tinymce.min.js`. The following example shows how to load the TinyMCE library from a CDN: +`TINYMCE_JS_URL` -- a path to TinyMCE JavaScript library. Default: `https://cdn.tiny.cloud/1/no-api-key/tinymce/4/tinymce.min.js`. +The following example shows how to load the TinyMCE library from another location: - TINYMCE_JS_URL = '//cdn.tinymce.com/4/tinymce.min.js' + TINYMCE_JS_URL = 'https://cdn.tiny.cloud/1/no-api-key/tinymce/4/tinymce.min.js' `TINYMCE_ADDITIONAL_JS_URLS` -- a {class}`list` of URLs for additional JavaScript files to be used with the TinyMCE widget, for example, custom TinyMCE plugins. Default: None. diff --git a/src/tinymce/settings.py b/src/tinymce/settings.py index ed0a5b9..8be2e1e 100644 --- a/src/tinymce/settings.py +++ b/src/tinymce/settings.py @@ -37,7 +37,11 @@ CONFIG = getattr(settings, "TINYMCE_DEFAULT_CONFIG", DEFAULT) # TinyMCE 4 JavaScript code -JS_URL = getattr(settings, "TINYMCE_JS_URL", "//cdn.tinymce.com/4/tinymce.min.js") +JS_URL = getattr( + settings, + "TINYMCE_JS_URL", + "https://cdn.tiny.cloud/1/no-api-key/tinymce/4/tinymce.min.js", +) # Additional JS files for TinyMCE (e.g. custom plugins) ADDITIONAL_JS_URLS = getattr(settings, "TINYMCE_ADDITIONAL_JS_URLS", None)