diff options
author | Martin Green <martin.speleo@gmail.com> | 2022-06-28 00:18:24 +0100 |
---|---|---|
committer | Martin Green <martin.speleo@gmail.com> | 2022-06-28 00:18:24 +0100 |
commit | 2af88353f3ea487a1e129783db49ad71d3bc3410 (patch) | |
tree | 659e0151ac170afbb66c6dd2e5e9311d770d0af4 /settings.py | |
parent | 82fe3504936987ca4d44f21e4c7b0c6aeb256761 (diff) | |
download | troggle-2af88353f3ea487a1e129783db49ad71d3bc3410.tar.gz troggle-2af88353f3ea487a1e129783db49ad71d3bc3410.tar.bz2 troggle-2af88353f3ea487a1e129783db49ad71d3bc3410.zip |
Added some test pages showing different ways pages could be edited. This probably wants removing soon
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', |