From a943eada8534ccdff05a770ad84ac599bd7b3682 Mon Sep 17 00:00:00 2001 From: DamareYoh <34608378+DamareYoh@users.noreply.github.com> Date: Sun, 15 Apr 2018 09:40:55 -0700 Subject: [PATCH] added documentation for wrapNodeByKey (#1774) * added documentation for wrapNodeByKey * remove extraneous newline * fixed weird typo! --- docs/reference/slate/change.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/reference/slate/change.md b/docs/reference/slate/change.md index 29feb8353..d02347f2f 100644 --- a/docs/reference/slate/change.md +++ b/docs/reference/slate/change.md @@ -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`
+ +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.