Editor.runInTransaction

This method allows for people to run code in an Xopus transaction, which allows the code to be validated and to be picked up by the undo stack in Xopus.


Editor.runInTransaction( code : String|Function,  win (optional) : Window) : Boolean

Arguments

code
String|Function. The code to run
win (optional)
Window. The window to run the code in

Return Value

Boolean
true if commited, false if rolled back