I would like to add a dropdown to my radEditor toolbar which looks exactly like the "BackColor" EditorSplitButton. It will set the background color for all the content rather than just selected text.
This article gives me a good idea on how to add the dropdown:
http://demos.telerik.com/aspnet-ajax/editor/examples/customdropdowns/defaultcs.aspx
And I believe I can set the background like this:
The above is all working great, all I need is the markup to make the custom EditorSplitButton look just like the BackColor one. I still need the default BackColor dropdown as well so I don't want to just overwrite the functionality for that command.
This article gives me a good idea on how to add the dropdown:
http://demos.telerik.com/aspnet-ajax/editor/examples/customdropdowns/defaultcs.aspx
And I believe I can set the background like this:
var style = editor.get_contentArea().style;
var val = args.get_value();
style.backgroundImage = "none";
style.backgroundColor = val;
The above is all working great, all I need is the markup to make the custom EditorSplitButton look just like the BackColor one. I still need the default BackColor dropdown as well so I don't want to just overwrite the functionality for that command.