Skip to content

Instantly share code, notes, and snippets.

@SalahAdDin
Created May 25, 2015 01:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SalahAdDin/5a19da6e68f8f6cbdec3 to your computer and use it in GitHub Desktop.
Save SalahAdDin/5a19da6e68f8f6cbdec3 to your computer and use it in GitHub Desktop.
Full django-ckeditor configuration.
#CKEditor Options
CKEDITOR_UPLOAD_PATH = "/statics/media/uploads/"
CKEDITOR_IMAGE_BACKEND = "pillow"
CKEDITOR_JQUERY_URL = '//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js'
CKEDITOR_CONFIGS = {
'default': {
'skin': 'office2013',
'toolbar': [
{ 'name': 'document', 'groups': [ 'mode', 'document', 'doctools' ], 'items': [ 'Source', '-', 'Save', 'NewPage', 'Preview', 'Print', '-', 'Templates' ] },
{ 'name': 'clipboard', 'groups': [ 'clipboard', 'undo' ], 'items': [ 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo' ] },
{ 'name': 'editing', 'groups': [ 'find', 'selection', 'spellchecker' ], 'items': [ 'Find', 'Replace', '-', 'SelectAll', '-', 'Scayt' ] },
'/',
{ 'name': 'basicstyles', 'groups': [ 'basicstyles', 'cleanup' ], 'items': [ 'Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat' ] },
{ 'name': 'paragraph', 'groups': [ 'list', 'indent', 'blocks', 'align', 'bidi' ], 'items': [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'BidiLtr', 'BidiRtl', 'Language' ] },
{ 'name': 'links', 'items': [ 'Link', 'Unlink', 'Anchor' ] },
{ 'name': 'insert', 'items': [ 'Image', 'HorizontalRule', 'Smiley', 'SpecialChar', 'PageBreak', 'Iframe' ] },
'/',
{ 'name': 'styles', 'items': [ 'Styles', 'Format', 'Font', 'FontSize' ] },
{ 'name': 'colors', 'items': [ 'TextColor', 'BGColor' ] },
{ 'name': 'tools', 'items': [ 'Maximize', 'ShowBlocks' ] },
{ 'name': 'others', 'items': [ '-' ] },
{ 'name': 'about', 'items': [ 'About' ] }
],
'width': 640,
'languages' : {
'ar' : 1,
'en' : 1,
'es' : 1,
'ru' : 1,
'tr' : 1,
},
'toolbarCanCollapse' : 'true',
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment