2013-01-23 09:55:48 +07:00
|
|
|
CKEDITOR.editorConfig = function(config) {
|
|
|
|
config.resize_enabled = false;
|
2017-10-18 20:05:12 +07:00
|
|
|
config.toolbarCanCollapse = true;
|
2013-01-23 09:55: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' };
|
2013-01-26 07:43:59 +07:00
|
|
|
config.toolbar_MyToolbar =
|
|
|
|
[
|
|
|
|
{ name: 'styles', items : [ 'Styles','Format','Font','FontSize' ] },
|
|
|
|
{ name: 'colors', items : [ 'TextColor','BGColor' ] },
|
|
|
|
{ name: 'tools', items : [ 'Maximize', '-','About' ] },
|
|
|
|
{ name: 'clipboard', items : [ 'Undo','Redo' ] },
|
|
|
|
{ name: 'editing', items : [ 'Find','Replace','-','SelectAll' ] },
|
|
|
|
'/',
|
|
|
|
{ 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: 'insert', items : [ 'Image','Table','HorizontalRule','SpecialChar' ] }
|
|
|
|
];
|
|
|
|
};
|