Hello,
I am writing a number of custom shortcut commands activated by button clicks. While the commands are firing properly, most of them are not being recognized in the undo stack - i.e. user cannot press the undo button to reverse the command. When they do press it, they undo a command prior to running the custom command, stepping back to a document version they were not expecting. My question is, how do I have the undo stack recognize my custom commands and allow the user to undo them? Here's an example of a function with this issue.
Telerik.Web.UI.Editor.CommandList["DoubleBottomBorder"] = function(commandName, editor, args) {
var elem = editor.getSelectedElement();
elem.style.borderBottom = "3px double #000000";
};
Most of my functions are setting the style attribute of an element and are not using the pasteHtml() method (use of pasteHTML() method seems to work fine with the undo function).
Thanks,
Andrew