Interface

InsertTextEventData (typing)

@ckeditor/ckeditor5-typing/src/inserttextobserver

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

  • readonly inherited

    document : Document

    The instance of the document.

  • readonly inherited

    domEvent : Event

    The DOM event.

  • readonly inherited

    domTarget : HTMLElement

    The DOM target.

  • resultRange : Range | undefined

    The range that view selection should be set to after insertion.

  • selection : Selection | DocumentSelection

    The selection into which the text should be inserted. If not specified, the insertion should occur at the current view selection.

  • readonly inherited

    target : Element

    The tree view element representing the target.

  • text : string

    The text to be inserted.

  • 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