mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-29 01:50:06 +02:00
docs : Update duplicated toSlatePoint to toSlateRange (#4105)
This commit is contained in:
@@ -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.
|
||||
|
||||
|
Reference in New Issue
Block a user