mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-22 15:02:51 +02:00
added documentation for wrapNodeByKey (#1774)
* added documentation for wrapNodeByKey * remove extraneous newline * fixed weird typo!
This commit is contained in:
committed by
Tobias Andersen
parent
30143adf60
commit
a943eada85
@@ -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.
|
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
|
## History Changes
|
||||||
|
|
||||||
These changes use the history to undo/redo previously made changes.
|
These changes use the history to undo/redo previously made changes.
|
||||||
|
Reference in New Issue
Block a user