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.
- package/CHANGELOG.md +41 -0
- package/es2015/jodit.css +4 -1
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +7 -7
- package/es2015/jodit.js +328 -49
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +7 -7
- 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.css +1 -1
- package/es2018/jodit.fat.min.js +8 -8
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +24 -24
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +4 -1
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +13 -9
- package/es2021/jodit.js +142 -13
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +23 -19
- 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 +4 -1
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +12 -8
- package/es2021.en/jodit.js +142 -13
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +11 -7
- 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 +7 -2
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +446 -57
- package/es5/jodit.min.css +3 -3
- 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 +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/esm/config.d.ts +4 -0
- package/esm/core/constants.js +1 -1
- package/esm/core/event-emitter/event-emitter.js +1 -1
- package/esm/core/request/ajax.d.ts +1 -0
- package/esm/core/request/ajax.js +104 -0
- package/esm/core/ui/button/tooltip/tooltip.js +11 -0
- package/esm/plugins/dtd/before-insert/check-block-nesting.js +13 -2
- package/esm/plugins/focus/focus.js +3 -1
- package/esm/plugins/font/config.js +9 -5
- package/esm/plugins/link/config.d.ts +4 -0
- package/esm/plugins/link/config.js +1 -0
- package/esm/plugins/link/link.js +4 -1
- package/esm/plugins/source/editor/engines/area.js +1 -1
- package/esm/types/ajax.d.ts +9 -0
- package/package.json +1 -1
- package/types/config.d.ts +4 -0
- package/types/core/request/ajax.d.ts +1 -0
- package/types/plugins/link/config.d.ts +4 -0
- 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.
|
|
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;
|