diff --git a/TWB/settings.py b/TWB/settings.py index c44982c..ccc1e4c 100644 --- a/TWB/settings.py +++ b/TWB/settings.py @@ -211,6 +211,9 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' CKEDITOR_BASEPATH = "/static/ckeditor/ckeditor/" CKEDITOR_UPLOAD_PATH = "uploads/" +CKEDITOR_RESTRICT_BY_DATE = False +CKEDITOR_RESTRICT_BY_USER = True +CKEDITOR_BROWSE_SHOW_DIRS = True CKEDITOR_IMAGE_BACKEND = "pillow" @@ -222,12 +225,12 @@ CKEDITOR_CONFIGS = { 'default': { 'height': 291, 'width': '70vw', - # 'filebrowserWindowHeight': 600, - # 'filebrowserWindowWidth': "100%", + 'filebrowserWindowHeight': 600, + 'filebrowserWindowWidth': "100%", 'toolbar': 'Custom', 'forcePasteAsPlainText': True, - # 'allowedContent': True, - 'disallowedContent': 'img{width,height};img[width,height]', + 'allowedContent': True, + # 'disallowedContent': 'img{width,height};img[width,height]', # 'extraPlugins': 'image2', 'enterMode': 2,