1
0
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:
Sunny Hirai
2021-04-06 18:24:52 -07:00
parent a1b8291a0a
commit 1371abee2f

View File

@@ -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.