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.esm.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 __defProp = Object.defineProperty;
|
|
9
9
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
@@ -2223,6 +2223,8 @@ function generateStyles(options = {}) {
|
|
|
2223
2223
|
font-size: 0.85rem !important;
|
|
2224
2224
|
color: #666 !important;
|
|
2225
2225
|
flex-shrink: 0 !important; /* Don't shrink */
|
|
2226
|
+
z-index: 10001 !important; /* Above link tooltip */
|
|
2227
|
+
position: relative !important; /* Enable z-index */
|
|
2226
2228
|
}
|
|
2227
2229
|
|
|
2228
2230
|
/* Dark theme stats bar */
|
|
@@ -3333,6 +3335,12 @@ var _OverType = class _OverType {
|
|
|
3333
3335
|
}
|
|
3334
3336
|
this.shortcuts = new ShortcutsManager(this);
|
|
3335
3337
|
this.linkTooltip = new LinkTooltip(this);
|
|
3338
|
+
requestAnimationFrame(() => {
|
|
3339
|
+
requestAnimationFrame(() => {
|
|
3340
|
+
this.textarea.scrollTop = this.preview.scrollTop;
|
|
3341
|
+
this.textarea.scrollLeft = this.preview.scrollLeft;
|
|
3342
|
+
});
|
|
3343
|
+
});
|
|
3336
3344
|
this.initialized = true;
|
|
3337
3345
|
if (this.options.onChange) {
|
|
3338
3346
|
this.options.onChange(this.getValue(), this);
|