overtype 2.0.2 → 2.0.4
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/overtype-webcomponent.esm.js +11 -3
- package/dist/overtype-webcomponent.esm.js.map +2 -2
- package/dist/overtype-webcomponent.js +11 -3
- package/dist/overtype-webcomponent.js.map +2 -2
- package/dist/overtype-webcomponent.min.js +12 -10
- package/dist/overtype.cjs +11 -3
- package/dist/overtype.cjs.map +2 -2
- package/dist/overtype.esm.js +11 -3
- package/dist/overtype.esm.js.map +2 -2
- package/dist/overtype.js +11 -3
- package/dist/overtype.js.map +2 -2
- package/dist/overtype.min.js +6 -4
- package/package.json +1 -1
- package/src/overtype.js +10 -0
- package/src/styles.js +2 -0
package/dist/overtype.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* OverType v2.0.
|
|
2
|
+
* OverType v2.0.4
|
|
3
3
|
* A lightweight markdown editor library with perfect WYSIWYG alignment
|
|
4
4
|
* @license MIT
|
|
5
|
-
* @author
|
|
6
|
-
* https://github.com/
|
|
5
|
+
* @author David Miranda
|
|
6
|
+
* https://github.com/panphora/overtype
|
|
7
7
|
*/
|
|
8
8
|
var OverType = (() => {
|
|
9
9
|
var __defProp = Object.defineProperty;
|
|
@@ -2249,6 +2249,8 @@ ${blockSuffix}` : suffix;
|
|
|
2249
2249
|
font-size: 0.85rem !important;
|
|
2250
2250
|
color: #666 !important;
|
|
2251
2251
|
flex-shrink: 0 !important; /* Don't shrink */
|
|
2252
|
+
z-index: 10001 !important; /* Above link tooltip */
|
|
2253
|
+
position: relative !important; /* Enable z-index */
|
|
2252
2254
|
}
|
|
2253
2255
|
|
|
2254
2256
|
/* Dark theme stats bar */
|
|
@@ -3359,6 +3361,12 @@ ${blockSuffix}` : suffix;
|
|
|
3359
3361
|
}
|
|
3360
3362
|
this.shortcuts = new ShortcutsManager(this);
|
|
3361
3363
|
this.linkTooltip = new LinkTooltip(this);
|
|
3364
|
+
requestAnimationFrame(() => {
|
|
3365
|
+
requestAnimationFrame(() => {
|
|
3366
|
+
this.textarea.scrollTop = this.preview.scrollTop;
|
|
3367
|
+
this.textarea.scrollLeft = this.preview.scrollLeft;
|
|
3368
|
+
});
|
|
3369
|
+
});
|
|
3362
3370
|
this.initialized = true;
|
|
3363
3371
|
if (this.options.onChange) {
|
|
3364
3372
|
this.options.onChange(this.getValue(), this);
|