I have some code implementing a context menu on a textbox, the context menu is to have an Undo
and Redo
item that calls the browsers native methods
As I discovered from the question I asked, the undoManager API in Firefox DOES work. I looked at the jsFiddle link (http://jsfiddle.net/DULV4/1/) posted by Tim Down, and there appear to be a couple issues:
undoScope
attribute must be set to true
(either in-line or programmatically). This enables the undoManager
for that element.undoManager.transact()
function (though I'm wondering if there is any way to incorporate the native undo stack into the current undoManager's transaction history).I'm only a novice with this, so take what I say with a grain of salt and see https://dvcs.w3.org/hg/undomanager/raw-file/tip/undomanager.html for all the information on using it.