Hello,
I have a similar question/problem. For some specific reason, we want to modify existing "DeleteTable" Command to preserve State before and after delete. We are doing something like following:
Telerik.Web.UI.Editor.CommandList["DeleteTable"] = function(commandName, editor, args){
//some stuff goes here...
var cmd = new Telerik.Web.UI.Editor.DeleteTable("Delete Table", editor.get_contentWindow(), editor, customManager);
preserveStateBefore here
editor.executeCommand(cmd,false,true);
preserveStateAfter here
}
Just like Modules as shown on this link:
https://docs.telerik.com/devtools/aspnet-ajax/controls/editor/functionality/modules/custom-modules
we setup Editor.DeleteTable = function(){ ... }, Editor.DeleteTable.prototype ={ close:function(){ ...} ...}
then when i say Telerik.Web.UI.Editor.DeleteTable.registerClass('Telerik.Web.UI.Editor.DeleteTable',Telerik.Web.UI.Editor.CommandBase);
last line throws javascript exception that something is already registered.
"JavaScript runtime error: Sys.InvalidOperationException:
Type Telerik.Web.UI.Editor.DeleteTable has already been registered. The type
may be defined multiple times or the script file that defines it may have
already been loaded."
Can you help me with how to do this properly? i thought it might act as pointer and i wont have to update it but that is not the case. Any help will be appreciated.
Thank you,
Sean