CKEDITOR.editorConfig =
function
( config ) {
if
(
typeof
ilchMediaPlugin !==
"undefined"
&&
typeof
ilchPsPlugin !==
"undefined"
) {
CKEDITOR.plugins.addExternal(
'ilchmedia'
, ilchMediaPlugin);
CKEDITOR.plugins.addExternal(
'ilchps'
, ilchPsPlugin);
config.extraPlugins =
"justify,font,colorbutton,colordialog,youtube,ilchmedia,ilchps"
;
}
else
if
(
typeof
ilchMediaPlugin !==
"undefined"
) {
CKEDITOR.plugins.addExternal(
'ilchmedia'
, ilchMediaPlugin);
config.extraPlugins =
"justify,font,colorbutton,colordialog,youtube,ilchmedia"
;
}
config.protectedSource.push(/<i[^>]*><\/i>/g);
config.protectedSource.push(/<\?[\s\S]*?\?>/g);
config.toolbar =
'ilch_html'
;
config.toolbar_ilch_html = [
{ name:
'document'
, groups: [
'mode'
], items: [
'Source'
] },
{ name:
'clipboard'
, groups: [
'clipboard'
,
'undo'
], items: [
'Cut'
,
'Copy'
,
'Paste'
,
'PasteText'
,
'PasteFromWord'
,
'-'
,
'Undo'
,
'Redo'
] },
{ name:
'editing'
, groups: [
'spellchecker'
], items: [
'Scayt'
] },
'/'
,
{ name:
'basicstyles'
, groups: [
'basicstyles'
,
'alignment'
,
'cleanup'
], items: [
'Bold'
,
'Italic'
,
'Underline'
,
'Strike'
,
'Subscript'
,
'Superscript'
,
'-'
,
'JustifyLeft'
,
'JustifyCenter'
,
'JustifyRight'
,
'JustifyBlock'
,
'-'
,
'RemoveFormat'
] },
{ name:
'paragraph'
, groups: [
'list'
,
'indent'
,
'blocks'
,
'align'
,
'bidi'
], items: [
'NumberedList'
,
'BulletedList'
,
'-'
,
'Outdent'
,
'Indent'
,
'-'
,
'Blockquote'
,
'CreateDiv'
,
'-'
,
'BidiLtr'
,
'BidiRtl'
,
'Language'
] },
{ name:
'links'
, items: [
'Link'
,
'Unlink'
,
'Anchor'
] },
{ name:
'insert'
, items: [
'Table'
,
'HorizontalRule'
] },
'/'
,
{ name:
'styles'
, items: [
'Styles'
,
'Format'
,
'Font'
,
'FontSize'
] },
{ name:
'colors'
, items: [
'TextColor'
,
'BGColor'
] },
{ name:
'tools'
, items: [
'Maximize'
] },
{ name:
'others'
, items: [
'Youtube'
] },
{ name:
'insert'
, items: [
'ilchmedia'
,
'ilchps'
] }
];
};