I am using jQuery WYSIWYG (https://github.com/akzhan/jwysiwyg)
I realize that jwysiwyg now includes a color pallete that allows you to color text. But, what I want to do, is to have a custom button OUTSIDE of the editor that applies the color.
Is there a way to trigger the setting of the font color and pass in a color value?
I'm going to go with "Maybe".
Here's what the colorpicker does when you click submit.
Most of that is only useful to the colorpicker, but there's one line that appears to actually set the color in the plugin:
If the
Wysiwygobject is in scope for you, you should be able to call this directly with your own colors. Thecolorvariable is just a string in the "#rrggbb" format.