1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-04-15 10:52:34 +02:00

Small correction to docs concepts/06-editor.md (#4047)

This commit is contained in:
Silviu Bogan 2021-03-31 21:46:00 +03:00 committed by GitHub
parent 21943ff96a
commit b4641d1486
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -109,7 +109,7 @@ for (const [node, path] of Editor.nodes(editor, { at: range })) {
}
// Iterate over every point in every text node in the current selection.
for (const [point] of Editor.positions(editor)) {
for (const point of Editor.positions(editor)) {
// ...
}
```