mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-07-31 20:40:19 +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.
|
||||
|
||||
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
|
||||
- `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}`
|
||||
|
||||
#### `Editor.parent(editor: Editor, at: Location, options?): NodeEntry<Ancestor>`
|
||||
|
||||
Get the parent node of a location.
|
||||
|
Reference in New Issue
Block a user