jodit 4.18.12 → 4.19.4

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 (255) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/es2015/jodit.css +10 -1
  3. package/es2015/jodit.fat.min.css +1 -1
  4. package/es2015/jodit.fat.min.js +18 -12
  5. package/es2015/jodit.js +2464 -300
  6. package/es2015/jodit.min.css +1 -1
  7. package/es2015/jodit.min.js +18 -12
  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 +18 -12
  16. package/es2018/jodit.min.css +1 -1
  17. package/es2018/jodit.min.js +18 -12
  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 +10 -1
  21. package/es2021/jodit.fat.min.css +1 -1
  22. package/es2021/jodit.fat.min.js +26 -19
  23. package/es2021/jodit.js +2426 -297
  24. package/es2021/jodit.min.css +1 -1
  25. package/es2021/jodit.min.js +26 -19
  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 +10 -1
  33. package/es2021.en/jodit.fat.min.css +1 -1
  34. package/es2021.en/jodit.fat.min.js +29 -22
  35. package/es2021.en/jodit.js +2400 -271
  36. package/es2021.en/jodit.min.css +1 -1
  37. package/es2021.en/jodit.min.js +29 -22
  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 +11 -2
  45. package/es5/jodit.fat.min.css +1 -1
  46. package/es5/jodit.fat.min.js +2 -2
  47. package/es5/jodit.js +2823 -360
  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 +44 -1
  60. package/esm/config.js +2 -1
  61. package/esm/core/constants.js +1 -1
  62. package/esm/core/dom/dom.js +4 -2
  63. package/esm/core/event-emitter/event-emitter.js +1 -0
  64. package/esm/core/helpers/utils/align.d.ts +6 -1
  65. package/esm/core/helpers/utils/align.js +22 -12
  66. package/esm/core/helpers/utils/image-caption.d.ts +24 -0
  67. package/esm/core/helpers/utils/image-caption.js +43 -0
  68. package/esm/core/helpers/utils/index.d.ts +1 -0
  69. package/esm/core/helpers/utils/index.js +1 -0
  70. package/esm/core/selection/selection.d.ts +3 -0
  71. package/esm/core/selection/selection.js +20 -5
  72. package/esm/core/ui/helpers/focus-form-field.d.ts +12 -0
  73. package/esm/core/ui/helpers/focus-form-field.js +21 -0
  74. package/esm/jodit.js +18 -2
  75. package/esm/langs/ar.d.ts +2 -0
  76. package/esm/langs/ar.js +2 -0
  77. package/esm/langs/az.d.ts +2 -0
  78. package/esm/langs/az.js +2 -0
  79. package/esm/langs/cs_cz.d.ts +2 -0
  80. package/esm/langs/cs_cz.js +2 -0
  81. package/esm/langs/de.d.ts +2 -0
  82. package/esm/langs/de.js +2 -0
  83. package/esm/langs/es.d.ts +2 -0
  84. package/esm/langs/es.js +2 -0
  85. package/esm/langs/fa.d.ts +2 -0
  86. package/esm/langs/fa.js +2 -0
  87. package/esm/langs/fi.d.ts +2 -0
  88. package/esm/langs/fi.js +2 -0
  89. package/esm/langs/fr.d.ts +2 -0
  90. package/esm/langs/fr.js +2 -0
  91. package/esm/langs/he.d.ts +2 -0
  92. package/esm/langs/he.js +2 -0
  93. package/esm/langs/hu.d.ts +2 -0
  94. package/esm/langs/hu.js +2 -0
  95. package/esm/langs/id.d.ts +2 -0
  96. package/esm/langs/id.js +2 -0
  97. package/esm/langs/it.d.ts +2 -0
  98. package/esm/langs/it.js +2 -0
  99. package/esm/langs/ja.d.ts +2 -0
  100. package/esm/langs/ja.js +2 -0
  101. package/esm/langs/ko.d.ts +2 -0
  102. package/esm/langs/ko.js +2 -0
  103. package/esm/langs/mn.d.ts +2 -0
  104. package/esm/langs/mn.js +2 -0
  105. package/esm/langs/nl.d.ts +2 -0
  106. package/esm/langs/nl.js +2 -0
  107. package/esm/langs/no.d.ts +2 -0
  108. package/esm/langs/no.js +2 -0
  109. package/esm/langs/pl.d.ts +2 -0
  110. package/esm/langs/pl.js +2 -0
  111. package/esm/langs/pt_br.d.ts +2 -0
  112. package/esm/langs/pt_br.js +2 -0
  113. package/esm/langs/ru.d.ts +2 -0
  114. package/esm/langs/ru.js +2 -0
  115. package/esm/langs/sk.d.ts +2 -0
  116. package/esm/langs/sk.js +2 -0
  117. package/esm/langs/sv.d.ts +2 -0
  118. package/esm/langs/sv.js +2 -0
  119. package/esm/langs/tr.d.ts +2 -0
  120. package/esm/langs/tr.js +2 -0
  121. package/esm/langs/ua.d.ts +2 -0
  122. package/esm/langs/ua.js +2 -0
  123. package/esm/langs/zh_cn.d.ts +2 -0
  124. package/esm/langs/zh_cn.js +2 -0
  125. package/esm/langs/zh_tw.d.ts +2 -0
  126. package/esm/langs/zh_tw.js +2 -0
  127. package/esm/modules/table/table.d.ts +27 -0
  128. package/esm/modules/table/table.js +110 -2
  129. package/esm/modules/toolbar/button/button.js +11 -3
  130. package/esm/modules/uploader/helpers/send-files.js +3 -1
  131. package/esm/modules/widget/tabs/tabs.js +2 -0
  132. package/esm/plugins/all.d.ts +1 -0
  133. package/esm/plugins/all.js +1 -0
  134. package/esm/plugins/backspace/backspace.js +17 -1
  135. package/esm/plugins/backspace/cases/check-remove-char.js +1 -11
  136. package/esm/plugins/backspace/helpers.d.ts +5 -0
  137. package/esm/plugins/backspace/helpers.js +11 -0
  138. package/esm/plugins/clean-html/clean-html.js +2 -2
  139. package/esm/plugins/clean-html/helpers/index.d.ts +1 -0
  140. package/esm/plugins/clean-html/helpers/index.js +1 -0
  141. package/esm/plugins/clean-html/helpers/remove-format/remove-format-for-word.d.ts +16 -0
  142. package/esm/plugins/clean-html/helpers/remove-format/remove-format-for-word.js +109 -0
  143. package/esm/plugins/drag-and-drop-element/drag-and-drop-element.js +4 -2
  144. package/esm/plugins/format-block/config.d.ts +13 -0
  145. package/esm/plugins/format-block/config.js +38 -1
  146. package/esm/plugins/format-block/content-fonts.d.ts +17 -0
  147. package/esm/plugins/format-block/content-fonts.js +156 -0
  148. package/esm/plugins/image-caption/config.d.ts +31 -0
  149. package/esm/plugins/image-caption/config.js +11 -0
  150. package/esm/plugins/image-caption/image-caption.d.ts +140 -0
  151. package/esm/plugins/image-caption/image-caption.js +799 -0
  152. package/esm/plugins/image-processor/image-processor.d.ts +2 -1
  153. package/esm/plugins/image-processor/image-processor.js +9 -4
  154. package/esm/plugins/image-properties/config.js +1 -0
  155. package/esm/plugins/image-properties/image-properties.js +19 -5
  156. package/esm/plugins/image-properties/interface.d.ts +6 -0
  157. package/esm/plugins/image-properties/readers/align.d.ts +1 -1
  158. package/esm/plugins/image-properties/readers/index.js +9 -3
  159. package/esm/plugins/image-properties/readers/margin.d.ts +1 -1
  160. package/esm/plugins/image-properties/readers/size.d.ts +5 -1
  161. package/esm/plugins/image-properties/readers/size.js +4 -5
  162. package/esm/plugins/image-properties/ui/ui-image-main-tab.d.ts +2 -0
  163. package/esm/plugins/image-properties/ui/ui-image-main-tab.js +20 -0
  164. package/esm/plugins/image-properties/writers/caption.d.ts +15 -0
  165. package/esm/plugins/image-properties/writers/caption.js +18 -0
  166. package/esm/plugins/image-properties/writers/index.js +15 -10
  167. package/esm/plugins/image-properties/writers/link.js +7 -2
  168. package/esm/plugins/image-properties/writers/margin.d.ts +1 -1
  169. package/esm/plugins/image-properties/writers/size.d.ts +5 -2
  170. package/esm/plugins/image-properties/writers/size.js +16 -2
  171. package/esm/plugins/indent/helpers.d.ts +9 -0
  172. package/esm/plugins/indent/helpers.js +23 -3
  173. package/esm/plugins/indent/indent.js +2 -20
  174. package/esm/plugins/index.d.ts +1 -0
  175. package/esm/plugins/inline-popup/config/config.js +4 -0
  176. package/esm/plugins/inline-popup/config/items/cells.js +29 -0
  177. package/esm/plugins/inline-popup/config/items/img.js +35 -5
  178. package/esm/plugins/inline-popup/icons/caption.svg.js +1 -0
  179. package/esm/plugins/inline-popup/icons/headerrow.svg.js +1 -0
  180. package/esm/plugins/inline-popup/inline-popup.js +3 -2
  181. package/esm/plugins/placeholder/placeholder.js +7 -1
  182. package/esm/plugins/resize-cells/resize-cells.d.ts +49 -0
  183. package/esm/plugins/resize-cells/resize-cells.js +247 -13
  184. package/esm/plugins/resizer/resizer.js +13 -2
  185. package/esm/plugins/select-cells/select-cells.d.ts +5 -0
  186. package/esm/plugins/select-cells/select-cells.js +29 -11
  187. package/esm/plugins/tab/cases/index.d.ts +1 -0
  188. package/esm/plugins/tab/cases/index.js +1 -0
  189. package/esm/plugins/tab/cases/on-tab-inside-li.js +3 -1
  190. package/esm/plugins/tab/cases/tab-spaces.d.ts +32 -0
  191. package/esm/plugins/tab/cases/tab-spaces.js +263 -0
  192. package/esm/plugins/tab/config.d.ts +10 -0
  193. package/esm/plugins/tab/config.js +2 -1
  194. package/esm/plugins/tab/tab.js +61 -6
  195. package/esm/types/types.d.ts +16 -0
  196. package/esm/types/uploader.d.ts +6 -0
  197. package/package.json +1 -1
  198. package/types/config.d.ts +44 -1
  199. package/types/core/helpers/utils/align.d.ts +6 -1
  200. package/types/core/helpers/utils/image-caption.d.ts +24 -0
  201. package/types/core/helpers/utils/index.d.ts +1 -0
  202. package/types/core/selection/selection.d.ts +3 -0
  203. package/types/core/ui/helpers/focus-form-field.d.ts +12 -0
  204. package/types/langs/ar.d.ts +2 -0
  205. package/types/langs/az.d.ts +2 -0
  206. package/types/langs/cs_cz.d.ts +2 -0
  207. package/types/langs/de.d.ts +2 -0
  208. package/types/langs/es.d.ts +2 -0
  209. package/types/langs/fa.d.ts +2 -0
  210. package/types/langs/fi.d.ts +2 -0
  211. package/types/langs/fr.d.ts +2 -0
  212. package/types/langs/he.d.ts +2 -0
  213. package/types/langs/hu.d.ts +2 -0
  214. package/types/langs/id.d.ts +2 -0
  215. package/types/langs/it.d.ts +2 -0
  216. package/types/langs/ja.d.ts +2 -0
  217. package/types/langs/ko.d.ts +2 -0
  218. package/types/langs/mn.d.ts +2 -0
  219. package/types/langs/nl.d.ts +2 -0
  220. package/types/langs/no.d.ts +2 -0
  221. package/types/langs/pl.d.ts +2 -0
  222. package/types/langs/pt_br.d.ts +2 -0
  223. package/types/langs/ru.d.ts +2 -0
  224. package/types/langs/sk.d.ts +2 -0
  225. package/types/langs/sv.d.ts +2 -0
  226. package/types/langs/tr.d.ts +2 -0
  227. package/types/langs/ua.d.ts +2 -0
  228. package/types/langs/zh_cn.d.ts +2 -0
  229. package/types/langs/zh_tw.d.ts +2 -0
  230. package/types/modules/table/table.d.ts +27 -0
  231. package/types/plugins/backspace/helpers.d.ts +5 -0
  232. package/types/plugins/clean-html/helpers/index.d.ts +1 -0
  233. package/types/plugins/clean-html/helpers/remove-format/remove-format-for-word.d.ts +16 -0
  234. package/types/plugins/format-block/config.d.ts +13 -0
  235. package/types/plugins/format-block/content-fonts.d.ts +17 -0
  236. package/types/plugins/image-caption/config.d.ts +31 -0
  237. package/types/plugins/image-caption/image-caption.d.ts +140 -0
  238. package/types/plugins/image-processor/image-processor.d.ts +2 -1
  239. package/types/plugins/image-properties/interface.d.ts +6 -0
  240. package/types/plugins/image-properties/readers/align.d.ts +1 -1
  241. package/types/plugins/image-properties/readers/margin.d.ts +1 -1
  242. package/types/plugins/image-properties/readers/size.d.ts +5 -1
  243. package/types/plugins/image-properties/ui/ui-image-main-tab.d.ts +2 -0
  244. package/types/plugins/image-properties/writers/caption.d.ts +15 -0
  245. package/types/plugins/image-properties/writers/margin.d.ts +1 -1
  246. package/types/plugins/image-properties/writers/size.d.ts +5 -2
  247. package/types/plugins/indent/helpers.d.ts +9 -0
  248. package/types/plugins/index.d.ts +1 -0
  249. package/types/plugins/resize-cells/resize-cells.d.ts +49 -0
  250. package/types/plugins/select-cells/select-cells.d.ts +5 -0
  251. package/types/plugins/tab/cases/index.d.ts +1 -0
  252. package/types/plugins/tab/cases/tab-spaces.d.ts +32 -0
  253. package/types/plugins/tab/config.d.ts +10 -0
  254. package/types/types/types.d.ts +16 -0
  255. package/types/types/uploader.d.ts +6 -0
package/CHANGELOG.md CHANGED
@@ -9,6 +9,52 @@
9
9
  > - :house: [Internal]
10
10
  > - :nail_care: [Polish]
11
11
 
12
+ ## 4.19.4
13
+
14
+ #### :house: Internal
15
+
16
+ - 4.19.1 to 4.19.3 did not publish: the Firefox skip of the image caption click test matched on a user agent the test harness fakes; it now uses a feature check.
17
+
18
+ ## 4.19.3
19
+
20
+ #### :house: Internal
21
+
22
+ - 4.19.2 was tagged with a formatting error in a test and did not publish; this is the same change.
23
+
24
+ ## 4.19.2
25
+
26
+ #### :house: Internal
27
+
28
+ - The image caption test that opens the popup after a click is skipped in Firefox, where the synthetic press does not move the focus off the caption in CI; it still runs in Chrome and WebKit.
29
+
30
+ ## 4.19.1
31
+
32
+ #### :house: Internal
33
+
34
+ - The image caption test that opens the popup after a click waits for the popup instead of a fixed delay, which the CI Firefox jobs of the PRO release missed.
35
+
36
+ ## 4.19.0
37
+
38
+ #### :rocket: New Feature
39
+
40
+ - [#1714](https://github.com/xdan/jodit/issues/1714) Image captions: a Caption button in the image popup and a checkbox in the image properties dialog wrap the image in `<figure>` with an editable `<figcaption>`. The tags are configurable with `imageCaption.wrapper`, `inner` and `caption`. Thanks [@brendon](https://github.com/brendon).
41
+ - [#1713](https://github.com/xdan/jodit/issues/1713) A Header row toggle in the table cell popup moves the first row into `<thead>` as `<th scope="col">` cells, and back. Thanks [@brendon](https://github.com/brendon).
42
+ - [#952](https://github.com/xdan/jodit/issues/952) Table rows can be resized by dragging the border between them, with the height kept on the `<tr>`, and rows and columns now resize live while dragging. Thanks [@brendon](https://github.com/brendon).
43
+ - [#1728](https://github.com/xdan/jodit/issues/1728) `tab.spaces` (off by default) makes Tab outside lists and tables insert that many spaces at the caret, Shift+Tab remove them, and a selection indent or outdent; Escape then Tab leaves the editor. Thanks [@brendon](https://github.com/brendon).
44
+ - [#1710](https://github.com/xdan/jodit/issues/1710) `formatBlock.previewProperties` (empty by default) lists the CSS properties each entry of the Paragraph list copies from the content's own styles, so a theme's heading fonts and colours show in the list. Thanks [@brendon](https://github.com/brendon).
45
+ - [#1089](https://github.com/xdan/jodit/issues/1089) Images read as base64 (`insertImageAsBase64URI`) pass their file names to the upload success handler as `fileNames`. Thanks [@brendon](https://github.com/brendon).
46
+
47
+ #### :bug: Bug Fix
48
+
49
+ - [#1735](https://github.com/xdan/jodit/issues/1735) The eraser with just a caret inside a word clears the whole word, as Word does, instead of splitting the format and leaving what is typed next formatted; a line break or an image ends a word. Thanks [@brendon](https://github.com/brendon).
50
+ - [#1742](https://github.com/xdan/jodit/issues/1742) Dragging across table cells no longer loses the marked cells on release. Thanks [@brendon](https://github.com/brendon).
51
+ - [#1747](https://github.com/xdan/jodit/issues/1747) In iframe mode, dragging an image's resize handle follows the pointer instead of being offset by the iframe. Thanks [@brendon](https://github.com/brendon).
52
+ - [#1749](https://github.com/xdan/jodit/issues/1749) Opening the Link, Image, File or Video popup puts the caret in its first field, so typing fills in the URL instead of replacing the selected text. Thanks [@brendon](https://github.com/brendon).
53
+
54
+ #### :house: Internal
55
+
56
+ - `glob` 14 in the test tooling.
57
+
12
58
  ## 4.18.12
13
59
 
14
60
  #### :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.18.12
4
+ * Version: v4.19.4
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -4387,6 +4387,15 @@ html.jodit_fullsize-box_true {
4387
4387
  .jodit-table-resizer_moved::after {
4388
4388
  border-right: 1px solid var(--jd-color-border) moved;
4389
4389
  }
4390
+ .jodit-table-resizer_row {
4391
+ padding: calc(var(--jd-padding-default) / 2) 0;
4392
+ margin: calc(var(--jd-padding-default) / -2) 0 0;
4393
+ cursor: row-resize;
4394
+ }
4395
+ .jodit-table-resizer_row::after {
4396
+ width: 100%;
4397
+ height: 0;
4398
+ }
4390
4399
 
4391
4400
  /*!
4392
4401
  * Jodit Editor (https://xdsoft.net/jodit/)