jodit 4.2.27 → 4.2.32

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 (156) hide show
  1. package/.nvmrc +1 -1
  2. package/CHANGELOG.md +104 -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 +330 -230
  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 +324 -224
  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 +324 -224
  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 +299 -218
  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 +753 -5684
  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.js +3 -1
  116. package/esm/plugins/source/editor/engines/ace.d.ts +0 -1
  117. package/esm/plugins/speech-recognize/config.js +1 -1
  118. package/esm/plugins/speech-recognize/helpers/api.d.ts +1 -1
  119. package/esm/plugins/speech-recognize/helpers/api.js +5 -2
  120. package/esm/plugins/speech-recognize/helpers/sound.js +6 -4
  121. package/esm/plugins/stat/config.d.ts +1 -0
  122. package/esm/plugins/stat/config.js +1 -0
  123. package/esm/plugins/stat/stat.js +14 -3
  124. package/esm/plugins/symbols/langs/index.d.ts +2 -1
  125. package/esm/plugins/symbols/langs/index.js +2 -1
  126. package/esm/plugins/symbols/langs/ua.d.ts +1 -0
  127. package/esm/plugins/symbols/langs/ua.js +9 -0
  128. package/esm/polyfills.d.ts +10 -0
  129. package/esm/polyfills.js +54 -0
  130. package/esm/tsconfig.json +1 -1
  131. package/package.json +1 -1
  132. package/types/core/constants.d.ts +2 -0
  133. package/types/core/helpers/array/to-array.d.ts +1 -6
  134. package/types/core/helpers/async/set-timeout.d.ts +0 -3
  135. package/types/core/helpers/checker/has-browser-color-picker.d.ts +0 -3
  136. package/types/core/helpers/checker/is-url.d.ts +0 -3
  137. package/types/core/helpers/html/htmlspecialchars.d.ts +0 -3
  138. package/types/core/helpers/normalize/normalize-size.d.ts +1 -1
  139. package/types/core/selection/style/commit-style.d.ts +1 -1
  140. package/types/core/ui/form/inputs/file/file.d.ts +1 -0
  141. package/types/core/ui/form/validators/input.d.ts +3 -3
  142. package/types/core/ui/form/validators/select.d.ts +1 -1
  143. package/types/modules/toolbar/button/button.d.ts +1 -1
  144. package/types/plugins/clean-html/config.d.ts +3 -3
  145. package/types/plugins/iframe/config.d.ts +15 -3
  146. package/types/plugins/indent/helpers.d.ts +1 -1
  147. package/types/plugins/inline-popup/config/items/a.d.ts +2 -2
  148. package/types/plugins/inline-popup/config/items/cells.d.ts +1 -1
  149. package/types/plugins/inline-popup/config/items/img.d.ts +1 -1
  150. package/types/plugins/source/editor/engines/ace.d.ts +0 -1
  151. package/types/plugins/speech-recognize/helpers/api.d.ts +1 -1
  152. package/types/plugins/stat/config.d.ts +1 -0
  153. package/types/plugins/symbols/langs/index.d.ts +2 -1
  154. package/types/plugins/symbols/langs/ua.d.ts +1 -0
  155. package/types/polyfills.d.ts +10 -0
  156. package/types/tsconfig.json +1 -1
package/.nvmrc CHANGED
@@ -1 +1 @@
1
- 18
1
+ 20
package/CHANGELOG.md CHANGED
@@ -9,6 +9,105 @@
9
9
  > - :house: [Internal]
10
10
  > - :nail_care: [Polish]
11
11
 
12
+ ## 4.2.32
13
+
14
+ ### :rocket: New Feature
15
+
16
+ - 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
17
+ Issue: https://github.com/xdan/jodit/issues/1186
18
+
19
+ ```typescript
20
+ Jodit.make('#editor', {
21
+ iframe: true,
22
+ iframeSandbox: 'allow-scripts allow-same-origin'
23
+ });
24
+ ```
25
+
26
+ #### :house: Internal
27
+
28
+ - Move to ESLint 9
29
+ - Update dependencies
30
+
31
+ ```plain
32
+ @playwright/test ^1.45.0 → ^1.48.0
33
+ @types/mocha ^10.0.7 → ^10.0.9
34
+ @types/node ^20.14.9 → ^22.7.5
35
+ @types/yargs ^17.0.32 → ^17.0.33
36
+ @typescript-eslint/eslint-plugin ^7.14.1 → ^8.8.1
37
+ @typescript-eslint/parser ^7.14.1 → ^8.8.1
38
+ autoprefixer ^10.4.19 → ^10.4.20
39
+ axios ^1.7.2 → ^1.7.7
40
+ core-js ^3.37.1 → ^3.38.1
41
+ cssnano-preset-advanced ^7.0.3 → ^7.0.6
42
+ eslint ^8.57.0 → ^9.12.0
43
+ eslint-plugin-import ^2.29.1 → ^2.31.0
44
+ eslint-plugin-mocha ^10.4.3 → ^10.5.0
45
+ eslint-plugin-prettier ^5.1.3 → ^5.2.1
46
+ eslint-plugin-simple-import-sort ^12.1.0 → ^12.1.1
47
+ glob ^10.4.2 → ^11.0.0
48
+ karma ^6.4.3 → ^6.4.4
49
+ mini-css-extract-plugin ^2.9.0 → ^2.9.1
50
+ mocha ^10.5.1 → ^10.7.3
51
+ node-jq ^4.4.0 → ^6.0.1
52
+ postcss >=8.4.38 → >=8.4.47
53
+ prettier ^3.3.2 → ^3.3.3
54
+ stylelint ^16.6.1 → ^16.10.0
55
+ stylelint-prettier ^5.0.0 → ^5.0.2
56
+ tslib ^2.6.3 → ^2.7.0
57
+ typescript ^5.5.2 → ^5.6.3
58
+ webpack 5.92.1 → 5.95.0
59
+ webpack-dev-middleware ^7.2.1 → ^7.4.2
60
+ webpack-dev-server ^5.0.4 → ^5.1.0
61
+ ```
62
+
63
+ ## 4.2.28
64
+
65
+ ### :rocket: New Feature
66
+
67
+ - Added option `countTextSpaces: boolean = false;` Issue https://github.com/xdan/jodit/issues/1144
68
+
69
+ ```typescript
70
+ Jodit.make('#editor', {
71
+ countTextSpaces: true
72
+ });
73
+ ```
74
+
75
+ ### :bug: Bug Fix
76
+
77
+ - [Menu Item Popups Hidden when Jodit is inside an <dialog> element #1146](https://github.com/xdan/jodit/issues/1146)
78
+
79
+ #### :house: Internal
80
+
81
+ - Use node 20 for build
82
+ - Update dependencies
83
+
84
+ ```plain
85
+ @playwright/test ^1.43.1 → ^1.45.0
86
+ @types/mocha ^10.0.6 → ^10.0.7
87
+ @types/node ^20.12.5 → ^20.14.9
88
+ @typescript-eslint/eslint-plugin ^7.5.0 → ^7.14.1
89
+ @typescript-eslint/parser ^7.5.0 → ^7.14.1
90
+ axios ^1.6.8 → ^1.7.2
91
+ core-js ^3.36.1 → ^3.37.1
92
+ css-loader ^7.0.0 → ^7.1.2
93
+ css-minimizer-webpack-plugin ^6.0.0 → ^7.0.0
94
+ cssnano-preset-advanced ^6.1.2 → ^7.0.3
95
+ eslint-plugin-mocha ^10.4.1 → ^10.4.3
96
+ eslint-plugin-simple-import-sort ^12.0.0 → ^12.1.0
97
+ eslint-plugin-tsdoc ^0.2.17 → ^0.3.0
98
+ glob ^10.3.12 → ^10.4.2
99
+ mini-css-extract-plugin ^2.8.1 → ^2.9.0
100
+ mocha ^10.4.0 → ^10.5.1
101
+ node-jq ^4.3.1 → ^4.4.0
102
+ prettier ^3.2.5 → ^3.3.2
103
+ style-loader ^3.3.4 → ^4.0.0
104
+ stylelint ^16.3.1 → ^16.6.1
105
+ stylelint-config-standard ^36.0.0 → ^36.0.1
106
+ tslib ^2.6.2 → ^2.6.3
107
+ typescript ^5.4.5 → ^5.5.2
108
+ webpack 5.91.0 → 5.92.1
109
+ ```
110
+
12
111
  ## 4.2.26
13
112
 
14
113
  ### :bug: Bug Fix
@@ -2730,11 +2829,11 @@ Related with https://github.com/xdan/jodit/issues/574. In some cases need to lim
2730
2829
  - @property {IUIOption[]} link.selectOptionsClassName=[] The list of the option for the select (to use with
2731
2830
  modeClassName="select")
2732
2831
  - ex: [
2733
- - { value: "", text: "" },
2734
- - { value: "val1", text: "text1" },
2735
- - { value: "val2", text: "text2" },
2736
- - { value: "val3", text: "text3" }
2737
- - ]
2832
+ - { value: "", text: "" },
2833
+ - { value: "val1", text: "text1" },
2834
+ - { value: "val2", text: "text2" },
2835
+ - { value: "val3", text: "text3" }
2836
+ - ]
2738
2837
  PR: https://github.com/xdan/jodit/pull/577 Thanks @s-renier-taonix-fr
2739
2838
 
2740
2839
  ##### 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.32
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;