InsertTextEventData (typing)
@ckeditor/ckeditor5-typing/src/inserttextobserver
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
-
The instance of the document.
-
The DOM event.
-
readonly inherited
domTarget : HTMLElement
module:typing/inserttextobserver~InsertTextEventData#domTarget
The DOM target.
-
selection : Selection | DocumentSelection | undefined
module:typing/inserttextobserver~InsertTextEventData#selection
The selection into which the text should be inserted. If not specified, the insertion should occur at the current view selection.
-
The tree view element representing the target.
-
text : string
module:typing/inserttextobserver~InsertTextEventData#text
The text to be inserted.
-
Instance of the view controller.
Methods
-
inherited
preventDefault() → void
module:typing/inserttextobserver~InsertTextEventData#preventDefault
-
inherited
stopPropagation() → void
module:typing/inserttextobserver~InsertTextEventData#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.