Skip to content

Instantly share code, notes, and snippets.

@Sunnyztj
Created February 3, 2021 00:34
Show Gist options
  • Save Sunnyztj/0d034024ae56551fd312d400a8d39af6 to your computer and use it in GitHub Desktop.
Save Sunnyztj/0d034024ae56551fd312d400a8d39af6 to your computer and use it in GitHub Desktop.
ckeditor_config.js
CKEDITOR.editorConfig = function( config ) {
config.toolbar = [
{ name: 'basicstyles', items: [ 'Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat' ] },
{ name: 'paragraph', items: [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'] },
'/',
{ name: 'links', items: [ 'Link', 'Unlink' ] },
{ name: 'styles', items: [ 'Styles', 'Format', 'Font', 'FontSize' ] },
'/',
{ name: 'colors', items: [ 'TextColor', 'BGColor' ] },
{ name: 'insert', items: [ 'Table', 'HorizontalRule', 'SpecialChar'] },
{ name: 'tools', items: [ 'ShowBlocks' ] },
{ name: 'document', items: [ 'Source' ] },
];
config.allowedContent = true;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment