Documentation Center

Editor.wrapInTransaction

Description

This method returns the function passed in the argument, now wrapped in an Content Editor transaction.

Syntax

Editor.wrapInTransaction (code : Function, win(optional) : Object) : mixed

Arguments

code
Function. The code to run
win (optional)
Object. this object

Return Value

mixed. Passed the return value of the wrapped function