2016-07-05 22:07:48 +07:00
|
|
|
CKEDITOR.editorConfig = function(config) {
|
|
|
|
config.resize_enabled = false;
|
2017-10-18 20:05:12 +07:00
|
|
|
config.toolbarCanCollapse = true;
|
2016-07-05 22:07:48 +07:00
|
|
|
config.toolbar = 'MyToolbar';
|
2018-08-17 23:46:37 +07:00
|
|
|
config.coreStyles_bold = { element: 'b', overrides: 'strong' };
|
|
|
|
config.coreStyles_italic = { element: 'i', overrides: 'em' };
|
|
|
|
config.coreStyles_strike = { element: 'strike', overrides: 's' };
|
2016-07-05 22:07:48 +07:00
|
|
|
config.toolbar_MyToolbar =
|
|
|
|
[
|
|
|
|
{ name: 'styles', items : [ 'Styles','Format','Font','FontSize' ] },
|
|
|
|
{ name: 'colors', items : [ 'TextColor','BGColor' ] },
|
|
|
|
{ name: 'clipboard', items : [ 'Undo','Redo' ] },
|
|
|
|
{ name: 'basicstyles', items : [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] },
|
|
|
|
{ name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock' ] },
|
2017-10-18 20:05:12 +07:00
|
|
|
{ name: 'tools', items : [ 'Maximize' ] }
|
2016-07-05 22:07:48 +07:00
|
|
|
];
|
|
|
|
};
|