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 : ViewDocumentreadonlyinherited- module:typing/inserttextobserver~InsertTextEventData#document- The instance of the document. 
- domEvent : Eventreadonlyinherited- module:typing/inserttextobserver~InsertTextEventData#domEvent- The DOM event. 
- domTarget : HTMLElementreadonlyinherited- module: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 : ViewElementreadonlyinherited- module:typing/inserttextobserver~InsertTextEventData#target- The tree view element representing the target. 
- text : string- module:typing/inserttextobserver~InsertTextEventData#text- The text to be inserted. 
- view : EditingViewreadonlyinherited- module:typing/inserttextobserver~InsertTextEventData#view- Instance of the view controller. 
Methods
- preventDefault() → voidinherited- module:typing/inserttextobserver~InsertTextEventData#preventDefault
- stopPropagation() → voidinherited- module:typing/inserttextobserver~InsertTextEventData#stopPropagation