lakelib 0.2.0 → 0.2.1
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 +2 -2
- package/dist/lake.min.js.map +1 -1
- package/lib/lake.js +5 -4
- package/lib/lake.js.map +1 -1
- package/package.json +5 -4
package/lib/lake.js
CHANGED
|
@@ -3008,7 +3008,7 @@ var enUS = {
|
|
|
3008
3008
|
},
|
|
3009
3009
|
equation: {
|
|
3010
3010
|
save: 'Done',
|
|
3011
|
-
help: 'Supported
|
|
3011
|
+
help: 'Supported functions',
|
|
3012
3012
|
placeholder: 'Type a TeX expression',
|
|
3013
3013
|
},
|
|
3014
3014
|
};
|
|
@@ -5359,7 +5359,7 @@ function removeBox(range) {
|
|
|
5359
5359
|
return box;
|
|
5360
5360
|
}
|
|
5361
5361
|
|
|
5362
|
-
var version = "0.2.
|
|
5362
|
+
var version = "0.2.1";
|
|
5363
5363
|
|
|
5364
5364
|
// Returns the attributes of the element as an key-value object.
|
|
5365
5365
|
function getAttributes(node) {
|
|
@@ -5538,6 +5538,7 @@ class Selection {
|
|
|
5538
5538
|
boxNode = box;
|
|
5539
5539
|
}
|
|
5540
5540
|
this.range.selectBox(boxNode);
|
|
5541
|
+
this.sync();
|
|
5541
5542
|
}
|
|
5542
5543
|
// Inserts a box into the position of the selection.
|
|
5543
5544
|
insertBox(boxName, boxValue) {
|
|
@@ -6011,7 +6012,7 @@ class Editor {
|
|
|
6011
6012
|
if (this.root.first().length === 0) {
|
|
6012
6013
|
return;
|
|
6013
6014
|
}
|
|
6014
|
-
const range = this.selection.
|
|
6015
|
+
const range = this.selection.getCurrentRange();
|
|
6015
6016
|
const clonedRange = range.clone();
|
|
6016
6017
|
clonedRange.adjustBox();
|
|
6017
6018
|
this.container.find('lake-box').each(boxNativeNode => {
|
|
@@ -6386,7 +6387,7 @@ class Editor {
|
|
|
6386
6387
|
this.overlayContainer.append(artificialCaret);
|
|
6387
6388
|
scrollToNode(artificialCaret, {
|
|
6388
6389
|
behavior: 'instant',
|
|
6389
|
-
block: '
|
|
6390
|
+
block: 'nearest',
|
|
6390
6391
|
inline: 'nearest',
|
|
6391
6392
|
});
|
|
6392
6393
|
artificialCaret.remove();
|