mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-07-31 12:30:11 +02:00
docs: Specify the meaning of the mode option on Editor.nodes
This commit is contained in:
@@ -116,6 +116,12 @@ Options: `depth?: number, edge?: 'start' | 'end'`
|
|||||||
|
|
||||||
Iterate through all of the nodes in the Editor.
|
Iterate through all of the nodes in the Editor.
|
||||||
|
|
||||||
|
The `mode` specifies:
|
||||||
|
|
||||||
|
- `all` (default): all matching nodes
|
||||||
|
- `highest`: in a hierarchy of nodes, only return the highest level matching nodes
|
||||||
|
- `lowest`: in a hierarchy of nodes, only return the lowest level matching nodes
|
||||||
|
|
||||||
Options: `{at?: Location | Span, match?: NodeMatch, mode?: 'all' | 'highest' | 'lowest', universal?: boolean, reverse?: boolean, voids?: boolean}`
|
Options: `{at?: Location | Span, match?: NodeMatch, mode?: 'all' | 'highest' | 'lowest', universal?: boolean, reverse?: boolean, voids?: boolean}`
|
||||||
|
|
||||||
#### `Editor.parent(editor: Editor, at: Location, options?): NodeEntry<Ancestor>`
|
#### `Editor.parent(editor: Editor, at: Location, options?): NodeEntry<Ancestor>`
|
||||||
|
Reference in New Issue
Block a user