Hi,
I am trying to add several custom buttons, but still have the problems with calling the editor.fire function. It works perfectly for some primitive functions like Bold, JustifyLeft etc. and it's well documented. But I spent a lot of time searching the proper syntax for setting the ForeColor property (the result was
And another question. Is it possible to hide the "EditModes" buttons at the bottom line (e.g. via css .rade_editorModesCell {display: none !important;}) and invoke the change of the EditMode by clicking my custom buttons (similar to calling javascript editor.fire function)?
I am trying to add several custom buttons, but still have the problems with calling the editor.fire function. It works perfectly for some primitive functions like Bold, JustifyLeft etc. and it's well documented. But I spent a lot of time searching the proper syntax for setting the ForeColor property (the result was
Telerik.Web.UI.Editor.CommandList[
"Blue"] = function(commandName, editor, args) { editor.fire("ForeColor", { value: "#2e2e6c" }); };
Now I am in the same position when trying to fire the FlashManager dialog. While Telerik.Web.UI.Editor.CommandList["InsertPicture"] = function(commandName, editor, args) { editor.fire("ImageManager"); }; works well, the similar Telerik.Web.UI.Editor.CommandList["InsertFlash"] = function(commandName, editor, args) { editor.fire("FlashManager"); }; shows the error message "Dialog parameters for the FlashDialog doesn't exist". Could you tell me the proper syntax?
And another question. Is it possible to hide the "EditModes" buttons at the bottom line (e.g. via css .rade_editorModesCell {display: none !important;}) and invoke the change of the EditMode by clicking my custom buttons (similar to calling javascript editor.fire function)?