Hierarchy

Methods

Methods

  • Clears the history stack. Probably necessary after changing the value of the editor.

    Returns void

  • Sets the active entry relative to the current entry.

    Parameters

    • offset: number

      The position you want to move to relative to the current entry.

      EditHistory.go(-1) would be equivalent to an undo while EditHistory.go(1) would be equivalent to a redo.

      If there's no entry at the specified offset, the call does nothing.

    Returns void

  • Returns whether or not there exists a history entry at the specified offset relative to the current entry.

    This method can be used to determine whether a call to EditHistory.go with the same offset will succeed or do nothing.

    Parameters

    • offset: number

    Returns boolean

Generated using TypeDoc