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.
-
resultRange : Range | undefined
module:typing/inserttextobserver~InsertTextEventData#resultRange
The range that view selection should be set to after insertion.
-
selection : Selection | DocumentSelection
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.