lakelib 0.1.23 → 0.1.24
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/lake.min.js +1 -1
- package/dist/lake.min.js.map +1 -1
- package/lib/lake.js +4 -1
- package/lib/lake.js.map +1 -1
- package/package.json +1 -1
package/lib/lake.js
CHANGED
|
@@ -5352,7 +5352,7 @@ function removeBox(range) {
|
|
|
5352
5352
|
return box;
|
|
5353
5353
|
}
|
|
5354
5354
|
|
|
5355
|
-
var version = "0.1.
|
|
5355
|
+
var version = "0.1.24";
|
|
5356
5356
|
|
|
5357
5357
|
// Returns the attributes of the element as an key-value object.
|
|
5358
5358
|
function getAttributes(node) {
|
|
@@ -5438,6 +5438,9 @@ class Selection {
|
|
|
5438
5438
|
}
|
|
5439
5439
|
// Adds the saved range to the native selection.
|
|
5440
5440
|
sync() {
|
|
5441
|
+
if (!this.container.contains(this.range.commonAncestor)) {
|
|
5442
|
+
return;
|
|
5443
|
+
}
|
|
5441
5444
|
this.selection.removeAllRanges();
|
|
5442
5445
|
this.selection.addRange(this.range.get());
|
|
5443
5446
|
}
|