mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-22 23:12:52 +02:00
Add HistoryEditor.withMerging
to docs (#5738)
This commit is contained in:
@@ -39,6 +39,11 @@ Undo to the previous saved state.
|
||||
|
||||
### Merging and Saving
|
||||
|
||||
#### `HistoryEditor.withMerging(editor: HistoryEditor, fn: () => void): void`
|
||||
|
||||
Apply a series of changes inside a synchronous `fn`, These operations will
|
||||
be merged into the previous history.
|
||||
|
||||
#### `HistoryEditor.withoutMerging(editor: HistoryEditor, fn: () => void): void`
|
||||
|
||||
Apply a series of changes inside a synchronous `fn`, without merging any of
|
||||
|
Reference in New Issue
Block a user