jodit 4.12.33 → 4.12.35

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 (56) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/es2015/jodit.css +1 -1
  3. package/es2015/jodit.fat.min.js +4 -4
  4. package/es2015/jodit.js +24 -6
  5. package/es2015/jodit.min.js +4 -4
  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 +4 -4
  13. package/es2018/jodit.min.js +4 -4
  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 +24 -6
  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 +24 -6
  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 +21 -5
  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 +1 -1
  48. package/es5/polyfills.js +1 -1
  49. package/es5/polyfills.min.js +1 -1
  50. package/esm/core/constants.js +1 -1
  51. package/esm/core/request/ajax.js +1 -1
  52. package/esm/modules/dialog/dialog.js +6 -1
  53. package/esm/modules/image-editor/image-editor.js +26 -13
  54. package/esm/types/types.d.ts +8 -1
  55. package/package.json +1 -1
  56. package/types/types/types.d.ts +8 -1
package/CHANGELOG.md CHANGED
@@ -9,6 +9,33 @@
9
9
  > - :house: [Internal]
10
10
  > - :nail_care: [Polish]
11
11
 
12
+ ## 4.12.35
13
+
14
+ #### :bug: Bug Fix
15
+
16
+ - **Ajax / GET requests**: when a request URL already contained a query string (e.g. `filebrowser.ajax.url: '/connector/index.php?uid=123'`), `prepareRequest` corrupted it — `parseQuery` received the whole URL instead of just its query part, so the URL path was glued into the first parameter name (`index.php?connector%2Findex.php%3Fuid=123&...`) and the baked-in parameters were duplicated instead of being merged with (and overridden by) the request data. The query part is now extracted before parsing, so URL parameters merge cleanly and `data` keys take priority. Reported by a customer (EventSystemPro, Jodit Multi PRO).
17
+
18
+ ## 4.12.34
19
+
20
+ #### :rocket: New Feature
21
+
22
+ - **Image editor / `openImageEditor` save contract**: `ImageEditorActionBox.action` now also accepts `'saved'` (plus an optional `newPath`). A replacement image editor (e.g. the Jodit PRO one, which uploads the fully edited blob itself through the connector's `imageSave` action) can report "the file is already persisted" — the core then skips the server `resize`/`crop` request and only runs the success wiring (file browser refresh, in-content `<img>` swap via `onSuccess(newPath)`). Previously every save was forced through `dataProvider.resize`/`crop`, which produced a redundant request that could 404 ("Source not found") when the editor was opened from the Image properties dialog.
23
+
24
+ #### :bug: Bug Fix
25
+
26
+ - **Dialog**: destructing a dialog from its own `afterClose` handler (a common pattern for one-shot dialogs, e.g. the finder preview lightbox) made `close()` throw `TypeError: Need subject` — after the handler ran, `close()` still fired `joditCloseDialog` on `this.ow`, which the destructor had already cleared. `close()` now skips that fire when the dialog is being destructed.
27
+
28
+ ## 4.12.33
29
+
30
+ #### :bug: Bug Fix
31
+
32
+ - **Image properties / edit remote image**: when downloading an external image to the host failed, the alert displayed the raw template `There was an error loading %s` — the error message was passed as `alert`'s second argument (the callback slot) instead of being substituted into the placeholder. The message is now formatted through `i18n('There was an error loading %s', error.message)`, so the alert shows the actual (translated) error.
33
+
34
+ #### :house: Internal
35
+
36
+ - **ESM build**: `@jodit/image-editor` added to the `allowPackages` allowlist of the alias-imports resolver, so the ESM build keeps the package as an external import — groundwork for the Jodit PRO image editor built on it.
37
+ - **Image editor tests**: expanded crop/resize scenarios (with and without aspect ratio) and new acceptance tests for the `afterImageEditorSave` event (correct `action`/`box` payload on Save / Save as).
38
+
12
39
  ## 4.12.32
13
40
 
14
41
  #### :bug: Bug Fix
package/es2015/jodit.css 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.12.33
4
+ * Version: v4.12.35
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */