Skip to content

SolidEditorControlledDocument

SolidEditorControlledDocument = SolidEditorDocumentFields & object

The source 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 defaultText?: never

readonly text: string