jodit 4.9.14 → 4.9.16
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 +12 -0
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +5 -5
- package/es2015/jodit.js +15 -10
- package/es2015/jodit.min.js +5 -5
- 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.fat.min.js +5 -5
- package/es2018/jodit.min.js +23 -23
- package/es2018/plugins/debug/debug.min.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 +5 -5
- package/es2021/jodit.js +15 -10
- package/es2021/jodit.min.js +5 -5
- 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 +5 -5
- package/es2021.en/jodit.js +15 -10
- package/es2021.en/jodit.min.js +5 -5
- 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/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +15 -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/es5/polyfills.fat.min.js +2 -2
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +2 -2
- package/esm/core/constants.js +1 -1
- package/esm/modules/file-browser/data-provider.d.ts +2 -2
- package/esm/modules/file-browser/data-provider.js +2 -2
- package/esm/modules/image-editor/image-editor.d.ts +1 -1
- package/esm/modules/image-editor/image-editor.js +3 -3
- package/esm/plugins/image-properties/utils/open-image-editor.js +4 -3
- package/esm/plugins/inline-popup/inline-popup.js +7 -1
- package/esm/types/file-browser.d.ts +3 -2
- package/package.json +1 -1
- package/types/modules/file-browser/data-provider.d.ts +2 -2
- package/types/modules/image-editor/image-editor.d.ts +1 -1
- package/types/types/file-browser.d.ts +3 -2
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.9.
|
|
4
|
+
* Version: v4.9.16
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -9479,8 +9479,8 @@ var DataProvider = /*#__PURE__*/ function() {
|
|
|
9479
9479
|
query.data.path = path;
|
|
9480
9480
|
query.data.name = name;
|
|
9481
9481
|
query.data.source = source;
|
|
9482
|
-
return this.get(type).then(function() {
|
|
9483
|
-
return true;
|
|
9482
|
+
return this.get(type).then(function(resp) {
|
|
9483
|
+
return resp.data.newPath || true;
|
|
9484
9484
|
});
|
|
9485
9485
|
}
|
|
9486
9486
|
},
|
|
@@ -15836,9 +15836,10 @@ var $$temp = function $$temp() {
|
|
|
15836
15836
|
};
|
|
15837
15837
|
a.href = url;
|
|
15838
15838
|
j.filebrowser.dataProvider.getPathByUrl(a.href.toString()).then(function(resp) {
|
|
15839
|
-
jodit_modules_image_editor_image_editor__WEBPACK_IMPORTED_MODULE_2__.openImageEditor.call(j.filebrowser, a.href, resp.name, resp.path, resp.source, function() {
|
|
15839
|
+
jodit_modules_image_editor_image_editor__WEBPACK_IMPORTED_MODULE_2__.openImageEditor.call(j.filebrowser, a.href, resp.name, resp.path, resp.source, function(newPath) {
|
|
15840
15840
|
var timestamp = new Date().getTime();
|
|
15841
|
-
|
|
15841
|
+
var newUrl = newPath || url;
|
|
15842
|
+
state.values.imageSrc = newUrl + (newUrl.indexOf('?') !== -1 ? '' : '?') + '&_tmp=' + timestamp.toString();
|
|
15842
15843
|
}, function(error) {
|
|
15843
15844
|
j.alert(error.message);
|
|
15844
15845
|
});
|
|
@@ -22872,11 +22873,11 @@ ImageEditor = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_7__.__decorat
|
|
|
22872
22873
|
*/ function openImageEditor(href, name, path, source, onSuccess, onFailed) {
|
|
22873
22874
|
var _this = this;
|
|
22874
22875
|
return this.getInstance('ImageEditor', this.o).open(href, function(newname, box, success, failed) {
|
|
22875
|
-
return (0,jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_16__.call)(box.action === 'resize' ? _this.dataProvider.resize : _this.dataProvider.crop, path, source, name, newname, box.box).then(function(
|
|
22876
|
-
if (
|
|
22876
|
+
return (0,jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_16__.call)(box.action === 'resize' ? _this.dataProvider.resize : _this.dataProvider.crop, path, source, name, newname, box.box).then(function(result) {
|
|
22877
|
+
if (result) {
|
|
22877
22878
|
success();
|
|
22878
22879
|
if (onSuccess) {
|
|
22879
|
-
onSuccess();
|
|
22880
|
+
onSuccess(typeof result === 'string' ? result : undefined);
|
|
22880
22881
|
}
|
|
22881
22882
|
}
|
|
22882
22883
|
}).catch(function(error) {
|
|
@@ -41473,7 +41474,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
41473
41474
|
* @packageDocumentation
|
|
41474
41475
|
* @module constants
|
|
41475
41476
|
*/
|
|
41476
|
-
var APP_VERSION = "4.9.
|
|
41477
|
+
var APP_VERSION = "4.9.16";
|
|
41477
41478
|
// prettier-ignore
|
|
41478
41479
|
var ES = "es5";
|
|
41479
41480
|
var IS_ES_MODERN = false;
|
|
@@ -43458,7 +43459,11 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.showWordsCounter = tr
|
|
|
43458
43459
|
content = data;
|
|
43459
43460
|
}
|
|
43460
43461
|
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_10__.isArray)(content)) {
|
|
43461
|
-
this.
|
|
43462
|
+
var disabled = this.j.o.toolbarInlineDisabledButtons;
|
|
43463
|
+
this.toolbar.build(disabled.length ? content.filter(function(item) {
|
|
43464
|
+
var name = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_10__.isString)(item) ? item : item.name;
|
|
43465
|
+
return !disabled.includes(name !== null && name !== void 0 ? name : '');
|
|
43466
|
+
}) : content, target);
|
|
43462
43467
|
this.toolbar.buttonSize = this.j.o.toolbarButtonSize;
|
|
43463
43468
|
content = this.toolbar.container;
|
|
43464
43469
|
}
|
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.9.
|
|
4
|
+
* Version: v4.9.16
|
|
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.9.
|
|
11
|
+
* Version: v4.9.16
|
|
12
12
|
* Url: https://xdsoft.net/jodit/
|
|
13
13
|
* License(s): MIT
|
|
14
14
|
*/
|