Hi,
Is it possible to dynamically add a custom tool to an existing Kendo UI Editor on the page?
e.g. something similar to:
var myEditor = jQuery("#myEditor").data("kendoEditor");
var registerTool = myEditor.EditorUtils.registerTool, Tool = myEditor.Tool;
registerTool("custom2", new Tool({ name: "custom2", tooltip: "Insert a horizontal rule2", exec: function (e) { .. action here.. ); } }) );
Essentially, we have the Kendo Editor within a user control, but need to change the set of tools available depending on the page that the user control is used upon; hence needing to dynamically add tools to an existing editor.
Thanks
David.
Is it possible to dynamically add a custom tool to an existing Kendo UI Editor on the page?
e.g. something similar to:
var myEditor = jQuery("#myEditor").data("kendoEditor");
var registerTool = myEditor.EditorUtils.registerTool, Tool = myEditor.Tool;
registerTool("custom2", new Tool({ name: "custom2", tooltip: "Insert a horizontal rule2", exec: function (e) { .. action here.. ); } }) );
Essentially, we have the Kendo Editor within a user control, but need to change the set of tools available depending on the page that the user control is used upon; hence needing to dynamically add tools to an existing editor.
Thanks
David.