mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-01-18 05:59:13 +01:00
docs: Change format of options to be more intuitive
This commit is contained in:
parent
5635f9011d
commit
18fb41cc2a
@ -118,7 +118,7 @@ Iterate through all of the nodes in the Editor.
|
|||||||
|
|
||||||
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}`
|
||||||
|
|
||||||
`mode` option:
|
`options.mode`:
|
||||||
|
|
||||||
- `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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user