interface UndoManager {
    add(delta, allowMerge, session): void;
    addSelection(selection, rev?): void;
    addSession(session): void;
    bookmark(rev?): void;
    canRedo(): boolean;
    canUndo(): boolean;
    fromJSON(json): void;
    getDeltas(from, to?): Ace.Delta[];
    getRevision(): number;
    getSelection(rev, after?): {
        rev: number;
        value: string;
    };
    hasRedo(): boolean;
    hasUndo(): boolean;
    isAtBookmark(): boolean;
    isClean(): boolean;
    markClean(rev?): void;
    markIgnored(from, to?): void;
    redo(session, dontSelect?): void;
    reset(): void;
    startNewGroup(): void;
    toJSON(): object;
    undo(session, dontSelect?): void;
}

Methods

  • Parameters

    • selection: string
    • Optional rev: number

    Returns void

  • Parameters

    • Optional rev: number

    Returns void

  • Parameters

    • json: object

    Returns void

  • Parameters

    • rev: number
    • Optional after: boolean

    Returns {
        rev: number;
        value: string;
    }

    • rev: number
    • value: string
  • Returns boolean

  • Parameters

    • Optional rev: number

    Returns void

  • Parameters

    • from: number
    • Optional to: number

    Returns void

Generated using TypeDoc