Created
May 23, 2017 10:41
-
-
Save cleopatra27/12189e43ecfa1bda70082c523506eda3 to your computer and use it in GitHub Desktop.
custom ckeditor for django-cms(should be included in settings.py)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CKEDITOR_SETTINGS = { | |
# 'language': '{{ language }}', | |
# 'toolbar': 'CMS', | |
# 'skin': 'moono', | |
# 'toolbar_CMS': [ | |
# ['Undo', 'Redo'], | |
# ['cmsplugins', '-', 'ShowBlocks'], | |
# ['Format', 'Styles'], | |
# ['TextColor', 'BGColor', '-', 'PasteText', 'PasteFromWord'], | |
# ['Maximize', ''], | |
# '/', | |
# ['Bold', 'Italic', 'Underline', '-', 'Subscript', 'Superscript', '-', 'RemoveFormat'], | |
# ['JustifyLeft', 'JustifyCenter', 'JustifyRight'], | |
# ['Link', 'Unlink', 'Anchor'], | |
# ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Table'], | |
# ['Source'] | |
# ], | |
# See: https://github.com/yakupadakli/django_blog/blob/master/ckeditor/ckeditor/styles.js | |
# for default style definitions.'name': 'Page Header H1', | |
'stylesSet': [ | |
{ | |
'name': "intro-lead-in", | |
'element': "h3", | |
'attributes': { | |
'class': 'intro-lead-in', | |
}, | |
}, | |
{ | |
'name': "intro-heading", | |
'element': "h3", | |
'attributes': { | |
'class': 'intro-heading', | |
} | |
}, | |
{ | |
'name': "button", | |
'element': "h3", | |
'attributes': { | |
'class': 'page-scroll btn btn-xl', | |
} | |
}, | |
{ | |
'name': "text-muted", | |
'element': "h3", | |
'attributes': { | |
'class': 'text-muted', | |
} | |
}, | |
{ | |
'name': "section-heading", | |
'element': "h3", | |
'attributes': { | |
'class': 'section-heading', | |
} | |
}, | |
{ | |
'name': "section-subheading", | |
'element': "h3", | |
'attributes': { | |
'class': 'section-subheading text-muted', | |
} | |
}, | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment