Type Alias: InitialEditorStateType
InitialEditorStateType:
null|string|EditorState| (editor) =>void
All of the possible ways to initialize $initialEditorState:
nullan empty state, the defaultstringan EditorState serialized to JSONEditorStatean EditorState that has been deserialized already (not just parsed JSON)((editor: LexicalEditor) => void)A function that is called with the editor for you to mutate it
Defined in
lexical-builder-core/dist/types.d.ts:222