Skip to main content

CreateEditorArgs

interface
interface CreateEditorArgs

Import

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

Members11

disableEventsoptional
boolean
domoptional
Partial<EditorDOMRenderConfig>
editableoptional
boolean
editorStateoptional
EditorState
htmloptional
HTMLConfig
namespaceoptional
string
nodesoptional
readonly LexicalNodeConfig[]
onErroroptional
ErrorHandler
onWarnoptional
ErrorHandler

Optional handler for recoverable, warn-level conditions (e.g. the update-recursion guard tripping). Mirrors onError but is reserved for conditions the editor has already recovered from, so embedders can route them to telemetry at warn severity without raising an error alarm. Defaults to a handler that throws in development (so the condition is impossible to miss) and only `console.warn`s in production.

parentEditoroptional
LexicalEditor
themeoptional
EditorThemeClasses