From 9350a257d1a814b1d29c53240839baf5e79d7784 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Wed, 4 May 2022 22:41:21 -0300 Subject: [PATCH] =?UTF-8?q?Turbinar=20o=20tinyMCE=20para=20edi=C3=A7=C3=A3?= =?UTF-8?q?o=20de=20modelos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sigi/settings.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sigi/settings.py b/sigi/settings.py index ac58462..ae9759f 100644 --- a/sigi/settings.py +++ b/sigi/settings.py @@ -227,6 +227,18 @@ MATERIAL_ADMIN_SITE = { "NAVBAR_REVERSE": False, # Hide side navbar by default } +# tinyMCE rich text editor settings +# https://django-tinymce.readthedocs.io/en/latest/installation.html#configuration + +TINYMCE_DEFAULT_CONFIG = { + "theme": "silver", + "menubar": True, + "plugins": "table,code,fullscreen,hr,link,lists,advlist,paste,print,searchreplace,visualblocks,visualchars", + "toolbar1": "undo redo print searchreplace visualblocks visualchars | styleselect fontsizeselect | bold italic strikethrough subscript superscript underline hr | backcolor forecolor removeformat", + "toolbar2": "alignleft aligncenter alignright alignjustify | numlist bullist outdent indent | link unlink |fullscreen code", + "toolbar3": "table tabledelete | tableprops tablerowprops tablecellprops | tableinsertrowbefore tableinsertrowafter tabledeleterow tablerowheader | tableinsertcolbefore tableinsertcolafter tabledeletecol tablecolheader | tablemergecells tablesplitcells | tablecellbackgroundcolor tablecellbordercolor tablecellborderwidth tablecellborderstyle", +} + # SIGI specific settings MENU_FILE = BASE_DIR / "menu_conf.yaml"