diff options
Diffstat (limited to 'settings.py')
-rw-r--r-- | settings.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/settings.py b/settings.py index bcb972e..05947c0 100644 --- a/settings.py +++ b/settings.py @@ -127,7 +127,26 @@ X_FRAME_OPTIONS = 'DENY' # changed to "DENY" after I eliminated all the iframes DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' # from Django 3.2 +TINYMCE_JS_URL = 'https://cloud.tinymce.com/stable/tinymce.min.js' +TINYMCE_DEFAULT_CONFIG = { + "height": "320px", + "width": "960px", + "menubar": "file edit view insert format tools table help", + "plugins": "advlist autolink lists link image charmap print preview anchor searchreplace visualblocks code " + "fullscreen insertdatetime media table paste code help wordcount spellchecker", + "toolbar": "undo redo | bold italic underline strikethrough | fontselect fontsizeselect formatselect | alignleft " + "aligncenter alignright alignjustify | outdent indent | numlist bullist checklist | forecolor " + "backcolor casechange permanentpen formatpainter removeformat | pagebreak | charmap emoticons | " + "fullscreen preview save print | insertfile image media pageembed template link anchor codesample | " + "a11ycheck ltr rtl | showcomments addcomment code", + "custom_undo_redo_levels": 10, + "language": "es_ES", # To force a specific language instead of the Django current language. +} +TINYMCE_SPELLCHECKER = True +TINYMCE_COMPRESSOR = True + INSTALLED_APPS = ( + 'tinymce', 'django.contrib.admin', 'django.contrib.auth', # includes the url redirections for login, logout 'django.contrib.contenttypes', |