Skip to content

ReactEditorController

ReactEditorController = object

readonly commands: ReactEditorCommands

dispose(): void

void


getEditor(): Editor | null

Editor | null


getLastChange(): EditorContributionChange | null

EditorContributionChange | null


getSnapshot(): EditorViewSnapshot | null

EditorViewSnapshot | null


getState(): EditorState | null

EditorState | null


getTextSnapshot(): TextSnapshot | null

TextSnapshot | null


getUpdateKind(): EditorViewContributionUpdateKind | null

EditorViewContributionUpdateKind | null


materializeFullText(): string

string


mount(element): void

HTMLElement

void


useEditorInstance(): Editor | null

Editor | null


useFullText(): string

Re-renders with the whole text on every text revision: O(document length) each time.

string


useLastChange(): EditorContributionChange | null

EditorContributionChange | null


useSnapshot(): EditorViewSnapshot | null

EditorViewSnapshot | null


useState(): EditorState | null

EditorState | null


useTextSnapshot(): TextReadSnapshot | null

TextReadSnapshot | null


useUpdateKind(): EditorViewContributionUpdateKind | null

EditorViewContributionUpdateKind | null