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.
Files changed (61) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/es2015/jodit.css +1 -1
  3. package/es2015/jodit.fat.min.js +5 -5
  4. package/es2015/jodit.js +15 -10
  5. package/es2015/jodit.min.js +5 -5
  6. package/es2015/plugins/debug/debug.css +1 -1
  7. package/es2015/plugins/debug/debug.js +1 -1
  8. package/es2015/plugins/debug/debug.min.js +1 -1
  9. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  10. package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
  11. package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
  12. package/es2018/jodit.fat.min.js +5 -5
  13. package/es2018/jodit.min.js +23 -23
  14. package/es2018/plugins/debug/debug.min.js +1 -1
  15. package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
  16. package/es2021/jodit.css +1 -1
  17. package/es2021/jodit.fat.min.js +5 -5
  18. package/es2021/jodit.js +15 -10
  19. package/es2021/jodit.min.js +5 -5
  20. package/es2021/plugins/debug/debug.css +1 -1
  21. package/es2021/plugins/debug/debug.js +1 -1
  22. package/es2021/plugins/debug/debug.min.js +1 -1
  23. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  24. package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
  25. package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
  26. package/es2021.en/jodit.css +1 -1
  27. package/es2021.en/jodit.fat.min.js +5 -5
  28. package/es2021.en/jodit.js +15 -10
  29. package/es2021.en/jodit.min.js +5 -5
  30. package/es2021.en/plugins/debug/debug.css +1 -1
  31. package/es2021.en/plugins/debug/debug.js +1 -1
  32. package/es2021.en/plugins/debug/debug.min.js +1 -1
  33. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  34. package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
  35. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
  36. package/es5/jodit.css +2 -2
  37. package/es5/jodit.fat.min.js +2 -2
  38. package/es5/jodit.js +15 -10
  39. package/es5/jodit.min.css +2 -2
  40. package/es5/jodit.min.js +2 -2
  41. package/es5/plugins/debug/debug.css +1 -1
  42. package/es5/plugins/debug/debug.js +1 -1
  43. package/es5/plugins/debug/debug.min.js +1 -1
  44. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  45. package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
  46. package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
  47. package/es5/polyfills.fat.min.js +2 -2
  48. package/es5/polyfills.js +1 -1
  49. package/es5/polyfills.min.js +2 -2
  50. package/esm/core/constants.js +1 -1
  51. package/esm/modules/file-browser/data-provider.d.ts +2 -2
  52. package/esm/modules/file-browser/data-provider.js +2 -2
  53. package/esm/modules/image-editor/image-editor.d.ts +1 -1
  54. package/esm/modules/image-editor/image-editor.js +3 -3
  55. package/esm/plugins/image-properties/utils/open-image-editor.js +4 -3
  56. package/esm/plugins/inline-popup/inline-popup.js +7 -1
  57. package/esm/types/file-browser.d.ts +3 -2
  58. package/package.json +1 -1
  59. package/types/modules/file-browser/data-provider.d.ts +2 -2
  60. package/types/modules/image-editor/image-editor.d.ts +1 -1
  61. 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.14
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
- state.values.imageSrc = url + (url.indexOf('?') !== -1 ? '' : '?') + '&_tmp=' + timestamp.toString();
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(ok) {
22876
- if (ok) {
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.14";
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.toolbar.build(content, target);
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.14
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.14
11
+ * Version: v4.9.16
12
12
  * Url: https://xdsoft.net/jodit/
13
13
  * License(s): MIT
14
14
  */