jodit 4.11.11 → 4.11.14

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 (77) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/es2015/jodit.css +4 -1
  3. package/es2015/jodit.fat.min.css +1 -1
  4. package/es2015/jodit.fat.min.js +7 -7
  5. package/es2015/jodit.js +328 -49
  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 +8 -8
  16. package/es2018/jodit.min.css +1 -1
  17. package/es2018/jodit.min.js +24 -24
  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 +4 -1
  21. package/es2021/jodit.fat.min.css +1 -1
  22. package/es2021/jodit.fat.min.js +13 -9
  23. package/es2021/jodit.js +142 -13
  24. package/es2021/jodit.min.css +1 -1
  25. package/es2021/jodit.min.js +23 -19
  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 +4 -1
  33. package/es2021.en/jodit.fat.min.css +1 -1
  34. package/es2021.en/jodit.fat.min.js +12 -8
  35. package/es2021.en/jodit.js +142 -13
  36. package/es2021.en/jodit.min.css +1 -1
  37. package/es2021.en/jodit.min.js +11 -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 +7 -2
  45. package/es5/jodit.fat.min.css +1 -1
  46. package/es5/jodit.fat.min.js +2 -2
  47. package/es5/jodit.js +446 -57
  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 +4 -0
  60. package/esm/core/constants.js +1 -1
  61. package/esm/core/event-emitter/event-emitter.js +1 -1
  62. package/esm/core/request/ajax.d.ts +1 -0
  63. package/esm/core/request/ajax.js +104 -0
  64. package/esm/core/ui/button/tooltip/tooltip.js +11 -0
  65. package/esm/plugins/dtd/before-insert/check-block-nesting.js +13 -2
  66. package/esm/plugins/focus/focus.js +3 -1
  67. package/esm/plugins/font/config.js +9 -5
  68. package/esm/plugins/link/config.d.ts +4 -0
  69. package/esm/plugins/link/config.js +1 -0
  70. package/esm/plugins/link/link.js +4 -1
  71. package/esm/plugins/source/editor/engines/area.js +1 -1
  72. package/esm/types/ajax.d.ts +9 -0
  73. package/package.json +1 -1
  74. package/types/config.d.ts +4 -0
  75. package/types/core/request/ajax.d.ts +1 -0
  76. package/types/plugins/link/config.d.ts +4 -0
  77. package/types/types/ajax.d.ts +9 -0
package/CHANGELOG.md CHANGED
@@ -9,6 +9,47 @@
9
9
  > - :house: [Internal]
10
10
  > - :nail_care: [Polish]
11
11
 
12
+ ## 4.11.14
13
+
14
+ #### :rocket: New Feature
15
+
16
+ - Add `stream()` method to `Ajax` class for SSE (Server-Sent Events) streaming over XMLHttpRequest. Returns an `AsyncGenerator<string>` that yields parsed `data:` fields incrementally via `onprogress`.
17
+
18
+ ```js
19
+ const ajax = new Jodit.modules.Ajax({
20
+ method: 'POST',
21
+ url: '/api/ai/stream',
22
+ contentType: 'application/json',
23
+ data: { prompt: 'Hello' }
24
+ });
25
+
26
+ try {
27
+ for await (const data of ajax.stream()) {
28
+ const event = JSON.parse(data);
29
+ editor.s.insertHTML(event.text);
30
+ }
31
+ } finally {
32
+ ajax.destruct();
33
+ }
34
+ ```
35
+
36
+ #### :memo: Documentation
37
+
38
+ - Rewrite `src/core/request/README.md` with full API reference, usage examples, SSE streaming guide, AbortController integration, and real-world patterns (FileBrowser, Uploader, plugins).
39
+
40
+ ## 4.11.12
41
+
42
+ #### :rocket: New Feature
43
+
44
+ - Add `link.openInNewTabCheckboxDefaultChecked` option to set default state of "Open in new tab" checkbox when inserting a new link ([#1289](https://github.com/xdan/jodit/issues/1289))
45
+
46
+ #### :bug: Bug Fix
47
+
48
+ - Fix pasting table into table cell creating invalid nesting and trailing empty paragraph ([#1314](https://github.com/xdan/jodit/issues/1314))
49
+ - Fix font size module misbehavior in pt mode: duplicated unit display, incorrect active state, and wrong px/pt conversion ([#1197](https://github.com/xdan/jodit/issues/1197))
50
+ - Fix focus competition between multiple editor instances in Source mode ([#1313](https://github.com/xdan/jodit/issues/1313))
51
+ - Fix tooltip clipped by viewport when toolbar is near the bottom of the page ([#1150](https://github.com/xdan/jodit/issues/1150))
52
+
12
53
  ## 4.11.7
13
54
 
14
55
  #### :rocket: New Feature
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.11.11
4
+ * Version: v4.11.14
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -751,6 +751,9 @@
751
751
  .jodit-ui-tooltip.jodit-ui-tooltip_visible_true {
752
752
  opacity: 1;
753
753
  }
754
+ .jodit-ui-tooltip.jodit-ui-tooltip_above_true {
755
+ transform: translate(-50%, calc(var(--jd-padding-default) / -2));
756
+ }
754
757
 
755
758
  .jodit-ui-block {
756
759
  display: flex;