Editor.runInTransaction
Description
This method allows for people to run code in a transaction, which allows the code to be validated and to be picked up by the undo stack.
More information can be found on How to use transactions.
Syntax
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
Return value of inner function if commited, null if rolled back.