Interface: InitialEditorConfig
Extended by
Properties
$initialEditorState?
optional$initialEditorState:InitialEditorStateType
The initial EditorState as a JSON string, an EditorState, or a function to update the editor (once).
Defined in
editable?
optionaleditable:boolean
Whether the initial state of the editor is editable or not
Defined in
html?
optionalhtml:HTMLConfig
Overrides for HTML serialization (exportDOM) and deserialization (importDOM) that does not require subclassing and node replacement
Defined in
namespace?
optionalnamespace:string
The namespace of this Editor. If two editors share the same namespace, JSON will be the clipboard interchange format. Otherwise HTML will be used.
Defined in
nodes?
optionalnodes: readonlyLexicalNodeConfig[]
The nodes that this Extension adds to the Editor configuration, will be merged with other Extensions
Defined in
onError()?
optionalonError: (error,editor) =>void
The editor will catch errors that happen during updates and
reconciliation and call this. It defaults to
(error) => { throw error }.
Parameters
• error: Error
The Error object
• editor: LexicalEditor
The editor that this error came from
Returns
void
Defined in
parentEditor?
optionalparentEditor:LexicalEditor
Used when this editor is nested inside of another editor
Defined in
theme?
optionaltheme:EditorThemeClasses
EditorThemeClasses that will be deep merged with other Extensions