Begins a user-defined undo operation. All editing and fomatting changes made between beginUndoAction and endUndoAction belong to the undo operation. These changes are undone or redone in a single step. The specified user-defined name is available via getUndoActionName.

Introduced: 30.0.

<void> TXTextControl.beginUndoAction(<string> actionName, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])

Parameters

Parameter Description
actionName Specifies the undo action's name. If an action name is not necessary, this parameter can be null or an empty string.
callback Optional. Is called when the operation completed.
errorCallback Optional. Is called when the operation failed with an error.