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?
optional
editable:boolean
Whether the initial state of the editor is editable or not
Defined in
html?
optional
html:HTMLConfig
Overrides for HTML serialization (exportDOM) and deserialization (importDOM) that does not require subclassing and node replacement
Defined in
namespace?
optional
namespace: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?
optional
nodes: readonly (KlassConstructor
<typeofLexicalNode
> |LexicalNodeReplacement
)[]
The nodes that this Plan adds to the Editor configuration, will be merged with other Plans
Defined in
onError()?
optional
onError: (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?
optional
parentEditor:LexicalEditor
Used when this editor is nested inside of another editor
Defined in
theme?
optional
theme:EditorThemeClasses
EditorThemeClasses that will be deep merged with other Plans