R
fn

createEditorState

tested

Build 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

ParameterTypeDescription
optionsCreateEditorStateOptions

Returns

EditorState