Last active
July 8, 2016 02:37
-
-
Save kulamochi/b36e02f75b16ed1969baf1dadfe26a7d to your computer and use it in GitHub Desktop.
CKEditor customized example : 'config.js'
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.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