Interface

DeleteEventData (typing)

@ckeditor/ckeditor5-typing/src/deleteobserver

interface

Information about a DOM event in context of the Document. It wraps the native event, which usually should not be used as the wrapper contains additional data (like key code for keyboard events).

Filtering

Properties

  • direction : 'forward' | 'backward'

    The direction in which the deletion should happen.

  • readonly inherited

    document : Document

    The instance of the document.

  • readonly inherited

    domEvent : InputEvent

    The DOM event.

  • readonly inherited

    domTarget : HTMLElement

    The DOM target.

  • selectionToRemove : Selection | DocumentSelection | undefined

    View selection which content should be removed. If not set, current selection should be used.

  • sequence : number

    A number describing which subsequent delete event it is without the key being released. If it's 2 or more it means that the key was pressed and hold.

  • readonly inherited

    target : Element

    The tree view element representing the target.

  • unit : 'selection' | 'character' | 'codePoint' | 'word'

    The "amount" of content that should be deleted.

  • readonly inherited

    view : View

    Instance of the view controller.

Methods

  • inherited

    preventDefault() → void

    Prevents the native's event default action.

    Returns

    void
  • inherited

    stopPropagation() → void

    Stops native event propagation.

    Returns

    void