jodit 4.11.2 → 4.11.4
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 +5 -2
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +6 -6
- package/es2015/jodit.js +35 -18
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +4 -4
- 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 +6 -6
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +4 -4
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +5 -2
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +7 -7
- package/es2021/jodit.js +34 -17
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +5 -5
- 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 +5 -2
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +5 -5
- package/es2021.en/jodit.js +34 -17
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +5 -5
- 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 +8 -5
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +38 -18
- 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/core/constants.js +1 -1
- package/esm/core/ui/button/button/button.js +2 -1
- package/esm/core/ui/icon.js +5 -2
- package/esm/modules/toolbar/button/button.d.ts +1 -0
- package/esm/modules/toolbar/button/button.js +29 -19
- package/esm/types/toolbar.d.ts +2 -2
- package/esm/types/ui.d.ts +1 -0
- package/package.json +1 -1
- package/types/modules/toolbar/button/button.d.ts +1 -0
- package/types/types/toolbar.d.ts +2 -2
- package/types/types/ui.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,47 @@
|
|
|
9
9
|
> - :house: [Internal]
|
|
10
10
|
> - :nail_care: [Polish]
|
|
11
11
|
|
|
12
|
+
## 4.11.4
|
|
13
|
+
|
|
14
|
+
#### :boom: Breaking Change
|
|
15
|
+
|
|
16
|
+
- `.jodit-icon` `transform-origin` changed from `0 0 !important` to `var(--jd-icon-transform-origin)` (default `center`), and the `!important` flag was removed. If your layout depends on the old top-left origin, restore it via CSS:
|
|
17
|
+
```css
|
|
18
|
+
:root {
|
|
19
|
+
--jd-icon-transform-origin: 0 0 !important;
|
|
20
|
+
}
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
#### :rocket: New Feature
|
|
24
|
+
|
|
25
|
+
- `IUIIconState` now supports `scale` property — when set, applies `transform: scale(...)` to the SVG icon element, overriding the CSS variable
|
|
26
|
+
- `IControlType.icon` now accepts `string | IUIIconState` — allows setting icon name, fill, iconURL, and scale directly from toolbar button config
|
|
27
|
+
|
|
28
|
+
Per-button scale example:
|
|
29
|
+
```javascript
|
|
30
|
+
Jodit.make('#editor', {
|
|
31
|
+
buttons: Jodit.atom([
|
|
32
|
+
'bold',
|
|
33
|
+
{
|
|
34
|
+
name: 'big-italic',
|
|
35
|
+
icon: { name: 'italic', fill: '', iconURL: '', scale: 1.5 },
|
|
36
|
+
tooltip: 'Italic (large icon)'
|
|
37
|
+
},
|
|
38
|
+
'underline'
|
|
39
|
+
])
|
|
40
|
+
});
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
- CSS custom properties `--jd-icon-transform-origin` and `--jd-icon-transform-scale` for global icon scaling. Override them to resize all editor icons at once. Per-button `scale` in `IUIIconState` takes priority over the CSS variable.
|
|
44
|
+
|
|
45
|
+
Global scale override via CSS:
|
|
46
|
+
```css
|
|
47
|
+
:root {
|
|
48
|
+
--jd-icon-transform-scale: 1.3;
|
|
49
|
+
--jd-icon-transform-origin: center;
|
|
50
|
+
}
|
|
51
|
+
```
|
|
52
|
+
|
|
12
53
|
## 4.11.2
|
|
13
54
|
|
|
14
55
|
#### :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.11.
|
|
4
|
+
* Version: v4.11.4
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -4894,6 +4894,8 @@ html.jodit_fullsize-box_true {
|
|
|
4894
4894
|
--jd-button-df-size: calc((var(--jd-button-icon-size) - 4px) * 2);
|
|
4895
4895
|
--jd-button-size: calc(var(--jd-button-icon-size) + var(--jd-button-df-size) + var(--jd-margin-v) * 2);
|
|
4896
4896
|
--jd-focus-input-box-shadow: 0 0 0 0.05rem rgba(0, 123, 255, 0.25);
|
|
4897
|
+
--jd-icon-transform-origin: center;
|
|
4898
|
+
--jd-icon-transform-scale: 1;
|
|
4897
4899
|
}
|
|
4898
4900
|
/*!
|
|
4899
4901
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
@@ -5382,7 +5384,8 @@ input:focus + .jodit-switcher__slider {
|
|
|
5382
5384
|
background-size: contain;
|
|
5383
5385
|
fill: var(--jd-color-icon);
|
|
5384
5386
|
stroke: var(--jd-color-icon);
|
|
5385
|
-
transform-origin:
|
|
5387
|
+
transform-origin: var(--jd-icon-transform-origin);
|
|
5388
|
+
transform: scale(var(--jd-icon-transform-scale, 1));
|
|
5386
5389
|
}
|
|
5387
5390
|
.jodit-icon_close {
|
|
5388
5391
|
stroke: var(--jd-color-icon);
|