jodit 4.20.1 → 4.20.2

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 (75) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/es2015/jodit.css +68 -9
  3. package/es2015/jodit.fat.min.css +1 -1
  4. package/es2015/jodit.fat.min.js +8 -8
  5. package/es2015/jodit.js +221 -53
  6. package/es2015/jodit.min.css +1 -1
  7. package/es2015/jodit.min.js +5 -5
  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 +5 -5
  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 +68 -9
  21. package/es2021/jodit.fat.min.css +1 -1
  22. package/es2021/jodit.fat.min.js +9 -9
  23. package/es2021/jodit.js +217 -53
  24. package/es2021/jodit.min.css +1 -1
  25. package/es2021/jodit.min.js +5 -5
  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 +68 -9
  33. package/es2021.en/jodit.fat.min.css +1 -1
  34. package/es2021.en/jodit.fat.min.js +17 -17
  35. package/es2021.en/jodit.js +217 -53
  36. package/es2021.en/jodit.min.css +1 -1
  37. package/es2021.en/jodit.min.js +17 -17
  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 +45 -2
  45. package/es5/jodit.fat.min.css +1 -1
  46. package/es5/jodit.fat.min.js +2 -2
  47. package/es5/jodit.js +262 -55
  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/core/constants.js +1 -1
  60. package/esm/modules/toolbar/button/button.d.ts +10 -0
  61. package/esm/modules/toolbar/button/button.js +17 -2
  62. package/esm/modules/toolbar/button/select/select.d.ts +6 -0
  63. package/esm/modules/toolbar/button/select/select.js +18 -0
  64. package/esm/modules/widget/color-picker/color-picker.js +76 -18
  65. package/esm/plugins/anchor/anchor.d.ts +11 -0
  66. package/esm/plugins/anchor/anchor.js +84 -8
  67. package/esm/plugins/fullsize/config.js +2 -0
  68. package/esm/plugins/hr/hr.js +0 -1
  69. package/esm/plugins/line-height/config.js +0 -1
  70. package/esm/types/toolbar.d.ts +2 -0
  71. package/package.json +1 -1
  72. package/types/modules/toolbar/button/button.d.ts +10 -0
  73. package/types/modules/toolbar/button/select/select.d.ts +6 -0
  74. package/types/plugins/anchor/anchor.d.ts +11 -0
  75. package/types/types/toolbar.d.ts +2 -0
package/CHANGELOG.md CHANGED
@@ -9,6 +9,18 @@
9
9
  > - :house: [Internal]
10
10
  > - :nail_care: [Polish]
11
11
 
12
+ ## 4.20.2
13
+
14
+ #### :bug: Bug Fix
15
+
16
+ - [#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.
17
+ - [#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.
18
+
19
+ - [#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).
20
+ - [#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.
21
+ - [#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.
22
+ - [#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.
23
+
12
24
  ## 4.20.1
13
25
 
14
26
  #### :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.1
4
+ * Version: v4.20.2
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
  }