history function
Create a history extension with the given configuration.
Example:
EditorState.create(
EditorStateConfig(
doc: 'Hello, World!',
extensions: ExtensionList([
history(const HistoryConfig(minDepth: 200)),
]),
),
)
Implementation
Extension history([HistoryConfig config = const HistoryConfig()]) {
return ExtensionList([
historyField,
_historyConfig.of(config),
]);
}