fn
createEditorState
testedBuild the initial editor state: normalize the document against the schema and ensure it has at least one editable block to place the caret in.
Signature
ts
export function createEditorState(options: CreateEditorStateOptions): EditorState{ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
options | CreateEditorStateOptions | — |
Returns
EditorState