Interface: HistoryConfig
Properties
createInitialHistoryState()
createInitialHistoryState: (
editor
) =>HistoryState
The initial history state, the default is createEmptyHistoryState.
Parameters
• editor: LexicalEditor
Returns
HistoryState
Defined in
lexical-builder/src/HistoryPlan.ts:32
delay
delay:
number
The time (in milliseconds) the editor should delay generating a new history stack, instead of merging the current changes with the current stack. The default is 300ms.
Defined in
lexical-builder/src/HistoryPlan.ts:28
disabled
disabled:
boolean
Whether history is disabled or not