1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-04-16 11:22:15 +02:00

docs: Improve documentation for Editor.previous and Editor.next

This commit is contained in:
Sunny Hirai 2021-07-08 13:06:41 -07:00
parent 19c9a8c86c
commit 7d14bef63b

View File

@ -113,6 +113,8 @@ Get the marks that would be added to text at the current selection.
Get the matching node in the branch of the document after a location.
Note: If you are looking for the next Point, and not the next Node, you are probably looking for the method `Editor.after`
Options: `{at?: Location, match?: NodeMatch, mode?: 'all' | 'highest' | 'lowest', voids?: boolean}`
#### `Editor.node(editor: Editor, at: Location, options?) => NodeEntry`
@ -196,6 +198,8 @@ Options:
Get the matching node in the branch of the document before a location.
Note: If you are looking for the previous Point, and not the previous Node, you are probably looking for the method `Editor.before`
Options: `{at?: Location, match?: NodeMatch, mode?: 'all' | 'highest' | 'lowest', voids?: boolean}`
#### `Editor.range(editor: Editor, at: Location, to?: Location) => Range`