2 "name" : "Roo.lib.UndoManager",
7 "desc" : "An undo manager implementation in JavaScript. It follows the W3C UndoManager and DOM Transaction\nDraft and the undocumented and disabled Mozilla Firefox's UndoManager implementation.\nUsage:\n<pre><code>\n\n\neditor.undoManager = new Roo.lib.UndoManager(1000, editor);\n \n</code></pre>\nFor more information see this blog post with examples:\n <a href=\"http://www.cnitblog.com/seeyeah/archive/2011/12/30/38728.html/\">DomHelper\n - Create Elements using DOM, HTML fragments and Templates</a>.",
12 "isBuilderTop" : false,
13 "memberOf" : "UndoManager",
22 "desc" : "how far back to go ... use 1000?",
28 "desc" : "usually use document..",
40 "desc" : "To push and execute a transaction, the method undoManager.transact\nmust be called by passing a transaction object as the first argument, and a merge\nflag as the second argument. A transaction object has the following properties:\n\nUsage:\n<pre><code>\nundoManager.transact({\n label: 'Typing',\n execute: function() { ... },\n undo: function() { ... },\n // redo same as execute\n redo: function() { this.execute(); }\n}, false);\n\n// merge transaction\nundoManager.transact({\n label: 'Typing',\n execute: function() { ... }, // this will be run...\n undo: function() { ... }, // what to do when undo is run.\n // redo same as execute\n redo: function() { this.execute(); }\n}, true); \n</code></pre>",
41 "sig" : "(transaction)",
45 "isConstructor" : false,
55 "name" : "transaction",
57 "desc" : "The transaction to add to the stack.",
65 "desc" : "The HTML fragment"
72 "desc" : "Reset the undo - probaly done on load to clear all history.",
77 "isConstructor" : false,
91 "desc" : "Manually add an event.\nNormall called without arguements - and it will just get added to the stack.",
96 "isConstructor" : false,