I'm going to go with "Maybe".
Here's what the colorpicker does when you click submit.
var color = $('input[name="color"]', dialog.data).val();
self.color.fore.prev = color;
self.addColorToPalette("fore", color);
if ($.browser.msie) {
Wysiwyg.ui.returnRange();
}
Wysiwyg.editorDoc.execCommand('ForeColor', false, color);
$.modal.close();
return false;
Most of that is only useful to the colorpicker, but there's one line that appears to actually set the color in the plugin:
Wysiwyg.editorDoc.execCommand('ForeColor', false, color);
If the Wysiwyg
object is in scope for you, you should be able to call this directly with your own colors. The color
variable is just a string in the "#rrggbb" format.