Interface JSUndoManagerOptions

JSUndoManagerOptions interface that defines the options for the JSUndoManager class.

interface JSUndoManagerOptions {
    bindHotKeys: boolean;
    debug: boolean;
    hotKeyRoot?: HTMLElement;
    limit: number;
}

Properties

bindHotKeys: boolean

Whether to bind "undo" and "redo" commands to "Ctrl+Z", "Ctrl+Y" & "Ctrl+Shift+Z" hot keys in the DOM

debug: boolean

Whether to emit execution status in console.

hotKeyRoot?: HTMLElement

Root element for hot keys binding.

limit: number

Maximum commands stack size.