Skip to content

Commit

Permalink
Add HistoryEditor.withMerging to docs (#5738)
Browse files Browse the repository at this point in the history
  • Loading branch information
TyMick authored Oct 15, 2024
1 parent 8c7f7ea commit c9d9471
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/libraries/slate-history/history-editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c9d9471

Please sign in to comment.