Experimental
advancedAdvanced undo manager functionality for manually controlling undo operations. This will start a new undo operation. This will throw an exception when there is already an undo operation recording. This method is experimental and may change in future versions.
Experimental
abort: () => Promise<EditorResponse<null>>Aborts the currently active recording operation. If there is no recording operation currently running this will throw an exception. This method is experimental and may change in future versions.
Experimental
begin: (operationName: string) => Promise<EditorResponse<null>>This will start a new undo operation. This will throw an exception when there is already an undo operation recording. This method is experimental and may change in future versions.
Experimental
beginIfNoneActive: (operationName: string) => Promise<EditorResponse<null>>This will start a new undo operation if there is no other undo operation recording. This does not throw. This method is experimental and may change in future versions.
Experimental
end: () => Promise<EditorResponse<null>>Ends the currently active recording operation. If there is no recording operation currently running this will throw an exception. This method is experimental and may change in future versions.
This method adds custom data that will be saved and restored when undoing and redoing. Duplicate values are overwritten. The data is exposed via the onCustomUndoDataChanged event.
The key of the custom data
The value of the custom data
This method pauses the undo manager
Record any operations in the current scope. This will automatically begin the undo operation. Once you leave the record scope, it will end the undo operation. Even if you throw an exception inside the record scope it will still end it properly.
This method redoes the last operation
This method resumes the undo manager
This method undoes the last operation
The UndoManagerController is responsible for all communication regarding the Undo-Manager. Methods inside this controller can be called by
window.SDK.undoManager.{method-name}