jodit 4.13.17 → 4.13.18
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/CHANGELOG.md +6 -0
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +12 -4
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/debug/debug.css +1 -1
- package/es2015/plugins/debug/debug.js +1 -1
- package/es2015/plugins/debug/debug.min.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +3 -3
- package/es2021/jodit.js +12 -4
- package/es2021/jodit.min.js +3 -3
- package/es2021/plugins/debug/debug.css +1 -1
- package/es2021/plugins/debug/debug.js +1 -1
- package/es2021/plugins/debug/debug.min.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +3 -3
- package/es2021.en/jodit.js +12 -4
- package/es2021.en/jodit.min.js +3 -3
- package/es2021.en/plugins/debug/debug.css +1 -1
- package/es2021.en/plugins/debug/debug.js +1 -1
- package/es2021.en/plugins/debug/debug.min.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +12 -4
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/debug/debug.css +1 -1
- package/es5/plugins/debug/debug.js +1 -1
- package/es5/plugins/debug/debug.min.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/esm/core/constants.js +1 -1
- package/esm/core/helpers/utils/scroll-into-view.d.ts +0 -3
- package/esm/core/helpers/utils/scroll-into-view.js +12 -2
- package/package.json +1 -1
- package/types/core/helpers/utils/scroll-into-view.d.ts +0 -3
package/es2015/jodit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
|
|
3
3
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
4
|
-
* Version: v4.13.
|
|
4
|
+
* Version: v4.13.18
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -1849,7 +1849,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1849
1849
|
* ```
|
|
1850
1850
|
* @packageDocumentation
|
|
1851
1851
|
* @module constants
|
|
1852
|
-
*/ const APP_VERSION = "4.13.
|
|
1852
|
+
*/ const APP_VERSION = "4.13.18";
|
|
1853
1853
|
// prettier-ignore
|
|
1854
1854
|
const ES = "es2015";
|
|
1855
1855
|
const IS_ES_MODERN = true;
|
|
@@ -9089,6 +9089,14 @@ const map = {};
|
|
|
9089
9089
|
/**
|
|
9090
9090
|
* @module helpers/utils
|
|
9091
9091
|
*/ /**
|
|
9092
|
+
* `getBoundingClientRect` returns fractional values while `scrollTop`,
|
|
9093
|
+
* `offsetTop` and `clientHeight` are rounded to integers, so a container
|
|
9094
|
+
* scrolled right up to its limit can still appear to clip the element by a
|
|
9095
|
+
* fraction of a pixel. Treat anything clipped by less than a pixel as
|
|
9096
|
+
* visible — otherwise `scrollIntoViewIfNeeded` falls through to
|
|
9097
|
+
* `elm.scrollIntoView()` and needlessly scrolls the whole page.
|
|
9098
|
+
*/ const SUBPIXEL_TOLERANCE = 1;
|
|
9099
|
+
/**
|
|
9092
9100
|
* Check if element is in view
|
|
9093
9101
|
*/ function inView(elm, root, doc) {
|
|
9094
9102
|
let rect = elm.getBoundingClientRect(), el = elm;
|
|
@@ -9101,7 +9109,7 @@ const map = {};
|
|
|
9101
9109
|
// view even though its top still fits. The `top > rect.top` guard keeps
|
|
9102
9110
|
// elements taller than the container (which can never fully fit) from
|
|
9103
9111
|
// being treated as always out of view. See #1300
|
|
9104
|
-
if (top + height > rect.bottom && top > rect.top) {
|
|
9112
|
+
if (top + height > rect.bottom + SUBPIXEL_TOLERANCE && top > rect.top) {
|
|
9105
9113
|
return false;
|
|
9106
9114
|
}
|
|
9107
9115
|
// Check if the element is out of view due to a container scrolling
|
|
@@ -9115,7 +9123,7 @@ const map = {};
|
|
|
9115
9123
|
// element scrolled above the top was wrongly reported as visible and never
|
|
9116
9124
|
// scrolled to. See #1279
|
|
9117
9125
|
const clientHeight = doc.documentElement && doc.documentElement.clientHeight || 0;
|
|
9118
|
-
return (top + height <= clientHeight || top <= 0) && top + height >= 0;
|
|
9126
|
+
return (top + height <= clientHeight + SUBPIXEL_TOLERANCE || top <= 0) && top + height >= 0;
|
|
9119
9127
|
}
|
|
9120
9128
|
/**
|
|
9121
9129
|
* Scroll element into view if it is not in view
|