ReactEditorController
ReactEditorController =
object
Properties
Section titled “Properties”commands
Section titled “commands”
readonlycommands:ReactEditorCommands
Methods
Section titled “Methods”dispose()
Section titled “dispose()”dispose():
void
Returns
Section titled “Returns”void
getEditor()
Section titled “getEditor()”getEditor():
Editor|null
Returns
Section titled “Returns”Editor | null
getLastChange()
Section titled “getLastChange()”getLastChange():
EditorContributionChange|null
Returns
Section titled “Returns”EditorContributionChange | null
getSnapshot()
Section titled “getSnapshot()”getSnapshot():
EditorViewSnapshot|null
Returns
Section titled “Returns”EditorViewSnapshot | null
getState()
Section titled “getState()”getState():
EditorState|null
Returns
Section titled “Returns”EditorState | null
getTextSnapshot()
Section titled “getTextSnapshot()”getTextSnapshot():
TextSnapshot|null
Returns
Section titled “Returns”TextSnapshot | null
getUpdateKind()
Section titled “getUpdateKind()”getUpdateKind():
EditorViewContributionUpdateKind|null
Returns
Section titled “Returns”EditorViewContributionUpdateKind | null
materializeFullText()
Section titled “materializeFullText()”materializeFullText():
string
Returns
Section titled “Returns”string
mount()
Section titled “mount()”mount(
element):void
Parameters
Section titled “Parameters”element
Section titled “element”HTMLElement
Returns
Section titled “Returns”void
useEditorInstance()
Section titled “useEditorInstance()”useEditorInstance():
Editor|null
Returns
Section titled “Returns”Editor | null
useFullText()
Section titled “useFullText()”useFullText():
string
Re-renders with the whole text on every text revision: O(document length) each time.
Returns
Section titled “Returns”string
useLastChange()
Section titled “useLastChange()”useLastChange():
EditorContributionChange|null
Returns
Section titled “Returns”EditorContributionChange | null
useSnapshot()
Section titled “useSnapshot()”useSnapshot():
EditorViewSnapshot|null
Returns
Section titled “Returns”EditorViewSnapshot | null
useState()
Section titled “useState()”useState():
EditorState|null
Returns
Section titled “Returns”EditorState | null
useTextSnapshot()
Section titled “useTextSnapshot()”useTextSnapshot():
TextReadSnapshot|null
Returns
Section titled “Returns”TextReadSnapshot | null
useUpdateKind()
Section titled “useUpdateKind()”useUpdateKind():
EditorViewContributionUpdateKind|null
Returns
Section titled “Returns”EditorViewContributionUpdateKind | null