I need just to select color and just to save its value into hidden input on page. It seems that if i can override behavior of "select background color button" it would be that i need.
i put this button into toolbar and analized some produced html code ... After color selection it calls something like
How can i override that magic function №52 ?
I found CKEDITOR.tools.override(oldFunc, funcBuilder) in the documentation, but i have no idea how to use it. Can somebody explain the technics ?
ps. i'm sorry for my weak english, its not my native
i put this button into toolbar and analized some produced html code ... After color selection it calls something like
CKEDITOR.tools.callFunction( 52, // seems to be some kind of numerical ref to function '#001100', // color value 'back' // dont know what does it mean in current context, but its everywhere in color dialog );
How can i override that magic function №52 ?
I found CKEDITOR.tools.override(oldFunc, funcBuilder) in the documentation, but i have no idea how to use it. Can somebody explain the technics ?
ps. i'm sorry for my weak english, its not my native
Re: How to override default behavior of select color dialog
i modified directly ckeditor.js adding
to beginning of function, that in source representation defined in colorbutton/plugin.js here
it is ugly and awful hack, i have no more functionality about changing backround color ... but i have defined color in MY_COLOR_VAR that exist in my ckeditor instance. it works, but i still want to know how i can do it in correct way.
ps. again sry for my weak english