jodit 4.2.35 → 4.2.38
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 +17 -5
- package/es2015/jodit.css +4 -3
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +32 -9
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +2 -2
- 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 +4 -3
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +32 -9
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +2 -2
- 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 +4 -3
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +31 -9
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +2 -2
- 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 +4 -3
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +31 -9
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +2 -2
- 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 +4 -4
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +34 -9
- package/es5/jodit.min.css +3 -3
- package/es5/jodit.min.js +2 -2
- 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/core/selection/selection.js +3 -7
- package/esm/core/ui/form/form.js +1 -0
- package/esm/core/ui/form/inputs/input/input.d.ts +1 -0
- package/esm/core/ui/form/inputs/input/input.js +13 -1
- package/esm/plugins/resizer/resizer.d.ts +1 -0
- package/esm/plugins/resizer/resizer.js +13 -0
- package/package.json +1 -1
- package/types/core/ui/form/inputs/input/input.d.ts +1 -0
- package/types/plugins/resizer/resizer.d.ts +1 -0
package/es2018/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.38
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -1735,7 +1735,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1735
1735
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
1736
1736
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
1737
1737
|
*/
|
|
1738
|
-
const APP_VERSION = "4.2.
|
|
1738
|
+
const APP_VERSION = "4.2.38";
|
|
1739
1739
|
// prettier-ignore
|
|
1740
1740
|
const ES = "es2018";
|
|
1741
1741
|
const IS_ES_MODERN = true;
|
|
@@ -10643,11 +10643,7 @@ class Selection {
|
|
|
10643
10643
|
String(dw).indexOf('%') < 0) {
|
|
10644
10644
|
dw += 'px';
|
|
10645
10645
|
}
|
|
10646
|
-
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.
|
|
10647
|
-
// @ts-ignore
|
|
10648
|
-
this.j.o.resizer.forImageChangeAttributes ? jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr : jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.css, image, 'width',
|
|
10649
|
-
// @ts-ignore
|
|
10650
|
-
dw);
|
|
10646
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(image, 'width', dw);
|
|
10651
10647
|
}
|
|
10652
10648
|
if (styles && typeof styles === 'object') {
|
|
10653
10649
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.css)(image, styles);
|
|
@@ -10670,7 +10666,7 @@ class Selection {
|
|
|
10670
10666
|
* [[FileBrowser]] or [[Uploader]]
|
|
10671
10667
|
* @example
|
|
10672
10668
|
* ```javascript
|
|
10673
|
-
*
|
|
10669
|
+
* const editor = Jodit.make("#redactor");
|
|
10674
10670
|
* editor.e.on('afterInsertImage', function (image) {
|
|
10675
10671
|
* image.className = 'bloghead4';
|
|
10676
10672
|
* });
|
|
@@ -13891,6 +13887,7 @@ let UIForm = class UIForm extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MO
|
|
|
13891
13887
|
const form = this.j.c.element('form');
|
|
13892
13888
|
form.classList.add(this.componentName);
|
|
13893
13889
|
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_1__.attr)(form, 'dir', this.j.o.direction || 'auto');
|
|
13890
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_1__.attr)(form, 'novalidate', '');
|
|
13894
13891
|
return form;
|
|
13895
13892
|
}
|
|
13896
13893
|
constructor(...args) {
|
|
@@ -14321,7 +14318,20 @@ let UIInput = UIInput_1 = class UIInput extends jodit_core_ui_element__WEBPACK_I
|
|
|
14321
14318
|
}
|
|
14322
14319
|
validate() {
|
|
14323
14320
|
this.error = '';
|
|
14324
|
-
|
|
14321
|
+
const validate = (0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__/* .toArray */ .$)(this.validators).every(validator => validator(this));
|
|
14322
|
+
this.__markInputInvalid();
|
|
14323
|
+
return validate;
|
|
14324
|
+
}
|
|
14325
|
+
__markInputInvalid() {
|
|
14326
|
+
var _a, _b, _c, _d;
|
|
14327
|
+
if (this.error) {
|
|
14328
|
+
this.nativeInput.setAttribute('aria-invalid', 'true');
|
|
14329
|
+
(_b = (_a = this.nativeInput).setCustomValidity) === null || _b === void 0 ? void 0 : _b.call(_a, this.error);
|
|
14330
|
+
}
|
|
14331
|
+
else {
|
|
14332
|
+
this.nativeInput.removeAttribute('aria-invalid');
|
|
14333
|
+
(_d = (_c = this.nativeInput).setCustomValidity) === null || _d === void 0 ? void 0 : _d.call(_c, '');
|
|
14334
|
+
}
|
|
14325
14335
|
}
|
|
14326
14336
|
/** @override **/
|
|
14327
14337
|
createContainer(options) {
|
|
@@ -37670,6 +37680,16 @@ class resizer extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_5__/* .P
|
|
|
37670
37680
|
node = node.parentNode;
|
|
37671
37681
|
}
|
|
37672
37682
|
}
|
|
37683
|
+
__afterInsertImage(image) {
|
|
37684
|
+
if (this.j.o.resizer.forImageChangeAttributes) {
|
|
37685
|
+
return;
|
|
37686
|
+
}
|
|
37687
|
+
const width = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(image, 'width');
|
|
37688
|
+
if (width && !(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.css)(image, 'width', true)) {
|
|
37689
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.css)(image, 'width', width);
|
|
37690
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(image, 'width', null);
|
|
37691
|
+
}
|
|
37692
|
+
}
|
|
37673
37693
|
addEventListeners() {
|
|
37674
37694
|
const editor = this.j;
|
|
37675
37695
|
editor.e
|
|
@@ -37965,6 +37985,9 @@ class resizer extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_5__/* .P
|
|
|
37965
37985
|
(0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .Cg)([
|
|
37966
37986
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)(':click')
|
|
37967
37987
|
], resizer.prototype, "onEditorClick", null);
|
|
37988
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .Cg)([
|
|
37989
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)(':afterInsertImage')
|
|
37990
|
+
], resizer.prototype, "__afterInsertImage", null);
|
|
37968
37991
|
(0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .Cg)([
|
|
37969
37992
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
37970
37993
|
], resizer.prototype, "onStartResizing", null);
|