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 : ViewDocumentreadonlyinheritedmodule:typing/inserttextobserver~InsertTextEventData#documentThe instance of the document.
domEvent : Eventreadonlyinheritedmodule:typing/inserttextobserver~InsertTextEventData#domEventThe DOM event.
domTarget : HTMLElementreadonlyinheritedmodule:typing/inserttextobserver~InsertTextEventData#domTargetThe DOM target.
isComposing : boolean | undefinedmodule:typing/inserttextobserver~InsertTextEventData#isComposingA flag indicating that event was fired during composition.
Corresponds to the event-compositionstart, event-compositionupdate, and event-compositionend trio.
selection : ViewSelection | ViewDocumentSelection | undefinedmodule:typing/inserttextobserver~InsertTextEventData#selectionThe selection into which the text should be inserted. If not specified, the insertion should occur at the current view selection.
target : ViewElementreadonlyinheritedmodule:typing/inserttextobserver~InsertTextEventData#targetThe tree view element representing the target.
text : stringmodule:typing/inserttextobserver~InsertTextEventData#textThe text to be inserted.
view : EditingViewreadonlyinheritedmodule:typing/inserttextobserver~InsertTextEventData#viewInstance of the view controller.
Methods
preventDefault() → voidinheritedmodule:typing/inserttextobserver~InsertTextEventData#preventDefaultstopPropagation() → voidinheritedmodule:typing/inserttextobserver~InsertTextEventData#stopPropagation