1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-30 10:29:48 +02:00

Document: add change.snapshotSelection in the change.md (#1534)

* docs: add chang.snapshotSelection

* Minor style tweaks
This commit is contained in:
Jinxuan Zhu
2018-01-17 00:05:29 -05:00
committed by Zach Schneider
parent bc7acefff2
commit e6c7934cb9

View File

@@ -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()`