Search results

EditorHistory API in JavaScript (ES5) DocumentEditor API control

EditorHistory Module class is used to handle history preservation

Properties

redoLimit number

Gets the limit of redo operations can be done.

undoLimit number

Gets the limit of undo operations can be done.

Methods

beginUndoAction

Starts a new undo able action.

All editing and formatting changes made between beginUndoAction and endUndoAction will be grouped together as a single undo able action.

Returns void

canRedo

Determines whether the redo operation can be done.

Returns boolean

canUndo

Determines whether the undo operation can be done.

Returns boolean

endUndoAction

Ends the current undo able action.

All editing and formatting changes made between beginUndoAction and endUndoAction will be grouped together as a single undo able action.

Returns void

redo

Performs the last reverted action.

Returns void

undo

Reverts the last editing action.

Returns void