1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-28 17:39:57 +02:00

Clarifying insertTextByKey description (#778)

As per #775
This commit is contained in:
Anuj
2017-05-04 05:58:21 -07:00
committed by Ian Storm Taylor
parent fb6f3d5b61
commit 9250baafe6

View File

@@ -335,7 +335,7 @@ Insert a `node` at `index` inside a parent [`Node`](./node.md) by its `key`.
### `insertTextByKey`
`insertTextByKey(key: String, offset: Number, text: String, [marks: Set]) => Transform`
Insert `text` at an `offset` in a [`Node`](./node.md) with optional `marks`.
Insert `text` at an `offset` in a [`Text Node`](./text.md) with optional `marks`.
### `moveNodeByKey`
`moveNodeByKey(key: String, newKey: String, newIndex: Number) => Transform`