1 import type { InitialConfigType } from '@lexical/react/LexicalComposer'
2 import { AllNodes } from './AllNodes'
3 import DocumentEditorTheme from './Theme/Theme'
6 * ShouldBootstrap refers to whether Lexical should initialize
7 * the editor, with a passed `initialEditorState` or by adding a
8 * new paragraph, if the root is still empty after the realtime
9 * has synced initially.
11 export const ShouldBootstrap = false
13 export function BuildInitialEditorConfig(
14 config: { onError: (e: Error) => void } & Partial<InitialConfigType>,
15 ): InitialConfigType {
21 theme: DocumentEditorTheme,