Skip to main content

SerializedEditor

type
type SerializedEditor = { /** * Typed as the compact shape because {@link LexicalEditor.toJSON} writes * whichever form encloses it: a nested editor serialized inside a compact * document is compact too, so promising the full shape here would promise * properties that are not there. Both forms satisfy this, and both parse. */ editorState: CompactSerializedEditorState; }

Import

import { SerializedEditor } from '@modular/sdk/editor';