Report an issue
Class

CKEDITOR.plugins.undo.UndoManager

classprivate

Main logic for the Redo/Undo feature.

Filtering

Properties

  • readonly

    limit : Number

    The maximum number of snapshots in the stack. Configurable via CKEDITOR.config.undoStackSize.

  • readonly

    locked : Object

    When the locked property is not null, the undo manager is locked, so operations like save or update are forbidden.

    The manager can be locked and unlocked by the lock and unlock methods, respectively.

    Defaults to null

  • since 4.4.4 readonly

    previousKeyGroup : Number

    Contains the previously processed key group, based on keyGroups. -1 means an unknown group.

    Defaults to -1

  • since 4.4.5 readonly

    strokesLimit : Number

    The maximum number of characters typed/deleted in one undo step.

    Defaults to 25

  • since 4.4.4

    strokesRecorded : Array

    An array storing the number of key presses, count in a row. Use keyGroups members as index.

    Note: The keystroke count will be reset after reaching the limit of characters per snapshot.

    Defaults to [0, 0]

  • since 4.13.0 private

    _filterRules : Function[]

    An array of filter rules.

    Defaults to []

Static properties

  • since 4.4.5 readonly static

    keyGroups : Object

    Key groups identifier mapping. Used for accessing members in strokesRecorded.

    • FUNCTIONAL – identifier for the Backspace / Delete key.
    • PRINTABLE – identifier for printable keys.

    Example usage:

    undoManager.strokesRecorded[ undoManager.keyGroups.FUNCTIONAL ];
    

    Defaults to {PRINTABLE: 0, FUNCTIONAL: 1}

  • since 4.4.5 readonly static

    navigationKeyCodes : Object

    Codes for navigation keys like Arrows, Page Up/Down, etc. Used by the isNavigationKey method.

    Defaults to {37: 1, 38: 1, 39: 1, 40: 1, 36: 1, 35: 1, 33: 1, 34: 1}

Methods