From 4a12c3dac4658bb2d1c345906ad41655442f3771 Mon Sep 17 00:00:00 2001 From: nivekithan <52579256+nivekithan@users.noreply.github.com> Date: Wed, 31 Mar 2021 23:58:44 +0530 Subject: [PATCH] docs : Update duplicated toSlatePoint to toSlateRange (#4105) --- docs/libraries/slate-react.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/libraries/slate-react.md b/docs/libraries/slate-react.md index c216a6a06..3fc461324 100644 --- a/docs/libraries/slate-react.md +++ b/docs/libraries/slate-react.md @@ -122,7 +122,7 @@ Get the target range from a DOM `event`. Find a Slate point from a DOM selection's `domNode` and `domOffset`. -###### `toSlatePoint(editor: ReactEditor, domPoint: DOMPoint)` +###### `toSlateRange(editor: ReactEditor, domRange: DOMRange | DOMStaticRange | DOMSelection)` Find a Slate range from a DOM range or selection.