import { SerializedEditorState } from "lexical"; export const editorStateRichText = { root: { children: [ { children: [ { detail: 0, format: 0, mode: "normal", style: "", text: "Welcome", type: "text", version: 1, }, ], direction: "ltr", format: "", indent: 0, type: "heading", version: 1, tag: "h1", }, { children: [ { detail: 0, format: 0, mode: "normal", style: "", text: "Hello world", type: "text", version: 1, }, ], direction: "ltr", format: "", indent: 0, type: "quote", version: 1, }, ], direction: "ltr", format: "", indent: 0, type: "root", version: 1, }, } as unknown as SerializedEditorState;