slate 0.77.0 → 0.77.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +4 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/interfaces/editor.d.ts.map +1 -1
- package/dist/slate.js +38 -35
- package/dist/slate.min.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2206,7 +2206,10 @@ var Editor = {
|
|
|
2206
2206
|
// yield their first point. If the `voids` option is set to true,
|
|
2207
2207
|
// then we will iterate over their content.
|
|
2208
2208
|
if (!voids && editor.isVoid(node)) {
|
|
2209
|
-
yield Editor.start(editor, path);
|
|
2209
|
+
yield Editor.start(editor, path); // It's possible the start of the range we're iterating over is in a void, in which case
|
|
2210
|
+
// we want to make sure we don't incorrectly yield the start of a subsequent text node for unit !== 'offset'
|
|
2211
|
+
|
|
2212
|
+
isNewBlock = false;
|
|
2210
2213
|
continue;
|
|
2211
2214
|
} // Inline element nodes are ignored as they don't themselves
|
|
2212
2215
|
// contribute to `blockText` or `leafText` - their parent and
|