Skip to content

SolidEditorController

SolidEditorController = object

readonly commands: SolidEditorCommands


editor: Accessor<Editor | null>


lastChange: Accessor<EditorContributionChange | null>


materializeFullText: Accessor<string>

The whole text of the current revision: O(document length) on the first read of each one.


snapshot: Accessor<EditorViewSnapshot | null>


state: Accessor<EditorState | null>


textSnapshot: Accessor<TextReadSnapshot | null>


updateKind: Accessor<EditorViewContributionUpdateKind | null>

dispose(): void

void


element(element): void

Pass as a JSX ref; creates the editor after Solid mounts and disposes it with its owner.

HTMLElement

void