jodit-pro 4.2.23 → 4.2.24

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 (301) hide show
  1. package/es2015/jodit.css +4 -2
  2. package/es2015/jodit.fat.min.css +1 -1
  3. package/es2015/jodit.fat.min.js +2 -2
  4. package/es2015/jodit.js +95 -57
  5. package/es2015/jodit.min.css +1 -1
  6. package/es2015/jodit.min.js +2 -2
  7. package/es2015/plugins/autocomplete/autocomplete.js +1 -1
  8. package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
  9. package/es2015/plugins/backup/backup.css +1 -1
  10. package/es2015/plugins/backup/backup.js +1 -1
  11. package/es2015/plugins/backup/backup.min.js +1 -1
  12. package/es2015/plugins/button-generator/button-generator.css +1 -1
  13. package/es2015/plugins/button-generator/button-generator.js +1 -1
  14. package/es2015/plugins/button-generator/button-generator.min.js +1 -1
  15. package/es2015/plugins/change-case/change-case.js +1 -1
  16. package/es2015/plugins/change-case/change-case.min.js +1 -1
  17. package/es2015/plugins/color-picker/color-picker.css +1 -1
  18. package/es2015/plugins/color-picker/color-picker.js +1 -1
  19. package/es2015/plugins/color-picker/color-picker.min.js +1 -1
  20. package/es2015/plugins/emoji/emoji.css +1 -1
  21. package/es2015/plugins/emoji/emoji.js +1 -1
  22. package/es2015/plugins/emoji/emoji.min.js +1 -1
  23. package/es2015/plugins/export-docs/export-docs.js +1 -1
  24. package/es2015/plugins/export-docs/export-docs.min.js +1 -1
  25. package/es2015/plugins/finder/finder.css +1 -1
  26. package/es2015/plugins/finder/finder.js +1 -1
  27. package/es2015/plugins/finder/finder.min.js +1 -1
  28. package/es2015/plugins/google-maps/google-maps.css +1 -1
  29. package/es2015/plugins/google-maps/google-maps.js +1 -1
  30. package/es2015/plugins/google-maps/google-maps.min.js +1 -1
  31. package/es2015/plugins/google-search/google-search.js +1 -1
  32. package/es2015/plugins/google-search/google-search.min.js +1 -1
  33. package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
  34. package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
  35. package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
  36. package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
  37. package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
  38. package/es2015/plugins/keyboard/keyboard.css +1 -1
  39. package/es2015/plugins/keyboard/keyboard.js +1 -1
  40. package/es2015/plugins/keyboard/keyboard.min.js +1 -1
  41. package/es2015/plugins/mobile-view/mobile-view.js +1 -1
  42. package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
  43. package/es2015/plugins/page-break/page-break.js +1 -1
  44. package/es2015/plugins/page-break/page-break.min.js +1 -1
  45. package/es2015/plugins/paste-code/paste-code.css +1 -1
  46. package/es2015/plugins/paste-code/paste-code.js +1 -1
  47. package/es2015/plugins/paste-code/paste-code.min.js +1 -1
  48. package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
  49. package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
  50. package/es2015/plugins/show-blocks/show-blocks.js +1 -1
  51. package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
  52. package/es2015/plugins/todo-list/todo-list.css +1 -1
  53. package/es2015/plugins/todo-list/todo-list.js +1 -1
  54. package/es2015/plugins/todo-list/todo-list.min.js +1 -1
  55. package/es2015/plugins/translate/translate.css +1 -1
  56. package/es2015/plugins/translate/translate.js +1 -1
  57. package/es2015/plugins/translate/translate.min.js +1 -1
  58. package/es2015/plugins/tune-block/tune-block.css +1 -1
  59. package/es2015/plugins/tune-block/tune-block.js +1 -1
  60. package/es2015/plugins/tune-block/tune-block.min.js +1 -1
  61. package/es2018/jodit.css +4 -2
  62. package/es2018/jodit.fat.min.css +1 -1
  63. package/es2018/jodit.fat.min.js +2 -2
  64. package/es2018/jodit.js +95 -57
  65. package/es2018/jodit.min.css +1 -1
  66. package/es2018/jodit.min.js +2 -2
  67. package/es2018/plugins/autocomplete/autocomplete.js +1 -1
  68. package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
  69. package/es2018/plugins/backup/backup.css +1 -1
  70. package/es2018/plugins/backup/backup.js +1 -1
  71. package/es2018/plugins/backup/backup.min.js +1 -1
  72. package/es2018/plugins/button-generator/button-generator.css +1 -1
  73. package/es2018/plugins/button-generator/button-generator.js +1 -1
  74. package/es2018/plugins/button-generator/button-generator.min.js +1 -1
  75. package/es2018/plugins/change-case/change-case.js +1 -1
  76. package/es2018/plugins/change-case/change-case.min.js +1 -1
  77. package/es2018/plugins/color-picker/color-picker.css +1 -1
  78. package/es2018/plugins/color-picker/color-picker.js +1 -1
  79. package/es2018/plugins/color-picker/color-picker.min.js +1 -1
  80. package/es2018/plugins/emoji/emoji.css +1 -1
  81. package/es2018/plugins/emoji/emoji.js +1 -1
  82. package/es2018/plugins/emoji/emoji.min.js +1 -1
  83. package/es2018/plugins/export-docs/export-docs.js +1 -1
  84. package/es2018/plugins/export-docs/export-docs.min.js +1 -1
  85. package/es2018/plugins/finder/finder.css +1 -1
  86. package/es2018/plugins/finder/finder.js +1 -1
  87. package/es2018/plugins/finder/finder.min.js +1 -1
  88. package/es2018/plugins/google-maps/google-maps.css +1 -1
  89. package/es2018/plugins/google-maps/google-maps.js +1 -1
  90. package/es2018/plugins/google-maps/google-maps.min.js +1 -1
  91. package/es2018/plugins/google-search/google-search.js +1 -1
  92. package/es2018/plugins/google-search/google-search.min.js +1 -1
  93. package/es2018/plugins/highlight-signature/highlight-signature.js +1 -1
  94. package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
  95. package/es2018/plugins/iframe-editor/iframe-editor.css +1 -1
  96. package/es2018/plugins/iframe-editor/iframe-editor.js +1 -1
  97. package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
  98. package/es2018/plugins/keyboard/keyboard.css +1 -1
  99. package/es2018/plugins/keyboard/keyboard.js +1 -1
  100. package/es2018/plugins/keyboard/keyboard.min.js +1 -1
  101. package/es2018/plugins/mobile-view/mobile-view.js +1 -1
  102. package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
  103. package/es2018/plugins/page-break/page-break.js +1 -1
  104. package/es2018/plugins/page-break/page-break.min.js +1 -1
  105. package/es2018/plugins/paste-code/paste-code.css +1 -1
  106. package/es2018/plugins/paste-code/paste-code.js +1 -1
  107. package/es2018/plugins/paste-code/paste-code.min.js +1 -1
  108. package/es2018/plugins/paste-from-word/paste-from-word.js +1 -1
  109. package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
  110. package/es2018/plugins/show-blocks/show-blocks.js +1 -1
  111. package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
  112. package/es2018/plugins/todo-list/todo-list.css +1 -1
  113. package/es2018/plugins/todo-list/todo-list.js +1 -1
  114. package/es2018/plugins/todo-list/todo-list.min.js +1 -1
  115. package/es2018/plugins/translate/translate.css +1 -1
  116. package/es2018/plugins/translate/translate.js +1 -1
  117. package/es2018/plugins/translate/translate.min.js +1 -1
  118. package/es2018/plugins/tune-block/tune-block.css +1 -1
  119. package/es2018/plugins/tune-block/tune-block.js +1 -1
  120. package/es2018/plugins/tune-block/tune-block.min.js +1 -1
  121. package/es2021/jodit.css +4 -2
  122. package/es2021/jodit.fat.min.css +1 -1
  123. package/es2021/jodit.fat.min.js +2 -2
  124. package/es2021/jodit.js +95 -57
  125. package/es2021/jodit.min.css +1 -1
  126. package/es2021/jodit.min.js +2 -2
  127. package/es2021/plugins/autocomplete/autocomplete.js +1 -1
  128. package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
  129. package/es2021/plugins/backup/backup.css +1 -1
  130. package/es2021/plugins/backup/backup.js +1 -1
  131. package/es2021/plugins/backup/backup.min.js +1 -1
  132. package/es2021/plugins/button-generator/button-generator.css +1 -1
  133. package/es2021/plugins/button-generator/button-generator.js +1 -1
  134. package/es2021/plugins/button-generator/button-generator.min.js +1 -1
  135. package/es2021/plugins/change-case/change-case.js +1 -1
  136. package/es2021/plugins/change-case/change-case.min.js +1 -1
  137. package/es2021/plugins/color-picker/color-picker.css +1 -1
  138. package/es2021/plugins/color-picker/color-picker.js +1 -1
  139. package/es2021/plugins/color-picker/color-picker.min.js +1 -1
  140. package/es2021/plugins/emoji/emoji.css +1 -1
  141. package/es2021/plugins/emoji/emoji.js +1 -1
  142. package/es2021/plugins/emoji/emoji.min.js +1 -1
  143. package/es2021/plugins/export-docs/export-docs.js +1 -1
  144. package/es2021/plugins/export-docs/export-docs.min.js +1 -1
  145. package/es2021/plugins/finder/finder.css +1 -1
  146. package/es2021/plugins/finder/finder.js +1 -1
  147. package/es2021/plugins/finder/finder.min.js +1 -1
  148. package/es2021/plugins/google-maps/google-maps.css +1 -1
  149. package/es2021/plugins/google-maps/google-maps.js +1 -1
  150. package/es2021/plugins/google-maps/google-maps.min.js +1 -1
  151. package/es2021/plugins/google-search/google-search.js +1 -1
  152. package/es2021/plugins/google-search/google-search.min.js +1 -1
  153. package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
  154. package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
  155. package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
  156. package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
  157. package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
  158. package/es2021/plugins/keyboard/keyboard.css +1 -1
  159. package/es2021/plugins/keyboard/keyboard.js +1 -1
  160. package/es2021/plugins/keyboard/keyboard.min.js +1 -1
  161. package/es2021/plugins/mobile-view/mobile-view.js +1 -1
  162. package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
  163. package/es2021/plugins/page-break/page-break.js +1 -1
  164. package/es2021/plugins/page-break/page-break.min.js +1 -1
  165. package/es2021/plugins/paste-code/paste-code.css +1 -1
  166. package/es2021/plugins/paste-code/paste-code.js +1 -1
  167. package/es2021/plugins/paste-code/paste-code.min.js +1 -1
  168. package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
  169. package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
  170. package/es2021/plugins/show-blocks/show-blocks.js +1 -1
  171. package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
  172. package/es2021/plugins/todo-list/todo-list.css +1 -1
  173. package/es2021/plugins/todo-list/todo-list.js +1 -1
  174. package/es2021/plugins/todo-list/todo-list.min.js +1 -1
  175. package/es2021/plugins/translate/translate.css +1 -1
  176. package/es2021/plugins/translate/translate.js +1 -1
  177. package/es2021/plugins/translate/translate.min.js +1 -1
  178. package/es2021/plugins/tune-block/tune-block.css +1 -1
  179. package/es2021/plugins/tune-block/tune-block.js +1 -1
  180. package/es2021/plugins/tune-block/tune-block.min.js +1 -1
  181. package/es2021.en/jodit.css +4 -2
  182. package/es2021.en/jodit.fat.min.css +1 -1
  183. package/es2021.en/jodit.fat.min.js +2 -2
  184. package/es2021.en/jodit.js +95 -57
  185. package/es2021.en/jodit.min.css +1 -1
  186. package/es2021.en/jodit.min.js +2 -2
  187. package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
  188. package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
  189. package/es2021.en/plugins/backup/backup.css +1 -1
  190. package/es2021.en/plugins/backup/backup.js +1 -1
  191. package/es2021.en/plugins/backup/backup.min.js +1 -1
  192. package/es2021.en/plugins/button-generator/button-generator.css +1 -1
  193. package/es2021.en/plugins/button-generator/button-generator.js +1 -1
  194. package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
  195. package/es2021.en/plugins/change-case/change-case.js +1 -1
  196. package/es2021.en/plugins/change-case/change-case.min.js +1 -1
  197. package/es2021.en/plugins/color-picker/color-picker.css +1 -1
  198. package/es2021.en/plugins/color-picker/color-picker.js +1 -1
  199. package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
  200. package/es2021.en/plugins/emoji/emoji.css +1 -1
  201. package/es2021.en/plugins/emoji/emoji.js +1 -1
  202. package/es2021.en/plugins/emoji/emoji.min.js +1 -1
  203. package/es2021.en/plugins/export-docs/export-docs.js +1 -1
  204. package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
  205. package/es2021.en/plugins/finder/finder.css +1 -1
  206. package/es2021.en/plugins/finder/finder.js +1 -1
  207. package/es2021.en/plugins/finder/finder.min.js +1 -1
  208. package/es2021.en/plugins/google-maps/google-maps.css +1 -1
  209. package/es2021.en/plugins/google-maps/google-maps.js +1 -1
  210. package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
  211. package/es2021.en/plugins/google-search/google-search.js +1 -1
  212. package/es2021.en/plugins/google-search/google-search.min.js +1 -1
  213. package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
  214. package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
  215. package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
  216. package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
  217. package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
  218. package/es2021.en/plugins/keyboard/keyboard.css +1 -1
  219. package/es2021.en/plugins/keyboard/keyboard.js +1 -1
  220. package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
  221. package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
  222. package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
  223. package/es2021.en/plugins/page-break/page-break.js +1 -1
  224. package/es2021.en/plugins/page-break/page-break.min.js +1 -1
  225. package/es2021.en/plugins/paste-code/paste-code.css +1 -1
  226. package/es2021.en/plugins/paste-code/paste-code.js +1 -1
  227. package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
  228. package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
  229. package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
  230. package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
  231. package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
  232. package/es2021.en/plugins/todo-list/todo-list.css +1 -1
  233. package/es2021.en/plugins/todo-list/todo-list.js +1 -1
  234. package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
  235. package/es2021.en/plugins/translate/translate.css +1 -1
  236. package/es2021.en/plugins/translate/translate.js +1 -1
  237. package/es2021.en/plugins/translate/translate.min.js +1 -1
  238. package/es2021.en/plugins/tune-block/tune-block.css +1 -1
  239. package/es2021.en/plugins/tune-block/tune-block.js +1 -1
  240. package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
  241. package/es5/jodit.css +11 -6
  242. package/es5/jodit.fat.min.css +1 -1
  243. package/es5/jodit.fat.min.js +2 -2
  244. package/es5/jodit.js +98 -57
  245. package/es5/jodit.min.css +3 -3
  246. package/es5/jodit.min.js +2 -2
  247. package/es5/plugins/autocomplete/autocomplete.js +1 -1
  248. package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
  249. package/es5/plugins/backup/backup.css +1 -1
  250. package/es5/plugins/backup/backup.js +1 -1
  251. package/es5/plugins/backup/backup.min.js +1 -1
  252. package/es5/plugins/button-generator/button-generator.css +1 -1
  253. package/es5/plugins/button-generator/button-generator.js +1 -1
  254. package/es5/plugins/button-generator/button-generator.min.js +1 -1
  255. package/es5/plugins/change-case/change-case.js +1 -1
  256. package/es5/plugins/change-case/change-case.min.js +1 -1
  257. package/es5/plugins/color-picker/color-picker.css +1 -1
  258. package/es5/plugins/color-picker/color-picker.js +1 -1
  259. package/es5/plugins/color-picker/color-picker.min.js +1 -1
  260. package/es5/plugins/emoji/emoji.css +1 -1
  261. package/es5/plugins/emoji/emoji.js +1 -1
  262. package/es5/plugins/emoji/emoji.min.js +1 -1
  263. package/es5/plugins/export-docs/export-docs.js +1 -1
  264. package/es5/plugins/export-docs/export-docs.min.js +1 -1
  265. package/es5/plugins/finder/finder.css +1 -1
  266. package/es5/plugins/finder/finder.js +1 -1
  267. package/es5/plugins/finder/finder.min.js +1 -1
  268. package/es5/plugins/google-maps/google-maps.css +1 -1
  269. package/es5/plugins/google-maps/google-maps.js +1 -1
  270. package/es5/plugins/google-maps/google-maps.min.js +1 -1
  271. package/es5/plugins/google-search/google-search.js +1 -1
  272. package/es5/plugins/google-search/google-search.min.js +1 -1
  273. package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
  274. package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
  275. package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
  276. package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
  277. package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
  278. package/es5/plugins/keyboard/keyboard.css +1 -1
  279. package/es5/plugins/keyboard/keyboard.js +1 -1
  280. package/es5/plugins/keyboard/keyboard.min.js +1 -1
  281. package/es5/plugins/mobile-view/mobile-view.js +1 -1
  282. package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
  283. package/es5/plugins/page-break/page-break.js +1 -1
  284. package/es5/plugins/page-break/page-break.min.js +1 -1
  285. package/es5/plugins/paste-code/paste-code.css +1 -1
  286. package/es5/plugins/paste-code/paste-code.js +1 -1
  287. package/es5/plugins/paste-code/paste-code.min.js +1 -1
  288. package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
  289. package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
  290. package/es5/plugins/show-blocks/show-blocks.js +1 -1
  291. package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
  292. package/es5/plugins/todo-list/todo-list.css +1 -1
  293. package/es5/plugins/todo-list/todo-list.js +1 -1
  294. package/es5/plugins/todo-list/todo-list.min.js +1 -1
  295. package/es5/plugins/translate/translate.css +1 -1
  296. package/es5/plugins/translate/translate.js +1 -1
  297. package/es5/plugins/translate/translate.min.js +1 -1
  298. package/es5/plugins/tune-block/tune-block.css +1 -1
  299. package/es5/plugins/tune-block/tune-block.js +1 -1
  300. package/es5/plugins/tune-block/tune-block.min.js +1 -1
  301. package/package.json +1 -1
package/es5/jodit.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valeriy <chupurnov@gmail.com>
4
- * Version: v4.2.23
4
+ * Version: v4.2.24
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -3847,7 +3847,7 @@ __webpack_require__.r(__webpack_exports__);
3847
3847
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
3848
3848
  */
3849
3849
 
3850
- var APP_VERSION = "4.2.23";
3850
+ var APP_VERSION = "4.2.24";
3851
3851
  // prettier-ignore
3852
3852
  var ES = "es5";
3853
3853
  var IS_ES_MODERN = false;
@@ -4008,8 +4008,8 @@ var KEY_ALIASES = {
4008
4008
  option: 'alt',
4009
4009
  return: 'enter',
4010
4010
  right: 'arrowright',
4011
- space: ' ',
4012
- spacebar: ' ',
4011
+ space: 'space',
4012
+ spacebar: 'space',
4013
4013
  up: 'arrowup',
4014
4014
  win: 'meta',
4015
4015
  windows: 'meta'
@@ -5045,11 +5045,17 @@ var Dom = /** @class */ (function () {
5045
5045
  notMoveContent = false;
5046
5046
  }
5047
5047
  if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__/* .isHTML */ .AH)(newTagName)) {
5048
+ void 0;
5048
5049
  newTagName = create.fromHTML(newTagName);
5049
5050
  }
5050
- var tag = (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__/* .isString */ .Kg)(newTagName)
5051
- ? create.element(newTagName)
5052
- : newTagName;
5051
+ var tag;
5052
+ if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__/* .isString */ .Kg)(newTagName)) {
5053
+ void 0;
5054
+ tag = create.element(newTagName);
5055
+ }
5056
+ else {
5057
+ tag = newTagName;
5058
+ }
5053
5059
  if (!notMoveContent) {
5054
5060
  while (elm.firstChild) {
5055
5061
  tag.appendChild(elm.firstChild);
@@ -6871,7 +6877,8 @@ function getContainer(jodit, classFunc, tag, createInsideEditor) {
6871
6877
  var data = boxes.get(jodit) || {}, key = name + tag;
6872
6878
  var view = (0,jodit_core_helpers_checker_is_view_object__WEBPACK_IMPORTED_MODULE_6__/* .isViewObject */ .h)(jodit) ? jodit : jodit.j;
6873
6879
  if (!data[key]) {
6874
- var c = view.c, body = (0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_7__/* .isJoditObject */ .y)(jodit) && jodit.o.shadowRoot
6880
+ var c = view.c;
6881
+ var body = (0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_7__/* .isJoditObject */ .y)(jodit) && jodit.o.shadowRoot
6875
6882
  ? jodit.o.shadowRoot
6876
6883
  : jodit.od.body;
6877
6884
  if (createInsideEditor &&
@@ -6891,6 +6898,7 @@ function getContainer(jodit, classFunc, tag, createInsideEditor) {
6891
6898
  body.appendChild(box_1);
6892
6899
  data[key] = box_1;
6893
6900
  jodit.hookStatus('beforeDestruct', function () {
6901
+ view.events.off(box_1);
6894
6902
  _dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.safeRemove(box_1);
6895
6903
  delete data[key];
6896
6904
  if (Object.keys(data).length) {
@@ -6898,6 +6906,7 @@ function getContainer(jodit, classFunc, tag, createInsideEditor) {
6898
6906
  }
6899
6907
  });
6900
6908
  boxes.set(jodit, data);
6909
+ view.events.fire('getContainer', box_1);
6901
6910
  }
6902
6911
  data[key].classList.remove('jodit_theme_default', 'jodit_theme_dark');
6903
6912
  data[key].classList.add("jodit_theme_".concat(view.o.theme || 'default'));
@@ -8727,7 +8736,8 @@ function normalizeKeyAliases(keys) {
8727
8736
  ctrl: 2,
8728
8737
  control: 2,
8729
8738
  alt: 3,
8730
- shift: 4
8739
+ shift: 4,
8740
+ space: 5
8731
8741
  };
8732
8742
  return keys
8733
8743
  .replace(/\+\+/g, '+add')
@@ -16201,12 +16211,11 @@ var UITooltip = /** @class */ (function (_super) {
16201
16211
  if (!view.o.textIcons &&
16202
16212
  view.o.showTooltip &&
16203
16213
  !view.o.useNativeTooltip) {
16214
+ _this.j.e.on('getContainer', function (box) {
16215
+ _this.__onAttach(box);
16216
+ });
16204
16217
  view.hookStatus(jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .STATUSES */ .f.ready, function () {
16205
- // TODO Move it inside __show method. Now it is here because testcase failed with capturing
16206
- (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .getContainer */ .My)(_this.j, UITooltip_1).appendChild(_this.container);
16207
- view.e.on(view.container, 'mouseenter.tooltip', _this.__onMouseEnter, {
16208
- capture: true
16209
- });
16218
+ _this.__onAttach(_this.j.container);
16210
16219
  });
16211
16220
  }
16212
16221
  return _this;
@@ -16218,6 +16227,13 @@ var UITooltip = /** @class */ (function (_super) {
16218
16227
  UITooltip.prototype.render = function () {
16219
16228
  return '<div><div class="&__content"></div></div>';
16220
16229
  };
16230
+ UITooltip.prototype.__onAttach = function (container) {
16231
+ // TODO Move it inside __show method. Now it is here because testcase failed with capturing
16232
+ (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .getContainer */ .My)(this.j, UITooltip_1).appendChild(this.container);
16233
+ this.j.e.on(container, 'mouseenter.tooltip', this.__onMouseEnter, {
16234
+ capture: true
16235
+ });
16236
+ };
16221
16237
  UITooltip.prototype.__addListenersOnEnter = function () {
16222
16238
  if (this.__listenClose) {
16223
16239
  return;
@@ -25947,46 +25963,42 @@ var Table = /** @class */ (function (_super) {
25947
25963
  Table.prototype.removeRow = function (table, rowIndex) {
25948
25964
  return Table.__removeRow(table, rowIndex);
25949
25965
  };
25950
- Table.__appendColumn = function (table, j, after, create) {
25951
- var box = Table.__formalMatrix(table);
25952
- var i;
25953
- if (j === undefined || j < 0) {
25954
- j = Table.__getColumnsCount(table) - 1;
25966
+ /**
25967
+ * Insert column before / after all the columns containing the selected cells
25968
+ */
25969
+ Table.prototype.appendColumn = function (table, selectedCell, insertAfter) {
25970
+ if (insertAfter === void 0) {
25971
+ insertAfter = true;
25955
25972
  }
25956
- for (i = 0; i < box.length; i += 1) {
25957
- var cell = create.element('td');
25958
- var td = box[i][j];
25959
- var added = false;
25960
- if (after) {
25961
- if ((box[i] && td && j + 1 >= box[i].length) ||
25962
- td !== box[i][j + 1]) {
25963
- if (td.nextSibling) {
25964
- jodit_core_dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.before(td.nextSibling, cell);
25965
- }
25966
- else {
25967
- td.parentNode && td.parentNode.appendChild(cell);
25968
- }
25969
- added = true;
25973
+ var box = Table.__formalMatrix(table);
25974
+ if (!insertAfter && jodit_core_dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.isCell(selectedCell.previousElementSibling)) {
25975
+ return this.appendColumn(table, selectedCell.previousElementSibling, true);
25976
+ }
25977
+ var columnIndex = insertAfter
25978
+ ? selectedCell.cellIndex + ((selectedCell.colSpan || 1) - 1)
25979
+ : selectedCell.cellIndex;
25980
+ var newColumnIndex = insertAfter ? columnIndex + 1 : columnIndex;
25981
+ for (var i = 0; i < box.length;) {
25982
+ var cells = box[i];
25983
+ if (cells[columnIndex] !== cells[newColumnIndex] ||
25984
+ columnIndex === newColumnIndex) {
25985
+ var cell = this.j.createInside.element('td');
25986
+ if (insertAfter) {
25987
+ jodit_core_dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.after(cells[columnIndex], cell);
25970
25988
  }
25971
- }
25972
- else {
25973
- if (j - 1 < 0 ||
25974
- (box[i][j] !== box[i][j - 1] && box[i][j].parentNode)) {
25975
- jodit_core_dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.before(box[i][j], cell);
25976
- added = true;
25989
+ else {
25990
+ jodit_core_dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.before(cells[columnIndex], cell);
25991
+ }
25992
+ if (cells[columnIndex].rowSpan > 1) {
25993
+ cell.rowSpan = cells[columnIndex].rowSpan;
25977
25994
  }
25978
25995
  }
25979
- if (!added) {
25980
- (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'colspan', parseInt((0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'colspan') || '1', 10) + 1);
25996
+ else {
25997
+ cells[columnIndex].colSpan += 1;
25981
25998
  }
25999
+ i += cells[columnIndex].rowSpan || 1;
25982
26000
  }
25983
26001
  };
25984
- /**
25985
- * Insert column before / after all the columns containing the selected cells
25986
- */
25987
- Table.prototype.appendColumn = function (table, j, after) {
25988
- return Table.__appendColumn(table, j, after, this.j.createInside);
25989
- };
25990
26002
  Table.__removeColumn = function (table, j) {
25991
26003
  var box = Table.__formalMatrix(table);
25992
26004
  var dec;
@@ -26204,7 +26216,7 @@ var Table = /** @class */ (function (_super) {
26204
26216
  alreadyMerged.delete(first);
26205
26217
  Table.__unmark(__marked);
26206
26218
  Table.__normalizeTable(table);
26207
- (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.toArray)(table.rows).forEach(function (tr, index) {
26219
+ (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.toArray)(table.rows).forEach(function (tr) {
26208
26220
  if (!tr.cells.length) {
26209
26221
  jodit_core_dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.safeRemove(tr);
26210
26222
  }
@@ -26213,7 +26225,7 @@ var Table = /** @class */ (function (_super) {
26213
26225
  }
26214
26226
  };
26215
26227
  /**
26216
- * It combines all of the selected cells into one. The contents of the cells will also be combined
26228
+ * It combines all the selected cells into one. The contents of the cells will also be combined
26217
26229
  */
26218
26230
  Table.prototype.mergeSelected = function (table) {
26219
26231
  return Table.__mergeSelected(table, this.j);
@@ -28639,7 +28651,9 @@ var addNewLine = /** @class */ (function (_super) {
28639
28651
  editor.e
28640
28652
  .off(editor.editor, '.' + ns)
28641
28653
  .off(editor.container, '.' + ns)
28654
+ .off('.' + ns)
28642
28655
  .on([editor.ow, editor.ew, editor.editor], 'scroll' + '.' + ns, this.__hideForce)
28656
+ .on('finishedCleanHTMLWorker' + '.' + ns, this.__hideForce)
28643
28657
  .on(editor.editor, 'click' + '.' + ns, this.__hide)
28644
28658
  .on(editor.container, 'mouseleave' + '.' + ns, this.__hide)
28645
28659
  .on(editor.editor, 'mousemove' + '.' + ns, this.__onMouseMove);
@@ -28727,7 +28741,8 @@ var addNewLine = /** @class */ (function (_super) {
28727
28741
  jodit_modules__WEBPACK_IMPORTED_MODULE_3__.Dom.safeRemove(this.__line);
28728
28742
  this.j.e
28729
28743
  .off([this.j.ow, this.j.ew, this.j.editor], '.' + ns)
28730
- .off(this.j.container, '.' + ns);
28744
+ .off(this.j.container, '.' + ns)
28745
+ .off('.' + ns);
28731
28746
  };
28732
28747
  (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .Cg)([
28733
28748
  (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.watch)(':lock')
@@ -30978,13 +30993,21 @@ function allowAttributes(jodit, nodeElm, hadEffect, allow) {
30978
30993
  */
30979
30994
 
30980
30995
 
30996
+ var TABLE_CONTAINER_TAGS = new Set([
30997
+ 'table',
30998
+ 'tbody',
30999
+ 'thead',
31000
+ 'tfoot',
31001
+ 'tr'
31002
+ ]);
30981
31003
  /**
30982
31004
  * @private
30983
31005
  */
30984
31006
  function fillEmptyParagraph(jodit, nodeElm, hadEffect) {
30985
31007
  if (jodit.o.cleanHTML.fillEmptyParagraph &&
30986
31008
  jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isBlock(nodeElm) &&
30987
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isEmpty(nodeElm, jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSEPARABLE_TAGS)) {
31009
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isEmpty(nodeElm, jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSEPARABLE_TAGS) &&
31010
+ !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(nodeElm, TABLE_CONTAINER_TAGS)) {
30988
31011
  var br = jodit.createInside.element('br');
30989
31012
  nodeElm.appendChild(br);
30990
31013
  return true;
@@ -34286,7 +34309,8 @@ var hotkeys = /** @class */ (function (_super) {
34286
34309
  function hotkeys() {
34287
34310
  var _this = _super.apply(this, (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__spreadArray */ .fX)([], (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__read */ .zs)(arguments), false)) || this;
34288
34311
  _this.onKeyPress = function (event) {
34289
- var special = _this.specialKeys[event.which], character = (event.key || String.fromCharCode(event.which)).toLowerCase();
34312
+ var special = _this.specialKeys[event.which];
34313
+ var character = (event.key || String.fromCharCode(event.which)).toLowerCase();
34290
34314
  var modif = [special || character];
34291
34315
  ['alt', 'ctrl', 'shift', 'meta'].forEach(function (specialKey) {
34292
34316
  if (event[specialKey + 'Key'] && special !== specialKey) {
@@ -34382,7 +34406,8 @@ var hotkeys = /** @class */ (function (_super) {
34382
34406
  }
34383
34407
  })
34384
34408
  .on('keydown.hotkeys', function (event) {
34385
- var shortcut = _this.onKeyPress(event), stop = {
34409
+ var shortcut = _this.onKeyPress(event);
34410
+ var stop = {
34386
34411
  shouldStop: true
34387
34412
  };
34388
34413
  var resultOfFire = _this.j.e.fire(shortcut + '.hotkey', event.type, stop);
@@ -43160,7 +43185,7 @@ var selectCells = /** @class */ (function (_super) {
43160
43185
  break;
43161
43186
  case 'addcolumnafter':
43162
43187
  case 'addcolumnbefore':
43163
- this.__tableModule.appendColumn(table_1, cell.cellIndex, command === 'addcolumnafter');
43188
+ this.__tableModule.appendColumn(table_1, cell, command === 'addcolumnafter');
43164
43189
  break;
43165
43190
  case 'addrowafter':
43166
43191
  case 'addrowbefore':
@@ -46604,6 +46629,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.tab
46604
46629
  }
46605
46630
  },
46606
46631
  popup: function (editor, current, close, button) {
46632
+ editor.editor.normalize();
46633
+ var snapshot = editor.history.snapshot.make();
46607
46634
  var control = button.control;
46608
46635
  var default_rows_count = control.data && control.data.rows ? control.data.rows : 10, default_cols_count = control.data && control.data.cols ? control.data.cols : 10;
46609
46636
  var generateExtraClasses = function () {
@@ -46696,10 +46723,24 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.tab
46696
46723
  table.classList.add(className);
46697
46724
  });
46698
46725
  });
46699
- if (editor.editor.firstChild) {
46700
- editor.s.insertNode(crt.text('\n'), false, false);
46726
+ editor.s.restore();
46727
+ editor.s.removeMarkers();
46728
+ editor.editor.normalize();
46729
+ editor.history.snapshot.restore(snapshot);
46730
+ var block = jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.furthest(editor.s.current(), jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isBlock, editor.editor);
46731
+ if (block && jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isEmpty(block)) {
46732
+ jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.replace(block, table, undefined, false, true);
46733
+ }
46734
+ else {
46735
+ if (block) {
46736
+ var fake = crt.text('\n');
46737
+ jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after(block, fake);
46738
+ jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after(fake, table);
46739
+ }
46740
+ else {
46741
+ editor.s.insertNode(table, false);
46742
+ }
46701
46743
  }
46702
- editor.s.insertNode(table, false);
46703
46744
  if (first_td) {
46704
46745
  editor.s.setCursorIn(first_td);
46705
46746
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.scrollIntoViewIfNeeded)(first_td, editor.editor, editor.ed);