Class

DomEventData (engine/view/observer)

@ckeditor/ckeditor5-engine/src/view/observer/domeventdata

class

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

    target : Element

    The tree view element representing the target.

Methods

  • constructor( view, domEvent, [ additionalData ] )

    Parameters

    view : View

    The instance of the view controller.

    domEvent : Event

    The DOM event.

    [ additionalData ] : Object

    Additional properties that the instance should contain.

  • preventDefault()

    Prevents the native's event default action.

  • stopPropagation()

    Stops native event propagation.