1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-27 09:04:31 +02:00

Small doc fix for isNodeInRange (#2580)

This commit is contained in:
Bryan Haakman
2019-02-05 01:29:18 +01:00
committed by Ian Storm Taylor
parent 6302b2d9d2
commit 8e659dbd28

View File

@@ -367,7 +367,7 @@ Check whether a node exists in the tree by `path` or `key`.
### `isNodeInRange`
`isNodeInRange(path: List|Array) => Boolean`
`isNodeInRange(key: String) => Boolean`
`isNodeInRange(path: List|Array, range: Range) => Boolean`
`isNodeInRange(key: String, range: Range) => Boolean`
Check whether a node is inside a `range`. This will return true for all [`Text`](./text.md) nodes inside the range and all ancestors of those [`Text`](./text.md) nodes up to this node.