jodit 4.2.27 → 4.2.33

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 (162) hide show
  1. package/.nvmrc +1 -1
  2. package/CHANGELOG.md +110 -5
  3. package/es2015/jodit.css +11 -1
  4. package/es2015/jodit.fat.min.css +1 -1
  5. package/es2015/jodit.fat.min.js +2 -2
  6. package/es2015/jodit.js +354 -243
  7. package/es2015/jodit.min.css +1 -1
  8. package/es2015/jodit.min.js +2 -2
  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 +25 -18
  13. package/es2015/plugins/speech-recognize/speech-recognize.min.js +2 -2
  14. package/es2018/jodit.css +11 -1
  15. package/es2018/jodit.fat.min.css +1 -1
  16. package/es2018/jodit.fat.min.js +2 -2
  17. package/es2018/jodit.js +347 -236
  18. package/es2018/jodit.min.css +1 -1
  19. package/es2018/jodit.min.js +2 -2
  20. package/es2018/plugins/debug/debug.js +1 -1
  21. package/es2018/plugins/debug/debug.min.js +1 -1
  22. package/es2018/plugins/speech-recognize/speech-recognize.css +1 -1
  23. package/es2018/plugins/speech-recognize/speech-recognize.js +25 -18
  24. package/es2018/plugins/speech-recognize/speech-recognize.min.js +2 -2
  25. package/es2021/jodit.css +11 -1
  26. package/es2021/jodit.fat.min.css +1 -1
  27. package/es2021/jodit.fat.min.js +2 -2
  28. package/es2021/jodit.js +347 -236
  29. package/es2021/jodit.min.css +1 -1
  30. package/es2021/jodit.min.js +2 -2
  31. package/es2021/plugins/debug/debug.js +1 -1
  32. package/es2021/plugins/debug/debug.min.js +1 -1
  33. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  34. package/es2021/plugins/speech-recognize/speech-recognize.js +25 -18
  35. package/es2021/plugins/speech-recognize/speech-recognize.min.js +2 -2
  36. package/es2021.en/jodit.css +11 -1
  37. package/es2021.en/jodit.fat.min.css +1 -1
  38. package/es2021.en/jodit.fat.min.js +2 -2
  39. package/es2021.en/jodit.js +322 -230
  40. package/es2021.en/jodit.min.css +1 -1
  41. package/es2021.en/jodit.min.js +2 -2
  42. package/es2021.en/plugins/debug/debug.js +1 -1
  43. package/es2021.en/plugins/debug/debug.min.js +1 -1
  44. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  45. package/es2021.en/plugins/speech-recognize/speech-recognize.js +25 -18
  46. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +2 -2
  47. package/es5/164.fat.min.js +10 -0
  48. package/es5/164.js +4939 -0
  49. package/es5/164.min.js +10 -0
  50. package/es5/5.fat.min.js +10 -0
  51. package/es5/5.js +76 -0
  52. package/es5/5.min.js +10 -0
  53. package/es5/jodit.css +12 -2
  54. package/es5/jodit.fat.min.css +1 -1
  55. package/es5/jodit.fat.min.js +2 -2
  56. package/es5/jodit.js +777 -5685
  57. package/es5/jodit.min.css +3 -3
  58. package/es5/jodit.min.js +2 -2
  59. package/es5/plugins/debug/debug.js +1 -1
  60. package/es5/plugins/debug/debug.min.js +1 -1
  61. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  62. package/es5/plugins/speech-recognize/speech-recognize.js +26 -19
  63. package/es5/plugins/speech-recognize/speech-recognize.min.js +2 -2
  64. package/esm/config.js +3 -7
  65. package/esm/core/async/async.js +2 -1
  66. package/esm/core/constants.d.ts +2 -0
  67. package/esm/core/constants.js +10 -6
  68. package/esm/core/decorators/watch/watch.js +0 -1
  69. package/esm/core/dom/dom.js +2 -2
  70. package/esm/core/event-emitter/event-emitter.js +3 -3
  71. package/esm/core/global.js +13 -3
  72. package/esm/core/helpers/array/to-array.d.ts +1 -6
  73. package/esm/core/helpers/array/to-array.js +1 -1
  74. package/esm/core/helpers/async/set-timeout.d.ts +0 -3
  75. package/esm/core/helpers/async/set-timeout.js +3 -2
  76. package/esm/core/helpers/checker/has-browser-color-picker.d.ts +0 -3
  77. package/esm/core/helpers/checker/has-browser-color-picker.js +2 -1
  78. package/esm/core/helpers/checker/is-url.d.ts +0 -3
  79. package/esm/core/helpers/checker/is-url.js +2 -1
  80. package/esm/core/helpers/html/apply-styles.js +3 -3
  81. package/esm/core/helpers/html/clean-from-word.js +2 -1
  82. package/esm/core/helpers/html/htmlspecialchars.d.ts +0 -3
  83. package/esm/core/helpers/html/htmlspecialchars.js +2 -1
  84. package/esm/core/helpers/normalize/normalize-size.d.ts +1 -1
  85. package/esm/core/helpers/size/get-scroll-parent.js +3 -2
  86. package/esm/core/helpers/utils/complete-url.js +2 -1
  87. package/esm/core/helpers/utils/convert-media-url-to-video-embed.js +2 -1
  88. package/esm/core/helpers/utils/default-language.js +3 -2
  89. package/esm/core/helpers/utils/reset.js +3 -3
  90. package/esm/core/request/ajax.js +2 -1
  91. package/esm/core/selection/selection.js +1 -0
  92. package/esm/core/selection/style/api/has-same-style.js +15 -10
  93. package/esm/core/selection/style/api/toggle-attributes.js +2 -1
  94. package/esm/core/selection/style/commit-style.d.ts +1 -1
  95. package/esm/core/ui/form/inputs/file/file.d.ts +1 -0
  96. package/esm/core/ui/form/inputs/file/file.js +1 -0
  97. package/esm/core/ui/form/validators/input.d.ts +3 -3
  98. package/esm/core/ui/form/validators/select.d.ts +1 -1
  99. package/esm/jodit.js +3 -0
  100. package/esm/modules/file-browser/config.js +9 -1
  101. package/esm/modules/file-browser/data-provider.js +0 -1
  102. package/esm/modules/file-browser/file-browser.js +0 -1
  103. package/esm/modules/table/table.js +0 -1
  104. package/esm/modules/toolbar/button/button.d.ts +1 -1
  105. package/esm/plugins/backspace/cases/check-remove-char.js +1 -0
  106. package/esm/plugins/clean-html/config.d.ts +3 -3
  107. package/esm/plugins/iframe/config.d.ts +15 -3
  108. package/esm/plugins/iframe/config.js +1 -0
  109. package/esm/plugins/iframe/iframe.js +3 -0
  110. package/esm/plugins/indent/helpers.d.ts +1 -1
  111. package/esm/plugins/inline-popup/config/items/a.d.ts +2 -2
  112. package/esm/plugins/inline-popup/config/items/cells.d.ts +1 -1
  113. package/esm/plugins/inline-popup/config/items/img.d.ts +1 -1
  114. package/esm/plugins/search/config.js +2 -2
  115. package/esm/plugins/search/helpers/highlight-text-ranges.d.ts +2 -1
  116. package/esm/plugins/search/helpers/highlight-text-ranges.js +15 -4
  117. package/esm/plugins/search/search.d.ts +2 -2
  118. package/esm/plugins/search/search.js +8 -7
  119. package/esm/plugins/search/ui/search.js +3 -3
  120. package/esm/plugins/source/editor/engines/ace.d.ts +0 -1
  121. package/esm/plugins/speech-recognize/config.js +1 -1
  122. package/esm/plugins/speech-recognize/helpers/api.d.ts +1 -1
  123. package/esm/plugins/speech-recognize/helpers/api.js +5 -2
  124. package/esm/plugins/speech-recognize/helpers/sound.js +6 -4
  125. package/esm/plugins/stat/config.d.ts +1 -0
  126. package/esm/plugins/stat/config.js +1 -0
  127. package/esm/plugins/stat/stat.js +14 -3
  128. package/esm/plugins/symbols/langs/index.d.ts +2 -1
  129. package/esm/plugins/symbols/langs/index.js +2 -1
  130. package/esm/plugins/symbols/langs/ua.d.ts +1 -0
  131. package/esm/plugins/symbols/langs/ua.js +9 -0
  132. package/esm/polyfills.d.ts +10 -0
  133. package/esm/polyfills.js +54 -0
  134. package/esm/tsconfig.json +1 -1
  135. package/package.json +1 -1
  136. package/types/core/constants.d.ts +2 -0
  137. package/types/core/helpers/array/to-array.d.ts +1 -6
  138. package/types/core/helpers/async/set-timeout.d.ts +0 -3
  139. package/types/core/helpers/checker/has-browser-color-picker.d.ts +0 -3
  140. package/types/core/helpers/checker/is-url.d.ts +0 -3
  141. package/types/core/helpers/html/htmlspecialchars.d.ts +0 -3
  142. package/types/core/helpers/normalize/normalize-size.d.ts +1 -1
  143. package/types/core/selection/style/commit-style.d.ts +1 -1
  144. package/types/core/ui/form/inputs/file/file.d.ts +1 -0
  145. package/types/core/ui/form/validators/input.d.ts +3 -3
  146. package/types/core/ui/form/validators/select.d.ts +1 -1
  147. package/types/modules/toolbar/button/button.d.ts +1 -1
  148. package/types/plugins/clean-html/config.d.ts +3 -3
  149. package/types/plugins/iframe/config.d.ts +15 -3
  150. package/types/plugins/indent/helpers.d.ts +1 -1
  151. package/types/plugins/inline-popup/config/items/a.d.ts +2 -2
  152. package/types/plugins/inline-popup/config/items/cells.d.ts +1 -1
  153. package/types/plugins/inline-popup/config/items/img.d.ts +1 -1
  154. package/types/plugins/search/helpers/highlight-text-ranges.d.ts +2 -1
  155. package/types/plugins/search/search.d.ts +2 -2
  156. package/types/plugins/source/editor/engines/ace.d.ts +0 -1
  157. package/types/plugins/speech-recognize/helpers/api.d.ts +1 -1
  158. package/types/plugins/stat/config.d.ts +1 -0
  159. package/types/plugins/symbols/langs/index.d.ts +2 -1
  160. package/types/plugins/symbols/langs/ua.d.ts +1 -0
  161. package/types/polyfills.d.ts +10 -0
  162. package/types/tsconfig.json +1 -1
package/.nvmrc CHANGED
@@ -1 +1 @@
1
- 18
1
+ 20
package/CHANGELOG.md CHANGED
@@ -9,6 +9,111 @@
9
9
  > - :house: [Internal]
10
10
  > - :nail_care: [Polish]
11
11
 
12
+ ## 4.2.33
13
+
14
+ ### :bug: Bug Fix
15
+
16
+ - Fixed bug inside Search plugin with Highlight API. When selection was not cleared
17
+
18
+ ## 4.2.32
19
+
20
+ ### :rocket: New Feature
21
+
22
+ - Added option `iframeSandbox: string | null = null;` Apply the `sandbox` attribute to the iframe element. The value of the attribute is a space-separated list of directives. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#attr-sandbox
23
+ Issue: https://github.com/xdan/jodit/issues/1186
24
+
25
+ ```typescript
26
+ Jodit.make('#editor', {
27
+ iframe: true,
28
+ iframeSandbox: 'allow-scripts allow-same-origin'
29
+ });
30
+ ```
31
+
32
+ #### :house: Internal
33
+
34
+ - Move to ESLint 9
35
+ - Update dependencies
36
+
37
+ ```plain
38
+ @playwright/test ^1.45.0 → ^1.48.0
39
+ @types/mocha ^10.0.7 → ^10.0.9
40
+ @types/node ^20.14.9 → ^22.7.5
41
+ @types/yargs ^17.0.32 → ^17.0.33
42
+ @typescript-eslint/eslint-plugin ^7.14.1 → ^8.8.1
43
+ @typescript-eslint/parser ^7.14.1 → ^8.8.1
44
+ autoprefixer ^10.4.19 → ^10.4.20
45
+ axios ^1.7.2 → ^1.7.7
46
+ core-js ^3.37.1 → ^3.38.1
47
+ cssnano-preset-advanced ^7.0.3 → ^7.0.6
48
+ eslint ^8.57.0 → ^9.12.0
49
+ eslint-plugin-import ^2.29.1 → ^2.31.0
50
+ eslint-plugin-mocha ^10.4.3 → ^10.5.0
51
+ eslint-plugin-prettier ^5.1.3 → ^5.2.1
52
+ eslint-plugin-simple-import-sort ^12.1.0 → ^12.1.1
53
+ glob ^10.4.2 → ^11.0.0
54
+ karma ^6.4.3 → ^6.4.4
55
+ mini-css-extract-plugin ^2.9.0 → ^2.9.1
56
+ mocha ^10.5.1 → ^10.7.3
57
+ node-jq ^4.4.0 → ^6.0.1
58
+ postcss >=8.4.38 → >=8.4.47
59
+ prettier ^3.3.2 → ^3.3.3
60
+ stylelint ^16.6.1 → ^16.10.0
61
+ stylelint-prettier ^5.0.0 → ^5.0.2
62
+ tslib ^2.6.3 → ^2.7.0
63
+ typescript ^5.5.2 → ^5.6.3
64
+ webpack 5.92.1 → 5.95.0
65
+ webpack-dev-middleware ^7.2.1 → ^7.4.2
66
+ webpack-dev-server ^5.0.4 → ^5.1.0
67
+ ```
68
+
69
+ ## 4.2.28
70
+
71
+ ### :rocket: New Feature
72
+
73
+ - Added option `countTextSpaces: boolean = false;` Issue https://github.com/xdan/jodit/issues/1144
74
+
75
+ ```typescript
76
+ Jodit.make('#editor', {
77
+ countTextSpaces: true
78
+ });
79
+ ```
80
+
81
+ ### :bug: Bug Fix
82
+
83
+ - [Menu Item Popups Hidden when Jodit is inside an <dialog> element #1146](https://github.com/xdan/jodit/issues/1146)
84
+
85
+ #### :house: Internal
86
+
87
+ - Use node 20 for build
88
+ - Update dependencies
89
+
90
+ ```plain
91
+ @playwright/test ^1.43.1 → ^1.45.0
92
+ @types/mocha ^10.0.6 → ^10.0.7
93
+ @types/node ^20.12.5 → ^20.14.9
94
+ @typescript-eslint/eslint-plugin ^7.5.0 → ^7.14.1
95
+ @typescript-eslint/parser ^7.5.0 → ^7.14.1
96
+ axios ^1.6.8 → ^1.7.2
97
+ core-js ^3.36.1 → ^3.37.1
98
+ css-loader ^7.0.0 → ^7.1.2
99
+ css-minimizer-webpack-plugin ^6.0.0 → ^7.0.0
100
+ cssnano-preset-advanced ^6.1.2 → ^7.0.3
101
+ eslint-plugin-mocha ^10.4.1 → ^10.4.3
102
+ eslint-plugin-simple-import-sort ^12.0.0 → ^12.1.0
103
+ eslint-plugin-tsdoc ^0.2.17 → ^0.3.0
104
+ glob ^10.3.12 → ^10.4.2
105
+ mini-css-extract-plugin ^2.8.1 → ^2.9.0
106
+ mocha ^10.4.0 → ^10.5.1
107
+ node-jq ^4.3.1 → ^4.4.0
108
+ prettier ^3.2.5 → ^3.3.2
109
+ style-loader ^3.3.4 → ^4.0.0
110
+ stylelint ^16.3.1 → ^16.6.1
111
+ stylelint-config-standard ^36.0.0 → ^36.0.1
112
+ tslib ^2.6.2 → ^2.6.3
113
+ typescript ^5.4.5 → ^5.5.2
114
+ webpack 5.91.0 → 5.92.1
115
+ ```
116
+
12
117
  ## 4.2.26
13
118
 
14
119
  ### :bug: Bug Fix
@@ -2730,11 +2835,11 @@ Related with https://github.com/xdan/jodit/issues/574. In some cases need to lim
2730
2835
  - @property {IUIOption[]} link.selectOptionsClassName=[] The list of the option for the select (to use with
2731
2836
  modeClassName="select")
2732
2837
  - ex: [
2733
- - { value: "", text: "" },
2734
- - { value: "val1", text: "text1" },
2735
- - { value: "val2", text: "text2" },
2736
- - { value: "val3", text: "text3" }
2737
- - ]
2838
+ - { value: "", text: "" },
2839
+ - { value: "val1", text: "text1" },
2840
+ - { value: "val2", text: "text2" },
2841
+ - { value: "val3", text: "text3" }
2842
+ - ]
2738
2843
  PR: https://github.com/xdan/jodit/pull/577 Thanks @s-renier-taonix-fr
2739
2844
 
2740
2845
  ##### New option `statusbar: boolean = true`
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.2.27
4
+ * Version: v4.2.33
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -98,6 +98,8 @@
98
98
  display: inline-flex;
99
99
  flex-grow: 1;
100
100
  justify-content: center;
101
+ text-overflow: ellipsis;
102
+ overflow: hidden;
101
103
  }
102
104
  .jodit-ui-button-icon-text_context_menu .jodit-ui-button-icon-text__text {
103
105
  position: relative;
@@ -533,6 +535,8 @@
533
535
  display: inline-flex;
534
536
  flex-grow: 1;
535
537
  justify-content: center;
538
+ text-overflow: ellipsis;
539
+ overflow: hidden;
536
540
  }
537
541
  .jodit-ui-button_context_menu .jodit-ui-button__text {
538
542
  position: relative;
@@ -1537,6 +1541,8 @@
1537
1541
  display: inline-flex;
1538
1542
  flex-grow: 1;
1539
1543
  justify-content: center;
1544
+ text-overflow: ellipsis;
1545
+ overflow: hidden;
1540
1546
  }
1541
1547
  .jodit-toolbar-button_context_menu .jodit-toolbar-button__text {
1542
1548
  position: relative;
@@ -1895,6 +1901,8 @@
1895
1901
  display: inline-flex;
1896
1902
  flex-grow: 1;
1897
1903
  justify-content: center;
1904
+ text-overflow: ellipsis;
1905
+ overflow: hidden;
1898
1906
  }
1899
1907
  .jodit-toolbar-content_context_menu .jodit-toolbar-content__text {
1900
1908
  position: relative;
@@ -2108,6 +2116,8 @@
2108
2116
  display: inline-flex;
2109
2117
  flex-grow: 1;
2110
2118
  justify-content: center;
2119
+ text-overflow: ellipsis;
2120
+ overflow: hidden;
2111
2121
  }
2112
2122
  .jodit-toolbar-select_context_menu .jodit-toolbar-select__text {
2113
2123
  position: relative;