Options
All
  • Public
  • Public/Protected
  • All
Menu

Records undo operations.

Hierarchy

  • UndoRecorder

Index

Constructors

constructor

Properties

Private editor

editor: Editor

The editor for which this recorder is created.

Private suppress

suppress: boolean = false

Private treeUpdater

treeUpdater: TreeUpdater

The tree updater on which to listen for modifications.

Methods

Private beforeDeleteNodeHandler

Private insertNodeAtHandler

Private setAttributeNSHandler

Private setTextNodeValueHandler

suppressRecording

  • suppressRecording(suppress: boolean): void
  • Sets the suppression state. When suppression is on, the recorder does not record anything. When off, the recorder records. The recorder's suppression state is initially off.

    throws

    {Error} If the call does not change the suppression state.

    Parameters

    • suppress: boolean

      Whether to suppress or not.

    Returns void

Generated using TypeDoc