1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-22 06:53:25 +02:00

added documentation for wrapNodeByKey (#1774)

* added documentation for wrapNodeByKey

* remove extraneous newline

* fixed weird typo!
This commit is contained in:
DamareYoh
2018-04-15 09:40:55 -07:00
committed by Tobias Andersen
parent 30143adf60
commit a943eada85

View File

@@ -555,6 +555,12 @@ Wrap the given node in a [`Block`](./block.md) node that match `properties`. For
Wrap the given node in a [`Inline`](./inline.md) node that match `properties`. For convenience, you can pass a `type` string or `properties` object.
### `wrapNodeByKey`
`wraNodeByKey(key: String, parent: Node) => Change` <br/>
Wrap the node with the specified key with the parent [`Node`](./node.md). This will clear all children of the parent.
## History Changes
These changes use the history to undo/redo previously made changes.