Excuse the multiple posting, but I wasn't sure which forum is best for this question:
Does anyone know how to change the default Automatic Text Color? I have multiple users editing a document using different text colors. Right now, they have to keep setting the Text Color everytime they want to write something. If it were possible to change the default color just once and have it stay that color for the duration of their editing, they would not have to repeatedly go into the TextColor dialog box. Ideally, it would be good if there were a way for the users to change the color on the fly as they needed it.
Does anyone know how to change the default Automatic Text Color? I have multiple users editing a document using different text colors. Right now, they have to keep setting the Text Color everytime they want to write something. If it were possible to change the default color just once and have it stay that color for the duration of their editing, they would not have to repeatedly go into the TextColor dialog box. Ideally, it would be good if there were a way for the users to change the color on the fly as they needed it.
RE: How to change Default Automatic Text Color
RE: How to change Default Automatic Text Colo
Replace the Execute contents with alert( 'Hello world' ) ;
and once it works try to call this function FCK.ExecuteNamedCommand ( commandName, commandParameter )
with the proper parameters (don't know right now which ones for color change)
RE: How to change Default Automatic Text Colo
sorry, I forgot.
And of course, start from the Wiki http://wiki.fckeditor.net/Developer%27s ... n/Plug-ins
it doesn't have everything, but at least it's better than guessing.
RE: How to change Default Automatic Text Color
RE: How to change Default Automatic Text Color
RE: How to change Default Automatic Text Colo
Now according to http://msdn.microsoft.com/workshop/auth ... andids.asp and
http://msdn.microsoft.com/workshop/auth ... ecolor.asp
you should make this call:
FCK.ExecuteNamedCommand ( 'ForeColor', '#FF0000' ) ;
and that will set the color to red.
If it works you have an easy way to test changes and commands, and now you can make the same call listening to a onKeyDown event as I wrote in a previous post, but you have to change core files for this to work.
RE: How to change Default Automatic Text Colo
What you can try to do is make it easier for them to change the color, for example create a plugin that calls the command to change the color with their color instead of having to pick it up from the palette (one step less for them), and from there go ahead and try to create a key binding like Ctrl+key that automatically executes the color change function. (although currently there's no onKeyDown event you can see in a previous post from a few days ago how to do it, I've begin using just to catch the Esc key and it works)
Regards and good luck.
RE: How to change Default Automatic Text Colo