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/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.38
|
|
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.38";
|
|
1842
1842
|
// prettier-ignore
|
|
1843
1843
|
var ES = "es5";
|
|
1844
1844
|
var IS_ES_MODERN = false;
|
|
@@ -11142,11 +11142,7 @@ var Selection = /** @class */ (function () {
|
|
|
11142
11142
|
String(dw).indexOf('%') < 0) {
|
|
11143
11143
|
dw += 'px';
|
|
11144
11144
|
}
|
|
11145
|
-
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.
|
|
11146
|
-
// @ts-ignore
|
|
11147
|
-
this.j.o.resizer.forImageChangeAttributes ? jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr : jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.css, image, 'width',
|
|
11148
|
-
// @ts-ignore
|
|
11149
|
-
dw);
|
|
11145
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(image, 'width', dw);
|
|
11150
11146
|
}
|
|
11151
11147
|
if (styles && typeof styles === 'object') {
|
|
11152
11148
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.css)(image, styles);
|
|
@@ -11169,7 +11165,7 @@ var Selection = /** @class */ (function () {
|
|
|
11169
11165
|
* [[FileBrowser]] or [[Uploader]]
|
|
11170
11166
|
* @example
|
|
11171
11167
|
* ```javascript
|
|
11172
|
-
*
|
|
11168
|
+
* const editor = Jodit.make("#redactor");
|
|
11173
11169
|
* editor.e.on('afterInsertImage', function (image) {
|
|
11174
11170
|
* image.className = 'bloghead4';
|
|
11175
11171
|
* });
|
|
@@ -14557,6 +14553,7 @@ var UIForm = /** @class */ (function (_super) {
|
|
|
14557
14553
|
var form = this.j.c.element('form');
|
|
14558
14554
|
form.classList.add(this.componentName);
|
|
14559
14555
|
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_1__.attr)(form, 'dir', this.j.o.direction || 'auto');
|
|
14556
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_1__.attr)(form, 'novalidate', '');
|
|
14560
14557
|
return form;
|
|
14561
14558
|
};
|
|
14562
14559
|
UIForm = (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .Cg)([
|
|
@@ -15018,7 +15015,22 @@ var UIInput = /** @class */ (function (_super) {
|
|
|
15018
15015
|
UIInput.prototype.validate = function () {
|
|
15019
15016
|
var _this = this;
|
|
15020
15017
|
this.error = '';
|
|
15021
|
-
|
|
15018
|
+
var validate = (0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__/* .toArray */ .$)(this.validators).every(function (validator) {
|
|
15019
|
+
return validator(_this);
|
|
15020
|
+
});
|
|
15021
|
+
this.__markInputInvalid();
|
|
15022
|
+
return validate;
|
|
15023
|
+
};
|
|
15024
|
+
UIInput.prototype.__markInputInvalid = function () {
|
|
15025
|
+
var _a, _b, _c, _d;
|
|
15026
|
+
if (this.error) {
|
|
15027
|
+
this.nativeInput.setAttribute('aria-invalid', 'true');
|
|
15028
|
+
(_b = (_a = this.nativeInput).setCustomValidity) === null || _b === void 0 ? void 0 : _b.call(_a, this.error);
|
|
15029
|
+
}
|
|
15030
|
+
else {
|
|
15031
|
+
this.nativeInput.removeAttribute('aria-invalid');
|
|
15032
|
+
(_d = (_c = this.nativeInput).setCustomValidity) === null || _d === void 0 ? void 0 : _d.call(_c, '');
|
|
15033
|
+
}
|
|
15022
15034
|
};
|
|
15023
15035
|
/** @override **/
|
|
15024
15036
|
UIInput.prototype.createContainer = function (options) {
|
|
@@ -39137,6 +39149,16 @@ var resizer = /** @class */ (function (_super) {
|
|
|
39137
39149
|
node = node.parentNode;
|
|
39138
39150
|
}
|
|
39139
39151
|
};
|
|
39152
|
+
resizer.prototype.__afterInsertImage = function (image) {
|
|
39153
|
+
if (this.j.o.resizer.forImageChangeAttributes) {
|
|
39154
|
+
return;
|
|
39155
|
+
}
|
|
39156
|
+
var width = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(image, 'width');
|
|
39157
|
+
if (width && !(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.css)(image, 'width', true)) {
|
|
39158
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.css)(image, 'width', width);
|
|
39159
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(image, 'width', null);
|
|
39160
|
+
}
|
|
39161
|
+
};
|
|
39140
39162
|
resizer.prototype.addEventListeners = function () {
|
|
39141
39163
|
var _this = this;
|
|
39142
39164
|
var editor = this.j;
|
|
@@ -39433,6 +39455,9 @@ var resizer = /** @class */ (function (_super) {
|
|
|
39433
39455
|
(0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .Cg)([
|
|
39434
39456
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)(':click')
|
|
39435
39457
|
], resizer.prototype, "onEditorClick", null);
|
|
39458
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .Cg)([
|
|
39459
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)(':afterInsertImage')
|
|
39460
|
+
], resizer.prototype, "__afterInsertImage", null);
|
|
39436
39461
|
(0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .Cg)([
|
|
39437
39462
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
39438
39463
|
], resizer.prototype, "onStartResizing", null);
|