diff --git a/docs/reference/slate/change.md b/docs/reference/slate/change.md index 07947d739..a8c5dda7d 100644 --- a/docs/reference/slate/change.md +++ b/docs/reference/slate/change.md @@ -273,6 +273,11 @@ Remove a `mark` from `length` characters starting at an `offset` in a [`Node`](. Remove a [`Node`](./node.md) from the document by its `key`. +### `replaceNodeByKey` +`replaceNodeByKey(key: String, node: Node) => Change` + +Replace a [`Node`](./node.md) in the document with a new [`Node`](./node.md) by its `key`. + ### `removeTextByKey` `removeTextByKey(key: String, offset: Number, length: Number) => Change`