jodit 4.16.0 → 4.17.0

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 (80) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/es2015/jodit.css +11 -1
  3. package/es2015/jodit.fat.min.css +1 -1
  4. package/es2015/jodit.fat.min.js +7 -7
  5. package/es2015/jodit.js +176 -33
  6. package/es2015/jodit.min.css +1 -1
  7. package/es2015/jodit.min.js +7 -7
  8. package/es2015/plugins/debug/debug.css +1 -1
  9. package/es2015/plugins/debug/debug.js +1 -1
  10. package/es2015/plugins/debug/debug.min.js +1 -1
  11. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  12. package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
  13. package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
  14. package/es2018/jodit.fat.min.css +1 -1
  15. package/es2018/jodit.fat.min.js +7 -7
  16. package/es2018/jodit.min.css +1 -1
  17. package/es2018/jodit.min.js +7 -7
  18. package/es2018/plugins/debug/debug.min.js +1 -1
  19. package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
  20. package/es2021/jodit.css +11 -1
  21. package/es2021/jodit.fat.min.css +1 -1
  22. package/es2021/jodit.fat.min.js +7 -7
  23. package/es2021/jodit.js +168 -32
  24. package/es2021/jodit.min.css +1 -1
  25. package/es2021/jodit.min.js +7 -7
  26. package/es2021/plugins/debug/debug.css +1 -1
  27. package/es2021/plugins/debug/debug.js +1 -1
  28. package/es2021/plugins/debug/debug.min.js +1 -1
  29. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  30. package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
  31. package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
  32. package/es2021.en/jodit.css +11 -1
  33. package/es2021.en/jodit.fat.min.css +1 -1
  34. package/es2021.en/jodit.fat.min.js +7 -7
  35. package/es2021.en/jodit.js +168 -32
  36. package/es2021.en/jodit.min.css +1 -1
  37. package/es2021.en/jodit.min.js +7 -7
  38. package/es2021.en/plugins/debug/debug.css +1 -1
  39. package/es2021.en/plugins/debug/debug.js +1 -1
  40. package/es2021.en/plugins/debug/debug.min.js +1 -1
  41. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  42. package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
  43. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
  44. package/es5/jodit.css +15 -2
  45. package/es5/jodit.fat.min.css +1 -1
  46. package/es5/jodit.fat.min.js +2 -2
  47. package/es5/jodit.js +188 -33
  48. package/es5/jodit.min.css +3 -3
  49. package/es5/jodit.min.js +2 -2
  50. package/es5/plugins/debug/debug.css +1 -1
  51. package/es5/plugins/debug/debug.js +1 -1
  52. package/es5/plugins/debug/debug.min.js +1 -1
  53. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  54. package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
  55. package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
  56. package/es5/polyfills.fat.min.js +1 -1
  57. package/es5/polyfills.js +1 -1
  58. package/es5/polyfills.min.js +1 -1
  59. package/esm/config.d.ts +40 -1
  60. package/esm/core/constants.js +1 -1
  61. package/esm/modules/widget/file-selector/file-selector.d.ts +10 -1
  62. package/esm/modules/widget/file-selector/file-selector.js +30 -18
  63. package/esm/plugins/file/file.d.ts +24 -1
  64. package/esm/plugins/file/file.js +17 -1
  65. package/esm/plugins/iframe/config.js +4 -0
  66. package/esm/plugins/image-processor/image-processor.d.ts +5 -0
  67. package/esm/plugins/image-processor/image-processor.js +29 -2
  68. package/esm/plugins/inline-popup/config/items/img.js +22 -1
  69. package/esm/plugins/source/editor/engines/ace.js +2 -1
  70. package/esm/plugins/source/source.d.ts +17 -0
  71. package/esm/plugins/source/source.js +58 -10
  72. package/esm/plugins/video/config.d.ts +21 -1
  73. package/esm/plugins/video/config.js +22 -2
  74. package/package.json +1 -1
  75. package/types/config.d.ts +40 -1
  76. package/types/modules/widget/file-selector/file-selector.d.ts +10 -1
  77. package/types/plugins/file/file.d.ts +24 -1
  78. package/types/plugins/image-processor/image-processor.d.ts +5 -0
  79. package/types/plugins/source/source.d.ts +17 -0
  80. package/types/plugins/video/config.d.ts +21 -1
package/CHANGELOG.md CHANGED
@@ -9,6 +9,28 @@
9
9
  > - :house: [Internal]
10
10
  > - :nail_care: [Polish]
11
11
 
12
+ ## 4.17.0
13
+
14
+ #### :boom: Breaking Change
15
+
16
+ - [#1523](https://github.com/xdan/jodit/issues/1523) The file popup's Upload tab inserts every uploaded file as a link — an image too, since the file button was chosen over the image button. Before, an uploaded image went in as `<img>` through `uploader.defaultHandlerSuccess`. The new `file.defaultHandlerSuccess` option replaces what the tab inserts; to keep the old behaviour: `file: { defaultHandlerSuccess(data) { this.o.uploader.defaultHandlerSuccess.call(this, data); } }`. Thanks [@brendon](https://github.com/brendon).
17
+
18
+ #### :rocket: New Feature
19
+
20
+ - [#1509](https://github.com/xdan/jodit/issues/1509) The video popup has an Upload tab when an uploader is configured (`uploader.url` or `uploader.customUploadFunction`, unless `uploader.showTabInFileSelector` is `false`). Each uploaded file goes in as `<video controls src>`, and the new `video.defaultHandlerSuccess` option replaces that insertion. The tab is built by the new `UploadTab` helper, which the image and file popups use as well. Thanks [@brendon](https://github.com/brendon).
21
+ - [#1531](https://github.com/xdan/jodit/issues/1531) The image popup's align button shows the alignment of the image's line for an image with no alignment of its own, instead of always the left icon. Thanks [@brendon](https://github.com/brendon).
22
+
23
+ #### :bug: Bug Fix
24
+
25
+ - Opening the source view before ACE has loaded shows a plain textarea; when ACE arrives it now takes over that textarea's text, selection and focus as they are. Before, it was refilled from the WYSIWYG value, which dropped what had been typed since the last sync and normalised half-typed markup. Likewise js-beautify, arriving after the source view opened, formats the view right away when nothing has been typed into it, and leaves it alone otherwise.
26
+
27
+ ## 4.16.1
28
+
29
+ #### :bug: Bug Fix
30
+
31
+ - [#1526](https://github.com/xdan/jodit/issues/1526) Text typed into the source view is no longer replaced when js-beautify finishes loading after the source view opens; the beautifier formats the source view from the next time it opens. Thanks [@brendon](https://github.com/brendon).
32
+ - [#1528](https://github.com/xdan/jodit/issues/1528) In Safari, selecting a block image with text after it no longer highlights the rest of the image's line, and no highlight is left behind after changing the image's alignment. Thanks [@brendon](https://github.com/brendon).
33
+
12
34
  ## 4.16.0
13
35
 
14
36
  #### :boom: Breaking Change
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.16.0
4
+ * Version: v4.17.0
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -4059,6 +4059,16 @@ html.jodit_fullsize-box_true {
4059
4059
  height: 100%;
4060
4060
  }
4061
4061
 
4062
+ /*!
4063
+ * Jodit Editor (https://xdsoft.net/jodit/)
4064
+ * Released under MIT see LICENSE.txt in the project root for license information.
4065
+ * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
4066
+ */
4067
+ .jodit-wysiwyg.jodit-wysiwyg_image-selected::selection,
4068
+ .jodit-wysiwyg.jodit-wysiwyg_image-selected *:not(img)::selection {
4069
+ background: transparent;
4070
+ }
4071
+
4062
4072
  /*!
4063
4073
  * Jodit Editor (https://xdsoft.net/jodit/)
4064
4074
  * Released under MIT see LICENSE.txt in the project root for license information.