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/es2021/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
|
*/
|
|
@@ -1736,7 +1736,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1736
1736
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
1737
1737
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
1738
1738
|
*/
|
|
1739
|
-
const APP_VERSION = "4.2.
|
|
1739
|
+
const APP_VERSION = "4.2.38";
|
|
1740
1740
|
// prettier-ignore
|
|
1741
1741
|
const ES = "es2021";
|
|
1742
1742
|
const IS_ES_MODERN = true;
|
|
@@ -10614,11 +10614,7 @@ class Selection {
|
|
|
10614
10614
|
String(dw).indexOf('%') < 0) {
|
|
10615
10615
|
dw += 'px';
|
|
10616
10616
|
}
|
|
10617
|
-
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.
|
|
10618
|
-
// @ts-ignore
|
|
10619
|
-
this.j.o.resizer.forImageChangeAttributes ? jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr : jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.css, image, 'width',
|
|
10620
|
-
// @ts-ignore
|
|
10621
|
-
dw);
|
|
10617
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(image, 'width', dw);
|
|
10622
10618
|
}
|
|
10623
10619
|
if (styles && typeof styles === 'object') {
|
|
10624
10620
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.css)(image, styles);
|
|
@@ -10641,7 +10637,7 @@ class Selection {
|
|
|
10641
10637
|
* [[FileBrowser]] or [[Uploader]]
|
|
10642
10638
|
* @example
|
|
10643
10639
|
* ```javascript
|
|
10644
|
-
*
|
|
10640
|
+
* const editor = Jodit.make("#redactor");
|
|
10645
10641
|
* editor.e.on('afterInsertImage', function (image) {
|
|
10646
10642
|
* image.className = 'bloghead4';
|
|
10647
10643
|
* });
|
|
@@ -13848,6 +13844,7 @@ let UIForm = class UIForm extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MO
|
|
|
13848
13844
|
const form = this.j.c.element('form');
|
|
13849
13845
|
form.classList.add(this.componentName);
|
|
13850
13846
|
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_1__.attr)(form, 'dir', this.j.o.direction || 'auto');
|
|
13847
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_1__.attr)(form, 'novalidate', '');
|
|
13851
13848
|
return form;
|
|
13852
13849
|
}
|
|
13853
13850
|
constructor(...args) {
|
|
@@ -14275,7 +14272,19 @@ let UIInput = UIInput_1 = class UIInput extends jodit_core_ui_element__WEBPACK_I
|
|
|
14275
14272
|
}
|
|
14276
14273
|
validate() {
|
|
14277
14274
|
this.error = '';
|
|
14278
|
-
|
|
14275
|
+
const validate = (0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__/* .toArray */ .$)(this.validators).every(validator => validator(this));
|
|
14276
|
+
this.__markInputInvalid();
|
|
14277
|
+
return validate;
|
|
14278
|
+
}
|
|
14279
|
+
__markInputInvalid() {
|
|
14280
|
+
if (this.error) {
|
|
14281
|
+
this.nativeInput.setAttribute('aria-invalid', 'true');
|
|
14282
|
+
this.nativeInput.setCustomValidity?.(this.error);
|
|
14283
|
+
}
|
|
14284
|
+
else {
|
|
14285
|
+
this.nativeInput.removeAttribute('aria-invalid');
|
|
14286
|
+
this.nativeInput.setCustomValidity?.('');
|
|
14287
|
+
}
|
|
14279
14288
|
}
|
|
14280
14289
|
/** @override **/
|
|
14281
14290
|
createContainer(options) {
|
|
@@ -37563,6 +37572,16 @@ class resizer extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_5__/* .P
|
|
|
37563
37572
|
node = node.parentNode;
|
|
37564
37573
|
}
|
|
37565
37574
|
}
|
|
37575
|
+
__afterInsertImage(image) {
|
|
37576
|
+
if (this.j.o.resizer.forImageChangeAttributes) {
|
|
37577
|
+
return;
|
|
37578
|
+
}
|
|
37579
|
+
const width = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(image, 'width');
|
|
37580
|
+
if (width && !(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.css)(image, 'width', true)) {
|
|
37581
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.css)(image, 'width', width);
|
|
37582
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(image, 'width', null);
|
|
37583
|
+
}
|
|
37584
|
+
}
|
|
37566
37585
|
addEventListeners() {
|
|
37567
37586
|
const editor = this.j;
|
|
37568
37587
|
editor.e
|
|
@@ -37858,6 +37877,9 @@ class resizer extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_5__/* .P
|
|
|
37858
37877
|
(0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .Cg)([
|
|
37859
37878
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)(':click')
|
|
37860
37879
|
], resizer.prototype, "onEditorClick", null);
|
|
37880
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .Cg)([
|
|
37881
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)(':afterInsertImage')
|
|
37882
|
+
], resizer.prototype, "__afterInsertImage", null);
|
|
37861
37883
|
(0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .Cg)([
|
|
37862
37884
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
37863
37885
|
], resizer.prototype, "onStartResizing", null);
|