mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-20 22:21:20 +02:00
Merge branch 'master' of github.com:ianstormtaylor/slate
This commit is contained in:
@@ -35,7 +35,7 @@ element.ancestors(path, options)
|
|||||||
element.siblings(path, options)
|
element.siblings(path, options)
|
||||||
```
|
```
|
||||||
|
|
||||||
You can use them just like the native JavaScript iterables. For example, you can through the next text nodes after a specific node:
|
You can use them just like the native JavaScript iterables. For example, you can loop through the text nodes after a specific node:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
for (const next of document.texts({ path: start.path })) {
|
for (const next of document.texts({ path: start.path })) {
|
||||||
|
Reference in New Issue
Block a user