1
0
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:
Ty Mick
2024-10-15 12:29:29 -07:00
committed by GitHub
parent 8c7f7ea6ac
commit c9d94711cc

View File

@@ -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