Browse Source

Turbinar o tinyMCE para edição de modelos

pull/159/head
Sesostris Vieira 3 years ago
parent
commit
9350a257d1
  1. 12
      sigi/settings.py

12
sigi/settings.py

@ -227,6 +227,18 @@ MATERIAL_ADMIN_SITE = {
"NAVBAR_REVERSE": False, # Hide side navbar by default "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 # SIGI specific settings
MENU_FILE = BASE_DIR / "menu_conf.yaml" MENU_FILE = BASE_DIR / "menu_conf.yaml"

Loading…
Cancel
Save