Report an issue
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

  • target : Element

    readonly

    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.

  • Prevents the native's event default action.

  • Stops native event propagation.