ReactEditorControlledDocument
ReactEditorControlledDocument =
ReactEditorDocumentFields&object
The prop owns the text: each new text is applied to the editor as an edit. Pair it with
onTextChange for an editable editor. Every change then copies the whole text, so prefer
defaultText for anything but small documents and read-only views.
Type Declaration
Section titled “Type Declaration”buffer?
Section titled “buffer?”
readonlyoptionalbuffer?:never
defaultText?
Section titled “defaultText?”
readonlyoptionaldefaultText?:never
session?
Section titled “session?”
readonlyoptionalsession?:never
readonlytext:string
readonlyoptionalview?:never