jodit 4.2.35 → 4.2.37
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 +11 -5
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +17 -8
- 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 +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +17 -8
- 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 +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +17 -8
- 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 +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +17 -8
- 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 +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +17 -8
- package/es5/jodit.min.css +2 -2
- 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/plugins/resizer/resizer.d.ts +1 -0
- package/esm/plugins/resizer/resizer.js +13 -0
- package/package.json +1 -1
- 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.37
|
|
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.37";
|
|
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
|
* });
|
|
@@ -39137,6 +39133,16 @@ var resizer = /** @class */ (function (_super) {
|
|
|
39137
39133
|
node = node.parentNode;
|
|
39138
39134
|
}
|
|
39139
39135
|
};
|
|
39136
|
+
resizer.prototype.__afterInsertImage = function (image) {
|
|
39137
|
+
if (this.j.o.resizer.forImageChangeAttributes) {
|
|
39138
|
+
return;
|
|
39139
|
+
}
|
|
39140
|
+
var width = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(image, 'width');
|
|
39141
|
+
if (width && !(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.css)(image, 'width', true)) {
|
|
39142
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.css)(image, 'width', width);
|
|
39143
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(image, 'width', null);
|
|
39144
|
+
}
|
|
39145
|
+
};
|
|
39140
39146
|
resizer.prototype.addEventListeners = function () {
|
|
39141
39147
|
var _this = this;
|
|
39142
39148
|
var editor = this.j;
|
|
@@ -39433,6 +39439,9 @@ var resizer = /** @class */ (function (_super) {
|
|
|
39433
39439
|
(0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .Cg)([
|
|
39434
39440
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)(':click')
|
|
39435
39441
|
], resizer.prototype, "onEditorClick", null);
|
|
39442
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .Cg)([
|
|
39443
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)(':afterInsertImage')
|
|
39444
|
+
], resizer.prototype, "__afterInsertImage", null);
|
|
39436
39445
|
(0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .Cg)([
|
|
39437
39446
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
39438
39447
|
], resizer.prototype, "onStartResizing", null);
|
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.37
|
|
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.37
|
|
12
12
|
* Url: https://xdsoft.net/jodit/
|
|
13
13
|
* License(s): MIT
|
|
14
14
|
*/
|