1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-22 15:02:51 +02:00

skip nonselectable nodes when move (#5885)

* skip nonselectable nodes when move

* fix

* docs

* remove ignoreNonSelectable

* docs

* revert
This commit is contained in:
Felix Feng
2025-06-11 06:37:56 +08:00
committed by GitHub
parent 86e1411235
commit c56a98fd65
13 changed files with 46 additions and 108 deletions

View File

@@ -141,7 +141,7 @@ Options: `depth?: number, edge?: 'start' | 'end'`
At any given `Location` or `Span` in the editor provided by `at` (default is the current selection), the method returns a Generator of `NodeEntry` objects that represent the nodes that include `at`. At the top of the hierarchy is the `Editor` object itself.
Options: `{at?: Location | Span, match?: NodeMatch, mode?: 'all' | 'highest' | 'lowest', universal?: boolean, reverse?: boolean, voids?: boolean, pass?: (node: NodeEntry => boolean), ignoreNonSelectable?: boolean}`
Options: `{at?: Location | Span, match?: NodeMatch, mode?: 'all' | 'highest' | 'lowest', universal?: boolean, reverse?: boolean, voids?: boolean, pass?: (node: NodeEntry => boolean)}`
`options.match`: Provide a value to the `match?` option to limit the `NodeEntry` objects that are returned.