DomEventData (engine/view/observer)
@ckeditor/ckeditor5-engine/src/view/observer/domeventdata
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
Type parameters
-
TEvent : extends Event = Event
The type of DOM Event that this class represents.
Properties
-
The instance of the document.
-
The DOM event.
-
The DOM target.
-
The tree view element representing the target.
-
Instance of the view controller.
Methods
-
constructor( view, domEvent, [ additionalData ] )
module:engine/view/observer/domeventdata~DomEventData#constructor
Type parameters
TEvent : extends [object Object] = Event
Parameters
view : View
The instance of the view controller.
domEvent : TEvent
The DOM event.
[ additionalData ] : object
Additional properties that the instance should contain.
-
preventDefault() → void
module:engine/view/observer/domeventdata~DomEventData#preventDefault
-
stopPropagation() → void
module:engine/view/observer/domeventdata~DomEventData#stopPropagation
Every day, we work hard to keep our documentation complete. Have you spotted outdated information? Is something missing? Please report it via our issue tracker.
With the release of version 42.0.0, we have rewritten much of our documentation to reflect the new import paths and features. We appreciate your feedback to help us ensure its accuracy and completeness.