1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-29 09:59:48 +02:00

docs : Update duplicated toSlatePoint to toSlateRange (#4105)

This commit is contained in:
nivekithan
2021-03-31 23:58:44 +05:30
committed by GitHub
parent 0c7fcc3fc6
commit 4a12c3dac4

View File

@@ -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.