From 1371abee2f74f279b2156d713714c64637a6c742 Mon Sep 17 00:00:00 2001 From: Sunny Hirai Date: Tue, 6 Apr 2021 18:24:52 -0700 Subject: [PATCH] docs: Move the option descriptions underneath the options --- docs/api/nodes/editor.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/api/nodes/editor.md b/docs/api/nodes/editor.md index 8cf06f625..86e4a2770 100644 --- a/docs/api/nodes/editor.md +++ b/docs/api/nodes/editor.md @@ -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` Get the parent node of a location.