jodit 4.20.1 → 4.20.3
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 +22 -0
- package/es2015/jodit.css +68 -9
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +10 -10
- package/es2015/jodit.js +309 -72
- 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 +10 -10
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +7 -7
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +68 -9
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +11 -11
- package/es2021/jodit.js +302 -72
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +7 -7
- 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 +68 -9
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +19 -19
- package/es2021.en/jodit.js +302 -72
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +19 -19
- 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 +45 -2
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +358 -74
- 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/modules/file-browser/builders/context-menu.js +6 -2
- package/esm/modules/toolbar/button/button.d.ts +10 -0
- package/esm/modules/toolbar/button/button.js +17 -2
- package/esm/modules/toolbar/button/select/select.d.ts +6 -0
- package/esm/modules/toolbar/button/select/select.js +18 -0
- package/esm/modules/toolbar/factory.js +3 -1
- package/esm/modules/widget/color-picker/color-picker.js +76 -18
- package/esm/plugins/anchor/anchor.d.ts +11 -0
- package/esm/plugins/anchor/anchor.js +84 -8
- package/esm/plugins/backspace/cases/check-not-collapsed.js +1 -1
- package/esm/plugins/delete/delete.d.ts +12 -0
- package/esm/plugins/delete/delete.js +66 -4
- package/esm/plugins/delete/interface.d.ts +4 -2
- package/esm/plugins/dtd/after-insert/remove-extra-br.js +7 -1
- package/esm/plugins/fullsize/config.js +2 -0
- package/esm/plugins/hr/hr.js +0 -1
- package/esm/plugins/line-height/config.js +0 -1
- package/esm/plugins/placeholder/placeholder.js +3 -1
- package/esm/types/toolbar.d.ts +2 -0
- package/package.json +1 -1
- package/types/modules/toolbar/button/button.d.ts +10 -0
- package/types/modules/toolbar/button/select/select.d.ts +6 -0
- package/types/plugins/anchor/anchor.d.ts +11 -0
- package/types/plugins/delete/delete.d.ts +12 -0
- package/types/plugins/delete/interface.d.ts +4 -2
- package/types/types/toolbar.d.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,28 @@
|
|
|
9
9
|
> - :house: [Internal]
|
|
10
10
|
> - :nail_care: [Polish]
|
|
11
11
|
|
|
12
|
+
## 4.20.3
|
|
13
|
+
|
|
14
|
+
#### :bug: Bug Fix
|
|
15
|
+
|
|
16
|
+
- [#1831](https://github.com/xdan/jodit/pull/1831), [#1784](https://github.com/xdan/jodit/issues/1784) Backspace and Delete over a whole formatted word preserve its formatting for the next letter. Links, noneditable elements and temporary wrappers are not carried into the typing position. Thanks [@brendon](https://github.com/brendon).
|
|
17
|
+
- [#1836](https://github.com/xdan/jodit/pull/1836), [#1834](https://github.com/xdan/jodit/issues/1834) An anchor counts as content even without text, so the placeholder disappears when it is the only content in the editor.
|
|
18
|
+
- [#1837](https://github.com/xdan/jodit/pull/1837), [#1835](https://github.com/xdan/jodit/issues/1835) Toolbar selects follow `allowTabNavigation`, with the same tabindex on their button and trigger as other toolbar buttons.
|
|
19
|
+
- [#1839](https://github.com/xdan/jodit/pull/1839), [#1838](https://github.com/xdan/jodit/issues/1838) The file browser preview removes its loader and shows navigation when an image fails to load; the image's alt text is the file name.
|
|
20
|
+
- [#1842](https://github.com/xdan/jodit/pull/1842), [#1841](https://github.com/xdan/jodit/issues/1841) Choosing a style on an empty line no longer leaves an invisible text node after the formatted element, which could make Right or End move the caret out of the formatting.
|
|
21
|
+
|
|
22
|
+
## 4.20.2
|
|
23
|
+
|
|
24
|
+
#### :bug: Bug Fix
|
|
25
|
+
|
|
26
|
+
- [#1827](https://github.com/xdan/jodit/pull/1827) Toolbar buttons expose `aria-pressed` only when their control has `isActive`, `tags` or `css`; selects and action buttons have none. The surrounding list item no longer has it. Custom toolbar controls that set `state.activated` through `update` also need `isActive` to retain toggle semantics. For styles on the wrapper, use `.jodit-toolbar-button_activated_true`; read `aria-pressed` from the nested button.
|
|
27
|
+
- [#1829](https://github.com/xdan/jodit/pull/1829) Color swatches and Remove are native buttons, with the current color exposed as pressed. Arrow keys follow the palette's layout in LTR and RTL, and Enter or Space applies a color. Custom styles or integrations selecting swatches as `span` elements should use `.jodit-color-picker__color-item` instead.
|
|
28
|
+
|
|
29
|
+
- [#1824](https://github.com/xdan/jodit/pull/1824) Pasted anchors with names already in use get the next free suffix, and links in the same paste follow the copy. This includes a DOM anchor returned by `processPaste`, with either `id` or the older `name` attribute. Thanks [@brendon](https://github.com/brendon).
|
|
30
|
+
- [#1825](https://github.com/xdan/jodit/pull/1825) Anchor markers stay within editors with the anchor plugin enabled; another editor on the page with the plugin disabled no longer shows them.
|
|
31
|
+
- [#1826](https://github.com/xdan/jodit/pull/1826) Anchor markers use the registered anchor icon and the theme's icon color, including the dark theme, with a default color in iframe mode.
|
|
32
|
+
- [#1828](https://github.com/xdan/jodit/pull/1828) Toolbar selects announce both their control and current value, such as "Font size, 16px", and update the name as the caret moves.
|
|
33
|
+
|
|
12
34
|
## 4.20.1
|
|
13
35
|
|
|
14
36
|
#### :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.20.
|
|
4
|
+
* Version: v4.20.3
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -355,7 +355,10 @@
|
|
|
355
355
|
opacity: 1;
|
|
356
356
|
outline: 0;
|
|
357
357
|
}
|
|
358
|
-
.jodit-ui-button:active:not([disabled])
|
|
358
|
+
.jodit-ui-button:active:not([disabled]) {
|
|
359
|
+
background-color: var(--jd-color-button-background-hover-opacity40);
|
|
360
|
+
outline: 0;
|
|
361
|
+
}
|
|
359
362
|
.jodit-ui-button[aria-pressed='true']:not([disabled]) {
|
|
360
363
|
background-color: var(--jd-color-button-background-hover-opacity40);
|
|
361
364
|
outline: 0;
|
|
@@ -2733,6 +2736,13 @@ a + .jodit-file-browser-tree__source-title {
|
|
|
2733
2736
|
.jodit-toolbar-button_variant_danger:focus:not([disabled]) {
|
|
2734
2737
|
outline: 1px dashed #bd2130;
|
|
2735
2738
|
}
|
|
2739
|
+
.jodit-toolbar-button_activated_true .jodit-toolbar-button__button:not([disabled]) {
|
|
2740
|
+
background-color: var(--jd-color-button-background-hover-opacity40);
|
|
2741
|
+
outline: 0;
|
|
2742
|
+
}
|
|
2743
|
+
.jodit-toolbar-button_activated_true .jodit-toolbar-button__button:hover:not([disabled]) {
|
|
2744
|
+
background-color: var(--jd-color-button-background-hover-opacity60);
|
|
2745
|
+
}
|
|
2736
2746
|
.jodit-toolbar-button__button {
|
|
2737
2747
|
cursor: pointer;
|
|
2738
2748
|
position: relative;
|
|
@@ -2761,7 +2771,10 @@ a + .jodit-file-browser-tree__source-title {
|
|
|
2761
2771
|
opacity: 1;
|
|
2762
2772
|
outline: 0;
|
|
2763
2773
|
}
|
|
2764
|
-
.jodit-toolbar-button__button:active:not([disabled])
|
|
2774
|
+
.jodit-toolbar-button__button:active:not([disabled]) {
|
|
2775
|
+
background-color: var(--jd-color-button-background-hover-opacity40);
|
|
2776
|
+
outline: 0;
|
|
2777
|
+
}
|
|
2765
2778
|
.jodit-toolbar-button__button[aria-pressed='true']:not([disabled]) {
|
|
2766
2779
|
background-color: var(--jd-color-button-background-hover-opacity40);
|
|
2767
2780
|
outline: 0;
|
|
@@ -2801,7 +2814,10 @@ a + .jodit-file-browser-tree__source-title {
|
|
|
2801
2814
|
opacity: 1;
|
|
2802
2815
|
outline: 0;
|
|
2803
2816
|
}
|
|
2804
|
-
.jodit-toolbar-button__trigger:active:not([disabled])
|
|
2817
|
+
.jodit-toolbar-button__trigger:active:not([disabled]) {
|
|
2818
|
+
background-color: var(--jd-color-button-background-hover-opacity40);
|
|
2819
|
+
outline: 0;
|
|
2820
|
+
}
|
|
2805
2821
|
.jodit-toolbar-button__trigger[aria-pressed='true']:not([disabled]) {
|
|
2806
2822
|
background-color: var(--jd-color-button-background-hover-opacity40);
|
|
2807
2823
|
outline: 0;
|
|
@@ -2890,7 +2906,10 @@ a + .jodit-file-browser-tree__source-title {
|
|
|
2890
2906
|
opacity: 1;
|
|
2891
2907
|
outline: 0;
|
|
2892
2908
|
}
|
|
2893
|
-
.jodit-toolbar-content:active:not([disabled])
|
|
2909
|
+
.jodit-toolbar-content:active:not([disabled]) {
|
|
2910
|
+
background-color: var(--jd-color-button-background-hover-opacity40);
|
|
2911
|
+
outline: 0;
|
|
2912
|
+
}
|
|
2894
2913
|
.jodit-toolbar-content[aria-pressed='true']:not([disabled]) {
|
|
2895
2914
|
background-color: var(--jd-color-button-background-hover-opacity40);
|
|
2896
2915
|
outline: 0;
|
|
@@ -3475,6 +3494,13 @@ a + .jodit-file-browser-tree__source-title {
|
|
|
3475
3494
|
.jodit-toolbar-select_variant_danger:focus:not([disabled]) {
|
|
3476
3495
|
outline: 1px dashed #bd2130;
|
|
3477
3496
|
}
|
|
3497
|
+
.jodit-toolbar-select_activated_true .jodit-toolbar-select__button:not([disabled]) {
|
|
3498
|
+
background-color: var(--jd-color-button-background-hover-opacity40);
|
|
3499
|
+
outline: 0;
|
|
3500
|
+
}
|
|
3501
|
+
.jodit-toolbar-select_activated_true .jodit-toolbar-select__button:hover:not([disabled]) {
|
|
3502
|
+
background-color: var(--jd-color-button-background-hover-opacity60);
|
|
3503
|
+
}
|
|
3478
3504
|
.jodit-toolbar-select__button {
|
|
3479
3505
|
cursor: pointer;
|
|
3480
3506
|
position: relative;
|
|
@@ -3503,7 +3529,10 @@ a + .jodit-file-browser-tree__source-title {
|
|
|
3503
3529
|
opacity: 1;
|
|
3504
3530
|
outline: 0;
|
|
3505
3531
|
}
|
|
3506
|
-
.jodit-toolbar-select__button:active:not([disabled])
|
|
3532
|
+
.jodit-toolbar-select__button:active:not([disabled]) {
|
|
3533
|
+
background-color: var(--jd-color-button-background-hover-opacity40);
|
|
3534
|
+
outline: 0;
|
|
3535
|
+
}
|
|
3507
3536
|
.jodit-toolbar-select__button[aria-pressed='true']:not([disabled]) {
|
|
3508
3537
|
background-color: var(--jd-color-button-background-hover-opacity40);
|
|
3509
3538
|
outline: 0;
|
|
@@ -3543,7 +3572,10 @@ a + .jodit-file-browser-tree__source-title {
|
|
|
3543
3572
|
opacity: 1;
|
|
3544
3573
|
outline: 0;
|
|
3545
3574
|
}
|
|
3546
|
-
.jodit-toolbar-select__trigger:active:not([disabled])
|
|
3575
|
+
.jodit-toolbar-select__trigger:active:not([disabled]) {
|
|
3576
|
+
background-color: var(--jd-color-button-background-hover-opacity40);
|
|
3577
|
+
outline: 0;
|
|
3578
|
+
}
|
|
3547
3579
|
.jodit-toolbar-select__trigger[aria-pressed='true']:not([disabled]) {
|
|
3548
3580
|
background-color: var(--jd-color-button-background-hover-opacity40);
|
|
3549
3581
|
outline: 0;
|
|
@@ -3601,7 +3633,10 @@ a + .jodit-file-browser-tree__source-title {
|
|
|
3601
3633
|
opacity: 1;
|
|
3602
3634
|
outline: 0;
|
|
3603
3635
|
}
|
|
3604
|
-
.jodit-toolbar-select:active:not([disabled])
|
|
3636
|
+
.jodit-toolbar-select:active:not([disabled]) {
|
|
3637
|
+
background-color: var(--jd-color-button-background-hover-opacity40);
|
|
3638
|
+
outline: 0;
|
|
3639
|
+
}
|
|
3605
3640
|
.jodit-toolbar-select[aria-pressed='true']:not([disabled]) {
|
|
3606
3641
|
background-color: var(--jd-color-button-background-hover-opacity40);
|
|
3607
3642
|
outline: 0;
|
|
@@ -3613,6 +3648,13 @@ a + .jodit-file-browser-tree__source-title {
|
|
|
3613
3648
|
opacity: 0.3;
|
|
3614
3649
|
pointer-events: none;
|
|
3615
3650
|
}
|
|
3651
|
+
.jodit-toolbar-select_activated_true:not([disabled]) {
|
|
3652
|
+
background-color: var(--jd-color-button-background-hover-opacity40);
|
|
3653
|
+
outline: 0;
|
|
3654
|
+
}
|
|
3655
|
+
.jodit-toolbar-select_activated_true:hover:not([disabled]) {
|
|
3656
|
+
background-color: var(--jd-color-button-background-hover-opacity60);
|
|
3657
|
+
}
|
|
3616
3658
|
.jodit-toolbar-select_font {
|
|
3617
3659
|
--jd-toolbar-select-own-width: var(--jd-toolbar-select-font-width, var(--jd-toolbar-select-width));
|
|
3618
3660
|
}
|
|
@@ -3882,7 +3924,9 @@ a + .jodit-file-browser-tree__source-title {
|
|
|
3882
3924
|
display: block;
|
|
3883
3925
|
width: var(--jd-color-picker-cell-size);
|
|
3884
3926
|
height: var(--jd-color-picker-cell-size);
|
|
3927
|
+
padding: 0;
|
|
3885
3928
|
border: 1px solid transparent;
|
|
3929
|
+
appearance: none;
|
|
3886
3930
|
text-align: center;
|
|
3887
3931
|
text-decoration: none;
|
|
3888
3932
|
vertical-align: middle;
|
|
@@ -3907,7 +3951,11 @@ a + .jodit-file-browser-tree__source-title {
|
|
|
3907
3951
|
padding: 2px;
|
|
3908
3952
|
margin-left: auto;
|
|
3909
3953
|
border: 1px solid transparent;
|
|
3954
|
+
appearance: none;
|
|
3955
|
+
background: none;
|
|
3956
|
+
color: inherit;
|
|
3910
3957
|
cursor: pointer;
|
|
3958
|
+
font: inherit;
|
|
3911
3959
|
}
|
|
3912
3960
|
.jodit-color-picker__remove:hover {
|
|
3913
3961
|
border-color: var(--jd-color-text);
|
|
@@ -3916,6 +3964,13 @@ a + .jodit-file-browser-tree__source-title {
|
|
|
3916
3964
|
width: 16px;
|
|
3917
3965
|
height: 16px;
|
|
3918
3966
|
}
|
|
3967
|
+
.jodit-color-picker__color-item:focus-visible,
|
|
3968
|
+
.jodit-color-picker__remove:focus-visible {
|
|
3969
|
+
position: relative;
|
|
3970
|
+
z-index: 1;
|
|
3971
|
+
outline: 2px solid var(--jd-color-text);
|
|
3972
|
+
outline-offset: 1px;
|
|
3973
|
+
}
|
|
3919
3974
|
.jodit-color-picker__hex input {
|
|
3920
3975
|
width: 80px;
|
|
3921
3976
|
padding: 2px 4px;
|
|
@@ -4112,7 +4167,10 @@ a + .jodit-file-browser-tree__source-title {
|
|
|
4112
4167
|
opacity: 1;
|
|
4113
4168
|
outline: 0;
|
|
4114
4169
|
}
|
|
4115
|
-
.jodit-ui-font-picker__item:active:not([disabled])
|
|
4170
|
+
.jodit-ui-font-picker__item:active:not([disabled]) {
|
|
4171
|
+
background-color: var(--jd-color-button-background-hover-opacity40);
|
|
4172
|
+
outline: 0;
|
|
4173
|
+
}
|
|
4116
4174
|
.jodit-ui-font-picker__item[aria-pressed='true']:not([disabled]) {
|
|
4117
4175
|
background-color: var(--jd-color-button-background-hover-opacity40);
|
|
4118
4176
|
outline: 0;
|
|
@@ -6046,6 +6104,7 @@ svg.jodit-icon {
|
|
|
6046
6104
|
.jodit_theme_dark .jodit-wysiwyg_iframe,
|
|
6047
6105
|
.jodit-dialog_theme_dark .jodit-wysiwyg,
|
|
6048
6106
|
.jodit_theme_dark .jodit-wysiwyg {
|
|
6107
|
+
--jd-color-icon: var(--jd-dark-icon-color);
|
|
6049
6108
|
background-color: var(--jd-dark-background-color);
|
|
6050
6109
|
color: var(--jd-dark-text-color);
|
|
6051
6110
|
}
|