jodit 4.17.6 → 4.18.1

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 (102) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/es2015/jodit.css +87 -3
  3. package/es2015/jodit.fat.min.css +1 -1
  4. package/es2015/jodit.fat.min.js +8 -8
  5. package/es2015/jodit.js +808 -132
  6. package/es2015/jodit.min.css +1 -1
  7. package/es2015/jodit.min.js +16 -16
  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 +8 -8
  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 +87 -3
  21. package/es2021/jodit.fat.min.css +1 -1
  22. package/es2021/jodit.fat.min.js +14 -14
  23. package/es2021/jodit.js +788 -132
  24. package/es2021/jodit.min.css +1 -1
  25. package/es2021/jodit.min.js +14 -14
  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 +87 -3
  33. package/es2021.en/jodit.fat.min.css +1 -1
  34. package/es2021.en/jodit.fat.min.js +26 -26
  35. package/es2021.en/jodit.js +788 -132
  36. package/es2021.en/jodit.min.css +1 -1
  37. package/es2021.en/jodit.min.js +12 -12
  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 +92 -6
  45. package/es5/jodit.fat.min.css +1 -1
  46. package/es5/jodit.fat.min.js +2 -2
  47. package/es5/jodit.js +1073 -192
  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 +65 -2
  60. package/esm/config.js +29 -2
  61. package/esm/core/constants.js +1 -1
  62. package/esm/core/helpers/utils/align.d.ts +11 -5
  63. package/esm/core/helpers/utils/align.js +28 -8
  64. package/esm/core/helpers/utils/index.d.ts +1 -0
  65. package/esm/core/helpers/utils/index.js +1 -0
  66. package/esm/core/helpers/utils/media-wrapper.d.ts +29 -0
  67. package/esm/core/helpers/utils/media-wrapper.js +63 -0
  68. package/esm/core/selection/selection.js +3 -3
  69. package/esm/modules/toolbar/button/button.d.ts +18 -0
  70. package/esm/modules/toolbar/button/button.js +75 -5
  71. package/esm/plugins/dtd/after-insert/remove-extra-br.js +6 -1
  72. package/esm/plugins/dtd/before-insert/check-block-nesting.js +16 -1
  73. package/esm/plugins/dtd/config.js +3 -0
  74. package/esm/plugins/font/config.d.ts +12 -0
  75. package/esm/plugins/font/config.js +25 -10
  76. package/esm/plugins/font/font-picker.d.ts +51 -0
  77. package/esm/plugins/font/font-picker.js +238 -0
  78. package/esm/plugins/font/font.js +12 -0
  79. package/esm/plugins/font/google-fonts.d.ts +65 -0
  80. package/esm/plugins/font/google-fonts.js +143 -0
  81. package/esm/plugins/image-properties/readers/index.js +2 -1
  82. package/esm/plugins/image-properties/writers/index.js +2 -2
  83. package/esm/plugins/inline-popup/config/items/img.js +10 -8
  84. package/esm/plugins/inline-popup/inline-popup.js +13 -6
  85. package/esm/plugins/media/config.d.ts +26 -1
  86. package/esm/plugins/media/config.js +1 -3
  87. package/esm/plugins/media/media.js +12 -4
  88. package/esm/plugins/video/config.js +24 -4
  89. package/esm/types/toolbar.d.ts +2 -0
  90. package/esm/types/types.d.ts +13 -1
  91. package/package.json +1 -1
  92. package/types/config.d.ts +65 -2
  93. package/types/core/helpers/utils/align.d.ts +11 -5
  94. package/types/core/helpers/utils/index.d.ts +1 -0
  95. package/types/core/helpers/utils/media-wrapper.d.ts +29 -0
  96. package/types/modules/toolbar/button/button.d.ts +18 -0
  97. package/types/plugins/font/config.d.ts +12 -0
  98. package/types/plugins/font/font-picker.d.ts +51 -0
  99. package/types/plugins/font/google-fonts.d.ts +65 -0
  100. package/types/plugins/media/config.d.ts +26 -1
  101. package/types/types/toolbar.d.ts +2 -0
  102. package/types/types/types.d.ts +13 -1
@@ -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.17.6
4
+ * Version: v4.18.1
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -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.17.6
4
+ * Version: v4.18.1
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -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.17.6
4
+ * Version: v4.18.1
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -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.17.6
4
+ * Version: v4.18.1
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -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.17.6
4
+ * Version: v4.18.1
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -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.17.6
4
+ * Version: v4.18.1
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
package/es5/jodit.css CHANGED
@@ -1,14 +1,14 @@
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.17.6
4
+ * Version: v4.18.1
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
8
8
  /*!
9
9
  * jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
10
10
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
11
- * Version: v4.17.6
11
+ * Version: v4.18.1
12
12
  * Url: https://xdsoft.net/jodit/
13
13
  * License(s): MIT
14
14
  */
@@ -3728,7 +3728,8 @@ a + .jodit-file-browser-tree__source-title {
3728
3728
  -ms-flex-pack: justify;
3729
3729
  justify-content: space-between;
3730
3730
  cursor: pointer;
3731
- min-width: 100px;
3731
+ min-width: undefined;
3732
+ max-width: undefined;
3732
3733
  }
3733
3734
  .jodit-toolbar-select__icon {
3734
3735
  display: none;
@@ -4198,14 +4199,15 @@ a + .jodit-file-browser-tree__source-title {
4198
4199
  pointer-events: none;
4199
4200
  }
4200
4201
  .jodit-toolbar-select__text:not(:empty) {
4201
- -webkit-box-pack: left;
4202
- -ms-flex-pack: left;
4203
- justify-content: left;
4202
+ display: block;
4203
+ text-align: start;
4204
+ white-space: nowrap;
4204
4205
  }
4205
4206
  .jodit-toolbar-select__button {
4206
4207
  -webkit-box-flex: 1;
4207
4208
  -ms-flex: 1;
4208
4209
  flex: 1;
4210
+ min-width: 0;
4209
4211
  }
4210
4212
 
4211
4213
  /*!
@@ -4760,6 +4762,90 @@ a + .jodit-file-browser-tree__source-title {
4760
4762
  fill: rgba(0, 0, 0, 0.75);
4761
4763
  }
4762
4764
 
4765
+ /*!
4766
+ * Jodit Editor (https://xdsoft.net/jodit/)
4767
+ * Released under MIT see LICENSE.txt in the project root for license information.
4768
+ * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
4769
+ */
4770
+ .jodit-ui-font-picker {
4771
+ width: 240px;
4772
+ }
4773
+ .jodit-ui-font-picker__group + .jodit-ui-font-picker__group {
4774
+ margin-top: 8px;
4775
+ }
4776
+ .jodit-ui-font-picker__heading {
4777
+ padding: 8px 8px calc(8px / 4);
4778
+ color: #a5a5a5;
4779
+ font-size: 11px;
4780
+ line-height: 1;
4781
+ text-transform: uppercase;
4782
+ }
4783
+ .jodit-ui-font-picker__item {
4784
+ position: relative;
4785
+ -webkit-box-sizing: border-box;
4786
+ box-sizing: border-box;
4787
+ padding: 0;
4788
+ border: 0;
4789
+ -webkit-appearance: none;
4790
+ -moz-appearance: none;
4791
+ appearance: none;
4792
+ background: 0 0;
4793
+ -webkit-box-shadow: none;
4794
+ box-shadow: none;
4795
+ font-style: normal;
4796
+ outline: 0;
4797
+ text-align: center;
4798
+ text-decoration: none;
4799
+ text-transform: none;
4800
+ -webkit-user-select: none;
4801
+ -moz-user-select: none;
4802
+ -ms-user-select: none;
4803
+ user-select: none;
4804
+ cursor: pointer;
4805
+ font-family: -apple-system, blinkmacsystemfont, 'Segoe UI', roboto, oxygen-sans, ubuntu, cantarell, 'Helvetica Neue', sans-serif;
4806
+ font-size: 14px;
4807
+ display: block;
4808
+ overflow: hidden;
4809
+ width: 100%;
4810
+ min-height: calc(14px + calc((14px - 4px) * 2) + 2px * 2);
4811
+ padding: 0 8px;
4812
+ margin: 2px 0;
4813
+ border-radius: 3px;
4814
+ color: #222;
4815
+ text-align: start;
4816
+ text-overflow: ellipsis;
4817
+ white-space: nowrap;
4818
+ }
4819
+ .jodit-ui-font-picker__item:hover:not([disabled]) {
4820
+ background-color: #dcdcdc;
4821
+ opacity: 1;
4822
+ outline: 0;
4823
+ }
4824
+ .jodit-ui-font-picker__item:focus-visible:not([disabled]) {
4825
+ background-color: #dcdcdc;
4826
+ opacity: 1;
4827
+ outline: 0;
4828
+ }
4829
+ .jodit-ui-font-picker__item:active:not([disabled]) {
4830
+ background-color: rgba(220, 220, 220, 0.4);
4831
+ outline: 0;
4832
+ }
4833
+ .jodit-ui-font-picker__item[aria-pressed='true']:not([disabled]) {
4834
+ background-color: rgba(220, 220, 220, 0.4);
4835
+ outline: 0;
4836
+ }
4837
+ .jodit-ui-font-picker__item[aria-pressed='true']:hover:not([disabled]) {
4838
+ background-color: rgba(220, 220, 220, 0.6);
4839
+ }
4840
+ .jodit-ui-font-picker__item[disabled] {
4841
+ opacity: 0.3;
4842
+ pointer-events: none;
4843
+ }
4844
+ .jodit-ui-font-picker__item:focus:not([disabled]) {
4845
+ background-color: #dcdcdc;
4846
+ outline: 0;
4847
+ }
4848
+
4763
4849
  /*!
4764
4850
  * Jodit Editor (https://xdsoft.net/jodit/)
4765
4851
  * Released under MIT see LICENSE.txt in the project root for license information.