CKEditor 4 reached its End of Life (EOL) in June 2023. From then on, it will receive no more updates, new features, bug fixes, and security patches. Visit CKEditor 5 Docs for the actively supported CKEditor or check Extended Support Model.
Report an issue
Class

CKEDITOR.keystrokeHandler

class

Controls keystrokes typing in an editor instance.

Filtering

Properties

  • blockedKeystrokes : Object

    A list of keystrokes that should be blocked if not defined in keystrokes. In this way it is possible to block the default browser behavior for those keystrokes.

    Defaults to {}

  • keystrokes : Object

    A list of keystrokes associated with commands. Each entry points to the command to be executed.

    Since CKEditor 4 there is no need to modify this property directly during the runtime. Use CKEDITOR.editor.setKeystroke instead.

    Defaults to {}

Methods

  • constructor( editor ) → keystrokeHandler

    Creates a keystrokeHandler class instance.

    Parameters

    editor : editor

    The editor instance.

    Returns

    keystrokeHandler
  • attach( domObject )

    Attaches this keystroke handle to a DOM object. Keystrokes typed over this object will be handled by this keystrokeHandler.

    Parameters

    domObject : domObject

    The DOM object to attach to.