From 9151bb7b029e0f25634131035dd325bfa8740709 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Thu, 18 Aug 2016 15:35:45 +0200 Subject: [PATCH] misc: sync ckeditor settings with combo (#12653) --- corbo/settings.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/corbo/settings.py b/corbo/settings.py index 0c36834..00c4d89 100644 --- a/corbo/settings.py +++ b/corbo/settings.py @@ -93,6 +93,22 @@ STATIC_URL = '/static/' STATIC_ROOT = 'static' CKEDITOR_UPLOAD_PATH = 'ckeditor/uploads' +CKEDITOR_IMAGE_BACKEND = 'pillow' +CKEDITOR_CONFIGS = { + 'default': { + 'allowedContent': True, + 'removePlugins': 'stylesheetparser', + 'toolbar_Own': [['Source', 'Format', '-', 'Bold', 'Italic'], + ['NumberedList', 'BulletedList'], + ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'], + ['Link', 'Unlink'], + ['Image',], + ['RemoveFormat',], + ['Maximize']], + 'toolbar': 'Own', + 'resize_enabled': False, + }, +} MEDIA_ROOT = os.path.join(BASE_DIR, 'media') MEDIA_URL = '/media/' -- 2.9.3