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/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.9.
|
|
4
|
+
* Version: v4.9.16
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -7995,8 +7995,8 @@ class DataProvider {
|
|
|
7995
7995
|
query.data.path = path;
|
|
7996
7996
|
query.data.name = name;
|
|
7997
7997
|
query.data.source = source;
|
|
7998
|
-
return this.get(type).then(()=>{
|
|
7999
|
-
return true;
|
|
7998
|
+
return this.get(type).then((resp)=>{
|
|
7999
|
+
return resp.data.newPath || true;
|
|
8000
8000
|
});
|
|
8001
8001
|
}
|
|
8002
8002
|
/**
|
|
@@ -13194,9 +13194,10 @@ const $$temp = ()=>{
|
|
|
13194
13194
|
};
|
|
13195
13195
|
a.href = url;
|
|
13196
13196
|
j.filebrowser.dataProvider.getPathByUrl(a.href.toString()).then((resp)=>{
|
|
13197
|
-
jodit_modules_image_editor_image_editor__WEBPACK_IMPORTED_MODULE_2__.openImageEditor.call(j.filebrowser, a.href, resp.name, resp.path, resp.source, ()=>{
|
|
13197
|
+
jodit_modules_image_editor_image_editor__WEBPACK_IMPORTED_MODULE_2__.openImageEditor.call(j.filebrowser, a.href, resp.name, resp.path, resp.source, (newPath)=>{
|
|
13198
13198
|
const timestamp = new Date().getTime();
|
|
13199
|
-
|
|
13199
|
+
const newUrl = newPath || url;
|
|
13200
|
+
state.values.imageSrc = newUrl + (newUrl.indexOf('?') !== -1 ? '' : '?') + '&_tmp=' + timestamp.toString();
|
|
13200
13201
|
}, (error)=>{
|
|
13201
13202
|
j.alert(error.message);
|
|
13202
13203
|
});
|
|
@@ -18972,11 +18973,11 @@ ImageEditor = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorat
|
|
|
18972
18973
|
/**
|
|
18973
18974
|
* Open Image Editor
|
|
18974
18975
|
*/ function openImageEditor(href, name, path, source, onSuccess, onFailed) {
|
|
18975
|
-
return this.getInstance('ImageEditor', this.o).open(href, (newname, box, success, failed)=>(0,jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_10__.call)(box.action === 'resize' ? this.dataProvider.resize : this.dataProvider.crop, path, source, name, newname, box.box).then((
|
|
18976
|
-
if (
|
|
18976
|
+
return this.getInstance('ImageEditor', this.o).open(href, (newname, box, success, failed)=>(0,jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_10__.call)(box.action === 'resize' ? this.dataProvider.resize : this.dataProvider.crop, path, source, name, newname, box.box).then((result)=>{
|
|
18977
|
+
if (result) {
|
|
18977
18978
|
success();
|
|
18978
18979
|
if (onSuccess) {
|
|
18979
|
-
onSuccess();
|
|
18980
|
+
onSuccess(typeof result === 'string' ? result : undefined);
|
|
18980
18981
|
}
|
|
18981
18982
|
}
|
|
18982
18983
|
}).catch((error)=>{
|
|
@@ -34776,7 +34777,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
34776
34777
|
* ```
|
|
34777
34778
|
* @packageDocumentation
|
|
34778
34779
|
* @module constants
|
|
34779
|
-
*/ const APP_VERSION = "4.9.
|
|
34780
|
+
*/ const APP_VERSION = "4.9.16";
|
|
34780
34781
|
// prettier-ignore
|
|
34781
34782
|
const ES = "es2021";
|
|
34782
34783
|
const IS_ES_MODERN = true;
|
|
@@ -36503,7 +36504,11 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.showWordsCounter = tr
|
|
|
36503
36504
|
content = data;
|
|
36504
36505
|
}
|
|
36505
36506
|
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isArray)(content)) {
|
|
36506
|
-
this.
|
|
36507
|
+
const disabled = this.j.o.toolbarInlineDisabledButtons;
|
|
36508
|
+
this.toolbar.build(disabled.length ? content.filter((item)=>{
|
|
36509
|
+
const name = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isString)(item) ? item : item.name;
|
|
36510
|
+
return !disabled.includes(name ?? '');
|
|
36511
|
+
}) : content, target);
|
|
36507
36512
|
this.toolbar.buttonSize = this.j.o.toolbarButtonSize;
|
|
36508
36513
|
content = this.toolbar.container;
|
|
36509
36514
|
}
|