summaryrefslogtreecommitdiff
path: root/pv
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2021-03-10 20:52:59 (GMT)
committerChristian Pointner <equinox@helsinki.at>2021-03-22 21:15:15 (GMT)
commit8154c30318127e0491786b65975bee808cd8e27b (patch)
tree5524644d4bcb2f341b452f5d2a38591bed600c48 /pv
parentb2415eb92622563f567106e2c4951ed498273e53 (diff)
tinymce: upgrade and disable drag&drop for images
Diffstat (limited to 'pv')
-rw-r--r--pv/settings.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/pv/settings.py b/pv/settings.py
index 47b9d2e..41da596 100644
--- a/pv/settings.py
+++ b/pv/settings.py
@@ -90,11 +90,16 @@ INSTALLED_APPS = (
'tinymce',
)
-TINYMCE_JS_URL = '/static/js/tiny_mce/tiny_mce.js'
TINYMCE_DEFAULT_CONFIG = {
- 'plugins': 'contextmenu',
+ 'plugins': 'advimage,advlink,advlist,autoresize,contextmenu,paste',
'theme': 'advanced',
'theme_advanced_toolbar_location': 'top',
+ 'theme_advanced_toolbar_align': 'center',
+ 'theme_advanced_statusbar_location': 'bottom',
+ 'theme_advanced_resizing': 'true',
+ 'theme_advanced_path': 'false',
+ 'theme_advanced_buttons3_add': 'separator,pastetext,pasteword,selectall',
+ 'paste_block_drop': 'true',
}
CACHE_BACKEND = 'locmem://'