InsertTextEventData
interface
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).
Properties
-
document : ViewDocument
readonlyinheritedmodule:typing/inserttextobserver~InsertTextEventData#document
The instance of the document.
-
domEvent : Event
readonlyinheritedmodule:typing/inserttextobserver~InsertTextEventData#domEvent
The DOM event.
-
domTarget : HTMLElement
readonlyinheritedmodule:typing/inserttextobserver~InsertTextEventData#domTarget
The DOM target.
-
isComposing : boolean | undefined
module:typing/inserttextobserver~InsertTextEventData#isComposing
A flag indicating that event was fired during composition.
Corresponds to the event-compositionstart, event-compositionupdate, and event-compositionend trio.
-
selection : ViewSelection | ViewDocumentSelection | 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.
-
target : ViewElement
readonlyinheritedmodule:typing/inserttextobserver~InsertTextEventData#target
The tree view element representing the target.
-
text : string
module:typing/inserttextobserver~InsertTextEventData#text
The text to be inserted.
-
view : EditingView
readonlyinheritedmodule:typing/inserttextobserver~InsertTextEventData#view
Instance of the view controller.
Methods
-
preventDefault() → void
inheritedmodule:typing/inserttextobserver~InsertTextEventData#preventDefault
-
stopPropagation() → void
inheritedmodule:typing/inserttextobserver~InsertTextEventData#stopPropagation