jodit-pro 4.19.9 → 4.19.11

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 (342) hide show
  1. package/es2015/jodit.css +1 -1
  2. package/es2015/jodit.fat.min.js +11 -11
  3. package/es2015/jodit.js +699 -163
  4. package/es2015/jodit.min.js +41 -41
  5. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  6. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  7. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  8. package/es2015/plugins/autocomplete/autocomplete.css +1 -1
  9. package/es2015/plugins/autocomplete/autocomplete.js +1 -1
  10. package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
  11. package/es2015/plugins/backup/backup.css +1 -1
  12. package/es2015/plugins/backup/backup.js +1 -1
  13. package/es2015/plugins/backup/backup.min.js +1 -1
  14. package/es2015/plugins/button-generator/button-generator.css +1 -1
  15. package/es2015/plugins/button-generator/button-generator.js +1 -1
  16. package/es2015/plugins/button-generator/button-generator.min.js +1 -1
  17. package/es2015/plugins/change-case/change-case.js +1 -1
  18. package/es2015/plugins/change-case/change-case.min.js +1 -1
  19. package/es2015/plugins/chart/chart.css +1 -1
  20. package/es2015/plugins/chart/chart.js +1 -1
  21. package/es2015/plugins/chart/chart.min.js +1 -1
  22. package/es2015/plugins/color-picker/color-picker.css +1 -1
  23. package/es2015/plugins/color-picker/color-picker.js +1 -1
  24. package/es2015/plugins/color-picker/color-picker.min.js +1 -1
  25. package/es2015/plugins/emoji/emoji.css +1 -1
  26. package/es2015/plugins/emoji/emoji.js +1 -1
  27. package/es2015/plugins/emoji/emoji.min.js +1 -1
  28. package/es2015/plugins/export-docs/export-docs.js +1 -1
  29. package/es2015/plugins/export-docs/export-docs.min.js +1 -1
  30. package/es2015/plugins/finder/finder.css +1 -1
  31. package/es2015/plugins/finder/finder.js +1 -1
  32. package/es2015/plugins/finder/finder.min.js +1 -1
  33. package/es2015/plugins/google-maps/google-maps.css +1 -1
  34. package/es2015/plugins/google-maps/google-maps.js +1 -1
  35. package/es2015/plugins/google-maps/google-maps.min.js +1 -1
  36. package/es2015/plugins/google-search/google-search.js +1 -1
  37. package/es2015/plugins/google-search/google-search.min.js +1 -1
  38. package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
  39. package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
  40. package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
  41. package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
  42. package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
  43. package/es2015/plugins/image-editor-pro/image-editor-pro.css +1 -1
  44. package/es2015/plugins/image-editor-pro/image-editor-pro.js +1 -1
  45. package/es2015/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  46. package/es2015/plugins/keyboard/keyboard.css +1 -1
  47. package/es2015/plugins/keyboard/keyboard.js +1 -1
  48. package/es2015/plugins/keyboard/keyboard.min.js +1 -1
  49. package/es2015/plugins/math/math.css +1 -1
  50. package/es2015/plugins/math/math.js +1 -1
  51. package/es2015/plugins/math/math.min.js +1 -1
  52. package/es2015/plugins/mobile-view/mobile-view.js +1 -1
  53. package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
  54. package/es2015/plugins/page-break/page-break.js +1 -1
  55. package/es2015/plugins/page-break/page-break.min.js +1 -1
  56. package/es2015/plugins/paste-code/paste-code.css +1 -1
  57. package/es2015/plugins/paste-code/paste-code.js +1 -1
  58. package/es2015/plugins/paste-code/paste-code.min.js +1 -1
  59. package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
  60. package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
  61. package/es2015/plugins/show-blocks/show-blocks.js +1 -1
  62. package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
  63. package/es2015/plugins/style/style.css +1 -1
  64. package/es2015/plugins/style/style.js +1 -1
  65. package/es2015/plugins/style/style.min.js +1 -1
  66. package/es2015/plugins/templates/templates.css +1 -1
  67. package/es2015/plugins/templates/templates.js +1 -1
  68. package/es2015/plugins/templates/templates.min.js +1 -1
  69. package/es2015/plugins/todo-list/todo-list.css +1 -1
  70. package/es2015/plugins/todo-list/todo-list.js +1 -1
  71. package/es2015/plugins/todo-list/todo-list.min.js +1 -1
  72. package/es2015/plugins/translate/translate.css +1 -1
  73. package/es2015/plugins/translate/translate.js +1 -1
  74. package/es2015/plugins/translate/translate.min.js +1 -1
  75. package/es2015/plugins/tune-block/tune-block.css +1 -1
  76. package/es2015/plugins/tune-block/tune-block.js +1 -1
  77. package/es2015/plugins/tune-block/tune-block.min.js +1 -1
  78. package/es2018/jodit.fat.min.js +11 -11
  79. package/es2018/jodit.min.js +14 -14
  80. package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  81. package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
  82. package/es2018/plugins/backup/backup.min.js +1 -1
  83. package/es2018/plugins/button-generator/button-generator.min.js +1 -1
  84. package/es2018/plugins/change-case/change-case.min.js +1 -1
  85. package/es2018/plugins/chart/chart.min.js +1 -1
  86. package/es2018/plugins/color-picker/color-picker.min.js +1 -1
  87. package/es2018/plugins/emoji/emoji.min.js +1 -1
  88. package/es2018/plugins/export-docs/export-docs.min.js +1 -1
  89. package/es2018/plugins/finder/finder.min.js +1 -1
  90. package/es2018/plugins/google-maps/google-maps.min.js +1 -1
  91. package/es2018/plugins/google-search/google-search.min.js +1 -1
  92. package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
  93. package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
  94. package/es2018/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  95. package/es2018/plugins/keyboard/keyboard.min.js +1 -1
  96. package/es2018/plugins/math/math.min.js +1 -1
  97. package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
  98. package/es2018/plugins/page-break/page-break.min.js +1 -1
  99. package/es2018/plugins/paste-code/paste-code.min.js +1 -1
  100. package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
  101. package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
  102. package/es2018/plugins/style/style.min.js +1 -1
  103. package/es2018/plugins/templates/templates.min.js +1 -1
  104. package/es2018/plugins/todo-list/todo-list.min.js +1 -1
  105. package/es2018/plugins/translate/translate.min.js +1 -1
  106. package/es2018/plugins/tune-block/tune-block.min.js +1 -1
  107. package/es2021/jodit.css +1 -1
  108. package/es2021/jodit.fat.min.js +15 -15
  109. package/es2021/jodit.js +699 -163
  110. package/es2021/jodit.min.js +33 -33
  111. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  112. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  113. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  114. package/es2021/plugins/autocomplete/autocomplete.css +1 -1
  115. package/es2021/plugins/autocomplete/autocomplete.js +1 -1
  116. package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
  117. package/es2021/plugins/backup/backup.css +1 -1
  118. package/es2021/plugins/backup/backup.js +1 -1
  119. package/es2021/plugins/backup/backup.min.js +1 -1
  120. package/es2021/plugins/button-generator/button-generator.css +1 -1
  121. package/es2021/plugins/button-generator/button-generator.js +1 -1
  122. package/es2021/plugins/button-generator/button-generator.min.js +1 -1
  123. package/es2021/plugins/change-case/change-case.js +1 -1
  124. package/es2021/plugins/change-case/change-case.min.js +1 -1
  125. package/es2021/plugins/chart/chart.css +1 -1
  126. package/es2021/plugins/chart/chart.js +1 -1
  127. package/es2021/plugins/chart/chart.min.js +1 -1
  128. package/es2021/plugins/color-picker/color-picker.css +1 -1
  129. package/es2021/plugins/color-picker/color-picker.js +1 -1
  130. package/es2021/plugins/color-picker/color-picker.min.js +1 -1
  131. package/es2021/plugins/emoji/emoji.css +1 -1
  132. package/es2021/plugins/emoji/emoji.js +1 -1
  133. package/es2021/plugins/emoji/emoji.min.js +1 -1
  134. package/es2021/plugins/export-docs/export-docs.js +1 -1
  135. package/es2021/plugins/export-docs/export-docs.min.js +1 -1
  136. package/es2021/plugins/finder/finder.css +1 -1
  137. package/es2021/plugins/finder/finder.js +1 -1
  138. package/es2021/plugins/finder/finder.min.js +1 -1
  139. package/es2021/plugins/google-maps/google-maps.css +1 -1
  140. package/es2021/plugins/google-maps/google-maps.js +1 -1
  141. package/es2021/plugins/google-maps/google-maps.min.js +1 -1
  142. package/es2021/plugins/google-search/google-search.js +1 -1
  143. package/es2021/plugins/google-search/google-search.min.js +1 -1
  144. package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
  145. package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
  146. package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
  147. package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
  148. package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
  149. package/es2021/plugins/image-editor-pro/image-editor-pro.css +1 -1
  150. package/es2021/plugins/image-editor-pro/image-editor-pro.js +1 -1
  151. package/es2021/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  152. package/es2021/plugins/keyboard/keyboard.css +1 -1
  153. package/es2021/plugins/keyboard/keyboard.js +1 -1
  154. package/es2021/plugins/keyboard/keyboard.min.js +1 -1
  155. package/es2021/plugins/math/math.css +1 -1
  156. package/es2021/plugins/math/math.js +1 -1
  157. package/es2021/plugins/math/math.min.js +1 -1
  158. package/es2021/plugins/mobile-view/mobile-view.js +1 -1
  159. package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
  160. package/es2021/plugins/page-break/page-break.js +1 -1
  161. package/es2021/plugins/page-break/page-break.min.js +1 -1
  162. package/es2021/plugins/paste-code/paste-code.css +1 -1
  163. package/es2021/plugins/paste-code/paste-code.js +1 -1
  164. package/es2021/plugins/paste-code/paste-code.min.js +1 -1
  165. package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
  166. package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
  167. package/es2021/plugins/show-blocks/show-blocks.js +1 -1
  168. package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
  169. package/es2021/plugins/style/style.css +1 -1
  170. package/es2021/plugins/style/style.js +1 -1
  171. package/es2021/plugins/style/style.min.js +1 -1
  172. package/es2021/plugins/templates/templates.css +1 -1
  173. package/es2021/plugins/templates/templates.js +1 -1
  174. package/es2021/plugins/templates/templates.min.js +1 -1
  175. package/es2021/plugins/todo-list/todo-list.css +1 -1
  176. package/es2021/plugins/todo-list/todo-list.js +1 -1
  177. package/es2021/plugins/todo-list/todo-list.min.js +1 -1
  178. package/es2021/plugins/translate/translate.css +1 -1
  179. package/es2021/plugins/translate/translate.js +1 -1
  180. package/es2021/plugins/translate/translate.min.js +1 -1
  181. package/es2021/plugins/tune-block/tune-block.css +1 -1
  182. package/es2021/plugins/tune-block/tune-block.js +1 -1
  183. package/es2021/plugins/tune-block/tune-block.min.js +1 -1
  184. package/es2021.en/jodit.css +1 -1
  185. package/es2021.en/jodit.fat.min.js +13 -13
  186. package/es2021.en/jodit.js +699 -163
  187. package/es2021.en/jodit.min.js +14 -14
  188. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  189. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  190. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  191. package/es2021.en/plugins/autocomplete/autocomplete.css +1 -1
  192. package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
  193. package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
  194. package/es2021.en/plugins/backup/backup.css +1 -1
  195. package/es2021.en/plugins/backup/backup.js +1 -1
  196. package/es2021.en/plugins/backup/backup.min.js +1 -1
  197. package/es2021.en/plugins/button-generator/button-generator.css +1 -1
  198. package/es2021.en/plugins/button-generator/button-generator.js +1 -1
  199. package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
  200. package/es2021.en/plugins/change-case/change-case.js +1 -1
  201. package/es2021.en/plugins/change-case/change-case.min.js +1 -1
  202. package/es2021.en/plugins/chart/chart.css +1 -1
  203. package/es2021.en/plugins/chart/chart.js +1 -1
  204. package/es2021.en/plugins/chart/chart.min.js +1 -1
  205. package/es2021.en/plugins/color-picker/color-picker.css +1 -1
  206. package/es2021.en/plugins/color-picker/color-picker.js +1 -1
  207. package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
  208. package/es2021.en/plugins/emoji/emoji.css +1 -1
  209. package/es2021.en/plugins/emoji/emoji.js +1 -1
  210. package/es2021.en/plugins/emoji/emoji.min.js +1 -1
  211. package/es2021.en/plugins/export-docs/export-docs.js +1 -1
  212. package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
  213. package/es2021.en/plugins/finder/finder.css +1 -1
  214. package/es2021.en/plugins/finder/finder.js +1 -1
  215. package/es2021.en/plugins/finder/finder.min.js +1 -1
  216. package/es2021.en/plugins/google-maps/google-maps.css +1 -1
  217. package/es2021.en/plugins/google-maps/google-maps.js +1 -1
  218. package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
  219. package/es2021.en/plugins/google-search/google-search.js +1 -1
  220. package/es2021.en/plugins/google-search/google-search.min.js +1 -1
  221. package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
  222. package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
  223. package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
  224. package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
  225. package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
  226. package/es2021.en/plugins/image-editor-pro/image-editor-pro.css +1 -1
  227. package/es2021.en/plugins/image-editor-pro/image-editor-pro.js +1 -1
  228. package/es2021.en/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  229. package/es2021.en/plugins/keyboard/keyboard.css +1 -1
  230. package/es2021.en/plugins/keyboard/keyboard.js +1 -1
  231. package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
  232. package/es2021.en/plugins/math/math.css +1 -1
  233. package/es2021.en/plugins/math/math.js +1 -1
  234. package/es2021.en/plugins/math/math.min.js +1 -1
  235. package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
  236. package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
  237. package/es2021.en/plugins/page-break/page-break.js +1 -1
  238. package/es2021.en/plugins/page-break/page-break.min.js +1 -1
  239. package/es2021.en/plugins/paste-code/paste-code.css +1 -1
  240. package/es2021.en/plugins/paste-code/paste-code.js +1 -1
  241. package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
  242. package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
  243. package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
  244. package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
  245. package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
  246. package/es2021.en/plugins/style/style.css +1 -1
  247. package/es2021.en/plugins/style/style.js +1 -1
  248. package/es2021.en/plugins/style/style.min.js +1 -1
  249. package/es2021.en/plugins/templates/templates.css +1 -1
  250. package/es2021.en/plugins/templates/templates.js +1 -1
  251. package/es2021.en/plugins/templates/templates.min.js +1 -1
  252. package/es2021.en/plugins/todo-list/todo-list.css +1 -1
  253. package/es2021.en/plugins/todo-list/todo-list.js +1 -1
  254. package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
  255. package/es2021.en/plugins/translate/translate.css +1 -1
  256. package/es2021.en/plugins/translate/translate.js +1 -1
  257. package/es2021.en/plugins/translate/translate.min.js +1 -1
  258. package/es2021.en/plugins/tune-block/tune-block.css +1 -1
  259. package/es2021.en/plugins/tune-block/tune-block.js +1 -1
  260. package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
  261. package/es5/jodit.css +2 -2
  262. package/es5/jodit.fat.min.js +2 -2
  263. package/es5/jodit.js +771 -168
  264. package/es5/jodit.min.css +2 -2
  265. package/es5/jodit.min.js +2 -2
  266. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  267. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  268. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  269. package/es5/plugins/autocomplete/autocomplete.css +1 -1
  270. package/es5/plugins/autocomplete/autocomplete.js +1 -1
  271. package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
  272. package/es5/plugins/backup/backup.css +1 -1
  273. package/es5/plugins/backup/backup.js +1 -1
  274. package/es5/plugins/backup/backup.min.js +1 -1
  275. package/es5/plugins/button-generator/button-generator.css +1 -1
  276. package/es5/plugins/button-generator/button-generator.js +1 -1
  277. package/es5/plugins/button-generator/button-generator.min.js +1 -1
  278. package/es5/plugins/change-case/change-case.js +1 -1
  279. package/es5/plugins/change-case/change-case.min.js +1 -1
  280. package/es5/plugins/chart/chart.css +1 -1
  281. package/es5/plugins/chart/chart.js +1 -1
  282. package/es5/plugins/chart/chart.min.js +1 -1
  283. package/es5/plugins/color-picker/color-picker.css +1 -1
  284. package/es5/plugins/color-picker/color-picker.js +1 -1
  285. package/es5/plugins/color-picker/color-picker.min.js +1 -1
  286. package/es5/plugins/emoji/emoji.css +1 -1
  287. package/es5/plugins/emoji/emoji.js +1 -1
  288. package/es5/plugins/emoji/emoji.min.js +1 -1
  289. package/es5/plugins/export-docs/export-docs.js +1 -1
  290. package/es5/plugins/export-docs/export-docs.min.js +1 -1
  291. package/es5/plugins/finder/finder.css +1 -1
  292. package/es5/plugins/finder/finder.js +1 -1
  293. package/es5/plugins/finder/finder.min.js +1 -1
  294. package/es5/plugins/google-maps/google-maps.css +1 -1
  295. package/es5/plugins/google-maps/google-maps.js +1 -1
  296. package/es5/plugins/google-maps/google-maps.min.js +1 -1
  297. package/es5/plugins/google-search/google-search.js +1 -1
  298. package/es5/plugins/google-search/google-search.min.js +1 -1
  299. package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
  300. package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
  301. package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
  302. package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
  303. package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
  304. package/es5/plugins/image-editor-pro/image-editor-pro.css +1 -1
  305. package/es5/plugins/image-editor-pro/image-editor-pro.js +1 -1
  306. package/es5/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  307. package/es5/plugins/keyboard/keyboard.css +1 -1
  308. package/es5/plugins/keyboard/keyboard.js +1 -1
  309. package/es5/plugins/keyboard/keyboard.min.js +1 -1
  310. package/es5/plugins/math/math.css +1 -1
  311. package/es5/plugins/math/math.js +1 -1
  312. package/es5/plugins/math/math.min.js +1 -1
  313. package/es5/plugins/mobile-view/mobile-view.js +1 -1
  314. package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
  315. package/es5/plugins/page-break/page-break.js +1 -1
  316. package/es5/plugins/page-break/page-break.min.js +1 -1
  317. package/es5/plugins/paste-code/paste-code.css +1 -1
  318. package/es5/plugins/paste-code/paste-code.js +1 -1
  319. package/es5/plugins/paste-code/paste-code.min.js +1 -1
  320. package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
  321. package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
  322. package/es5/plugins/show-blocks/show-blocks.js +1 -1
  323. package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
  324. package/es5/plugins/style/style.css +1 -1
  325. package/es5/plugins/style/style.js +1 -1
  326. package/es5/plugins/style/style.min.js +1 -1
  327. package/es5/plugins/templates/templates.css +1 -1
  328. package/es5/plugins/templates/templates.js +1 -1
  329. package/es5/plugins/templates/templates.min.js +1 -1
  330. package/es5/plugins/todo-list/todo-list.css +1 -1
  331. package/es5/plugins/todo-list/todo-list.js +1 -1
  332. package/es5/plugins/todo-list/todo-list.min.js +1 -1
  333. package/es5/plugins/translate/translate.css +1 -1
  334. package/es5/plugins/translate/translate.js +1 -1
  335. package/es5/plugins/translate/translate.min.js +1 -1
  336. package/es5/plugins/tune-block/tune-block.css +1 -1
  337. package/es5/plugins/tune-block/tune-block.js +1 -1
  338. package/es5/plugins/tune-block/tune-block.min.js +1 -1
  339. package/es5/polyfills.fat.min.js +1 -1
  340. package/es5/polyfills.js +1 -1
  341. package/es5/polyfills.min.js +1 -1
  342. package/package.json +1 -1
package/es2015/jodit.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.19.9
4
+ * Version: v4.19.11
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1816,7 +1816,7 @@ __webpack_require__.r(__webpack_exports__);
1816
1816
  * ```
1817
1817
  * @packageDocumentation
1818
1818
  * @module constants
1819
- */ const APP_VERSION = "4.19.9";
1819
+ */ const APP_VERSION = "4.19.11";
1820
1820
  // prettier-ignore
1821
1821
  const ES = "es2015";
1822
1822
  const IS_ES_MODERN = true;
@@ -3025,13 +3025,14 @@ function wait(condition) {
3025
3025
  /* harmony import */ var _helpers_checker_is_set_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(42320);
3026
3026
  /* harmony import */ var _helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(70799);
3027
3027
  /* harmony import */ var _helpers_checker_is_void_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(86068);
3028
- /* harmony import */ var _helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(49055);
3029
- /* harmony import */ var _helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(38837);
3030
- /* harmony import */ var _helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(29960);
3031
- /* harmony import */ var _helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(41180);
3032
- /* harmony import */ var _helpers_utils_data_bind_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(86583);
3033
- /* harmony import */ var _helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(89890);
3034
- /* harmony import */ var _helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(37790);
3028
+ /* harmony import */ var _helpers_html_tag_scan_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(76241);
3029
+ /* harmony import */ var _helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(49055);
3030
+ /* harmony import */ var _helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(38837);
3031
+ /* harmony import */ var _helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(29960);
3032
+ /* harmony import */ var _helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(41180);
3033
+ /* harmony import */ var _helpers_utils_data_bind_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(86583);
3034
+ /* harmony import */ var _helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(89890);
3035
+ /* harmony import */ var _helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(37790);
3035
3036
  /*!
3036
3037
  * Jodit Editor (https://xdsoft.net/jodit/)
3037
3038
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -3052,7 +3053,7 @@ function wait(condition) {
3052
3053
 
3053
3054
 
3054
3055
 
3055
- const TEMP_ELEMENT_REG_EXP = new RegExp(`<([a-z]+)[^>]+${_constants_js__WEBPACK_IMPORTED_MODULE_0__.TEMP_ATTR}[^>]*>(.+?)</\\1>`, 'gi');
3056
+
3056
3057
  /**
3057
3058
  * Module for working with DOM
3058
3059
  */ class Dom {
@@ -3130,7 +3131,7 @@ const TEMP_ELEMENT_REG_EXP = new RegExp(`<([a-z]+)[^>]+${_constants_js__WEBPACK_
3130
3131
  const wrapper = (0,_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_6__.isString)(tag) ? create.element(tag) : tag;
3131
3132
  if (Dom.isNode(current)) {
3132
3133
  if (!current.parentNode) {
3133
- throw (0,_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_13__.error)('Element should be in DOM');
3134
+ throw (0,_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_14__.error)('Element should be in DOM');
3134
3135
  }
3135
3136
  current.parentNode.insertBefore(wrapper, current);
3136
3137
  wrapper.appendChild(current);
@@ -3180,12 +3181,12 @@ const TEMP_ELEMENT_REG_EXP = new RegExp(`<([a-z]+)[^>]+${_constants_js__WEBPACK_
3180
3181
  }
3181
3182
  static replace(elm, newTagName, create, withAttributes = false, notMoveContent = false) {
3182
3183
  if ((0,_helpers_checker_is_html_js__WEBPACK_IMPORTED_MODULE_4__.isHTML)(newTagName)) {
3183
- (0,_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_9__.assert)(create, 'Need create instance for new tag');
3184
+ (0,_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_10__.assert)(create, 'Need create instance for new tag');
3184
3185
  newTagName = create.fromHTML(newTagName);
3185
3186
  }
3186
3187
  let tag;
3187
3188
  if ((0,_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_6__.isString)(newTagName)) {
3188
- (0,_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_9__.assert)(create, 'Need create instance for new tag');
3189
+ (0,_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_10__.assert)(create, 'Need create instance for new tag');
3189
3190
  tag = create.element(newTagName);
3190
3191
  } else {
3191
3192
  tag = newTagName;
@@ -3234,7 +3235,7 @@ const TEMP_ELEMENT_REG_EXP = new RegExp(`<([a-z]+)[^>]+${_constants_js__WEBPACK_
3234
3235
  } else {
3235
3236
  cond = condNoEmptyElement;
3236
3237
  }
3237
- const emptyText = (node)=>node.nodeValue == null || (0,_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_8__.trim)(node.nodeValue).length === 0;
3238
+ const emptyText = (node)=>node.nodeValue == null || (0,_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_9__.trim)(node.nodeValue).length === 0;
3238
3239
  if (Dom.isText(node)) {
3239
3240
  return emptyText(node);
3240
3241
  }
@@ -3325,7 +3326,7 @@ const TEMP_ELEMENT_REG_EXP = new RegExp(`<([a-z]+)[^>]+${_constants_js__WEBPACK_
3325
3326
  return Dom.isElement(node) && !/^(BR|HR)$/i.test(node.tagName) && [
3326
3327
  'inline',
3327
3328
  'inline-block'
3328
- ].indexOf((0,_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_11__.css)(node, 'display').toString()) !== -1;
3329
+ ].indexOf((0,_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_12__.css)(node, 'display').toString()) !== -1;
3329
3330
  }
3330
3331
  /**
3331
3332
  * It's block and it can be split
@@ -3500,13 +3501,13 @@ const TEMP_ELEMENT_REG_EXP = new RegExp(`<([a-z]+)[^>]+${_constants_js__WEBPACK_
3500
3501
  */ static findNotEmptySibling(node, left) {
3501
3502
  return Dom.findSibling(node, left, (n)=>{
3502
3503
  var _a;
3503
- return !Dom.isEmptyTextNode(n) && Boolean(!Dom.isText(n) || ((_a = n.nodeValue) === null || _a === void 0 ? void 0 : _a.length) && (0,_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_8__.trim)(n.nodeValue));
3504
+ return !Dom.isEmptyTextNode(n) && Boolean(!Dom.isText(n) || ((_a = n.nodeValue) === null || _a === void 0 ? void 0 : _a.length) && (0,_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_9__.trim)(n.nodeValue));
3504
3505
  });
3505
3506
  }
3506
3507
  /**
3507
3508
  * Returns the nearest non-empty neighbor
3508
3509
  */ static findNotEmptyNeighbor(node, left, root) {
3509
- return (0,_helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_14__.call)(left ? Dom.prev : Dom.next, node, (n)=>Boolean(n && (!(Dom.isText(n) || Dom.isComment(n)) || (0,_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_8__.trim)((n === null || n === void 0 ? void 0 : n.nodeValue) || '').length)), root);
3510
+ return (0,_helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_15__.call)(left ? Dom.prev : Dom.next, node, (n)=>Boolean(n && (!(Dom.isText(n) || Dom.isComment(n)) || (0,_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_9__.trim)((n === null || n === void 0 ? void 0 : n.nodeValue) || '').length)), root);
3510
3511
  }
3511
3512
  static sibling(node, left) {
3512
3513
  return left ? node.previousSibling : node.nextSibling;
@@ -3653,7 +3654,7 @@ const TEMP_ELEMENT_REG_EXP = new RegExp(`<([a-z]+)[^>]+${_constants_js__WEBPACK_
3653
3654
  if (!node) {
3654
3655
  return;
3655
3656
  }
3656
- ;(0,_helpers_utils_data_bind_js__WEBPACK_IMPORTED_MODULE_12__.dataBind)(node, '__old_display', node.style.getPropertyValue('display'));
3657
+ ;(0,_helpers_utils_data_bind_js__WEBPACK_IMPORTED_MODULE_13__.dataBind)(node, '__old_display', node.style.getPropertyValue('display'));
3657
3658
  node.style.setProperty('display', 'none');
3658
3659
  }
3659
3660
  /**
@@ -3662,7 +3663,7 @@ const TEMP_ELEMENT_REG_EXP = new RegExp(`<([a-z]+)[^>]+${_constants_js__WEBPACK_
3662
3663
  if (!node) {
3663
3664
  return;
3664
3665
  }
3665
- const display = (0,_helpers_utils_data_bind_js__WEBPACK_IMPORTED_MODULE_12__.dataBind)(node, '__old_display');
3666
+ const display = (0,_helpers_utils_data_bind_js__WEBPACK_IMPORTED_MODULE_13__.dataBind)(node, '__old_display');
3666
3667
  if (node.style.getPropertyValue('display') === 'none') {
3667
3668
  node.style.setProperty('display', display || null);
3668
3669
  }
@@ -3683,8 +3684,8 @@ const TEMP_ELEMENT_REG_EXP = new RegExp(`<([a-z]+)[^>]+${_constants_js__WEBPACK_
3683
3684
  /**
3684
3685
  * Marks an item as temporary
3685
3686
  */ static markTemporary(element, attributes) {
3686
- attributes && (0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_10__.attr)(element, attributes);
3687
- (0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_10__.attr)(element, _constants_js__WEBPACK_IMPORTED_MODULE_0__.TEMP_ATTR, true);
3687
+ attributes && (0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_11__.attr)(element, attributes);
3688
+ (0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_11__.attr)(element, _constants_js__WEBPACK_IMPORTED_MODULE_0__.TEMP_ATTR, true);
3688
3689
  return element;
3689
3690
  }
3690
3691
  /**
@@ -3693,7 +3694,7 @@ const TEMP_ELEMENT_REG_EXP = new RegExp(`<([a-z]+)[^>]+${_constants_js__WEBPACK_
3693
3694
  if (!Dom.isElement(element)) {
3694
3695
  return false;
3695
3696
  }
3696
- return Dom.isMarker(element) || (0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_10__.attr)(element, _constants_js__WEBPACK_IMPORTED_MODULE_0__.TEMP_ATTR) === 'true';
3697
+ return Dom.isMarker(element) || (0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_11__.attr)(element, _constants_js__WEBPACK_IMPORTED_MODULE_0__.TEMP_ATTR) === 'true';
3697
3698
  }
3698
3699
  /**
3699
3700
  * Define element is selection helper
@@ -3703,7 +3704,7 @@ const TEMP_ELEMENT_REG_EXP = new RegExp(`<([a-z]+)[^>]+${_constants_js__WEBPACK_
3703
3704
  /**
3704
3705
  * Unwrap temporary elements inside a HTML string (keeps their content)
3705
3706
  */ static replaceTemporaryFromString(value) {
3706
- return value.replace(TEMP_ELEMENT_REG_EXP, '$2');
3707
+ return (0,_helpers_html_tag_scan_js__WEBPACK_IMPORTED_MODULE_8__.unwrapMarkedTags)(value, null, _constants_js__WEBPACK_IMPORTED_MODULE_0__.TEMP_ATTR);
3707
3708
  }
3708
3709
  /**
3709
3710
  * Collect the temporary elements (`data-jodit-temp`) inside the root.
@@ -5234,16 +5235,96 @@ function isFastEqual(a, b) {
5234
5235
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
5235
5236
  */ /**
5236
5237
  * @module helpers/checker
5237
- */ /**
5238
+ */ const SPACE = /\s/;
5239
+ const DIGIT = /\d/;
5240
+ const WORD_CHAR = /\w/;
5241
+ // `content="Microsoft Word 15"` — the name followed by a space and a version digit
5242
+ function hasGenerator(tag, name) {
5243
+ let index = tag.indexOf(name);
5244
+ while(index !== -1){
5245
+ const after = index + name.length;
5246
+ if (SPACE.test(tag.charAt(after)) && DIGIT.test(tag.charAt(after + 1))) {
5247
+ return true;
5248
+ }
5249
+ index = tag.indexOf(name, after);
5250
+ }
5251
+ return false;
5252
+ }
5253
+ // `<meta name=ProgId content=Word.Document>`, `<meta name=Generator content="LibreOffice 7.6">`
5254
+ function isOfficeMeta(tag) {
5255
+ if (hasGenerator(tag, 'Microsoft Word') || hasGenerator(tag, 'Microsoft Excel')) {
5256
+ return true;
5257
+ }
5258
+ const lower = tag.toLowerCase();
5259
+ const progId = lower.indexOf('progid');
5260
+ if (progId !== -1 && (lower.indexOf('word.', progId) !== -1 || lower.indexOf('excel.', progId) !== -1)) {
5261
+ return true;
5262
+ }
5263
+ return lower.includes('libreoffice') || lower.includes('openoffice');
5264
+ }
5265
+ // ` class=MsoNormal`, ` class="MsoListParagraph"` inside one tag
5266
+ function hasMsoClass(tag) {
5267
+ let index = tag.indexOf('class=');
5268
+ while(index !== -1){
5269
+ if (index > 0 && SPACE.test(tag.charAt(index - 1))) {
5270
+ let value = index + 'class='.length;
5271
+ const quote = tag.charAt(value);
5272
+ if (quote === '"' || quote === "'") {
5273
+ value += 1;
5274
+ }
5275
+ if (tag.startsWith('Mso', value)) {
5276
+ return true;
5277
+ }
5278
+ }
5279
+ index = tag.indexOf('class=', index + 'class='.length);
5280
+ }
5281
+ return false;
5282
+ }
5283
+ // `style='mso-list:l0 level1 lfo1'` — an `mso-` property inside a style attribute with the given quote
5284
+ function hasMsoStyle(data, quote) {
5285
+ const open = 'style=' + quote;
5286
+ let index = data.indexOf(open);
5287
+ while(index !== -1){
5288
+ const start = index + open.length;
5289
+ let end = data.indexOf(quote, start);
5290
+ if (end === -1) {
5291
+ end = data.length;
5292
+ }
5293
+ if (data.slice(start, end).includes('mso-')) {
5294
+ return true;
5295
+ }
5296
+ index = data.indexOf(open, end);
5297
+ }
5298
+ return false;
5299
+ }
5300
+ /**
5238
5301
  * Detect if string is HTML from MS Word, Excel or LibreOffice/OpenOffice
5302
+ *
5303
+ * The clipboard text is attacker controlled, so every check walks the string
5304
+ * once with `indexOf`: a regex with an unbounded group before a required
5305
+ * literal was quadratic on a long run of `<meta` and froze the tab.
5239
5306
  */ function isHtmlFromWord(data) {
5240
- return data.search(/<meta.*?Microsoft Excel\s[\d].*?>/) !== -1 || data.search(/<meta.*?Microsoft Word\s[\d].*?>/) !== -1 || // `<meta name=ProgId content=Word.Document>` — attribute values are
5241
- // unquoted in the raw Word clipboard fragment
5242
- data.search(/<meta[^>]*?ProgId[^>]*?(Word|Excel)\./i) !== -1 || // LibreOffice/OpenOffice Writer & Calc
5243
- data.search(/<meta[^>]*?(LibreOffice|OpenOffice)/i) !== -1 || // Office namespaces on the root element of the clipboard fragment
5244
- data.search(/urn:schemas-microsoft-com:office:(word|excel)/) !== -1 || // `class=MsoNormal` and friends (unquoted/quoted)
5245
- data.search(/<\w[^>]*\sclass=("|')?Mso/) !== -1 || // the raw Word clipboard uses SINGLE quotes: style='mso-…'
5246
- data.search(/style='[^']*mso-/) !== -1 || data.search(/style="[^"]*mso-/) !== -1 && data.search(/<font/) !== -1;
5307
+ if (data.includes('urn:schemas-microsoft-com:office:word') || data.includes('urn:schemas-microsoft-com:office:excel')) {
5308
+ return true;
5309
+ }
5310
+ // Each tag is taken once, from its `<` to the next `>`, so the scan stays linear
5311
+ let index = data.indexOf('<');
5312
+ while(index !== -1){
5313
+ if (!WORD_CHAR.test(data.charAt(index + 1))) {
5314
+ index = data.indexOf('<', index + 1);
5315
+ continue;
5316
+ }
5317
+ let end = data.indexOf('>', index);
5318
+ if (end === -1) {
5319
+ end = data.length;
5320
+ }
5321
+ const tag = data.slice(index, end);
5322
+ if (tag.slice(0, 5).toLowerCase() === '<meta' && isOfficeMeta(tag) || hasMsoClass(tag)) {
5323
+ return true;
5324
+ }
5325
+ index = data.indexOf('<', end);
5326
+ }
5327
+ return hasMsoStyle(data, "'") || hasMsoStyle(data, '"') && data.includes('<font');
5247
5328
  }
5248
5329
 
5249
5330
 
@@ -5260,9 +5341,62 @@ function isFastEqual(a, b) {
5260
5341
  */ /**
5261
5342
  * @module helpers/checker
5262
5343
  */
5344
+ const NAME_START = /[A-Za-z]/;
5345
+ const NAME_CHAR = /[A-Za-z0-9]/;
5346
+ const WORD_CHAR = /\w/;
5347
+ // The tag name at `from`, or '' when there is none
5348
+ function readTagName(str, from) {
5349
+ if (!NAME_START.test(str.charAt(from))) {
5350
+ return '';
5351
+ }
5352
+ let end = from + 1;
5353
+ while(NAME_CHAR.test(str.charAt(end))){
5354
+ end += 1;
5355
+ }
5356
+ return str.slice(from, end);
5357
+ }
5358
+ // Is there an element `<name ...>` closed later by `</name>`? One pass for the closing tags, one for the opening ones
5359
+ function hasElement(str) {
5360
+ const lastClose = new Map();
5361
+ let index = str.indexOf('</');
5362
+ while(index !== -1){
5363
+ const name = readTagName(str, index + 2);
5364
+ if (name !== '' && str.charAt(index + 2 + name.length) === '>') {
5365
+ lastClose.set(name, index);
5366
+ }
5367
+ index = str.indexOf('</', index + 2);
5368
+ }
5369
+ if (lastClose.size === 0) {
5370
+ return false;
5371
+ }
5372
+ let gt = -1;
5373
+ index = str.indexOf('<');
5374
+ while(index !== -1){
5375
+ const name = readTagName(str, index + 1);
5376
+ const after = index + 1 + name.length;
5377
+ if (name !== '' && !WORD_CHAR.test(str.charAt(after))) {
5378
+ if (gt < after) {
5379
+ gt = str.indexOf('>', after);
5380
+ }
5381
+ if (gt === -1) {
5382
+ return false;
5383
+ }
5384
+ const close = lastClose.get(name);
5385
+ if (close !== undefined && close > gt) {
5386
+ return true;
5387
+ }
5388
+ }
5389
+ index = str.indexOf('<', index + 1);
5390
+ }
5391
+ return false;
5392
+ }
5263
5393
  /**
5264
5394
  * Check if a string is html or not
5265
- */ const isHTML = (str)=>(0,_is_string_js__WEBPACK_IMPORTED_MODULE_0__.isString)(str) && /<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(str.replace(/[\r\n]/g, ''));
5395
+ *
5396
+ * The pasted text is attacker controlled, so the check walks the string with
5397
+ * `indexOf`: the former regex `<(\w+)[^>]*>(.*?)<\/\1>` was quadratic on a
5398
+ * long run of `<a>` and froze the tab.
5399
+ */ const isHTML = (str)=>(0,_is_string_js__WEBPACK_IMPORTED_MODULE_0__.isString)(str) && hasElement(str);
5266
5400
 
5267
5401
  /* harmony export */ __webpack_require__.d(__webpack_exports__, [
5268
5402
  /* harmony export */ "isHTML", 0, /* binding */ isHTML
@@ -5752,11 +5886,12 @@ const isLicense = (license)=>(0,_is_string_js__WEBPACK_IMPORTED_MODULE_0__.isStr
5752
5886
  /* harmony export */ });
5753
5887
  /* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
5754
5888
  /* harmony import */ var _dom_dom_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2748);
5755
- /* harmony import */ var _word_lists_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(90723);
5756
- /* harmony import */ var _string_trim_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(49055);
5757
- /* harmony import */ var _utils_attr_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(29960);
5758
- /* harmony import */ var _utils_css_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(41180);
5759
- /* harmony import */ var _utils_selector_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(76078);
5889
+ /* harmony import */ var _tag_scan_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(76241);
5890
+ /* harmony import */ var _word_lists_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(90723);
5891
+ /* harmony import */ var _string_trim_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(49055);
5892
+ /* harmony import */ var _utils_attr_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(29960);
5893
+ /* harmony import */ var _utils_css_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(41180);
5894
+ /* harmony import */ var _utils_selector_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(76078);
5760
5895
  /*!
5761
5896
  * Jodit Editor (https://xdsoft.net/jodit/)
5762
5897
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -5770,8 +5905,19 @@ const isLicense = (license)=>(0,_is_string_js__WEBPACK_IMPORTED_MODULE_0__.isStr
5770
5905
 
5771
5906
 
5772
5907
 
5908
+
5909
+ // Drop the `mso-*` and `border*` declarations and turn pt/cm into px; one declaration at a time, so a long value cannot make the regexes backtrack
5773
5910
  function normalizeCSS(s) {
5774
- return s.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi, '').replace(/mso-[a-z-]+:[\s]*[^";']+$/gi, '').replace(/border[a-z-]*:[\s]*[^;]+;/gi, '').replace(/([0-9.]+)(pt|cm)/gi, (match, units, metrics)=>{
5911
+ const declarations = s.split(';');
5912
+ const last = declarations.length - 1;
5913
+ return declarations.filter((declaration, index)=>{
5914
+ const match = /^\s*([a-z-]{1,64})\s*:/i.exec(declaration);
5915
+ if (!match) {
5916
+ return true;
5917
+ }
5918
+ const property = match[1].toLowerCase();
5919
+ return !(property.startsWith('mso-') || property.startsWith('border') && index !== last);
5920
+ }).join(';').replace(/([0-9.]{1,32})(pt|cm)/gi, (match, units, metrics)=>{
5775
5921
  switch(metrics.toLowerCase()){
5776
5922
  case 'pt':
5777
5923
  return (parseFloat(units) * 1.328).toFixed(0) + 'px';
@@ -5793,17 +5939,17 @@ function normalizeCSS(s) {
5793
5939
  // cell backgrounds/borders, e.g. `.xl31 { background:#FCE4D6 }`) were never
5794
5940
  // inlined and all styling was lost once the `<style>` block got stripped.
5795
5941
  // See https://github.com/xdan/jodit/issues/1362
5796
- const openMatch = /<html(?:\s[^>]*)?>/i.exec(html);
5797
- if (!openMatch) {
5942
+ const open = (0,_tag_scan_js__WEBPACK_IMPORTED_MODULE_2__.indexOfOpenTag)(html, 'html');
5943
+ if (open === -1) {
5798
5944
  return html;
5799
5945
  }
5800
- html = html.substring(openMatch.index);
5946
+ html = html.substring(open);
5801
5947
  const closeIndex = html.toLowerCase().lastIndexOf('</html>');
5802
5948
  if (closeIndex !== -1) {
5803
5949
  html = html.substring(0, closeIndex + '</html>'.length);
5804
5950
  }
5805
5951
  const iframe = _constants_js__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('iframe');
5806
- (0,_utils_css_js__WEBPACK_IMPORTED_MODULE_5__.css)(iframe, 'display', 'none');
5952
+ (0,_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(iframe, 'display', 'none');
5807
5953
  _dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(_constants_js__WEBPACK_IMPORTED_MODULE_0__.globalDocument.body, iframe);
5808
5954
  let convertedString = '', collection;
5809
5955
  try {
@@ -5812,14 +5958,14 @@ function normalizeCSS(s) {
5812
5958
  iframeDoc.open();
5813
5959
  iframeDoc.write(html);
5814
5960
  iframeDoc.close();
5815
- const listItems = (0,_word_lists_js__WEBPACK_IMPORTED_MODULE_2__.readWordListItems)(iframeDoc.body);
5961
+ const listItems = (0,_word_lists_js__WEBPACK_IMPORTED_MODULE_3__.readWordListItems)(iframeDoc.body);
5816
5962
  // Word marks its auto-generated list markers (the literal
5817
5963
  // bullet/number, e.g. `1.` or `·`) with `mso-list:Ignore`.
5818
5964
  // They are display-only and must not be imported, otherwise
5819
5965
  // the marker text leaks into the content. Drop them before any
5820
5966
  // style normalization strips the `mso-list` hint. See #948
5821
5967
  _dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.each(iframeDoc.body, (node)=>{
5822
- if (_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isElement(node) && /mso-list:\s*ignore/i.test((0,_utils_attr_js__WEBPACK_IMPORTED_MODULE_4__.attr)(node, 'style') || '')) {
5968
+ if (_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isElement(node) && /mso-list:\s*ignore/i.test((0,_utils_attr_js__WEBPACK_IMPORTED_MODULE_5__.attr)(node, 'style') || '')) {
5823
5969
  _dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(node);
5824
5970
  }
5825
5971
  });
@@ -5830,7 +5976,7 @@ function normalizeCSS(s) {
5830
5976
  if (rules[idx].selectorText === '') {
5831
5977
  continue;
5832
5978
  }
5833
- collection = (0,_utils_selector_js__WEBPACK_IMPORTED_MODULE_6__.$$)(rules[idx].selectorText, iframeDoc.body);
5979
+ collection = (0,_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__.$$)(rules[idx].selectorText, iframeDoc.body);
5834
5980
  // `style.cssText` on purpose: the CSSOM parses the text,
5835
5981
  // drops invalid declarations and re-serializes it. The raw
5836
5982
  // `style` attribute would keep Word-only junk verbatim
@@ -5844,19 +5990,19 @@ function normalizeCSS(s) {
5844
5990
  throw e;
5845
5991
  }
5846
5992
  }
5847
- ;(0,_word_lists_js__WEBPACK_IMPORTED_MODULE_2__.wrapWordListItems)(listItems);
5993
+ ;(0,_word_lists_js__WEBPACK_IMPORTED_MODULE_3__.wrapWordListItems)(listItems);
5848
5994
  _dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.each(iframeDoc.body, (node)=>{
5849
5995
  if (_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isElement(node)) {
5850
- const cssText = (0,_utils_attr_js__WEBPACK_IMPORTED_MODULE_4__.attr)(node, 'style');
5996
+ const cssText = (0,_utils_attr_js__WEBPACK_IMPORTED_MODULE_5__.attr)(node, 'style');
5851
5997
  if (cssText) {
5852
5998
  node.style.cssText = normalizeCSS(cssText);
5853
5999
  }
5854
- if (!(0,_utils_attr_js__WEBPACK_IMPORTED_MODULE_4__.attr)(node, 'style')) {
5855
- (0,_utils_attr_js__WEBPACK_IMPORTED_MODULE_4__.attr)(node, 'style', null);
6000
+ if (!(0,_utils_attr_js__WEBPACK_IMPORTED_MODULE_5__.attr)(node, 'style')) {
6001
+ (0,_utils_attr_js__WEBPACK_IMPORTED_MODULE_5__.attr)(node, 'style', null);
5856
6002
  }
5857
6003
  }
5858
6004
  });
5859
- convertedString = iframeDoc.firstChild ? (0,_string_trim_js__WEBPACK_IMPORTED_MODULE_3__.trim)(iframeDoc.body.innerHTML) : '';
6005
+ convertedString = iframeDoc.firstChild ? (0,_string_trim_js__WEBPACK_IMPORTED_MODULE_4__.trim)(iframeDoc.body.innerHTML) : '';
5860
6006
  }
5861
6007
  } catch (_a) {} finally{
5862
6008
  _dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(iframe);
@@ -5864,7 +6010,7 @@ function normalizeCSS(s) {
5864
6010
  if (convertedString) {
5865
6011
  html = convertedString;
5866
6012
  }
5867
- return (0,_string_trim_js__WEBPACK_IMPORTED_MODULE_3__.trim)(html.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g, '').replace(/<!--[^>]*>/g, ''));
6013
+ return (0,_string_trim_js__WEBPACK_IMPORTED_MODULE_4__.trim)((0,_tag_scan_js__WEBPACK_IMPORTED_MODULE_2__.removeWordWrappers)(html));
5868
6014
  }
5869
6015
 
5870
6016
 
@@ -5879,9 +6025,10 @@ function normalizeCSS(s) {
5879
6025
  /* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
5880
6026
  /* harmony import */ var _dom_dom_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2748);
5881
6027
  /* harmony import */ var _array_to_array_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4510);
5882
- /* harmony import */ var _word_lists_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(90723);
5883
- /* harmony import */ var _string_trim_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(49055);
5884
- /* harmony import */ var _utils_attr_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(29960);
6028
+ /* harmony import */ var _tag_scan_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(76241);
6029
+ /* harmony import */ var _word_lists_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(90723);
6030
+ /* harmony import */ var _string_trim_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(49055);
6031
+ /* harmony import */ var _utils_attr_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(29960);
5885
6032
  /*!
5886
6033
  * Jodit Editor (https://xdsoft.net/jodit/)
5887
6034
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -5894,6 +6041,7 @@ function normalizeCSS(s) {
5894
6041
 
5895
6042
 
5896
6043
 
6044
+
5897
6045
  /**
5898
6046
  * The method automatically cleans up content from Microsoft Word and other HTML sources to ensure clean, compliant
5899
6047
  * content that matches the look and feel of the site.
@@ -5907,7 +6055,7 @@ function normalizeCSS(s) {
5907
6055
  const div = _constants_js__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('div');
5908
6056
  div.innerHTML = html;
5909
6057
  const marks = [];
5910
- const listItems = (0,_word_lists_js__WEBPACK_IMPORTED_MODULE_3__.readWordListItems)(div);
6058
+ const listItems = (0,_word_lists_js__WEBPACK_IMPORTED_MODULE_4__.readWordListItems)(div);
5911
6059
  if (div.firstChild) {
5912
6060
  _dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.each(div, (node)=>{
5913
6061
  if (!node) {
@@ -5932,7 +6080,7 @@ function normalizeCSS(s) {
5932
6080
  // with `mso-list:Ignore`. They are display-only
5933
6081
  // and must not be imported, otherwise the marker
5934
6082
  // text leaks into the content. See #948
5935
- if (/mso-list:\s*ignore/i.test((0,_utils_attr_js__WEBPACK_IMPORTED_MODULE_5__.attr)(node, 'style') || '')) {
6083
+ if (/mso-list:\s*ignore/i.test((0,_utils_attr_js__WEBPACK_IMPORTED_MODULE_6__.attr)(node, 'style') || '')) {
5936
6084
  marks.push(node);
5937
6085
  break;
5938
6086
  }
@@ -5946,7 +6094,7 @@ function normalizeCSS(s) {
5946
6094
  // `attrRaw`: SVG keeps camelCase names
5947
6095
  // (`viewBox`), `attr()` would kebab-case
5948
6096
  // them and silently skip the removal
5949
- (0,_utils_attr_js__WEBPACK_IMPORTED_MODULE_5__.attrRaw)(node, attribute.name, null);
6097
+ (0,_utils_attr_js__WEBPACK_IMPORTED_MODULE_6__.attrRaw)(node, attribute.name, null);
5950
6098
  }
5951
6099
  });
5952
6100
  }
@@ -5959,14 +6107,14 @@ function normalizeCSS(s) {
5959
6107
  });
5960
6108
  }
5961
6109
  _dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove.apply(null, marks);
5962
- (0,_word_lists_js__WEBPACK_IMPORTED_MODULE_3__.wrapWordListItems)(listItems);
6110
+ (0,_word_lists_js__WEBPACK_IMPORTED_MODULE_4__.wrapWordListItems)(listItems);
5963
6111
  convertedString = div.innerHTML;
5964
6112
  } catch (e) {}
5965
6113
  if (convertedString) {
5966
6114
  html = convertedString;
5967
6115
  }
5968
- html = html.split(/(\n)/).filter(_string_trim_js__WEBPACK_IMPORTED_MODULE_4__.trim).join('\n');
5969
- return html.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g, '').replace(/<!--[^>]*>/g, '');
6116
+ html = html.split(/(\n)/).filter(_string_trim_js__WEBPACK_IMPORTED_MODULE_5__.trim).join('\n');
6117
+ return (0,_tag_scan_js__WEBPACK_IMPORTED_MODULE_3__.removeWordWrappers)(html);
5970
6118
  }
5971
6119
 
5972
6120
 
@@ -6004,10 +6152,17 @@ function normalizeCSS(s) {
6004
6152
  /* harmony export */ applyStyles: function() { return /* reexport safe */ _apply_styles_js__WEBPACK_IMPORTED_MODULE_0__.applyStyles; },
6005
6153
  /* harmony export */ cleanFromWord: function() { return /* reexport safe */ _clean_from_word_js__WEBPACK_IMPORTED_MODULE_1__.cleanFromWord; },
6006
6154
  /* harmony export */ htmlspecialchars: function() { return /* reexport safe */ _htmlspecialchars_js__WEBPACK_IMPORTED_MODULE_2__.htmlspecialchars; },
6155
+ /* harmony export */ indexOfClosingTag: function() { return /* reexport safe */ _tag_scan_js__WEBPACK_IMPORTED_MODULE_6__.indexOfClosingTag; },
6156
+ /* harmony export */ indexOfOpenTag: function() { return /* reexport safe */ _tag_scan_js__WEBPACK_IMPORTED_MODULE_6__.indexOfOpenTag; },
6007
6157
  /* harmony export */ nl2br: function() { return /* reexport safe */ _nl2br_js__WEBPACK_IMPORTED_MODULE_3__.nl2br; },
6158
+ /* harmony export */ removeBetween: function() { return /* reexport safe */ _tag_scan_js__WEBPACK_IMPORTED_MODULE_6__.removeBetween; },
6159
+ /* harmony export */ removeEmptyMarkedTags: function() { return /* reexport safe */ _tag_scan_js__WEBPACK_IMPORTED_MODULE_6__.removeEmptyMarkedTags; },
6160
+ /* harmony export */ removeTagsByPrefix: function() { return /* reexport safe */ _tag_scan_js__WEBPACK_IMPORTED_MODULE_6__.removeTagsByPrefix; },
6161
+ /* harmony export */ removeWordWrappers: function() { return /* reexport safe */ _tag_scan_js__WEBPACK_IMPORTED_MODULE_6__.removeWordWrappers; },
6008
6162
  /* harmony export */ safeHTML: function() { return /* reexport safe */ _safe_html_js__WEBPACK_IMPORTED_MODULE_4__.safeHTML; },
6009
6163
  /* harmony export */ sanitizeHTMLElement: function() { return /* reexport safe */ _safe_html_js__WEBPACK_IMPORTED_MODULE_4__.sanitizeHTMLElement; },
6010
- /* harmony export */ stripTags: function() { return /* reexport safe */ _strip_tags_js__WEBPACK_IMPORTED_MODULE_5__.stripTags; }
6164
+ /* harmony export */ stripTags: function() { return /* reexport safe */ _strip_tags_js__WEBPACK_IMPORTED_MODULE_5__.stripTags; },
6165
+ /* harmony export */ unwrapMarkedTags: function() { return /* reexport safe */ _tag_scan_js__WEBPACK_IMPORTED_MODULE_6__.unwrapMarkedTags; }
6011
6166
  /* harmony export */ });
6012
6167
  /* harmony import */ var _apply_styles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(32574);
6013
6168
  /* harmony import */ var _clean_from_word_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(53212);
@@ -6015,6 +6170,7 @@ function normalizeCSS(s) {
6015
6170
  /* harmony import */ var _nl2br_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(45971);
6016
6171
  /* harmony import */ var _safe_html_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(86518);
6017
6172
  /* harmony import */ var _strip_tags_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91003);
6173
+ /* harmony import */ var _tag_scan_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(76241);
6018
6174
  /*!
6019
6175
  * Jodit Editor (https://xdsoft.net/jodit/)
6020
6176
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -6029,6 +6185,7 @@ function normalizeCSS(s) {
6029
6185
 
6030
6186
 
6031
6187
 
6188
+
6032
6189
  /***/ }),
6033
6190
 
6034
6191
  /***/ 45971:
@@ -6382,6 +6539,281 @@ function restoreTags(content) {
6382
6539
  }
6383
6540
 
6384
6541
 
6542
+ /***/ }),
6543
+
6544
+ /***/ 76241:
6545
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6546
+
6547
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6548
+ /* harmony export */ indexOfClosingTag: function() { return /* binding */ indexOfClosingTag; },
6549
+ /* harmony export */ indexOfOpenTag: function() { return /* binding */ indexOfOpenTag; },
6550
+ /* harmony export */ removeBetween: function() { return /* binding */ removeBetween; },
6551
+ /* harmony export */ removeEmptyMarkedTags: function() { return /* binding */ removeEmptyMarkedTags; },
6552
+ /* harmony export */ removeTagsByPrefix: function() { return /* binding */ removeTagsByPrefix; },
6553
+ /* harmony export */ removeWordWrappers: function() { return /* binding */ removeWordWrappers; },
6554
+ /* harmony export */ unwrapMarkedTags: function() { return /* binding */ unwrapMarkedTags; }
6555
+ /* harmony export */ });
6556
+ /*!
6557
+ * Jodit Editor (https://xdsoft.net/jodit/)
6558
+ * Released under MIT see LICENSE.txt in the project root for license information.
6559
+ * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
6560
+ */ /**
6561
+ * @module helpers/html
6562
+ */ // Single passes over HTML that comes from the clipboard or the editor value.
6563
+ // A regex with `[^>]*` or `.*?` before a required literal backtracks
6564
+ // quadratically on a long run of tag openers, so these walk with `indexOf`.
6565
+ const TAG_NAME = /[a-z0-9:-]/i;
6566
+ // The tags the Word clean-up strips: `<html>`, `<colgroup>`, `<col>`, `<o:p>` and their closers
6567
+ const WORD_WRAPPER_TAGS = [
6568
+ '<html',
6569
+ '</html',
6570
+ '<col',
6571
+ '</col',
6572
+ '<o:p',
6573
+ '</o:p'
6574
+ ];
6575
+ function startsWithIgnoreCase(html, index, prefix) {
6576
+ return html.substr(index, prefix.length).toLowerCase() === prefix;
6577
+ }
6578
+ // The first `<` at or after `from` that opens one of the prefixes (`<meta`, `</html`, `<!--`)
6579
+ function indexOfPrefix(html, prefixes, from) {
6580
+ let index = html.indexOf('<', from);
6581
+ while(index !== -1){
6582
+ for (const prefix of prefixes){
6583
+ if (startsWithIgnoreCase(html, index, prefix)) {
6584
+ return [
6585
+ index,
6586
+ prefix
6587
+ ];
6588
+ }
6589
+ }
6590
+ index = html.indexOf('<', index + 1);
6591
+ }
6592
+ return [
6593
+ -1,
6594
+ ''
6595
+ ];
6596
+ }
6597
+ /**
6598
+ * The first `</name>` at or after `from`, case-insensitive, or -1
6599
+ */ function indexOfClosingTag(html, name, from) {
6600
+ const closing = '</' + name + '>';
6601
+ let index = html.indexOf('</', from);
6602
+ while(index !== -1){
6603
+ if (startsWithIgnoreCase(html, index, closing)) {
6604
+ return index;
6605
+ }
6606
+ index = html.indexOf('</', index + 2);
6607
+ }
6608
+ return -1;
6609
+ }
6610
+ /**
6611
+ * Remove every tag that starts with one of the prefixes, up to its `>`:
6612
+ * `removeTagsByPrefix(html, ['<meta', '<!--'])`
6613
+ */ function removeTagsByPrefix(html, prefixes) {
6614
+ const lower = prefixes.map((prefix)=>prefix.toLowerCase());
6615
+ let result = '';
6616
+ let cursor = 0;
6617
+ for(;;){
6618
+ const [start] = indexOfPrefix(html, lower, cursor);
6619
+ if (start === -1) {
6620
+ break;
6621
+ }
6622
+ const end = html.indexOf('>', start);
6623
+ if (end === -1) {
6624
+ break;
6625
+ }
6626
+ result += html.slice(cursor, start);
6627
+ cursor = end + 1;
6628
+ }
6629
+ return cursor === 0 ? html : result + html.slice(cursor);
6630
+ }
6631
+ /**
6632
+ * Strip the Word wrapper tags and then the comments, as the clean-up always did
6633
+ */ function removeWordWrappers(html) {
6634
+ return removeTagsByPrefix(removeTagsByPrefix(html, WORD_WRAPPER_TAGS), [
6635
+ '<!--'
6636
+ ]);
6637
+ }
6638
+ // Every `</name>` position by name, so the closer of an element is found by a binary search
6639
+ function closingTagPositions(html) {
6640
+ const positions = new Map();
6641
+ let index = html.indexOf('</');
6642
+ while(index !== -1){
6643
+ const name = readTagName(html, index + 2).toLowerCase();
6644
+ if (name !== '' && html.charAt(index + 2 + name.length) === '>') {
6645
+ const list = positions.get(name);
6646
+ if (list) {
6647
+ list.push(index);
6648
+ } else {
6649
+ positions.set(name, [
6650
+ index
6651
+ ]);
6652
+ }
6653
+ }
6654
+ index = html.indexOf('</', index + 2);
6655
+ }
6656
+ return positions;
6657
+ }
6658
+ // The first position in the sorted list that is >= from, or -1
6659
+ function firstAfter(list, from) {
6660
+ if (!list) {
6661
+ return -1;
6662
+ }
6663
+ let low = 0;
6664
+ let high = list.length;
6665
+ while(low < high){
6666
+ const middle = low + high >> 1;
6667
+ if (list[middle] < from) {
6668
+ low = middle + 1;
6669
+ } else {
6670
+ high = middle;
6671
+ }
6672
+ }
6673
+ return low < list.length ? list[low] : -1;
6674
+ }
6675
+ /**
6676
+ * The index of the first `<name>` or `<name …>` tag, or -1
6677
+ */ function indexOfOpenTag(html, name) {
6678
+ const prefix = '<' + name.toLowerCase();
6679
+ let cursor = 0;
6680
+ for(;;){
6681
+ const [start] = indexOfPrefix(html, [
6682
+ prefix
6683
+ ], cursor);
6684
+ if (start === -1) {
6685
+ return -1;
6686
+ }
6687
+ const next = html.charAt(start + prefix.length);
6688
+ if (next === '>') {
6689
+ return start;
6690
+ }
6691
+ if (/\s/.test(next)) {
6692
+ if (html.indexOf('>', start) === -1) {
6693
+ return -1;
6694
+ }
6695
+ return start;
6696
+ }
6697
+ cursor = start + 1;
6698
+ }
6699
+ }
6700
+ function readTagName(html, from) {
6701
+ let end = from;
6702
+ while(TAG_NAME.test(html.charAt(end))){
6703
+ end += 1;
6704
+ }
6705
+ return html.slice(from, end);
6706
+ }
6707
+ /**
6708
+ * Replace every `<name … marker …>inner</name>` with `inner`.
6709
+ * `name` null takes any tag; `keep` can refuse an element by its inner HTML.
6710
+ */ function unwrapMarkedTags(html, name, marker, keep) {
6711
+ const lowerMarker = marker.toLowerCase();
6712
+ const prefixes = [
6713
+ name == null ? '<' : '<' + name.toLowerCase()
6714
+ ];
6715
+ const closings = closingTagPositions(html);
6716
+ let result = '';
6717
+ let cursor = 0;
6718
+ for(;;){
6719
+ const [start] = indexOfPrefix(html, prefixes, cursor);
6720
+ if (start === -1) {
6721
+ break;
6722
+ }
6723
+ const tagName = (name !== null && name !== void 0 ? name : readTagName(html, start + 1)).toLowerCase();
6724
+ const gt = html.indexOf('>', start);
6725
+ if (gt === -1) {
6726
+ break;
6727
+ }
6728
+ const close = tagName !== '' && html.slice(start, gt).toLowerCase().includes(lowerMarker) ? firstAfter(closings.get(tagName), gt + 1) : -1;
6729
+ // Not a marked element: the `<` is text, the next one may still open an element
6730
+ if (close === -1) {
6731
+ result += html.slice(cursor, start + 1);
6732
+ cursor = start + 1;
6733
+ continue;
6734
+ }
6735
+ const inner = html.slice(gt + 1, close);
6736
+ const after = close + tagName.length + 3;
6737
+ result += html.slice(cursor, start);
6738
+ result += inner !== '' && (!keep || keep(inner)) ? inner : html.slice(start, after);
6739
+ cursor = after;
6740
+ }
6741
+ return cursor === 0 ? html : result + html.slice(cursor);
6742
+ }
6743
+ // The first `literal` at or after `from`, case-insensitive, or -1
6744
+ function indexOfLiteral(html, literal, from) {
6745
+ const head = literal.charAt(0);
6746
+ let index = html.indexOf(head, from);
6747
+ while(index !== -1){
6748
+ if (startsWithIgnoreCase(html, index, literal)) {
6749
+ return index;
6750
+ }
6751
+ index = html.indexOf(head, index + 1);
6752
+ }
6753
+ return -1;
6754
+ }
6755
+ /**
6756
+ * Remove every `open … openEnd … close` block whose opener holds `marker` (any opener when it is ''):
6757
+ * `removeBetween(html, '<style', '>', '</style>', 'jodit-box')`
6758
+ */ function removeBetween(html, open, openEnd, close, marker = '') {
6759
+ const lowerOpen = open.toLowerCase();
6760
+ const lowerMarker = marker.toLowerCase();
6761
+ let result = '';
6762
+ let cursor = 0;
6763
+ for(;;){
6764
+ const start = indexOfLiteral(html, lowerOpen, cursor);
6765
+ if (start === -1) {
6766
+ break;
6767
+ }
6768
+ const end = indexOfLiteral(html, openEnd, start + open.length);
6769
+ if (end === -1) {
6770
+ break;
6771
+ }
6772
+ if (lowerMarker !== '' && !html.slice(start, end).toLowerCase().includes(lowerMarker)) {
6773
+ result += html.slice(cursor, end + openEnd.length);
6774
+ cursor = end + openEnd.length;
6775
+ continue;
6776
+ }
6777
+ const closeIndex = indexOfLiteral(html, close, end + openEnd.length);
6778
+ if (closeIndex === -1) {
6779
+ break;
6780
+ }
6781
+ result += html.slice(cursor, start);
6782
+ cursor = closeIndex + close.length;
6783
+ }
6784
+ return cursor === 0 ? html : result + html.slice(cursor);
6785
+ }
6786
+ /**
6787
+ * Remove every empty `<name … marker …></name>` element
6788
+ */ function removeEmptyMarkedTags(html, name, marker) {
6789
+ const lowerName = name.toLowerCase();
6790
+ const lowerMarker = marker.toLowerCase();
6791
+ const closing = '</' + lowerName + '>';
6792
+ let result = '';
6793
+ let cursor = 0;
6794
+ for(;;){
6795
+ const [start] = indexOfPrefix(html, [
6796
+ '<' + lowerName
6797
+ ], cursor);
6798
+ if (start === -1) {
6799
+ break;
6800
+ }
6801
+ const gt = html.indexOf('>', start);
6802
+ if (gt === -1) {
6803
+ break;
6804
+ }
6805
+ if (html.slice(start, gt).toLowerCase().includes(lowerMarker) && startsWithIgnoreCase(html, gt + 1, closing)) {
6806
+ result += html.slice(cursor, start);
6807
+ cursor = gt + 1 + closing.length;
6808
+ continue;
6809
+ }
6810
+ result += html.slice(cursor, gt + 1);
6811
+ cursor = gt + 1;
6812
+ }
6813
+ return cursor === 0 ? html : result + html.slice(cursor);
6814
+ }
6815
+
6816
+
6385
6817
  /***/ }),
6386
6818
 
6387
6819
  /***/ 90723:
@@ -6659,6 +7091,8 @@ __webpack_require__.r(__webpack_exports__);
6659
7091
  /* harmony export */ humanSizeToBytes: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.humanSizeToBytes; },
6660
7092
  /* harmony export */ i18n: function() { return /* reexport safe */ _string_index_js__WEBPACK_IMPORTED_MODULE_7__.i18n; },
6661
7093
  /* harmony export */ inView: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.inView; },
7094
+ /* harmony export */ indexOfClosingTag: function() { return /* reexport safe */ _html_index_js__WEBPACK_IMPORTED_MODULE_4__.indexOfClosingTag; },
7095
+ /* harmony export */ indexOfOpenTag: function() { return /* reexport safe */ _html_index_js__WEBPACK_IMPORTED_MODULE_4__.indexOfOpenTag; },
6662
7096
  /* harmony export */ innerWidth: function() { return /* reexport safe */ _size_index_js__WEBPACK_IMPORTED_MODULE_6__.innerWidth; },
6663
7097
  /* harmony export */ isAbortError: function() { return /* reexport safe */ _checker_index_js__WEBPACK_IMPORTED_MODULE_2__.isAbortError; },
6664
7098
  /* harmony export */ isArray: function() { return /* reexport safe */ _checker_index_js__WEBPACK_IMPORTED_MODULE_2__.isArray; },
@@ -6717,6 +7151,10 @@ __webpack_require__.r(__webpack_exports__);
6717
7151
  /* harmony export */ prepareMedia: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.prepareMedia; },
6718
7152
  /* harmony export */ previewBox: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.previewBox; },
6719
7153
  /* harmony export */ refs: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.refs; },
7154
+ /* harmony export */ removeBetween: function() { return /* reexport safe */ _html_index_js__WEBPACK_IMPORTED_MODULE_4__.removeBetween; },
7155
+ /* harmony export */ removeEmptyMarkedTags: function() { return /* reexport safe */ _html_index_js__WEBPACK_IMPORTED_MODULE_4__.removeEmptyMarkedTags; },
7156
+ /* harmony export */ removeTagsByPrefix: function() { return /* reexport safe */ _html_index_js__WEBPACK_IMPORTED_MODULE_4__.removeTagsByPrefix; },
7157
+ /* harmony export */ removeWordWrappers: function() { return /* reexport safe */ _html_index_js__WEBPACK_IMPORTED_MODULE_4__.removeWordWrappers; },
6720
7158
  /* harmony export */ reset: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.reset; },
6721
7159
  /* harmony export */ resolveElement: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.resolveElement; },
6722
7160
  /* harmony export */ safeHTML: function() { return /* reexport safe */ _html_index_js__WEBPACK_IMPORTED_MODULE_4__.safeHTML; },
@@ -6733,7 +7171,9 @@ __webpack_require__.r(__webpack_exports__);
6733
7171
  /* harmony export */ trim: function() { return /* reexport safe */ _string_index_js__WEBPACK_IMPORTED_MODULE_7__.trim; },
6734
7172
  /* harmony export */ trimChars: function() { return /* reexport safe */ _string_index_js__WEBPACK_IMPORTED_MODULE_7__.trimChars; },
6735
7173
  /* harmony export */ trimInv: function() { return /* reexport safe */ _string_index_js__WEBPACK_IMPORTED_MODULE_7__.trimInv; },
7174
+ /* harmony export */ trimInvEnd: function() { return /* reexport safe */ _string_index_js__WEBPACK_IMPORTED_MODULE_7__.trimInvEnd; },
6736
7175
  /* harmony export */ ucfirst: function() { return /* reexport safe */ _string_index_js__WEBPACK_IMPORTED_MODULE_7__.ucfirst; },
7176
+ /* harmony export */ unwrapMarkedTags: function() { return /* reexport safe */ _html_index_js__WEBPACK_IMPORTED_MODULE_4__.unwrapMarkedTags; },
6737
7177
  /* harmony export */ wrapMedia: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.wrapMedia; }
6738
7178
  /* harmony export */ });
6739
7179
  /* harmony import */ var _array_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(76855);
@@ -7603,6 +8043,7 @@ function size(subject) {
7603
8043
  /* harmony export */ trim: function() { return /* reexport safe */ _trim_js__WEBPACK_IMPORTED_MODULE_5__.trim; },
7604
8044
  /* harmony export */ trimChars: function() { return /* reexport safe */ _trim_js__WEBPACK_IMPORTED_MODULE_5__.trimChars; },
7605
8045
  /* harmony export */ trimInv: function() { return /* reexport safe */ _trim_js__WEBPACK_IMPORTED_MODULE_5__.trimInv; },
8046
+ /* harmony export */ trimInvEnd: function() { return /* reexport safe */ _trim_js__WEBPACK_IMPORTED_MODULE_5__.trimInvEnd; },
7606
8047
  /* harmony export */ ucfirst: function() { return /* reexport safe */ _ucfirst_js__WEBPACK_IMPORTED_MODULE_6__.ucfirst; }
7607
8048
  /* harmony export */ });
7608
8049
  /* harmony import */ var _camel_case_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(87058);
@@ -7695,29 +8136,51 @@ const CamelCaseToKebabCase = (key)=>{
7695
8136
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7696
8137
  /* harmony export */ trim: function() { return /* binding */ trim; },
7697
8138
  /* harmony export */ trimChars: function() { return /* binding */ trimChars; },
7698
- /* harmony export */ trimInv: function() { return /* binding */ trimInv; }
8139
+ /* harmony export */ trimInv: function() { return /* binding */ trimInv; },
8140
+ /* harmony export */ trimInvEnd: function() { return /* binding */ trimInvEnd; }
7699
8141
  /* harmony export */ });
7700
- /* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
7701
8142
  /*!
7702
8143
  * Jodit Editor (https://xdsoft.net/jodit/)
7703
8144
  * Released under MIT see LICENSE.txt in the project root for license information.
7704
8145
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
7705
8146
  */ /**
7706
8147
  * @module helpers/string
7707
- */
8148
+ */ const SPACE = /[\s\u200b]/;
8149
+ const INVISIBLE = /\uFEFF/;
8150
+ // Cut the chars matching `char` from both ends; `[…]+$` backtracks on a long run that is not at the end
8151
+ function trimBy(value, char) {
8152
+ let start = 0;
8153
+ let end = value.length;
8154
+ while(start < end && char.test(value.charAt(start))){
8155
+ start += 1;
8156
+ }
8157
+ while(end > start && char.test(value.charAt(end - 1))){
8158
+ end -= 1;
8159
+ }
8160
+ return start === 0 && end === value.length ? value : value.slice(start, end);
8161
+ }
7708
8162
  /**
7709
8163
  * It clears the line of all auxiliary invisible characters , from the spaces and line breaks , tabs
7710
8164
  * from the beginning and end of the line
7711
8165
  */ function trim(value) {
7712
- return value.replace((0,_constants_js__WEBPACK_IMPORTED_MODULE_0__.SPACE_REG_EXP_END)(), '').replace((0,_constants_js__WEBPACK_IMPORTED_MODULE_0__.SPACE_REG_EXP_START)(), '');
8166
+ return trimBy(value, SPACE);
7713
8167
  }
7714
8168
  function trimChars(value, chars) {
7715
- return value.replace(RegExp(`[${chars}]+$`), '').replace(RegExp(`^[${chars}]+`), '');
8169
+ return trimBy(value, RegExp(`[${chars}]`));
7716
8170
  }
7717
8171
  /**
7718
8172
  * Trim only invisible chars
7719
8173
  */ function trimInv(value) {
7720
- return value.replace((0,_constants_js__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_END)(), '').replace((0,_constants_js__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_START)(), '');
8174
+ return trimBy(value, INVISIBLE);
8175
+ }
8176
+ /**
8177
+ * Without the invisible chars at the end
8178
+ */ function trimInvEnd(value) {
8179
+ let end = value.length;
8180
+ while(end > 0 && INVISIBLE.test(value.charAt(end - 1))){
8181
+ end -= 1;
8182
+ }
8183
+ return end === value.length ? value : value.slice(0, end);
7721
8184
  }
7722
8185
 
7723
8186
 
@@ -11181,18 +11644,19 @@ function usable(ranges, shadowRoot) {
11181
11644
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
11182
11645
 
11183
11646
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11184
- /* harmony export */ composedRanges: function() { return /* reexport safe */ _composed_ranges_js__WEBPACK_IMPORTED_MODULE_2__.composedRanges; },
11647
+ /* harmony export */ composedRanges: function() { return /* reexport safe */ _composed_ranges_js__WEBPACK_IMPORTED_MODULE_3__.composedRanges; },
11185
11648
  /* harmony export */ cursorInTheEdgeOfString: function() { return /* binding */ cursorInTheEdgeOfString; },
11186
11649
  /* harmony export */ findCorrectCurrentNode: function() { return /* binding */ findCorrectCurrentNode; },
11187
- /* harmony export */ isMoved: function() { return /* reexport safe */ _is_moved_js__WEBPACK_IMPORTED_MODULE_3__.isMoved; },
11188
- /* harmony export */ moveNodeInsideStart: function() { return /* reexport safe */ _move_node_inside_start_js__WEBPACK_IMPORTED_MODULE_4__.moveNodeInsideStart; }
11650
+ /* harmony export */ isMoved: function() { return /* reexport safe */ _is_moved_js__WEBPACK_IMPORTED_MODULE_4__.isMoved; },
11651
+ /* harmony export */ moveNodeInsideStart: function() { return /* reexport safe */ _move_node_inside_start_js__WEBPACK_IMPORTED_MODULE_5__.moveNodeInsideStart; }
11189
11652
  /* harmony export */ });
11190
11653
  /* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
11191
11654
  /* harmony import */ var _dom_dom_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2748);
11192
- /* harmony import */ var _composed_ranges_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(79505);
11193
- /* harmony import */ var _is_moved_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(12604);
11194
- /* harmony import */ var _move_node_inside_start_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(26716);
11195
- /* harmony import */ var _move_the_node_along_the_edge_outward_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(43463);
11655
+ /* harmony import */ var _helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49055);
11656
+ /* harmony import */ var _composed_ranges_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(79505);
11657
+ /* harmony import */ var _is_moved_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(12604);
11658
+ /* harmony import */ var _move_node_inside_start_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(26716);
11659
+ /* harmony import */ var _move_the_node_along_the_edge_outward_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(43463);
11196
11660
  /*!
11197
11661
  * Jodit Editor (https://xdsoft.net/jodit/)
11198
11662
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -11205,6 +11669,7 @@ function usable(ranges, shadowRoot) {
11205
11669
 
11206
11670
 
11207
11671
 
11672
+
11208
11673
  /**
11209
11674
  * Despite the name, returns `true` when the cursor is NOT at the checked edge
11210
11675
  * of the text node: there is significant (non invisible-space) text between
@@ -11213,7 +11678,7 @@ function usable(ranges, shadowRoot) {
11213
11678
  */ function cursorInTheEdgeOfString(container, offset, start, end) {
11214
11679
  var _a;
11215
11680
  const text = ((_a = container.nodeValue) === null || _a === void 0 ? void 0 : _a.length) ? container.nodeValue : '';
11216
- if (end && text.replace((0,_constants_js__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_END)(), '').length > offset) {
11681
+ if (end && (0,_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_2__.trimInvEnd)(text).length > offset) {
11217
11682
  return true;
11218
11683
  }
11219
11684
  const inv = (0,_constants_js__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_START)().exec(text);
@@ -18894,11 +19359,12 @@ class CommitMode {
18894
19359
  /* harmony import */ var _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
18895
19360
  /* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(580);
18896
19361
  /* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21537);
18897
- /* harmony import */ var _core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(41180);
18898
- /* harmony import */ var _core_request_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(41601);
18899
- /* harmony import */ var _core_traits_dlgs_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(70231);
18900
- /* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(6441);
18901
- /* harmony import */ var _modules_index_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(41409);
19362
+ /* harmony import */ var _core_helpers_html_tag_scan_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(76241);
19363
+ /* harmony import */ var _core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(41180);
19364
+ /* harmony import */ var _core_request_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(41601);
19365
+ /* harmony import */ var _core_traits_dlgs_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(70231);
19366
+ /* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(6441);
19367
+ /* harmony import */ var _modules_index_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(41409);
18902
19368
  function _define_property(obj, key, value) {
18903
19369
  if (key in obj) {
18904
19370
  Object.defineProperty(obj, key, {
@@ -18946,6 +19412,7 @@ var Jodit_1;
18946
19412
 
18947
19413
 
18948
19414
 
19415
+
18949
19416
  const FOCUS_EVENTS = new Set([
18950
19417
  'focus',
18951
19418
  'blur',
@@ -18976,7 +19443,7 @@ const NOEDIT = {
18976
19443
  * `alignClasses.img` when that isn't set
18977
19444
  */ function makeOptions(options) {
18978
19445
  var _a;
18979
- const opt = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {}, _config_js__WEBPACK_IMPORTED_MODULE_7__.Config.defaultOptions);
19446
+ const opt = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {}, _config_js__WEBPACK_IMPORTED_MODULE_8__.Config.defaultOptions);
18980
19447
  if (opt.imageAlignClasses && !((_a = opt.alignClasses) === null || _a === void 0 ? void 0 : _a.img)) {
18981
19448
  opt.alignClasses = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)({
18982
19449
  img: opt.imageAlignClasses
@@ -18984,7 +19451,7 @@ const NOEDIT = {
18984
19451
  }
18985
19452
  return opt;
18986
19453
  }
18987
- let Jodit = Jodit_1 = class Jodit extends _modules_index_js__WEBPACK_IMPORTED_MODULE_8__.ViewWithToolbar {
19454
+ let Jodit = Jodit_1 = class Jodit extends _modules_index_js__WEBPACK_IMPORTED_MODULE_9__.ViewWithToolbar {
18988
19455
  /** @override */ className() {
18989
19456
  return 'Jodit';
18990
19457
  }
@@ -19027,7 +19494,7 @@ let Jodit = Jodit_1 = class Jodit extends _modules_index_js__WEBPACK_IMPORTED_MO
19027
19494
  * Return a default timeout period in milliseconds for some debounce or throttle functions.
19028
19495
  * By default, `{history.timeout}` options
19029
19496
  */ get defaultTimeout() {
19030
- return (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isNumber)(this.o.defaultTimeout) ? this.o.defaultTimeout : _config_js__WEBPACK_IMPORTED_MODULE_7__.Config.defaultOptions.defaultTimeout;
19497
+ return (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isNumber)(this.o.defaultTimeout) ? this.o.defaultTimeout : _config_js__WEBPACK_IMPORTED_MODULE_8__.Config.defaultOptions.defaultTimeout;
19031
19498
  }
19032
19499
  /**
19033
19500
  * Method wrap usual object in Object helper for prevent deep object merging in options*
@@ -19057,7 +19524,7 @@ let Jodit = Jodit_1 = class Jodit extends _modules_index_js__WEBPACK_IMPORTED_MO
19057
19524
  /**
19058
19525
  * Default settings
19059
19526
  */ static get defaultOptions() {
19060
- return _config_js__WEBPACK_IMPORTED_MODULE_7__.Config.defaultOptions;
19527
+ return _config_js__WEBPACK_IMPORTED_MODULE_8__.Config.defaultOptions;
19061
19528
  }
19062
19529
  /**
19063
19530
  * Deep-merges partial options into the global defaults without replacing
@@ -19105,7 +19572,7 @@ let Jodit = Jodit_1 = class Jodit extends _modules_index_js__WEBPACK_IMPORTED_MO
19105
19572
  ;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.ConfigMerge)(Jodit_1.defaultOptions, options);
19106
19573
  }
19107
19574
  get createInside() {
19108
- return new _modules_index_js__WEBPACK_IMPORTED_MODULE_8__.Create(()=>this.ed, this.o.createAttributes);
19575
+ return new _modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Create(()=>this.ed, this.o.createAttributes);
19109
19576
  }
19110
19577
  __setPlaceField(field, value) {
19111
19578
  if (!this.currentPlace) {
@@ -19305,7 +19772,7 @@ let Jodit = Jodit_1 = class Jodit extends _modules_index_js__WEBPACK_IMPORTED_MO
19305
19772
  }
19306
19773
  value = this.getNativeEditorValue().replace(_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP(), '');
19307
19774
  if (removeSelectionMarkers) {
19308
- value = value.replace(/<span[^>]+id="jodit-selection_marker_[^>]+><\/span>/g, '');
19775
+ value = (0,_core_helpers_html_tag_scan_js__WEBPACK_IMPORTED_MODULE_4__.removeEmptyMarkedTags)(value, 'span', 'id="jodit-selection_marker_');
19309
19776
  }
19310
19777
  if (value === '<br>') {
19311
19778
  value = '';
@@ -19619,7 +20086,7 @@ let Jodit = Jodit_1 = class Jodit extends _modules_index_js__WEBPACK_IMPORTED_MO
19619
20086
  return this.getMode();
19620
20087
  }
19621
20088
  const active = this.od.activeElement;
19622
- if (active && (active === this.iframe || _modules_index_js__WEBPACK_IMPORTED_MODULE_8__.Dom.isOrContains(this.editor, active) || _modules_index_js__WEBPACK_IMPORTED_MODULE_8__.Dom.isOrContains(this.toolbar.container, active))) {
20089
+ if (active && (active === this.iframe || _modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.isOrContains(this.editor, active) || _modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.isOrContains(this.toolbar.container, active))) {
19623
20090
  return _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.MODE_WYSIWYG;
19624
20091
  }
19625
20092
  return _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.MODE_SOURCE;
@@ -19772,7 +20239,7 @@ let Jodit = Jodit_1 = class Jodit extends _modules_index_js__WEBPACK_IMPORTED_MO
19772
20239
  (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.toArray)(element.attributes).forEach((attr)=>{
19773
20240
  const name = attr.name;
19774
20241
  let value = attr.value;
19775
- if (_config_js__WEBPACK_IMPORTED_MODULE_7__.Config.defaultOptions[name] !== undefined && (!options || options[name] === undefined)) {
20242
+ if (_config_js__WEBPACK_IMPORTED_MODULE_8__.Config.defaultOptions[name] !== undefined && (!options || options[name] === undefined)) {
19776
20243
  if ([
19777
20244
  'readonly',
19778
20245
  'disabled'
@@ -19809,7 +20276,7 @@ let Jodit = Jodit_1 = class Jodit extends _modules_index_js__WEBPACK_IMPORTED_MO
19809
20276
  container = element;
19810
20277
  (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(element, __defaultClassesKey, element.className.toString());
19811
20278
  buffer = container.innerHTML;
19812
- _modules_index_js__WEBPACK_IMPORTED_MODULE_8__.Dom.detach(container);
20279
+ _modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.detach(container);
19813
20280
  }
19814
20281
  container.classList.add('jodit_inline');
19815
20282
  container.classList.add('jodit-container');
@@ -19817,7 +20284,7 @@ let Jodit = Jodit_1 = class Jodit extends _modules_index_js__WEBPACK_IMPORTED_MO
19817
20284
  // actual for inline mode
19818
20285
  if (element !== container) {
19819
20286
  // hide source element
19820
- const display = (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_4__.cssInline)(element, 'display');
20287
+ const display = (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_5__.cssInline)(element, 'display');
19821
20288
  if (display) {
19822
20289
  (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(element, __defaultStyleDisplayKey, display);
19823
20290
  }
@@ -19829,21 +20296,21 @@ let Jodit = Jodit_1 = class Jodit extends _modules_index_js__WEBPACK_IMPORTED_MO
19829
20296
  // the toolbar box below it when (re)attaching the toolbar container.
19830
20297
  const aboveSlot = this.c.div(this.getFullElName(SLOT, 'above'), NOEDIT);
19831
20298
  (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(aboveSlot, 'data-jodit-above-toolbar', '');
19832
- _modules_index_js__WEBPACK_IMPORTED_MODULE_8__.Dom.appendChildFirst(container, aboveSlot);
20299
+ _modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.appendChildFirst(container, aboveSlot);
19833
20300
  const topSlot = this.c.div(this.getFullElName(SLOT, 'top'), NOEDIT);
19834
- _modules_index_js__WEBPACK_IMPORTED_MODULE_8__.Dom.append(container, topSlot);
20301
+ _modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.append(container, topSlot);
19835
20302
  const centerSlot = this.c.div(this.getFullElName(SLOT, 'center'), NOEDIT);
19836
20303
  const workplace = this.c.div('jodit-workplace', NOEDIT);
19837
20304
  const leftSlot = this.c.div(this.getFullElName(SLOT, 'left'), NOEDIT);
19838
20305
  const rightSlot = this.c.div(this.getFullElName(SLOT, 'right'), NOEDIT);
19839
- _modules_index_js__WEBPACK_IMPORTED_MODULE_8__.Dom.append(centerSlot, leftSlot);
19840
- _modules_index_js__WEBPACK_IMPORTED_MODULE_8__.Dom.append(centerSlot, workplace);
19841
- _modules_index_js__WEBPACK_IMPORTED_MODULE_8__.Dom.append(centerSlot, rightSlot);
19842
- _modules_index_js__WEBPACK_IMPORTED_MODULE_8__.Dom.append(container, centerSlot);
20306
+ _modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.append(centerSlot, leftSlot);
20307
+ _modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.append(centerSlot, workplace);
20308
+ _modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.append(centerSlot, rightSlot);
20309
+ _modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.append(container, centerSlot);
19843
20310
  const bottomPanel = this.c.div(this.getFullElName(SLOT, 'bottom'), NOEDIT);
19844
- _modules_index_js__WEBPACK_IMPORTED_MODULE_8__.Dom.append(container, bottomPanel);
20311
+ _modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.append(container, bottomPanel);
19845
20312
  if (element.parentNode && element !== container) {
19846
- _modules_index_js__WEBPACK_IMPORTED_MODULE_8__.Dom.before(element, container);
20313
+ _modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.before(element, container);
19847
20314
  }
19848
20315
  Object.defineProperty(element, 'component', {
19849
20316
  enumerable: false,
@@ -19855,7 +20322,7 @@ let Jodit = Jodit_1 = class Jodit extends _modules_index_js__WEBPACK_IMPORTED_MO
19855
20322
  'aria-disabled': false,
19856
20323
  tabindex: this.o.tabIndex
19857
20324
  });
19858
- _modules_index_js__WEBPACK_IMPORTED_MODULE_8__.Dom.append(workplace, editor);
20325
+ _modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.append(workplace, editor);
19859
20326
  const currentPlace = {
19860
20327
  editor,
19861
20328
  element,
@@ -19869,9 +20336,9 @@ let Jodit = Jodit_1 = class Jodit extends _modules_index_js__WEBPACK_IMPORTED_MO
19869
20336
  left: leftSlot,
19870
20337
  right: rightSlot
19871
20338
  },
19872
- statusbar: new _modules_index_js__WEBPACK_IMPORTED_MODULE_8__.StatusBar(this, container),
20339
+ statusbar: new _modules_index_js__WEBPACK_IMPORTED_MODULE_9__.StatusBar(this, container),
19873
20340
  options: this.isReady ? makeOptions(options) : this.options,
19874
- history: new _modules_index_js__WEBPACK_IMPORTED_MODULE_8__.History(this),
20341
+ history: new _modules_index_js__WEBPACK_IMPORTED_MODULE_9__.History(this),
19875
20342
  editorWindow: this.ow
19876
20343
  };
19877
20344
  this.__elementToPlace.set(editor, currentPlace);
@@ -19904,7 +20371,7 @@ let Jodit = Jodit_1 = class Jodit extends _modules_index_js__WEBPACK_IMPORTED_MO
19904
20371
  return (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.callPromise)(initResult, init);
19905
20372
  }
19906
20373
  addDisclaimer(elm) {
19907
- _modules_index_js__WEBPACK_IMPORTED_MODULE_8__.Dom.append(this.workplace, elm);
20374
+ _modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.append(this.workplace, elm);
19908
20375
  }
19909
20376
  /**
19910
20377
  * Set current place object
@@ -19967,7 +20434,7 @@ let Jodit = Jodit_1 = class Jodit extends _modules_index_js__WEBPACK_IMPORTED_MO
19967
20434
  return;
19968
20435
  }
19969
20436
  if (stayDefault === false || (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isPromise)(stayDefault)) {
19970
- _modules_index_js__WEBPACK_IMPORTED_MODULE_8__.Dom.safeRemove(defaultEditorArea);
20437
+ _modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.safeRemove(defaultEditorArea);
19971
20438
  }
19972
20439
  addClassNames(this.o.editorClassName, this.editor);
19973
20440
  if (this.o.style) {
@@ -20016,7 +20483,7 @@ let Jodit = Jodit_1 = class Jodit extends _modules_index_js__WEBPACK_IMPORTED_MO
20016
20483
  // and such an element stays in the editor
20017
20484
  if (FOCUS_EVENTS.has(type)) {
20018
20485
  const inner = type === 'focusin' || type === 'focusout';
20019
- if (inner === (event.target === editor) || _modules_index_js__WEBPACK_IMPORTED_MODULE_8__.Dom.isOrContains(editor, event.relatedTarget)) {
20486
+ if (inner === (event.target === editor) || _modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.isOrContains(editor, event.relatedTarget)) {
20020
20487
  return;
20021
20488
  }
20022
20489
  if (inner) {
@@ -20053,7 +20520,7 @@ let Jodit = Jodit_1 = class Jodit extends _modules_index_js__WEBPACK_IMPORTED_MO
20053
20520
  });
20054
20521
  }
20055
20522
  fetch(url, options) {
20056
- const ajax = new _core_request_index_js__WEBPACK_IMPORTED_MODULE_5__.Ajax(_object_spread({
20523
+ const ajax = new _core_request_index_js__WEBPACK_IMPORTED_MODULE_6__.Ajax(_object_spread({
20057
20524
  url
20058
20525
  }, options), this.o.defaultAjaxOptions);
20059
20526
  const destroy = ()=>{
@@ -20074,7 +20541,7 @@ let Jodit = Jodit_1 = class Jodit extends _modules_index_js__WEBPACK_IMPORTED_MO
20074
20541
  if (this.isInDestruct) {
20075
20542
  return;
20076
20543
  }
20077
- this.setStatus(_modules_index_js__WEBPACK_IMPORTED_MODULE_8__.STATUSES.beforeDestruct);
20544
+ this.setStatus(_modules_index_js__WEBPACK_IMPORTED_MODULE_9__.STATUSES.beforeDestruct);
20078
20545
  this.__elementToPlace.clear();
20079
20546
  (_a = (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.cached)(this, 'storage')) === null || _a === void 0 ? void 0 : _a.clear();
20080
20547
  (_b = (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.cached)(this, 'buffer')) === null || _b === void 0 ? void 0 : _b.clear();
@@ -20112,17 +20579,17 @@ let Jodit = Jodit_1 = class Jodit extends _modules_index_js__WEBPACK_IMPORTED_MO
20112
20579
  this.e.off(container);
20113
20580
  this.e.off(element);
20114
20581
  this.e.off(editor);
20115
- _modules_index_js__WEBPACK_IMPORTED_MODULE_8__.Dom.safeRemove(workplace);
20116
- _modules_index_js__WEBPACK_IMPORTED_MODULE_8__.Dom.safeRemove(editor);
20582
+ _modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.safeRemove(workplace);
20583
+ _modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.safeRemove(editor);
20117
20584
  if (container !== element) {
20118
- _modules_index_js__WEBPACK_IMPORTED_MODULE_8__.Dom.safeRemove(container);
20585
+ _modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.safeRemove(container);
20119
20586
  }
20120
20587
  Object.defineProperty(element, 'component', {
20121
20588
  enumerable: false,
20122
20589
  configurable: true,
20123
20590
  value: null
20124
20591
  });
20125
- _modules_index_js__WEBPACK_IMPORTED_MODULE_8__.Dom.safeRemove(iframe);
20592
+ _modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.safeRemove(iframe);
20126
20593
  // inline mode
20127
20594
  if (container === element) {
20128
20595
  element.innerHTML = tmpValue;
@@ -20174,7 +20641,7 @@ let Jodit = Jodit_1 = class Jodit extends _modules_index_js__WEBPACK_IMPORTED_MO
20174
20641
  this.destruct();
20175
20642
  throw e;
20176
20643
  }
20177
- this.setStatus(_modules_index_js__WEBPACK_IMPORTED_MODULE_8__.STATUSES.beforeInit);
20644
+ this.setStatus(_modules_index_js__WEBPACK_IMPORTED_MODULE_9__.STATUSES.beforeInit);
20178
20645
  this.id = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.resolveElement)(element, this.o.shadowRoot || this.od), 'id') || new Date().getTime().toString();
20179
20646
  _core_global_js__WEBPACK_IMPORTED_MODULE_2__.instances[this.id] = this;
20180
20647
  this.attachEvents(options);
@@ -20184,7 +20651,7 @@ let Jodit = Jodit_1 = class Jodit extends _modules_index_js__WEBPACK_IMPORTED_MO
20184
20651
  }
20185
20652
  });
20186
20653
  this.e.on('prepareWYSIWYGEditor', this.__prepareWYSIWYGEditor);
20187
- this.selection = new _modules_index_js__WEBPACK_IMPORTED_MODULE_8__.Selection(this);
20654
+ this.selection = new _modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Selection(this);
20188
20655
  const beforeInitHookResult = this.beforeInitHook();
20189
20656
  (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.callPromise)(beforeInitHookResult, ()=>{
20190
20657
  if (this.isInDestruct) {
@@ -20208,7 +20675,7 @@ let Jodit = Jodit_1 = class Jodit extends _modules_index_js__WEBPACK_IMPORTED_MO
20208
20675
  this.e.fire('afterInit', this);
20209
20676
  }
20210
20677
  ;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.callPromise)(this.afterInitHook());
20211
- this.setStatus(_modules_index_js__WEBPACK_IMPORTED_MODULE_8__.STATUSES.ready);
20678
+ this.setStatus(_modules_index_js__WEBPACK_IMPORTED_MODULE_9__.STATUSES.ready);
20212
20679
  this.e.fire('afterConstructor', this);
20213
20680
  };
20214
20681
  (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.callPromise)(addPlaceResult, init);
@@ -20224,7 +20691,7 @@ Jodit.constants = _core_constants_js__WEBPACK_IMPORTED_MODULE_0__;
20224
20691
  Jodit.instances = _core_global_js__WEBPACK_IMPORTED_MODULE_2__.instances;
20225
20692
  Jodit.lang = _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.lang;
20226
20693
  Jodit.core = {
20227
- Plugin: _modules_index_js__WEBPACK_IMPORTED_MODULE_8__.Plugin
20694
+ Plugin: _modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Plugin
20228
20695
  };
20229
20696
  __decorate([
20230
20697
  _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.cache
@@ -20251,7 +20718,7 @@ __decorate([
20251
20718
  _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
20252
20719
  ], Jodit.prototype, "__prepareWYSIWYGEditor", null);
20253
20720
  Jodit = Jodit_1 = __decorate([
20254
- (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.derive)(_core_traits_dlgs_js__WEBPACK_IMPORTED_MODULE_6__.Dlgs)
20721
+ (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.derive)(_core_traits_dlgs_js__WEBPACK_IMPORTED_MODULE_7__.Dlgs)
20255
20722
  ], Jodit);
20256
20723
 
20257
20724
  function addClassNames(className, elm) {
@@ -40062,7 +40529,18 @@ const KEEPS_SPACES = new Set([
40062
40529
  /**
40063
40530
  * A plain space beside this neighbor isn't shown: there is none, or it's a
40064
40531
  * line break, a block or text starting (or ending) with a plain space
40065
- */ function hidesSpace(neighbor, edge) {
40532
+ */ // The run of spaces at the end (or the start) of the text becomes nbsp; counted, as `/ +$/` backtracks on a long run
40533
+ function replaceEdgeSpaces(text, atEnd) {
40534
+ let count = 0;
40535
+ while(count < text.length && text.charAt(atEnd ? text.length - 1 - count : count) === ' '){
40536
+ count += 1;
40537
+ }
40538
+ if (count === 0) {
40539
+ return text;
40540
+ }
40541
+ return atEnd ? text.slice(0, text.length - count) + _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE.repeat(count) : _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE.repeat(count) + text.slice(count);
40542
+ }
40543
+ function hidesSpace(neighbor, edge) {
40066
40544
  var _a;
40067
40545
  return !neighbor || _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(neighbor, 'br') || _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock(neighbor) || _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isText(neighbor) && edge.test((_a = neighbor.nodeValue) !== null && _a !== void 0 ? _a : '');
40068
40546
  }
@@ -40247,10 +40725,10 @@ class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.P
40247
40725
  const before = this.__findNeighbor(fake, true, block);
40248
40726
  const after = this.__findNeighbor(fake, false, block);
40249
40727
  if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isText(before) && hidesSpace(after, /^ /)) {
40250
- before.nodeValue = before.nodeValue.replace(/ +$/, (spaces)=>_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE.repeat(spaces.length));
40728
+ before.nodeValue = replaceEdgeSpaces(before.nodeValue, true);
40251
40729
  }
40252
40730
  if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isText(after) && hidesSpace(before, / $/)) {
40253
- after.nodeValue = after.nodeValue.replace(/^ +/, (spaces)=>_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE.repeat(spaces.length));
40731
+ after.nodeValue = replaceEdgeSpaces(after.nodeValue, false);
40254
40732
  }
40255
40733
  }
40256
40734
  /**
@@ -43311,7 +43789,8 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.iframeSandbox = null;
43311
43789
  /* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2748);
43312
43790
  /* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(580);
43313
43791
  /* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21537);
43314
- /* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(50963);
43792
+ /* harmony import */ var _core_helpers_html_tag_scan_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(76241);
43793
+ /* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50963);
43315
43794
  /*!
43316
43795
  * Jodit Editor (https://xdsoft.net/jodit/)
43317
43796
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -43322,6 +43801,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.iframeSandbox = null;
43322
43801
 
43323
43802
 
43324
43803
 
43804
+
43325
43805
  /**
43326
43806
  * Iframe plugin - use `iframe` instead of DIV in editor. It can be need when you want to attach custom styles in editor
43327
43807
  * in backend of you system
@@ -43380,13 +43860,66 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.iframeSandbox = null;
43380
43860
  const toggleEditable = ()=>{
43381
43861
  (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(doc.body, 'contenteditable', editor.getMode() !== _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.MODE_SOURCE && !editor.getReadOnly() || null);
43382
43862
  };
43863
+ // The start of the whitespace run that ends at `to`
43864
+ const skipBack = (text, to)=>{
43865
+ while(to > 0 && /\s/.test(text.charAt(to - 1))){
43866
+ to -= 1;
43867
+ }
43868
+ return to;
43869
+ };
43870
+ // The editor's own attributes on `<body>`: `min-height` and `contenteditable=true`
43871
+ const cleanBodyTag = (tag)=>{
43872
+ tag = tag.replace(/min-height["'\s]*:[\s"']*[0-9]+(px|%)/i, '');
43873
+ const skip = (from, chars)=>{
43874
+ while(chars.test(tag.charAt(from))){
43875
+ from += 1;
43876
+ }
43877
+ return from;
43878
+ };
43879
+ let index = tag.indexOf('contenteditable');
43880
+ while(index !== -1){
43881
+ let to = skip(index + 'contenteditable'.length, /["'\s]/);
43882
+ if (tag.charAt(to) === '=') {
43883
+ to = skip(to + 1, /[\s"']/);
43884
+ if (tag.startsWith('true', to)) {
43885
+ to = skip(to + 4, /["']/);
43886
+ let from = index;
43887
+ if (/["']/.test(tag.charAt(from - 1))) {
43888
+ from -= 1;
43889
+ }
43890
+ from = skipBack(tag, from);
43891
+ return tag.slice(0, from) + tag.slice(to);
43892
+ }
43893
+ }
43894
+ index = tag.indexOf('contenteditable', index + 1);
43895
+ }
43896
+ return tag;
43897
+ };
43383
43898
  const clearMarkers = (html)=>{
43384
43899
  // The plugins' own styles, from `getContainer`, aren't part of the value
43385
- html = html.replace(/<style[^>]+jodit-box[^>]*>[\s\S]*?<\/style>/gi, '');
43386
- const bodyReg = /<body.*<\/body>/im, bodyMarker = '{%%BODY%%}', body = bodyReg.exec(html);
43387
- if (body) {
43388
- // remove markers
43389
- html = html.replace(bodyReg, bodyMarker).replace(/<span([^>]*?)>(.*?)<\/span>/gim, '').replace(/&lt;span([^&]*?)&gt;(.*?)&lt;\/span&gt;/gim, '').replace(bodyMarker, body[0].replace(/(<body[^>]+?)min-height["'\s]*:[\s"']*[0-9]+(px|%)/im, '$1').replace(/(<body[^>]+?)([\s]*["'])?contenteditable["'\s]*=[\s"']*true["']?/im, '$1').replace(/<(style|script|span)[^>]+jodit[^>]+>.*?<\/\1>/g, '')).replace(/(class\s*=\s*)(['"])([^"']*)(jodit-wysiwyg|jodit)([^"']*\2)/g, '$1$2$3$5').replace(/(<[^<]+?)\sclass="[\s]*"/gim, '$1').replace(/(<[^<]+?)\sstyle="[\s;]*"/gim, '$1').replace(/(<[^<]+?)\sdir="[\s]*"/gim, '$1');
43900
+ html = (0,_core_helpers_html_tag_scan_js__WEBPACK_IMPORTED_MODULE_4__.removeBetween)(html, '<style', '>', '</style>', 'jodit-box');
43901
+ const bodyStart = (0,_core_helpers_html_tag_scan_js__WEBPACK_IMPORTED_MODULE_4__.indexOfOpenTag)(html, 'body');
43902
+ let bodyEnd = -1;
43903
+ for(let index = (0,_core_helpers_html_tag_scan_js__WEBPACK_IMPORTED_MODULE_4__.indexOfClosingTag)(html, 'body', bodyStart + 1); index !== -1; index = (0,_core_helpers_html_tag_scan_js__WEBPACK_IMPORTED_MODULE_4__.indexOfClosingTag)(html, 'body', index + 1)){
43904
+ bodyEnd = index;
43905
+ }
43906
+ if (bodyStart !== -1 && bodyEnd !== -1) {
43907
+ const afterBody = bodyEnd + '</body>'.length;
43908
+ const gt = html.indexOf('>', bodyStart);
43909
+ let body = html.slice(bodyStart, afterBody);
43910
+ if (gt !== -1 && gt < bodyEnd) {
43911
+ body = cleanBodyTag(html.slice(bodyStart, gt)) + html.slice(gt, afterBody);
43912
+ }
43913
+ for (const tag of [
43914
+ 'style',
43915
+ 'script',
43916
+ 'span'
43917
+ ]){
43918
+ body = (0,_core_helpers_html_tag_scan_js__WEBPACK_IMPORTED_MODULE_4__.removeBetween)(body, '<' + tag, '>', '</' + tag + '>', 'jodit');
43919
+ }
43920
+ // remove markers: the spans outside the body are the editor's own
43921
+ const stripSpans = (part)=>(0,_core_helpers_html_tag_scan_js__WEBPACK_IMPORTED_MODULE_4__.removeBetween)((0,_core_helpers_html_tag_scan_js__WEBPACK_IMPORTED_MODULE_4__.removeBetween)(part, '<span', '>', '</span>'), '&lt;span', '&gt;', '&lt;/span&gt;');
43922
+ html = (stripSpans(html.slice(0, bodyStart)) + body + stripSpans(html.slice(afterBody))).replace(/(class\s*=\s*)(['"])([^"']*)(jodit-wysiwyg|jodit)([^"']*\2)/g, '$1$2$3$5').replace(/(<[^<]+?)\sclass="[\s]*"/gim, '$1').replace(/(<[^<]+?)\sstyle="[\s;]*"/gim, '$1').replace(/(<[^<]+?)\sdir="[\s]*"/gim, '$1');
43390
43923
  }
43391
43924
  return html;
43392
43925
  };
@@ -49528,9 +50061,10 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.mediaWrappers = {};
49528
50061
  /* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
49529
50062
  /* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2748);
49530
50063
  /* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(580);
49531
- /* harmony import */ var _core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(43555);
49532
- /* harmony import */ var _core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(41180);
49533
- /* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(757);
50064
+ /* harmony import */ var _core_helpers_html_tag_scan_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(76241);
50065
+ /* harmony import */ var _core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(43555);
50066
+ /* harmony import */ var _core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(41180);
50067
+ /* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(757);
49534
50068
  /*!
49535
50069
  * Jodit Editor (https://xdsoft.net/jodit/)
49536
50070
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -49541,6 +50075,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.mediaWrappers = {};
49541
50075
 
49542
50076
 
49543
50077
 
50078
+
49544
50079
  /**
49545
50080
  * Process `video` and `audio`
49546
50081
  */ function media(editor) {
@@ -49548,10 +50083,10 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.mediaWrappers = {};
49548
50083
  const { mediaFakeTag, mediaBlocks, mediaInFakeBlock, mediaWrappers } = editor.options;
49549
50084
  const wrap = (element)=>{
49550
50085
  var _a;
49551
- if (element.parentNode && (0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(element.parentNode, 'data-jodit_iframe_wrapper')) {
50086
+ if (element.parentNode && (0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(element.parentNode, 'data-jodit_iframe_wrapper')) {
49552
50087
  element = element.parentNode;
49553
50088
  } else if (mediaWrappers[element.nodeName.toLowerCase()]) {
49554
- element = (_a = (0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_3__.getMediaWrapper)(editor, element)) !== null && _a !== void 0 ? _a : (0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_3__.wrapMedia)(editor, element);
50089
+ element = (_a = (0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_4__.getMediaWrapper)(editor, element)) !== null && _a !== void 0 ? _a : (0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_4__.wrapMedia)(editor, element);
49555
50090
  } else if (mediaInFakeBlock) {
49556
50091
  const media = element;
49557
50092
  const wrapper = editor.createInside.element(mediaFakeTag, {
@@ -49560,13 +50095,13 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.mediaWrappers = {};
49560
50095
  draggable: true,
49561
50096
  [`data-${keyFake}`]: 1
49562
50097
  });
49563
- (0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(wrapper, 'style', (0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(element, 'style'));
50098
+ (0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(wrapper, 'style', (0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(element, 'style'));
49564
50099
  // The wrapper fits the media, whose size changes as its metadata loads
49565
50100
  // and as it's resized. A percentage width is of the line, so it takes that
49566
50101
  const fit = ()=>{
49567
- (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_4__.css)(wrapper, {
49568
- display: (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_4__.cssInline)(media, 'display') === 'inline-block' ? 'inline-block' : 'block',
49569
- width: (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_4__.cssInline)(media, 'width').endsWith('%') ? '' : 'fit-content',
50102
+ (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_5__.css)(wrapper, {
50103
+ display: (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_5__.cssInline)(media, 'display') === 'inline-block' ? 'inline-block' : 'block',
50104
+ width: (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_5__.cssInline)(media, 'width').endsWith('%') ? '' : 'fit-content',
49570
50105
  height: ''
49571
50106
  });
49572
50107
  };
@@ -49603,15 +50138,12 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.mediaWrappers = {};
49603
50138
  }
49604
50139
  if (mediaInFakeBlock || Object.keys(mediaWrappers).length) {
49605
50140
  editor.e.on('afterGetValueFromEditor', (data)=>{
49606
- const rxp = new RegExp(`<${mediaFakeTag}[^>]+data-${keyFake}[^>]+>([^]+?)</${mediaFakeTag}>`, 'ig');
49607
- if (rxp.test(data.value)) {
49608
- data.value = data.value.replace(rxp, '$1');
49609
- }
50141
+ data.value = (0,_core_helpers_html_tag_scan_js__WEBPACK_IMPORTED_MODULE_3__.unwrapMarkedTags)(data.value, mediaFakeTag, `data-${keyFake}`);
49610
50142
  }).on('change afterInit afterSetMode changePlace', editor.async.debounce(()=>{
49611
50143
  if (!editor.isDestructed && editor.getMode() !== _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.MODE_SOURCE) {
49612
- (0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_3__.$$)(mediaBlocks.join(','), editor.editor).forEach((elm)=>{
49613
- if (!(0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_3__.dataBind)(elm, keyFake)) {
49614
- (0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_3__.dataBind)(elm, keyFake, true);
50144
+ (0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_4__.$$)(mediaBlocks.join(','), editor.editor).forEach((elm)=>{
50145
+ if (!(0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_4__.dataBind)(elm, keyFake)) {
50146
+ (0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_4__.dataBind)(elm, keyFake, true);
49615
50147
  wrap(elm);
49616
50148
  }
49617
50149
  });
@@ -50621,7 +51153,8 @@ _config_js__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.controls.paste = {
50621
51153
  /* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2748);
50622
51154
  /* harmony import */ var _core_helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4510);
50623
51155
  /* harmony import */ var _core_helpers_checker_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(27613);
50624
- /* harmony import */ var _core_ui_button_button_button_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(10830);
51156
+ /* harmony import */ var _core_helpers_html_tag_scan_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(76241);
51157
+ /* harmony import */ var _core_ui_button_button_button_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(10830);
50625
51158
  /*!
50626
51159
  * Jodit Editor (https://xdsoft.net/jodit/)
50627
51160
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -50631,11 +51164,14 @@ _config_js__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.controls.paste = {
50631
51164
 
50632
51165
 
50633
51166
 
51167
+
50634
51168
  /**
50635
51169
  * Remove special HTML comments
50636
51170
  * @private
50637
51171
  */ function removeExtraFragments(html) {
50638
- html = html.replace(/<meta[^>]+?>/g, '');
51172
+ html = (0,_core_helpers_html_tag_scan_js__WEBPACK_IMPORTED_MODULE_4__.removeTagsByPrefix)(html, [
51173
+ '<meta'
51174
+ ]);
50639
51175
  const start = html.search(/<!--StartFragment-->/i);
50640
51176
  if (start !== -1) {
50641
51177
  html = html.substring(start + 20);
@@ -50653,7 +51189,8 @@ _config_js__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.controls.paste = {
50653
51189
  * paste bold
50654
51190
  * @private
50655
51191
  */ function removeGoogleDocsWrapper(html) {
50656
- if (!/<b\s[^>]*docs-internal-guid-/i.test(html)) {
51192
+ // A plain search: the wrapper check is left to the parsed document below
51193
+ if (!/docs-internal-guid-/i.test(html)) {
50657
51194
  return html;
50658
51195
  }
50659
51196
  // An inert document: images don't load and handlers don't run
@@ -50708,7 +51245,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.controls.paste = {
50708
51245
  return;
50709
51246
  }
50710
51247
  const dialog = jodit.confirm(`<div style="word-break: normal; white-space: normal">${jodit.i18n(msg)}</div>`, jodit.i18n(title));
50711
- const buttons = buttonList.map(({ text, value })=>(0,_core_ui_button_button_button_js__WEBPACK_IMPORTED_MODULE_4__.Button)(jodit, {
51248
+ const buttons = buttonList.map(({ text, value })=>(0,_core_ui_button_button_button_js__WEBPACK_IMPORTED_MODULE_5__.Button)(jodit, {
50712
51249
  text,
50713
51250
  name: text.toLowerCase(),
50714
51251
  tabIndex: 0
@@ -50724,7 +51261,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.controls.paste = {
50724
51261
  }
50725
51262
  jodit.e.fire('afterClosePasteDialog', dialog);
50726
51263
  });
50727
- const cancel = (0,_core_ui_button_button_button_js__WEBPACK_IMPORTED_MODULE_4__.Button)(jodit, {
51264
+ const cancel = (0,_core_ui_button_button_button_js__WEBPACK_IMPORTED_MODULE_5__.Button)(jodit, {
50728
51265
  text: 'Cancel',
50729
51266
  tabIndex: 0
50730
51267
  }).onAction(()=>{
@@ -52240,12 +52777,13 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.resizer = {
52240
52777
  /* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2748);
52241
52778
  /* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(580);
52242
52779
  /* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21537);
52243
- /* harmony import */ var _core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(41180);
52244
- /* harmony import */ var _core_plugin_plugin_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(20356);
52245
- /* harmony import */ var _core_selection_helpers_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(45124);
52246
- /* harmony import */ var _core_ui_index_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(67510);
52247
- /* harmony import */ var _core_ui_popup_index_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(61259);
52248
- /* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(71675);
52780
+ /* harmony import */ var _core_helpers_html_tag_scan_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(76241);
52781
+ /* harmony import */ var _core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(41180);
52782
+ /* harmony import */ var _core_plugin_plugin_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(20356);
52783
+ /* harmony import */ var _core_selection_helpers_index_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(45124);
52784
+ /* harmony import */ var _core_ui_index_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(67510);
52785
+ /* harmony import */ var _core_ui_popup_index_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(61259);
52786
+ /* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(71675);
52249
52787
  /*!
52250
52788
  * Jodit Editor (https://xdsoft.net/jodit/)
52251
52789
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -52268,6 +52806,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.resizer = {
52268
52806
 
52269
52807
 
52270
52808
 
52809
+
52271
52810
  const keyBInd = '__jodit-resizer_binded';
52272
52811
  /**
52273
52812
  * Reads a plain pixel value out of a `width`/`height` attribute.
@@ -52285,7 +52824,7 @@ const keyBInd = '__jodit-resizer_binded';
52285
52824
  * A video with no height of its own takes it from its width and its ratio,
52286
52825
  * so resizing it keeps the ratio without setting a height.
52287
52826
  */ function heightFollowsWidth(element) {
52288
- return _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isTag(element, 'video') && !(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(element, 'height') && !(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_5__.cssInline)(element, 'height');
52827
+ return _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isTag(element, 'video') && !(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(element, 'height') && !(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.cssInline)(element, 'height');
52289
52828
  }
52290
52829
  const IFRAME_WRAPPER = '[data-jodit_iframe_wrapper]';
52291
52830
  /**
@@ -52295,7 +52834,7 @@ const IFRAME_WRAPPER = '[data-jodit_iframe_wrapper]';
52295
52834
  */ const EMBED_WRAPPER_STYLE = `${IFRAME_WRAPPER}{position:relative;display:block;user-select:none}` + `${IFRAME_WRAPPER} iframe{position:relative}` + `${IFRAME_WRAPPER}::after{position:absolute;z-index:1;display:block;background:transparent;content:'';cursor:pointer;inset:0}` + `${IFRAME_WRAPPER}[data-jodit-wrapper_active=true] iframe{z-index:2}` + `.jodit_lock ${IFRAME_WRAPPER}[data-jodit-wrapper_active=true] iframe{z-index:1}`;
52296
52835
  /**
52297
52836
  * The module creates a supporting frame for resizing of the elements img and table
52298
- */ class resizer extends _core_plugin_plugin_js__WEBPACK_IMPORTED_MODULE_6__.Plugin {
52837
+ */ class resizer extends _core_plugin_plugin_js__WEBPACK_IMPORTED_MODULE_7__.Plugin {
52299
52838
  /** @override */ afterInit(editor) {
52300
52839
  // It goes in the editing document, so iframe mode has it whatever `iframeStyle` holds
52301
52840
  (0,_core_global_js__WEBPACK_IMPORTED_MODULE_3__.getContainer)(editor, 'resizer', 'style', true).textContent = EMBED_WRAPPER_STYLE;
@@ -52312,10 +52851,7 @@ const IFRAME_WRAPPER = '[data-jodit_iframe_wrapper]';
52312
52851
  .on('keydown', this.onEditorKeyDown, {
52313
52852
  top: true
52314
52853
  }).on('afterGetValueFromEditor.resizer', (data)=>{
52315
- const rgx = /<jodit[^>]+data-jodit_iframe_wrapper[^>]+>(.*?<iframe[^>]*>.*?<\/iframe>.*?)<\/jodit>/gi;
52316
- if (rgx.test(data.value)) {
52317
- data.value = data.value.replace(rgx, '$1');
52318
- }
52854
+ data.value = (0,_core_helpers_html_tag_scan_js__WEBPACK_IMPORTED_MODULE_5__.unwrapMarkedTags)(data.value, 'jodit', 'data-jodit_iframe_wrapper', (inner)=>/<iframe/i.test(inner));
52319
52855
  });
52320
52856
  this.addEventListeners();
52321
52857
  this.__onChangeEditor();
@@ -52352,7 +52888,7 @@ const IFRAME_WRAPPER = '[data-jodit_iframe_wrapper]';
52352
52888
  return;
52353
52889
  }
52354
52890
  const width = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(image, 'width');
52355
- if (width && !(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_5__.cssInline)(image, 'width')) {
52891
+ if (width && !(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.cssInline)(image, 'width')) {
52356
52892
  (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.css)(image, 'width', width);
52357
52893
  (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(image, 'width', null);
52358
52894
  }
@@ -52476,7 +53012,7 @@ const IFRAME_WRAPPER = '[data-jodit_iframe_wrapper]';
52476
53012
  __followCaret() {
52477
53013
  const before = this.__keyDownRange;
52478
53014
  this.__keyDownRange = null;
52479
- if (!(0,_core_selection_helpers_index_js__WEBPACK_IMPORTED_MODULE_7__.isMoved)(this.j, before)) {
53015
+ if (!(0,_core_selection_helpers_index_js__WEBPACK_IMPORTED_MODULE_8__.isMoved)(this.j, before)) {
52480
53016
  return;
52481
53017
  }
52482
53018
  if (this.isShown && this.element && !this.j.s.range.intersectsNode(this.element)) {
@@ -52511,7 +53047,7 @@ const IFRAME_WRAPPER = '[data-jodit_iframe_wrapper]';
52511
53047
  if (!this.isResizeMode) {
52512
53048
  // A click in the element's popup, or in a list it opens, works on
52513
53049
  // the element, so it keeps its frame
52514
- if ((e === null || e === void 0 ? void 0 : e.target) && _core_ui_index_js__WEBPACK_IMPORTED_MODULE_8__.UIElement.closestElement(e.target, _core_ui_popup_index_js__WEBPACK_IMPORTED_MODULE_9__.Popup)) {
53050
+ if ((e === null || e === void 0 ? void 0 : e.target) && _core_ui_index_js__WEBPACK_IMPORTED_MODULE_9__.UIElement.closestElement(e.target, _core_ui_popup_index_js__WEBPACK_IMPORTED_MODULE_10__.Popup)) {
52515
53051
  return;
52516
53052
  }
52517
53053
  return this.hide();
@@ -52535,7 +53071,7 @@ const IFRAME_WRAPPER = '[data-jodit_iframe_wrapper]';
52535
53071
  if (changeAttrs) {
52536
53072
  (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(element, key, value);
52537
53073
  }
52538
- if (!changeAttrs || (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_5__.cssInline)(element, key)) {
53074
+ if (!changeAttrs || (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.cssInline)(element, key)) {
52539
53075
  (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.css)(element, key, value);
52540
53076
  }
52541
53077
  }
@@ -52601,7 +53137,7 @@ const IFRAME_WRAPPER = '[data-jodit_iframe_wrapper]';
52601
53137
  const width = element.offsetWidth || attrPixelSize(element, 'width');
52602
53138
  const height = element.offsetHeight || attrPixelSize(element, 'height');
52603
53139
  (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.css)(wrapper, {
52604
- display: (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_5__.cssInline)(element, 'display') === 'inline-block' ? 'inline-block' : 'block'
53140
+ display: (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.cssInline)(element, 'display') === 'inline-block' ? 'inline-block' : 'block'
52605
53141
  });
52606
53142
  if (width) {
52607
53143
  (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.css)(wrapper, 'width', width);
@@ -52738,7 +53274,7 @@ const IFRAME_WRAPPER = '[data-jodit_iframe_wrapper]';
52738
53274
  }
52739
53275
  if (this.element && this.rect) {
52740
53276
  const workplacePosition = this.getWorkplacePosition();
52741
- const pos = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.offset)(this.element, this.j, this.j.ed), left = parseInt((0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_5__.cssInline)(this.rect, 'left') || '0', 10), top = parseInt((0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_5__.cssInline)(this.rect, 'top') || '0', 10), w = this.rect.offsetWidth, h = this.rect.offsetHeight;
53277
+ const pos = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.offset)(this.element, this.j, this.j.ed), left = parseInt((0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.cssInline)(this.rect, 'left') || '0', 10), top = parseInt((0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.cssInline)(this.rect, 'top') || '0', 10), w = this.rect.offsetWidth, h = this.rect.offsetHeight;
52742
53278
  const newTop = pos.top - workplacePosition.top, newLeft = pos.left - workplacePosition.left;
52743
53279
  if (top !== newTop || left !== newLeft || w !== this.element.offsetWidth || h !== this.element.offsetHeight) {
52744
53280
  (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.css)(this.rect, {