Report an issue
Class

CKEDITOR.plugins.undo.NativeEditingHandler

class since 4.4.4 private

A class encapsulating all native event listeners which have to be used in order to handle undo manager integration for native editing actions (excluding drag and drop and paste support handled by the Clipboard plugin).

Undo manager owning the handler.

Filtering

Properties

Methods

  • constructor( undoManager ) → NativeEditingHandler

    Parameters

    undoManager : UndoManager

    Returns

    NativeEditingHandler
  • since 4.7.3

    activateInputEventListener()

    Stops ignoring input events.

  • attachListeners()

    Attaches editable listeners required to provide the undo functionality.

  • ignoreInputEventListener()

    Makes the next input event to be ignored.

  • onInput()

    The input event listener.

  • onKeydown( evt )

    The keydown event listener.

    Parameters

    evt : event
  • onKeyup( evt )

    The keyup event listener.

    Parameters

    evt : event
  • onNavigationKey( skipContentCompare )

    Method called for navigation change. At first it will check if current content does not differ from the last saved snapshot.

    • If the content is different, the method creates a standard, extra snapshot.
    • If the content is not different, the method will compare the selection, and will amend the last snapshot selection if it changed.

    Parameters

    skipContentCompare : Boolean

    If set to true, it will not compare content, and only do a selection check.