Jump to content

CKEditor - Syntax for uiColor config setting


Recommended Posts

Hi,

I reached out in the dev forums but didn't receive a reply. In the last update of IPS, you added support for the current 4.6.2. This means in dark themes we can't supply the Moono Dark skin any longer, as it isn't compatible and no longer maintained.

As Moono-Lisa is the new official default CKEditor theme, it should make life easier as it supports quickly changing the UI easily with a simple configuration string uiColor:

https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-uiColor

The uiColor isn't configurable in IPS 4.6.7, and it looks like the IPS skin is still based on the previous default theme Moono, so as Moono also supports uiColor because it's an official theme, please can you advise how to implement the setting in the existing config.js file?

/*
 Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
 For licensing, see https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.editorConfig=function(a){a.toolbarGroups=[{name:"document",groups:["mode","document","doctools"]},{name:"clipboard",groups:["clipboard","undo"]},{name:"editing",groups:["find","selection","spellchecker"]},{name:"forms"},{name:"basicstyles",groups:["basicstyles","cleanup"]},{name:"paragraph",groups:["list","indent","blocks","align","bidi"]},{name:"links"},{name:"insert"},{name:"styles"},{name:"colors"},{name:"tools"},{name:"others"},{name:"about"}];a.removeButtons="Cut,Copy,Paste,Undo,Redo,Anchor,Underline,Strike,Subscript,Superscript";
a.removeDialogTabs="link:advanced";};


Apparently we can just add:

// Using a color code.
config.uiColor = '#AADC6E';

// Using an HTML color name.
config.uiColor = 'Gold';

I have tried lots of variations without success, such as:

// Using a color code.
a.uiColor = '#AADC6E';

cke.uiColor = '#AADC6E';

ips.uiColor = '#AADC6E';

I've tried for days now: adding them as a new line and also contained within the function a already defined.

/*
 Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
 For licensing, see https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.editorConfig=function(a){a.toolbarGroups=[{name:"document",groups:["mode","document","doctools"]},{name:"clipboard",groups:["clipboard","undo"]},{name:"editing",groups:["find","selection","spellchecker"]},{name:"forms"},{name:"basicstyles",groups:["basicstyles","cleanup"]},{name:"paragraph",groups:["list","indent","blocks","align","bidi"]},{name:"links"},{name:"insert"},{name:"styles"},{name:"colors"},{name:"tools"},{name:"others"},{name:"about"}];a.removeButtons="Cut,Copy,Paste,Undo,Redo,Anchor,Underline,Strike,Subscript,Superscript";
a.removeDialogTabs="link:advanced";a.uiColor="#000000";};

Many thanks!

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...