ViewDocumentDomEventData (engine/view/observer)
@ckeditor/ckeditor5-engine/src/view/observer/domeventdata
Information about a DOM event in context of the ViewDocument
.
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
-
readonly
document : ViewDocument
module:engine/view/observer/domeventdata~ViewDocumentDomEventData#document
The instance of the document.
-
readonly
domEvent : TEvent
module:engine/view/observer/domeventdata~ViewDocumentDomEventData#domEvent
The DOM event.
-
readonly
domTarget : HTMLElement
module:engine/view/observer/domeventdata~ViewDocumentDomEventData#domTarget
The DOM target.
-
readonly
target : ViewElement
module:engine/view/observer/domeventdata~ViewDocumentDomEventData#target
The tree view element representing the target.
-
Instance of the view controller.
Methods
-
constructor( view, domEvent, [ additionalData ] )
module:engine/view/observer/domeventdata~ViewDocumentDomEventData#constructor
Type parameters
TEvent : extends [object Object] = Event
Parameters
view : EditingView
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~ViewDocumentDomEventData#preventDefault
-
stopPropagation() → void
module:engine/view/observer/domeventdata~ViewDocumentDomEventData#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.