Log in or register to post comments
Last post
Color definitions for different instances
How can I define different color sets for different editor instances on the same page?

Actualy I am setting color sets using the config entry:
CKEDITOR.config.colorButton_colors

This works fine, but does not allow different instances on the same page having different color sets.

I tried to capture the "configLoaded" event and set the color set on the editor instance. The event was correctly captured but the color set was not taken into account for the color button.

Can somebody help?
Re: Color definitions for different instances
you can set the config option when you create the ckeditor, which should allow you to change then individually for each instance.

e.g.

CKEDITOR.replace( 'editor1',
{
toolbar : 'Basic',
uiColor : '#9AB8F3',
colorButton_colors : ....
});
Re: Color definitions for different instances
I tried your solution, but it doesn't work. Its like the colorbutton plugin is only taking the global config definition and not the config specific one.

Looking at the code for the plugin it seems to be taking the instance config, however. Any ideas?
Re: Color definitions for different instances
sorry you are completely correct it is taking the CKEditor.config.

I had a quick poke to see if I could get it to take the colours from the editor.config but it doesn't seem to want to play ball with me.. Sorry.