jodit 4.2.47 → 4.2.49
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 +33 -0
- package/README.md +1 -0
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +21 -8
- 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.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +21 -8
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/debug/debug.css +1 -1
- package/es2018/plugins/debug/debug.js +1 -1
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.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 +2 -2
- package/es2021/jodit.js +21 -8
- package/es2021/jodit.min.js +2 -2
- 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 +2 -2
- package/es2021.en/jodit.js +21 -8
- package/es2021.en/jodit.min.js +2 -2
- 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/164.fat.min.js +1 -1
- package/es5/164.min.js +1 -1
- package/es5/5.fat.min.js +1 -1
- package/es5/5.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +24 -10
- 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/esm/core/constants.js +1 -1
- package/esm/jodit.d.ts +3 -3
- package/esm/plugins/size/size.js +10 -3
- package/esm/plugins/source/editor/engines/ace.js +9 -3
- package/esm/types/types.d.ts +3 -0
- package/package.json +1 -1
- package/types/jodit.d.ts +3 -3
- package/types/types/types.d.ts +3 -0
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.2.
|
|
4
|
+
* Version: v4.2.49
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -1838,7 +1838,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1838
1838
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
1839
1839
|
*/
|
|
1840
1840
|
|
|
1841
|
-
var APP_VERSION = "4.2.
|
|
1841
|
+
var APP_VERSION = "4.2.49";
|
|
1842
1842
|
// prettier-ignore
|
|
1843
1843
|
var ES = "es5";
|
|
1844
1844
|
var IS_ES_MODERN = false;
|
|
@@ -41286,8 +41286,9 @@ var size = /** @class */ (function (_super) {
|
|
|
41286
41286
|
* Manually change height
|
|
41287
41287
|
*/
|
|
41288
41288
|
size.prototype.__setHeight = function (height) {
|
|
41289
|
+
var _a = this.j.container, clientHeight = _a.clientHeight, clientWidth = _a.clientWidth;
|
|
41289
41290
|
if ((0,jodit_core_helpers_checker_is_number__WEBPACK_IMPORTED_MODULE_6__/* .isNumber */ .E)(height)) {
|
|
41290
|
-
var
|
|
41291
|
+
var _b = this.j.o, minHeight = _b.minHeight, maxHeight = _b.maxHeight;
|
|
41291
41292
|
if ((0,jodit_core_helpers_checker_is_number__WEBPACK_IMPORTED_MODULE_6__/* .isNumber */ .E)(minHeight) && minHeight > height) {
|
|
41292
41293
|
height = minHeight;
|
|
41293
41294
|
}
|
|
@@ -41299,14 +41300,15 @@ var size = /** @class */ (function (_super) {
|
|
|
41299
41300
|
if (this.j.o.saveHeightInStorage) {
|
|
41300
41301
|
this.j.storage.set('height', height);
|
|
41301
41302
|
}
|
|
41302
|
-
this.__resizeWorkspaceImd();
|
|
41303
|
+
this.__resizeWorkspaceImd({ clientHeight: clientHeight, clientWidth: clientWidth });
|
|
41303
41304
|
};
|
|
41304
41305
|
/**
|
|
41305
41306
|
* Manually change width
|
|
41306
41307
|
*/
|
|
41307
41308
|
size.prototype.__setWidth = function (width) {
|
|
41309
|
+
var _a = this.j.container, clientHeight = _a.clientHeight, clientWidth = _a.clientWidth;
|
|
41308
41310
|
if ((0,jodit_core_helpers_checker_is_number__WEBPACK_IMPORTED_MODULE_6__/* .isNumber */ .E)(width)) {
|
|
41309
|
-
var
|
|
41311
|
+
var _b = this.j.o, minWidth = _b.minWidth, maxWidth = _b.maxWidth;
|
|
41310
41312
|
if ((0,jodit_core_helpers_checker_is_number__WEBPACK_IMPORTED_MODULE_6__/* .isNumber */ .E)(minWidth) && minWidth > width) {
|
|
41311
41313
|
width = minWidth;
|
|
41312
41314
|
}
|
|
@@ -41315,7 +41317,7 @@ var size = /** @class */ (function (_super) {
|
|
|
41315
41317
|
}
|
|
41316
41318
|
}
|
|
41317
41319
|
(0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_5__/* .css */ .A)(this.j.container, 'width', width);
|
|
41318
|
-
this.__resizeWorkspaceImd();
|
|
41320
|
+
this.__resizeWorkspaceImd({ clientHeight: clientHeight, clientWidth: clientWidth });
|
|
41319
41321
|
};
|
|
41320
41322
|
/**
|
|
41321
41323
|
* Returns service spaces: toolbar + statusbar
|
|
@@ -41329,7 +41331,8 @@ var size = /** @class */ (function (_super) {
|
|
|
41329
41331
|
/**
|
|
41330
41332
|
* Calculate workspace height
|
|
41331
41333
|
*/
|
|
41332
|
-
size.prototype.__resizeWorkspaceImd = function () {
|
|
41334
|
+
size.prototype.__resizeWorkspaceImd = function (_a) {
|
|
41335
|
+
var _b = _a === void 0 ? this.j.container : _a, clientHeight = _b.clientHeight, clientWidth = _b.clientWidth;
|
|
41333
41336
|
if (!this.j || this.j.isDestructed || !this.j.o || this.j.o.inline) {
|
|
41334
41337
|
return;
|
|
41335
41338
|
}
|
|
@@ -41356,6 +41359,11 @@ var size = /** @class */ (function (_super) {
|
|
|
41356
41359
|
? this.j.container.offsetHeight - this.__getNotWorkHeight()
|
|
41357
41360
|
: 'auto');
|
|
41358
41361
|
}
|
|
41362
|
+
var _c = this.j.container, newClientHeight = _c.clientHeight, newClientWidth = _c.clientWidth;
|
|
41363
|
+
if (clientHeight !== newClientHeight ||
|
|
41364
|
+
clientWidth !== newClientWidth) {
|
|
41365
|
+
this.j.e.fire(this.j, 'resize');
|
|
41366
|
+
}
|
|
41359
41367
|
};
|
|
41360
41368
|
/** @override **/
|
|
41361
41369
|
size.prototype.beforeDestruct = function (jodit) {
|
|
@@ -41560,10 +41568,12 @@ var AceEditor = /** @class */ (function (_super) {
|
|
|
41560
41568
|
if (editor.getRealMode() !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_WYSIWYG) {
|
|
41561
41569
|
_this.setValue(_this.getValue());
|
|
41562
41570
|
}
|
|
41563
|
-
var onResize = _this.j.async.
|
|
41564
|
-
if (editor.isInDestruct
|
|
41571
|
+
var onResize = _this.j.async.throttle(function () {
|
|
41572
|
+
if (editor.isInDestruct ||
|
|
41573
|
+
editor.getMode() === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_WYSIWYG) {
|
|
41565
41574
|
return;
|
|
41566
41575
|
}
|
|
41576
|
+
var hasFocus = _this.instance.isFocused();
|
|
41567
41577
|
if (editor.o.height !== 'auto') {
|
|
41568
41578
|
_this.instance.setOption('maxLines', editor.workplace.offsetHeight /
|
|
41569
41579
|
_this.instance.renderer.lineHeight);
|
|
@@ -41572,8 +41582,11 @@ var AceEditor = /** @class */ (function (_super) {
|
|
|
41572
41582
|
_this.instance.setOption('maxLines', Infinity);
|
|
41573
41583
|
}
|
|
41574
41584
|
_this.instance.resize();
|
|
41585
|
+
hasFocus && _this.focus();
|
|
41575
41586
|
}, _this.j.defaultTimeout * 2);
|
|
41576
|
-
editor.e
|
|
41587
|
+
editor.e
|
|
41588
|
+
.on(editor, 'resize', onResize)
|
|
41589
|
+
.on('afterResize afterSetMode', onResize);
|
|
41577
41590
|
onResize();
|
|
41578
41591
|
_this.onReady();
|
|
41579
41592
|
};
|
|
@@ -41629,6 +41642,7 @@ var AceEditor = /** @class */ (function (_super) {
|
|
|
41629
41642
|
configurable: true
|
|
41630
41643
|
});
|
|
41631
41644
|
AceEditor.prototype.focus = function () {
|
|
41645
|
+
this.instance.container.focus();
|
|
41632
41646
|
this.instance.focus();
|
|
41633
41647
|
};
|
|
41634
41648
|
AceEditor.prototype.blur = function () {
|
package/es5/jodit.min.css
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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.2.
|
|
4
|
+
* Version: v4.2.49
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
8
8
|
/*!
|
|
9
9
|
* jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
|
|
10
10
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
11
|
-
* Version: v4.2.
|
|
11
|
+
* Version: v4.2.49
|
|
12
12
|
* Url: https://xdsoft.net/jodit/
|
|
13
13
|
* License(s): MIT
|
|
14
14
|
*/
|