From 8e659dbd28cf88ca7659460417b31e0e558c2488 Mon Sep 17 00:00:00 2001 From: Bryan Haakman Date: Tue, 5 Feb 2019 01:29:18 +0100 Subject: [PATCH] Small doc fix for isNodeInRange (#2580) --- docs/reference/slate/node.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference/slate/node.md b/docs/reference/slate/node.md index 12714b30e..b628e91a5 100644 --- a/docs/reference/slate/node.md +++ b/docs/reference/slate/node.md @@ -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.