mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-11 17:53:59 +02:00
docs: Change format of options to be more intuitive
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user