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
|
@@ -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 OverTypeEditor = (() => {
|
|
9
9
|
var __defProp = Object.defineProperty;
|
|
@@ -2246,6 +2246,8 @@ ${blockSuffix}` : suffix;
|
|
|
2246
2246
|
font-size: 0.85rem !important;
|
|
2247
2247
|
color: #666 !important;
|
|
2248
2248
|
flex-shrink: 0 !important; /* Don't shrink */
|
|
2249
|
+
z-index: 10001 !important; /* Above link tooltip */
|
|
2250
|
+
position: relative !important; /* Enable z-index */
|
|
2249
2251
|
}
|
|
2250
2252
|
|
|
2251
2253
|
/* Dark theme stats bar */
|
|
@@ -3356,6 +3358,12 @@ ${blockSuffix}` : suffix;
|
|
|
3356
3358
|
}
|
|
3357
3359
|
this.shortcuts = new ShortcutsManager(this);
|
|
3358
3360
|
this.linkTooltip = new LinkTooltip(this);
|
|
3361
|
+
requestAnimationFrame(() => {
|
|
3362
|
+
requestAnimationFrame(() => {
|
|
3363
|
+
this.textarea.scrollTop = this.preview.scrollTop;
|
|
3364
|
+
this.textarea.scrollLeft = this.preview.scrollLeft;
|
|
3365
|
+
});
|
|
3366
|
+
});
|
|
3359
3367
|
this.initialized = true;
|
|
3360
3368
|
if (this.options.onChange) {
|
|
3361
3369
|
this.options.onChange(this.getValue(), this);
|