|
@ -110,8 +110,7 @@ INSTALLED_APPS = ( |
|
|
'reversion', |
|
|
'reversion', |
|
|
'django_countries', |
|
|
'django_countries', |
|
|
'solo', |
|
|
'solo', |
|
|
'ckeditor', |
|
|
'django_ckeditor_5', |
|
|
'ckeditor_uploader', |
|
|
|
|
|
'taggit', |
|
|
'taggit', |
|
|
'dal', |
|
|
'dal', |
|
|
'dal_select2', |
|
|
'dal_select2', |
|
@ -186,26 +185,98 @@ SUMMERNOTE_CONFIG = { |
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
CKEDITOR_UPLOAD_PATH = "uploads/" |
|
|
CKEDITOR_5_CUSTOM_CSS = "css/ckeditor5_fix.css" |
|
|
CKEDITOR_IMAGE_BACKEND = 'pillow' |
|
|
# customColorPalette = [ |
|
|
#CKEDITOR_JQUERY_URL = '//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js' |
|
|
# { |
|
|
CKEDITOR_CONFIGS = { |
|
|
# 'color': 'hsl(4, 90%, 58%)', |
|
|
|
|
|
# 'label': 'Red', |
|
|
|
|
|
# }, |
|
|
|
|
|
# { |
|
|
|
|
|
# 'color': 'hsl(340, 82%, 52%)', |
|
|
|
|
|
# 'label': 'Pink', |
|
|
|
|
|
# }, |
|
|
|
|
|
# { |
|
|
|
|
|
# 'color': 'hsl(291, 64%, 42%)', |
|
|
|
|
|
# 'label': 'Purple', |
|
|
|
|
|
# }, |
|
|
|
|
|
# { |
|
|
|
|
|
# 'color': 'hsl(262, 52%, 47%)', |
|
|
|
|
|
# 'label': 'Deep Purple', |
|
|
|
|
|
# }, |
|
|
|
|
|
# { |
|
|
|
|
|
# 'color': 'hsl(231, 48%, 48%)', |
|
|
|
|
|
# 'label': 'Indigo', |
|
|
|
|
|
# }, |
|
|
|
|
|
# { |
|
|
|
|
|
# 'color': 'hsl(207, 90%, 54%)', |
|
|
|
|
|
# 'label': 'Blue', |
|
|
|
|
|
# }, |
|
|
|
|
|
# ] |
|
|
|
|
|
CKEDITOR_5_FILE_STORAGE = "various.storage.UploadStorage" |
|
|
|
|
|
CKEDITOR_5_CONFIGS = { |
|
|
'default': { |
|
|
'default': { |
|
|
'entities': False, |
|
|
'language': 'cs', |
|
|
'toolbar': [ |
|
|
'blockToolbar': [ |
|
|
['Source', 'ShowBlocks', '-', 'Maximize'], |
|
|
'paragraph', 'heading1', 'heading2', 'heading3', |
|
|
['Bold', 'Italic', 'Subscript', 'Superscript', '-', 'RemoveFormat'], |
|
|
'|', |
|
|
['NumberedList','BulletedList','-','Blockquote','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], |
|
|
'bulletedList', 'numberedList', |
|
|
['Link', 'Unlink', 'Anchor', '-', 'Image', 'Table', 'HorizontalRule'], |
|
|
'|', |
|
|
['Format'], |
|
|
'blockQuote', |
|
|
|
|
|
], |
|
|
|
|
|
'toolbar': ['sourceEditing', '|', 'heading', '|', |
|
|
|
|
|
# 'outdent', 'indent', '|', |
|
|
|
|
|
'bold', 'italic', 'link', 'underline', 'strikethrough', |
|
|
|
|
|
'code', |
|
|
|
|
|
# 'subscript', 'superscript', |
|
|
|
|
|
# 'highlight', |
|
|
|
|
|
'|', 'codeBlock', 'insertImage', |
|
|
|
|
|
'bulletedList', 'numberedList', 'todoList', '|', |
|
|
|
|
|
# 'blockQuote', '|', |
|
|
|
|
|
# 'fontSize', 'fontFamily', 'fontColor', 'fontBackgroundColor', |
|
|
|
|
|
# 'mediaEmbed', |
|
|
|
|
|
'removeFormat', |
|
|
|
|
|
# 'insertTable', |
|
|
], |
|
|
], |
|
|
# 'toolbar': 'full', |
|
|
'image': { |
|
|
'height': '40em', |
|
|
'toolbar': ['imageTextAlternative', '|', 'imageStyle:alignLeft', |
|
|
'width': '100%', |
|
|
'imageStyle:alignRight', 'imageStyle:alignCenter', 'imageStyle:side', '|'], |
|
|
'toolbarStartupExpanded': False, |
|
|
'styles': [ |
|
|
'allowedContent' : True, |
|
|
'full', |
|
|
|
|
|
'side', |
|
|
|
|
|
'alignLeft', |
|
|
|
|
|
'alignRight', |
|
|
|
|
|
'alignCenter', |
|
|
|
|
|
] |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
# 'table': { |
|
|
|
|
|
# 'contentToolbar': [ 'tableColumn', 'tableRow', 'mergeTableCells', |
|
|
|
|
|
# 'tableProperties', 'tableCellProperties' ], |
|
|
|
|
|
# 'tableProperties': { |
|
|
|
|
|
# 'borderColors': customColorPalette, |
|
|
|
|
|
# 'backgroundColors': customColorPalette, |
|
|
|
|
|
# }, |
|
|
|
|
|
# 'tableCellProperties': { |
|
|
|
|
|
# 'borderColors': customColorPalette, |
|
|
|
|
|
# 'backgroundColors': customColorPalette, |
|
|
|
|
|
# } |
|
|
|
|
|
# }, |
|
|
|
|
|
'heading' : { |
|
|
|
|
|
'options': [ |
|
|
|
|
|
{ 'model': 'paragraph', 'title': 'Paragraph', 'class': 'ck-heading_paragraph' }, |
|
|
|
|
|
{ 'model': 'heading1', 'view': 'h1', 'title': 'Heading 1', 'class': 'ck-heading_heading1' }, |
|
|
|
|
|
{ 'model': 'heading2', 'view': 'h2', 'title': 'Heading 2', 'class': 'ck-heading_heading2' }, |
|
|
|
|
|
{ 'model': 'heading3', 'view': 'h3', 'title': 'Heading 3', 'class': 'ck-heading_heading3' }, |
|
|
|
|
|
] |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
'list': { |
|
|
|
|
|
'properties': { |
|
|
|
|
|
'styles': 'true', |
|
|
|
|
|
'startIndex': 'true', |
|
|
|
|
|
'reversed': 'true', |
|
|
|
|
|
}, |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
# Webpack loader |
|
|
# Webpack loader |
|
|