Skip to content

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.

readonly optional buffer?: never

readonly optional defaultText?: never

readonly optional session?: never

readonly text: string

readonly optional view?: never