Skip to content
Snippets Groups Projects
Commit 0ae0b7ad authored by dczepierga's avatar dczepierga
Browse files

1851606] by dczepierga: Add support for CKEditor v4 - fix uicolor for CKE GIT version

parent 57b080cb
No related branches found
No related tags found
No related merge requests found
......@@ -2227,15 +2227,15 @@ CKEDITOR.replace('editor', {
on: {
configLoaded: function(ev) {
var ckeditor_ver = CKEDITOR.version.split('.')[0];
if (ckeditor_ver == 4) {
CKEDITOR.plugins.addExternal('uicolor', '{$module_drupal_path}/includes/uicolor/', 'plugin.js');
if (uicolor.length == 0 || uicolor == 'default') {
delete ev.editor.config.uiColor;
if (ckeditor_ver == 3) {
if (skin != 'kama') {
ev.editor.config.toolbar = [[ 'Bold', 'Italic', '-', 'NumberedList', 'BulletedList']];
}
}
else {
if (skin != 'kama') {
ev.editor.config.toolbar = [[ 'Bold', 'Italic', '-', 'NumberedList', 'BulletedList']];
CKEDITOR.plugins.addExternal('uicolor', '{$module_drupal_path}/includes/uicolor/', 'plugin.js');
if (uicolor.length == 0 || uicolor == 'default') {
delete ev.editor.config.uiColor;
}
}
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment