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.