jodit 4.12.38 → 4.12.41
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 +20 -1
- package/README.md +4 -4
- package/es2015/jodit.css +13 -1
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +4 -4
- package/es2015/jodit.js +26 -9
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +4 -4
- 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.css +1 -1
- package/es2018/jodit.fat.min.js +4 -4
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +4 -4
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +13 -1
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +5 -5
- package/es2021/jodit.js +26 -9
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +5 -5
- 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 +13 -1
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +5 -5
- package/es2021.en/jodit.js +26 -9
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +5 -5
- 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 +18 -2
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +26 -10
- package/es5/jodit.min.css +3 -3
- 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.js +6 -2
- package/esm/modules/widget/file-selector/file-selector.js +7 -1
- package/esm/modules/widget/tabs/tabs.js +0 -3
- package/esm/plugins/fullsize/fullsize.js +11 -1
- package/package.json +1 -1
package/es5/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.12.
|
|
4
|
+
* Version: v4.12.41
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -2087,7 +2087,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2087
2087
|
* @packageDocumentation
|
|
2088
2088
|
* @module constants
|
|
2089
2089
|
*/
|
|
2090
|
-
var APP_VERSION = "4.12.
|
|
2090
|
+
var APP_VERSION = "4.12.41";
|
|
2091
2091
|
// prettier-ignore
|
|
2092
2092
|
var ES = "es5";
|
|
2093
2093
|
var IS_ES_MODERN = false;
|
|
@@ -10160,8 +10160,12 @@ var map = {};
|
|
|
10160
10160
|
return false;
|
|
10161
10161
|
}
|
|
10162
10162
|
}
|
|
10163
|
-
// Check it's within the document viewport
|
|
10164
|
-
|
|
10163
|
+
// Check it's within the document viewport: the element must not be below
|
|
10164
|
+
// the viewport bottom, and (its bottom) must not be above the viewport top —
|
|
10165
|
+
// the latter guard was missing, so an element scrolled above the top was
|
|
10166
|
+
// wrongly reported as visible and never scrolled to. See #1279
|
|
10167
|
+
var clientHeight = doc.documentElement && doc.documentElement.clientHeight || 0;
|
|
10168
|
+
return top <= clientHeight && top + height >= 0;
|
|
10165
10169
|
}
|
|
10166
10170
|
/**
|
|
10167
10171
|
* Scroll element into view if it is not in view
|
|
@@ -30631,7 +30635,13 @@ jodit_core_ui__WEBPACK_IMPORTED_MODULE_2__.Icon.set('palette', (_palette_svg__WE
|
|
|
30631
30635
|
content: form.container
|
|
30632
30636
|
});
|
|
30633
30637
|
}
|
|
30634
|
-
|
|
30638
|
+
var box = (0,jodit_modules_widget_tabs_tabs__WEBPACK_IMPORTED_MODULE_3__.TabsWidget)(editor, tabs);
|
|
30639
|
+
// Marks this popup so its tabs auto-size to their labels (see
|
|
30640
|
+
// `.jodit-file-selector` in tabs.less) — long localized tab captions are no
|
|
30641
|
+
// longer clipped — while leaving other tab popups (link, video …)
|
|
30642
|
+
// untouched.
|
|
30643
|
+
box.classList.add('jodit-file-selector');
|
|
30644
|
+
return box;
|
|
30635
30645
|
};
|
|
30636
30646
|
function val(elm, selector, value) {
|
|
30637
30647
|
var child = elm.querySelector(selector);
|
|
@@ -30793,10 +30803,6 @@ function val(elm, selector, value) {
|
|
|
30793
30803
|
tab: tab
|
|
30794
30804
|
};
|
|
30795
30805
|
});
|
|
30796
|
-
Object.values(nameToTab).forEach(function(param) {
|
|
30797
|
-
var button = param.button;
|
|
30798
|
-
button.container.style.width = (100 / tabs.length).toFixed(10) + '%';
|
|
30799
|
-
});
|
|
30800
30806
|
var tab = !state || !state.activeTab || !nameToTab[state.activeTab] ? firstTab : state.activeTab;
|
|
30801
30807
|
setActive(tab);
|
|
30802
30808
|
if (state) {
|
|
@@ -37353,7 +37359,7 @@ var fullsizeStack = new Set();
|
|
|
37353
37359
|
editor.registerButton({
|
|
37354
37360
|
name: 'fullsize'
|
|
37355
37361
|
});
|
|
37356
|
-
var isEnabled = false, oldHeight = 0, oldWidth = 0, wasToggled = false;
|
|
37362
|
+
var isEnabled = false, oldHeight = 0, oldWidth = 0, savedScrollLeft = 0, savedScrollTop = 0, wasToggled = false;
|
|
37357
37363
|
var resize = function resize() {
|
|
37358
37364
|
var container = editor.container, events = editor.events;
|
|
37359
37365
|
if (!events) {
|
|
@@ -37402,12 +37408,22 @@ var fullsizeStack = new Set();
|
|
|
37402
37408
|
enable ? fullsizeStack.add(container) : fullsizeStack.delete(container);
|
|
37403
37409
|
var shouldToggleGlobalFullsize = editor.o.globalFullSize && (fullsizeStack.size === 1 && enable || fullsizeStack.size === 0 && !enable);
|
|
37404
37410
|
if (shouldToggleGlobalFullsize) {
|
|
37411
|
+
// Entering fullsize sets `position: fixed` on <html>, which
|
|
37412
|
+
// makes the browser reset the page scroll to the top. Remember
|
|
37413
|
+
// the scroll position so it can be restored on exit (#1255).
|
|
37414
|
+
if (enable) {
|
|
37415
|
+
savedScrollLeft = editor.ow.scrollX;
|
|
37416
|
+
savedScrollTop = editor.ow.scrollY;
|
|
37417
|
+
}
|
|
37405
37418
|
var node = container.parentNode;
|
|
37406
37419
|
while(node && node.nodeType !== Node.DOCUMENT_NODE && node.nodeType !== Node.DOCUMENT_FRAGMENT_NODE){
|
|
37407
37420
|
node.classList.toggle('jodit_fullsize-box_true', enable);
|
|
37408
37421
|
node = node.parentNode;
|
|
37409
37422
|
}
|
|
37410
37423
|
resize();
|
|
37424
|
+
if (!enable) {
|
|
37425
|
+
editor.ow.scrollTo(savedScrollLeft, savedScrollTop);
|
|
37426
|
+
}
|
|
37411
37427
|
}
|
|
37412
37428
|
events.fire('afterResize');
|
|
37413
37429
|
};
|