diff --git a/TWB/settings.py b/TWB/settings.py index a1af215..d24876a 100644 --- a/TWB/settings.py +++ b/TWB/settings.py @@ -216,7 +216,7 @@ CKEDITOR_RESTRICT_BY_DATE = False CKEDITOR_RESTRICT_BY_USER = True CKEDITOR_BROWSE_SHOW_DIRS = True -CKEDITOR_IMAGE_BACKEND = "pillow" +CKEDITOR_IMAGE_BACKEND = 'ckeditor_uploader.backends.PillowBackend' # CKEDITOR_BROWSE_SHOW_DIRS = True @@ -231,6 +231,10 @@ CKEDITOR_CONFIGS = { 'toolbar': 'Custom', 'forcePasteAsPlainText': True, 'allowedContent': True, + + 'filebrowserImageThumbWidth': 300, + 'filebrowserImageThumbHeight': 300, + 'filebrowserUploadUrl': '/ckeditor/upload/', # 'disallowedContent': 'img{width,height};img[width,height]', # 'extraPlugins': 'image2',