diff --git a/docs/reference/slate/change.md b/docs/reference/slate/change.md index 391c95ee1..0c9d3f824 100644 --- a/docs/reference/slate/change.md +++ b/docs/reference/slate/change.md @@ -474,3 +474,8 @@ Move forward one step in the history. `undo() => Change` Move backward one step in the history. + +### `snapshotSelection` +`snapshotSelection() => Change` + +Snapshot `value.selection` for `undo` purposes, useful with delete operations like `removeNodeByKey(focusBlock.key).undo()`