Skip to content

Commit

Permalink
Document: add change.snapshotSelection in the change.md (#1534)
Browse files Browse the repository at this point in the history
* docs: add chang.snapshotSelection

* Minor style tweaks
  • Loading branch information
zhujinxuan authored and schneidmaster committed Jan 17, 2018
1 parent bc7acef commit e6c7934
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/reference/slate/change.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()`

0 comments on commit e6c7934

Please sign in to comment.