]> git.parisson.com Git - teleforma.git/commitdiff
Migrate tinymce
authortest test <yoanl@pilotsystems.net>
Thu, 27 May 2021 13:14:05 +0000 (15:14 +0200)
committerYoan Le Clanche <yoanl@pilotsystems.net>
Wed, 12 Apr 2023 09:39:43 +0000 (11:39 +0200)
app/settings.py

index b4bef6c14cad7faa21bd888795d712cd946f774e..e2145f4d8e5e624bcaef811b9b63228a989fa25f 100644 (file)
@@ -282,10 +282,17 @@ USER_AGENTS_CACHE = 'default'
 AUTH_USER_MODEL = 'auth.User'
 
 TINYMCE_DEFAULT_CONFIG = {
-    'plugins': "table,spellchecker,paste,searchreplace",
-    'theme': "advanced",
-    'cleanup_on_startup': True,
-    'custom_undo_redo_levels': 10,
+    "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,
 }
 
 # Sherlock's online payment