mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-23 15:32:59 +02:00
docs: Move the option descriptions underneath the options
This commit is contained in:
@@ -116,14 +116,14 @@ 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:
|
Options: `{at?: Location | Span, match?: NodeMatch, mode?: 'all' | 'highest' | 'lowest', universal?: boolean, reverse?: boolean, voids?: boolean}`
|
||||||
|
|
||||||
|
`mode` option:
|
||||||
|
|
||||||
- `all` (default): all matching nodes
|
- `all` (default): all matching nodes
|
||||||
- `highest`: in a hierarchy of nodes, only return the highest level 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
|
- `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}`
|
|
||||||
|
|
||||||
#### `Editor.parent(editor: Editor, at: Location, options?): NodeEntry<Ancestor>`
|
#### `Editor.parent(editor: Editor, at: Location, options?): NodeEntry<Ancestor>`
|
||||||
|
|
||||||
Get the parent node of a location.
|
Get the parent node of a location.
|
||||||
|
Reference in New Issue
Block a user