1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-20 06:01:24 +02:00

docs: Fix duplicate Editor.nodes in documentation

This commit is contained in:
Sunny Hirai
2021-06-05 22:02:44 -07:00
parent f283a708fd
commit 8ba06cdfd0

View File

@@ -112,13 +112,11 @@ Options: `{at?: Location, match?: NodeMatch, mode?: 'all' | 'highest' | 'lowest'
#### `Editor.node(editor: Editor, at: Location, options?) => NodeEntry`
#### `Editor.nodes<T extends Node>(editor: Editor, options?) => Generator<NodeEntry<T>, void, undefined>`
Get the node at a location.
Options: `depth?: number, edge?: 'start' | 'end'`
#### `Editor.nodes(editor: Editor, options?) => Generator<NodeEntry<T>, void, undefined>`
#### `Editor.nodes<T extends Node>(editor: Editor, options?) => Generator<NodeEntry<T>, void, undefined>`
Iterate through all of the nodes in the Editor.