Constructors
constructor
Parameters
element: HTMLElement
subjectId: string
property: string
initialText: string
Properties
Readonly element
element: HTMLElement
Readonly property
property: string
Readonly subjectId
subjectId: string
Methods
Protected doWrite
doWrite( inputting: Inputting ) : Promise < unknown >
Parameters
Returns Promise < unknown >
Protected inputWriteRequest
inputWriteRequest( splices: TextSplice [] ) : { @update: object }
Parameters
Returns { @update: object }
@update: object
@id: string
[this.property]: { @splice: TextSplice } []
splice
splice( index: number , deleteCount: number , content?: undefined | string ) : void
Parameters
index: number
deleteCount: number
Optional content: undefined | string
Returns void
Legend
Constructor
Property
Method
Inherited property
Inherited method
Static property
Static method
A wrapper for a
contenteditable
HTML element, allowing the element's text content to be spliced – that is, modified using a TextSplice, without losing or misplacing a user's active selection range.