jodit-pro 4.0.9 → 4.0.19

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 (307) hide show
  1. package/es2015/jodit.css +20 -19
  2. package/es2015/jodit.fat.min.css +1 -1
  3. package/es2015/jodit.fat.min.js +2 -2
  4. package/es2015/jodit.js +644 -534
  5. package/es2015/jodit.min.css +1 -1
  6. package/es2015/jodit.min.js +2 -2
  7. package/es2015/plugins/autocomplete/autocomplete.js +1 -1
  8. package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
  9. package/es2015/plugins/backup/backup.css +1 -1
  10. package/es2015/plugins/backup/backup.js +1 -1
  11. package/es2015/plugins/backup/backup.min.js +1 -1
  12. package/es2015/plugins/button-generator/button-generator.css +1 -1
  13. package/es2015/plugins/button-generator/button-generator.js +1 -1
  14. package/es2015/plugins/button-generator/button-generator.min.js +1 -1
  15. package/es2015/plugins/change-case/change-case.js +1 -1
  16. package/es2015/plugins/change-case/change-case.min.js +1 -1
  17. package/es2015/plugins/color-picker/color-picker.css +1 -1
  18. package/es2015/plugins/color-picker/color-picker.js +1 -1
  19. package/es2015/plugins/color-picker/color-picker.min.js +1 -1
  20. package/es2015/plugins/emoji/emoji.css +1 -1
  21. package/es2015/plugins/emoji/emoji.js +1 -1
  22. package/es2015/plugins/emoji/emoji.min.js +1 -1
  23. package/es2015/plugins/export-docs/export-docs.js +1 -1
  24. package/es2015/plugins/export-docs/export-docs.min.js +1 -1
  25. package/es2015/plugins/finder/finder.css +2 -1
  26. package/es2015/plugins/finder/finder.js +1 -1
  27. package/es2015/plugins/finder/finder.min.css +1 -1
  28. package/es2015/plugins/finder/finder.min.js +1 -1
  29. package/es2015/plugins/google-maps/google-maps.css +1 -1
  30. package/es2015/plugins/google-maps/google-maps.js +1 -1
  31. package/es2015/plugins/google-maps/google-maps.min.js +1 -1
  32. package/es2015/plugins/google-search/google-search.js +1 -1
  33. package/es2015/plugins/google-search/google-search.min.js +1 -1
  34. package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
  35. package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
  36. package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
  37. package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
  38. package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
  39. package/es2015/plugins/keyboard/keyboard.css +1 -1
  40. package/es2015/plugins/keyboard/keyboard.js +1 -1
  41. package/es2015/plugins/keyboard/keyboard.min.js +1 -1
  42. package/es2015/plugins/mobile-view/mobile-view.js +1 -1
  43. package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
  44. package/es2015/plugins/page-break/page-break.js +1 -1
  45. package/es2015/plugins/page-break/page-break.min.js +1 -1
  46. package/es2015/plugins/paste-code/paste-code.css +1 -1
  47. package/es2015/plugins/paste-code/paste-code.js +1 -1
  48. package/es2015/plugins/paste-code/paste-code.min.js +1 -1
  49. package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
  50. package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
  51. package/es2015/plugins/show-blocks/show-blocks.js +1 -1
  52. package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
  53. package/es2015/plugins/todo-list/todo-list.css +1 -1
  54. package/es2015/plugins/todo-list/todo-list.js +1 -1
  55. package/es2015/plugins/todo-list/todo-list.min.js +1 -1
  56. package/es2015/plugins/translate/translate.css +1 -1
  57. package/es2015/plugins/translate/translate.js +1 -1
  58. package/es2015/plugins/translate/translate.min.js +1 -1
  59. package/es2015/plugins/tune-block/tune-block.css +1 -1
  60. package/es2015/plugins/tune-block/tune-block.js +1 -1
  61. package/es2015/plugins/tune-block/tune-block.min.js +1 -1
  62. package/es2018/jodit.css +20 -19
  63. package/es2018/jodit.fat.min.css +1 -1
  64. package/es2018/jodit.fat.min.js +2 -2
  65. package/es2018/jodit.js +644 -534
  66. package/es2018/jodit.min.css +1 -1
  67. package/es2018/jodit.min.js +2 -2
  68. package/es2018/plugins/autocomplete/autocomplete.js +1 -1
  69. package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
  70. package/es2018/plugins/backup/backup.css +1 -1
  71. package/es2018/plugins/backup/backup.js +1 -1
  72. package/es2018/plugins/backup/backup.min.js +1 -1
  73. package/es2018/plugins/button-generator/button-generator.css +1 -1
  74. package/es2018/plugins/button-generator/button-generator.js +1 -1
  75. package/es2018/plugins/button-generator/button-generator.min.js +1 -1
  76. package/es2018/plugins/change-case/change-case.js +1 -1
  77. package/es2018/plugins/change-case/change-case.min.js +1 -1
  78. package/es2018/plugins/color-picker/color-picker.css +1 -1
  79. package/es2018/plugins/color-picker/color-picker.js +1 -1
  80. package/es2018/plugins/color-picker/color-picker.min.js +1 -1
  81. package/es2018/plugins/emoji/emoji.css +1 -1
  82. package/es2018/plugins/emoji/emoji.js +1 -1
  83. package/es2018/plugins/emoji/emoji.min.js +1 -1
  84. package/es2018/plugins/export-docs/export-docs.js +1 -1
  85. package/es2018/plugins/export-docs/export-docs.min.js +1 -1
  86. package/es2018/plugins/finder/finder.css +2 -1
  87. package/es2018/plugins/finder/finder.js +1 -1
  88. package/es2018/plugins/finder/finder.min.css +1 -1
  89. package/es2018/plugins/finder/finder.min.js +1 -1
  90. package/es2018/plugins/google-maps/google-maps.css +1 -1
  91. package/es2018/plugins/google-maps/google-maps.js +1 -1
  92. package/es2018/plugins/google-maps/google-maps.min.js +1 -1
  93. package/es2018/plugins/google-search/google-search.js +1 -1
  94. package/es2018/plugins/google-search/google-search.min.js +1 -1
  95. package/es2018/plugins/highlight-signature/highlight-signature.js +1 -1
  96. package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
  97. package/es2018/plugins/iframe-editor/iframe-editor.css +1 -1
  98. package/es2018/plugins/iframe-editor/iframe-editor.js +1 -1
  99. package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
  100. package/es2018/plugins/keyboard/keyboard.css +1 -1
  101. package/es2018/plugins/keyboard/keyboard.js +1 -1
  102. package/es2018/plugins/keyboard/keyboard.min.js +1 -1
  103. package/es2018/plugins/mobile-view/mobile-view.js +1 -1
  104. package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
  105. package/es2018/plugins/page-break/page-break.js +1 -1
  106. package/es2018/plugins/page-break/page-break.min.js +1 -1
  107. package/es2018/plugins/paste-code/paste-code.css +1 -1
  108. package/es2018/plugins/paste-code/paste-code.js +1 -1
  109. package/es2018/plugins/paste-code/paste-code.min.js +1 -1
  110. package/es2018/plugins/paste-from-word/paste-from-word.js +1 -1
  111. package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
  112. package/es2018/plugins/show-blocks/show-blocks.js +1 -1
  113. package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
  114. package/es2018/plugins/todo-list/todo-list.css +1 -1
  115. package/es2018/plugins/todo-list/todo-list.js +1 -1
  116. package/es2018/plugins/todo-list/todo-list.min.js +1 -1
  117. package/es2018/plugins/translate/translate.css +1 -1
  118. package/es2018/plugins/translate/translate.js +1 -1
  119. package/es2018/plugins/translate/translate.min.js +1 -1
  120. package/es2018/plugins/tune-block/tune-block.css +1 -1
  121. package/es2018/plugins/tune-block/tune-block.js +1 -1
  122. package/es2018/plugins/tune-block/tune-block.min.js +1 -1
  123. package/es2021/jodit.css +20 -19
  124. package/es2021/jodit.fat.min.css +1 -1
  125. package/es2021/jodit.fat.min.js +2 -2
  126. package/es2021/jodit.js +643 -533
  127. package/es2021/jodit.min.css +1 -1
  128. package/es2021/jodit.min.js +2 -2
  129. package/es2021/plugins/autocomplete/autocomplete.js +1 -1
  130. package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
  131. package/es2021/plugins/backup/backup.css +1 -1
  132. package/es2021/plugins/backup/backup.js +1 -1
  133. package/es2021/plugins/backup/backup.min.js +1 -1
  134. package/es2021/plugins/button-generator/button-generator.css +1 -1
  135. package/es2021/plugins/button-generator/button-generator.js +1 -1
  136. package/es2021/plugins/button-generator/button-generator.min.js +1 -1
  137. package/es2021/plugins/change-case/change-case.js +1 -1
  138. package/es2021/plugins/change-case/change-case.min.js +1 -1
  139. package/es2021/plugins/color-picker/color-picker.css +1 -1
  140. package/es2021/plugins/color-picker/color-picker.js +1 -1
  141. package/es2021/plugins/color-picker/color-picker.min.js +1 -1
  142. package/es2021/plugins/emoji/emoji.css +1 -1
  143. package/es2021/plugins/emoji/emoji.js +1 -1
  144. package/es2021/plugins/emoji/emoji.min.js +1 -1
  145. package/es2021/plugins/export-docs/export-docs.js +1 -1
  146. package/es2021/plugins/export-docs/export-docs.min.js +1 -1
  147. package/es2021/plugins/finder/finder.css +2 -1
  148. package/es2021/plugins/finder/finder.js +1 -1
  149. package/es2021/plugins/finder/finder.min.css +1 -1
  150. package/es2021/plugins/finder/finder.min.js +1 -1
  151. package/es2021/plugins/google-maps/google-maps.css +1 -1
  152. package/es2021/plugins/google-maps/google-maps.js +1 -1
  153. package/es2021/plugins/google-maps/google-maps.min.js +1 -1
  154. package/es2021/plugins/google-search/google-search.js +1 -1
  155. package/es2021/plugins/google-search/google-search.min.js +1 -1
  156. package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
  157. package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
  158. package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
  159. package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
  160. package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
  161. package/es2021/plugins/keyboard/keyboard.css +1 -1
  162. package/es2021/plugins/keyboard/keyboard.js +1 -1
  163. package/es2021/plugins/keyboard/keyboard.min.js +1 -1
  164. package/es2021/plugins/mobile-view/mobile-view.js +1 -1
  165. package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
  166. package/es2021/plugins/page-break/page-break.js +1 -1
  167. package/es2021/plugins/page-break/page-break.min.js +1 -1
  168. package/es2021/plugins/paste-code/paste-code.css +1 -1
  169. package/es2021/plugins/paste-code/paste-code.js +1 -1
  170. package/es2021/plugins/paste-code/paste-code.min.js +1 -1
  171. package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
  172. package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
  173. package/es2021/plugins/show-blocks/show-blocks.js +1 -1
  174. package/es2021/plugins/show-blocks/show-blocks.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 +20 -19
  185. package/es2021.en/jodit.fat.min.css +1 -1
  186. package/es2021.en/jodit.fat.min.js +2 -2
  187. package/es2021.en/jodit.js +344 -318
  188. package/es2021.en/jodit.min.css +1 -1
  189. package/es2021.en/jodit.min.js +2 -2
  190. package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
  191. package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
  192. package/es2021.en/plugins/backup/backup.css +1 -1
  193. package/es2021.en/plugins/backup/backup.js +1 -1
  194. package/es2021.en/plugins/backup/backup.min.js +1 -1
  195. package/es2021.en/plugins/button-generator/button-generator.css +1 -1
  196. package/es2021.en/plugins/button-generator/button-generator.js +1 -1
  197. package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
  198. package/es2021.en/plugins/change-case/change-case.js +1 -1
  199. package/es2021.en/plugins/change-case/change-case.min.js +1 -1
  200. package/es2021.en/plugins/color-picker/color-picker.css +1 -1
  201. package/es2021.en/plugins/color-picker/color-picker.js +1 -1
  202. package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
  203. package/es2021.en/plugins/emoji/emoji.css +1 -1
  204. package/es2021.en/plugins/emoji/emoji.js +1 -1
  205. package/es2021.en/plugins/emoji/emoji.min.js +1 -1
  206. package/es2021.en/plugins/export-docs/export-docs.js +1 -1
  207. package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
  208. package/es2021.en/plugins/finder/finder.css +2 -1
  209. package/es2021.en/plugins/finder/finder.js +1 -1
  210. package/es2021.en/plugins/finder/finder.min.css +1 -1
  211. package/es2021.en/plugins/finder/finder.min.js +1 -1
  212. package/es2021.en/plugins/google-maps/google-maps.css +1 -1
  213. package/es2021.en/plugins/google-maps/google-maps.js +1 -1
  214. package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
  215. package/es2021.en/plugins/google-search/google-search.js +1 -1
  216. package/es2021.en/plugins/google-search/google-search.min.js +1 -1
  217. package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
  218. package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
  219. package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
  220. package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
  221. package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
  222. package/es2021.en/plugins/keyboard/keyboard.css +1 -1
  223. package/es2021.en/plugins/keyboard/keyboard.js +1 -1
  224. package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
  225. package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
  226. package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
  227. package/es2021.en/plugins/page-break/page-break.js +1 -1
  228. package/es2021.en/plugins/page-break/page-break.min.js +1 -1
  229. package/es2021.en/plugins/paste-code/paste-code.css +1 -1
  230. package/es2021.en/plugins/paste-code/paste-code.js +1 -1
  231. package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
  232. package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
  233. package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
  234. package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
  235. package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
  236. package/es2021.en/plugins/todo-list/todo-list.css +1 -1
  237. package/es2021.en/plugins/todo-list/todo-list.js +1 -1
  238. package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
  239. package/es2021.en/plugins/translate/translate.css +1 -1
  240. package/es2021.en/plugins/translate/translate.js +1 -1
  241. package/es2021.en/plugins/translate/translate.min.js +1 -1
  242. package/es2021.en/plugins/tune-block/tune-block.css +1 -1
  243. package/es2021.en/plugins/tune-block/tune-block.js +1 -1
  244. package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
  245. package/es5/jodit.css +25 -19
  246. package/es5/jodit.fat.min.css +1 -1
  247. package/es5/jodit.fat.min.js +2 -2
  248. package/es5/jodit.js +661 -551
  249. package/es5/jodit.min.css +3 -3
  250. package/es5/jodit.min.js +2 -2
  251. package/es5/plugins/autocomplete/autocomplete.js +1 -1
  252. package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
  253. package/es5/plugins/backup/backup.css +1 -1
  254. package/es5/plugins/backup/backup.js +1 -1
  255. package/es5/plugins/backup/backup.min.js +1 -1
  256. package/es5/plugins/button-generator/button-generator.css +1 -1
  257. package/es5/plugins/button-generator/button-generator.js +1 -1
  258. package/es5/plugins/button-generator/button-generator.min.js +1 -1
  259. package/es5/plugins/change-case/change-case.js +1 -1
  260. package/es5/plugins/change-case/change-case.min.js +1 -1
  261. package/es5/plugins/color-picker/color-picker.css +1 -1
  262. package/es5/plugins/color-picker/color-picker.js +1 -1
  263. package/es5/plugins/color-picker/color-picker.min.js +1 -1
  264. package/es5/plugins/emoji/emoji.css +1 -1
  265. package/es5/plugins/emoji/emoji.js +1 -1
  266. package/es5/plugins/emoji/emoji.min.js +1 -1
  267. package/es5/plugins/export-docs/export-docs.js +1 -1
  268. package/es5/plugins/export-docs/export-docs.min.js +1 -1
  269. package/es5/plugins/finder/finder.css +2 -1
  270. package/es5/plugins/finder/finder.js +1 -1
  271. package/es5/plugins/finder/finder.min.css +1 -1
  272. package/es5/plugins/finder/finder.min.js +1 -1
  273. package/es5/plugins/google-maps/google-maps.css +1 -1
  274. package/es5/plugins/google-maps/google-maps.js +1 -1
  275. package/es5/plugins/google-maps/google-maps.min.js +1 -1
  276. package/es5/plugins/google-search/google-search.js +1 -1
  277. package/es5/plugins/google-search/google-search.min.js +1 -1
  278. package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
  279. package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
  280. package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
  281. package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
  282. package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
  283. package/es5/plugins/keyboard/keyboard.css +1 -1
  284. package/es5/plugins/keyboard/keyboard.js +1 -1
  285. package/es5/plugins/keyboard/keyboard.min.js +1 -1
  286. package/es5/plugins/mobile-view/mobile-view.js +1 -1
  287. package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
  288. package/es5/plugins/page-break/page-break.js +1 -1
  289. package/es5/plugins/page-break/page-break.min.js +1 -1
  290. package/es5/plugins/paste-code/paste-code.css +1 -1
  291. package/es5/plugins/paste-code/paste-code.js +1 -1
  292. package/es5/plugins/paste-code/paste-code.min.js +1 -1
  293. package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
  294. package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
  295. package/es5/plugins/show-blocks/show-blocks.js +1 -1
  296. package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
  297. package/es5/plugins/todo-list/todo-list.css +1 -1
  298. package/es5/plugins/todo-list/todo-list.js +1 -1
  299. package/es5/plugins/todo-list/todo-list.min.js +1 -1
  300. package/es5/plugins/translate/translate.css +1 -1
  301. package/es5/plugins/translate/translate.js +1 -1
  302. package/es5/plugins/translate/translate.min.js +1 -1
  303. package/es5/plugins/tune-block/tune-block.css +1 -1
  304. package/es5/plugins/tune-block/tune-block.js +1 -1
  305. package/es5/plugins/tune-block/tune-block.min.js +1 -1
  306. package/esm/plugins/license/license.js +1 -1
  307. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valeriy <chupurnov@gmail.com>
4
- * Version: v4.0.9
4
+ * Version: v4.0.19
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1590,7 +1590,7 @@ class Async {
1590
1590
  });
1591
1591
  }, options?.timeout ?? 1);
1592
1592
  });
1593
- this.cancelIdleCallbackNative = window['cancelIdleCallback']?.bind(window) ??
1593
+ this.__cancelIdleCallbackNative = window['cancelIdleCallback']?.bind(window) ??
1594
1594
  ((request) => {
1595
1595
  this.clearTimeout(request);
1596
1596
  });
@@ -1816,7 +1816,7 @@ class Async {
1816
1816
  }
1817
1817
  cancelIdleCallback(request) {
1818
1818
  this.requestsIdle.delete(request);
1819
- return this.cancelIdleCallbackNative(request);
1819
+ return this.__cancelIdleCallbackNative(request);
1820
1820
  }
1821
1821
  requestAnimationFrame(callback) {
1822
1822
  const request = requestAnimationFrame(callback);
@@ -2245,7 +2245,7 @@ __webpack_require__.r(__webpack_exports__);
2245
2245
  * Released under MIT see LICENSE.txt in the project root for license information.
2246
2246
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
2247
2247
  */
2248
- const APP_VERSION = "4.0.9";
2248
+ const APP_VERSION = "4.0.19";
2249
2249
  // prettier-ignore
2250
2250
  const ES = "es2021";
2251
2251
  const IS_ES_MODERN = true;
@@ -7699,12 +7699,10 @@ function alignElement(command, box) {
7699
7699
  /* harmony export */ GX: function() { return /* binding */ loadNextStyle; },
7700
7700
  /* harmony export */ JL: function() { return /* binding */ appendScriptAsync; },
7701
7701
  /* harmony export */ Nf: function() { return /* binding */ appendStyleAsync; },
7702
- /* harmony export */ uR: function() { return /* binding */ appendScript; },
7703
7702
  /* harmony export */ wY: function() { return /* binding */ loadNext; }
7704
7703
  /* harmony export */ });
7705
- /* harmony import */ var _complete_url__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(66881);
7706
- /* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(96318);
7707
- /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4682);
7704
+ /* harmony import */ var _complete_url__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(66881);
7705
+ /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4682);
7708
7706
  /*!
7709
7707
  * Jodit Editor (https://xdsoft.net/jodit/)
7710
7708
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -7712,7 +7710,6 @@ function alignElement(command, box) {
7712
7710
  */
7713
7711
 
7714
7712
 
7715
-
7716
7713
  const alreadyLoadedList = new Map();
7717
7714
  const cacheLoaders = (loader) => {
7718
7715
  return async (jodit, url) => {
@@ -7724,44 +7721,30 @@ const cacheLoaders = (loader) => {
7724
7721
  return promise;
7725
7722
  };
7726
7723
  };
7727
- /**
7728
- * Append script in document and call callback function after download
7729
- */
7730
- const appendScript = (jodit, url, callback) => {
7731
- const script = jodit.c.element('script');
7732
- script.type = 'text/javascript';
7733
- script.async = true;
7734
- if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_0__/* .isFunction */ .m)(callback) && !jodit.isInDestruct) {
7735
- jodit.e.on(script, 'load', callback);
7736
- }
7737
- if (!script.src) {
7738
- script.src = (0,_complete_url__WEBPACK_IMPORTED_MODULE_1__/* .completeUrl */ .W)(url);
7739
- }
7740
- jodit.od.body.appendChild(script);
7741
- return {
7742
- callback,
7743
- element: script
7744
- };
7745
- };
7746
7724
  /**
7747
7725
  * Load script and return promise
7748
7726
  */
7749
7727
  const appendScriptAsync = cacheLoaders((jodit, url) => {
7750
- return new Promise((resolve, reject) => {
7728
+ return jodit.async.promise((resolve, reject) => {
7751
7729
  if (jodit.isInDestruct) {
7752
- return;
7730
+ return reject();
7753
7731
  }
7754
- const { element } = appendScript(jodit, url, resolve);
7755
- !jodit.isInDestruct && jodit.e.on(element, 'error', reject);
7732
+ const script = jodit.c.element('script', {
7733
+ type: 'text/javascript',
7734
+ async: true,
7735
+ src: (0,_complete_url__WEBPACK_IMPORTED_MODULE_0__/* .completeUrl */ .W)(url)
7736
+ });
7737
+ jodit.od.body.appendChild(script);
7738
+ jodit.e.on(script, 'error', reject).on(script, 'load', resolve);
7756
7739
  });
7757
7740
  });
7758
7741
  /**
7759
7742
  * Download CSS style script
7760
7743
  */
7761
7744
  const appendStyleAsync = cacheLoaders((jodit, url) => {
7762
- return new Promise((resolve, reject) => {
7745
+ return jodit.async.promise((resolve, reject) => {
7763
7746
  if (jodit.isInDestruct) {
7764
- return;
7747
+ return reject();
7765
7748
  }
7766
7749
  const link = jodit.c.element('link');
7767
7750
  link.rel = 'stylesheet';
@@ -7770,7 +7753,7 @@ const appendStyleAsync = cacheLoaders((jodit, url) => {
7770
7753
  const callback = () => resolve(link);
7771
7754
  !jodit.isInDestruct &&
7772
7755
  jodit.e.on(link, 'load', callback).on(link, 'error', reject);
7773
- link.href = (0,_complete_url__WEBPACK_IMPORTED_MODULE_1__/* .completeUrl */ .W)(url);
7756
+ link.href = (0,_complete_url__WEBPACK_IMPORTED_MODULE_0__/* .completeUrl */ .W)(url);
7774
7757
  if (jodit.o.shadowRoot) {
7775
7758
  jodit.o.shadowRoot.appendChild(link);
7776
7759
  }
@@ -7779,14 +7762,14 @@ const appendStyleAsync = cacheLoaders((jodit, url) => {
7779
7762
  }
7780
7763
  });
7781
7764
  });
7782
- const loadNext = (jodit, urls, i = 0) => {
7783
- if (!(0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__/* .isString */ .H)(urls[i])) {
7765
+ function loadNext(jodit, urls, i = 0) {
7766
+ if (!(0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .H)(urls[i])) {
7784
7767
  return Promise.resolve();
7785
7768
  }
7786
7769
  return appendScriptAsync(jodit, urls[i]).then(() => loadNext(jodit, urls, i + 1));
7787
- };
7770
+ }
7788
7771
  function loadNextStyle(jodit, urls, i = 0) {
7789
- if (!(0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__/* .isString */ .H)(urls[i])) {
7772
+ if (!(0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .H)(urls[i])) {
7790
7773
  return Promise.resolve();
7791
7774
  }
7792
7775
  return appendStyleAsync(jodit, urls[i]).then(() => loadNextStyle(jodit, urls, i + 1));
@@ -8709,7 +8692,6 @@ __webpack_require__.r(__webpack_exports__);
8709
8692
  /* harmony export */ OptionsError: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_13__.tW; },
8710
8693
  /* harmony export */ abort: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_13__.JG; },
8711
8694
  /* harmony export */ alignElement: function() { return /* reexport safe */ _align__WEBPACK_IMPORTED_MODULE_0__.E3; },
8712
- /* harmony export */ appendScript: function() { return /* reexport safe */ _append_script__WEBPACK_IMPORTED_MODULE_2__.uR; },
8713
8695
  /* harmony export */ appendScriptAsync: function() { return /* reexport safe */ _append_script__WEBPACK_IMPORTED_MODULE_2__.JL; },
8714
8696
  /* harmony export */ appendStyleAsync: function() { return /* reexport safe */ _append_script__WEBPACK_IMPORTED_MODULE_2__.Nf; },
8715
8697
  /* harmony export */ attr: function() { return /* reexport safe */ _attr__WEBPACK_IMPORTED_MODULE_1__.L; },
@@ -8763,7 +8745,7 @@ __webpack_require__.r(__webpack_exports__);
8763
8745
  /* harmony import */ var _assert__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(52378);
8764
8746
  /* harmony import */ var _assert__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_assert__WEBPACK_IMPORTED_MODULE_3__);
8765
8747
  /* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
8766
- /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _assert__WEBPACK_IMPORTED_MODULE_3__) if(["default","alignElement","clearAlign","hAlignElement","attr","appendScript","appendScriptAsync","appendStyleAsync","loadNext","loadNextStyle"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = function(key) { return _assert__WEBPACK_IMPORTED_MODULE_3__[key]; }.bind(0, __WEBPACK_IMPORT_KEY__)
8748
+ /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _assert__WEBPACK_IMPORTED_MODULE_3__) if(["default","alignElement","clearAlign","hAlignElement","attr","appendScriptAsync","appendStyleAsync","loadNext","loadNextStyle"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = function(key) { return _assert__WEBPACK_IMPORTED_MODULE_3__[key]; }.bind(0, __WEBPACK_IMPORT_KEY__)
8767
8749
  /* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
8768
8750
  /* harmony import */ var _browser__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(25198);
8769
8751
  /* harmony import */ var _build_query__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(23918);
@@ -9641,9 +9623,9 @@ function getFullUrl(jodit, name, js) {
9641
9623
  /**
9642
9624
  * @private
9643
9625
  */
9644
- function loadExtras(items, jodit, extrasList, callback) {
9626
+ function loadExtras(items, jodit, extraList, callback) {
9645
9627
  try {
9646
- const needLoadExtras = extrasList.filter(extra => !items.has((0,jodit_core_plugin_helpers_utils__WEBPACK_IMPORTED_MODULE_3__/* .normalizeName */ .B)(extra.name)));
9628
+ const needLoadExtras = extraList.filter(extra => !items.has((0,jodit_core_plugin_helpers_utils__WEBPACK_IMPORTED_MODULE_3__/* .normalizeName */ .B)(extra.name)));
9647
9629
  if (needLoadExtras.length) {
9648
9630
  load(jodit, needLoadExtras, callback);
9649
9631
  }
@@ -9841,7 +9823,7 @@ class PluginSystem {
9841
9823
  * Public method for async init all plugins
9842
9824
  */
9843
9825
  __init(jodit) {
9844
- const { extrasList, disableList, filter } = getSpecialLists(jodit);
9826
+ const { extraList, disableList, filter } = getSpecialLists(jodit);
9845
9827
  const doneList = new Map();
9846
9828
  const pluginsMap = {};
9847
9829
  const waitingList = new Set();
@@ -9880,8 +9862,8 @@ class PluginSystem {
9880
9862
  initPlugins();
9881
9863
  }
9882
9864
  };
9883
- if (!extrasList || !extrasList.length) {
9884
- (0,jodit_core_plugin_helpers_load__WEBPACK_IMPORTED_MODULE_3__/* .loadExtras */ .z)(this.__items, jodit, extrasList, initPlugins);
9865
+ if (extraList && extraList.length) {
9866
+ (0,jodit_core_plugin_helpers_load__WEBPACK_IMPORTED_MODULE_3__/* .loadExtras */ .z)(this.__items, jodit, extraList, initPlugins);
9885
9867
  }
9886
9868
  initPlugins();
9887
9869
  bindOnBeforeDestruct(jodit, pluginsMap);
@@ -9921,10 +9903,10 @@ function bindOnBeforeDestruct(jodit, plugins) {
9921
9903
  });
9922
9904
  }
9923
9905
  function getSpecialLists(jodit) {
9924
- const extrasList = jodit.o.extraPlugins.map(s => (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_0__/* .isString */ .HD)(s) ? { name: s } : s);
9906
+ const extraList = jodit.o.extraPlugins.map(s => (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_0__/* .isString */ .HD)(s) ? { name: s } : s);
9925
9907
  const disableList = new Set((0,jodit_core_helpers_array__WEBPACK_IMPORTED_MODULE_1__/* .splitArray */ .C1)(jodit.o.disablePlugins).map(jodit_core_plugin_helpers_utils__WEBPACK_IMPORTED_MODULE_7__/* .normalizeName */ .B));
9926
9908
  const filter = jodit.o.safeMode ? new Set(jodit.o.safePluginsList) : null;
9927
- return { extrasList, disableList, filter };
9909
+ return { extraList, disableList, filter };
9928
9910
  }
9929
9911
 
9930
9912
 
@@ -9983,7 +9965,11 @@ class Plugin extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCo
9983
9965
  this.afterInit(this.jodit);
9984
9966
  }
9985
9967
  init(jodit) {
9986
- // empty
9968
+ if (this.jodit.isReady) {
9969
+ this.afterInit(this.jodit);
9970
+ this.__afterPluginSystemInit();
9971
+ this.jodit.e.fire('rebuildToolbar');
9972
+ }
9987
9973
  }
9988
9974
  __beforeDestruct() {
9989
9975
  if (this.isInDestruct) {
@@ -15812,6 +15798,7 @@ class Popup extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_3__/* .UI
15812
15798
  */
15813
15799
  open(getBound, keepPosition = false, parentContainer) {
15814
15800
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.markOwner)(this.jodit, this.container);
15801
+ this.container.classList.add(`jodit_theme_${this.jodit.o.theme}`);
15815
15802
  this.__calculateZIndex();
15816
15803
  this.isOpened = true;
15817
15804
  this.__addGlobalListeners();
@@ -16292,6 +16279,9 @@ class ViewWithToolbar extends jodit_core_view_view__WEBPACK_IMPORTED_MODULE_0__/
16292
16279
  super.destruct();
16293
16280
  }
16294
16281
  }
16282
+ (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .gn)([
16283
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_7__.watch)(':rebuildToolbar')
16284
+ ], ViewWithToolbar.prototype, "buildToolbar", null);
16295
16285
  (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .gn)([
16296
16286
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_7__.autobind
16297
16287
  ], ViewWithToolbar.prototype, "beforeToolbarBuild", null);
@@ -17570,6 +17560,9 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
17570
17560
  this.selection = new jodit_modules__WEBPACK_IMPORTED_MODULE_2__.Selection(this);
17571
17561
  const beforeInitHookResult = this.beforeInitHook();
17572
17562
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.callPromise)(beforeInitHookResult, () => {
17563
+ if (this.isInDestruct) {
17564
+ return;
17565
+ }
17573
17566
  this.e.fire('beforeInit', this);
17574
17567
  jodit_core_global__WEBPACK_IMPORTED_MODULE_4__/* .pluginSystem */ .pw.__init(this);
17575
17568
  this.e.fire('afterPluginSystemInit', this);
@@ -17581,6 +17574,9 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
17581
17574
  const addPlaceResult = this.addPlace(element, options);
17582
17575
  jodit_core_global__WEBPACK_IMPORTED_MODULE_4__/* .instances */ .as[this.id] = this;
17583
17576
  const init = () => {
17577
+ if (this.isInDestruct) {
17578
+ return;
17579
+ }
17584
17580
  if (this.e) {
17585
17581
  this.e.fire('afterInit', this);
17586
17582
  }
@@ -17856,10 +17852,6 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
17856
17852
  }
17857
17853
  this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_2__.STATUSES.beforeDestruct);
17858
17854
  this.__elementToPlace.clear();
17859
- if (!this.editor) {
17860
- return;
17861
- }
17862
- const buffer = this.getEditorValue();
17863
17855
  this.storage.clear();
17864
17856
  this.buffer.clear();
17865
17857
  this.commands.clear();
@@ -17868,7 +17860,11 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
17868
17860
  this.e.off(this.ow);
17869
17861
  this.e.off(this.od);
17870
17862
  this.e.off(this.od.body);
17863
+ const buffer = this.editor ? this.getEditorValue() : '';
17871
17864
  this.places.forEach(({ container, workplace, statusbar, element, iframe, editor, history }) => {
17865
+ if (!element) {
17866
+ return;
17867
+ }
17872
17868
  if (element !== container) {
17873
17869
  if (element.hasAttribute(__defaultStyleDisplayKey)) {
17874
17870
  const display = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(element, __defaultStyleDisplayKey);
@@ -18000,6 +17996,7 @@ function addClassNames(className, elm) {
18000
17996
 
18001
17997
 
18002
17998
 
17999
+
18003
18000
 
18004
18001
 
18005
18002
  let exp = {};
@@ -18009,6 +18006,7 @@ exp = {
18009
18006
  de: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_1___default()),
18010
18007
  en: jodit_langs_en__WEBPACK_IMPORTED_MODULE_0__,
18011
18008
  es: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_1___default()),
18009
+ fi: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_1___default()),
18012
18010
  fr: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_1___default()),
18013
18011
  he: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_1___default()),
18014
18012
  hu: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_1___default()),
@@ -25478,36 +25476,38 @@ const ns = 'addnewline';
25478
25476
  class addNewLine extends jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Plugin {
25479
25477
  constructor() {
25480
25478
  super(...arguments);
25481
- this.line = this.j.c.fromHTML(`<div role="button" tabindex="-1" title="${this.j.i18n('Break')}" class="jodit-add-new-line"><span>${jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Icon.get('enter')}</span></div>`);
25482
- this.isMatchedTag = (node) => Boolean(node &&
25479
+ this.__line = this.j.c.fromHTML(`<div role="button" tabindex="-1" title="${this.j.i18n('Break')}" class="jodit-add-new-line"><span>${jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Icon.get('enter')}</span></div>`);
25480
+ this.__isMatchedTag = (node) => Boolean(node &&
25483
25481
  this.j.o.addNewLineTagsTriggers.includes(node.nodeName.toLowerCase()));
25484
- this.preview = false;
25485
- this.lineInFocus = false;
25486
- this.isShown = false;
25487
- this.hideForce = () => {
25488
- if (!this.isShown) {
25482
+ this.__isBeforeContent = false;
25483
+ this.__lineInFocus = false;
25484
+ this.__isShown = false;
25485
+ this.__hideForce = () => {
25486
+ if (!this.__isShown) {
25489
25487
  return;
25490
25488
  }
25491
- this.isShown = false;
25492
- this.j.async.clearTimeout(this.timeout);
25493
- this.lineInFocus = false;
25494
- jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Dom.safeRemove(this.line);
25495
- this.line.style.setProperty('--jd-offset-handle', '0');
25489
+ this.__isShown = false;
25490
+ this.j.async.clearTimeout(this.__timeout);
25491
+ this.__lineInFocus = false;
25492
+ jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Dom.safeRemove(this.__line);
25493
+ this.__line.style.setProperty('--jd-anl-handle-offset', '0');
25496
25494
  };
25497
- this.canGetFocus = (elm) => {
25495
+ this.__canGetFocus = (elm) => {
25498
25496
  return (elm != null &&
25499
25497
  jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Dom.isBlock(elm) &&
25500
25498
  !/^(img|table|iframe|hr)$/i.test(elm.nodeName));
25501
25499
  };
25502
- this.onClickLine = (e) => {
25500
+ this.__onClickLine = (e) => {
25503
25501
  const editor = this.j;
25504
25502
  const p = editor.createInside.element(editor.o.enter);
25505
- if (this.preview && this.current && this.current.parentNode) {
25506
- if (this.current === editor.editor) {
25503
+ if (this.__isBeforeContent &&
25504
+ this.__current &&
25505
+ this.__current.parentNode) {
25506
+ if (this.__current === editor.editor) {
25507
25507
  jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Dom.prepend(editor.editor, p);
25508
25508
  }
25509
25509
  else {
25510
- this.current.parentNode.insertBefore(p, this.current);
25510
+ this.__current.parentNode.insertBefore(p, this.__current);
25511
25511
  }
25512
25512
  }
25513
25513
  else {
@@ -25516,30 +25516,32 @@ class addNewLine extends jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Plugin {
25516
25516
  editor.s.setCursorIn(p);
25517
25517
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.scrollIntoViewIfNeeded)(p, editor.editor, editor.ed);
25518
25518
  editor.synchronizeValues();
25519
- this.hideForce();
25519
+ this.__hideForce();
25520
25520
  e.preventDefault();
25521
25521
  };
25522
25522
  }
25523
- show() {
25524
- if (this.isShown || this.j.o.readonly || this.j.isLocked) {
25523
+ __show() {
25524
+ if (this.j.o.readonly || this.j.isLocked) {
25525
25525
  return;
25526
25526
  }
25527
- this.isShown = true;
25528
- this.j.async.clearTimeout(this.timeout);
25529
- this.line.classList.toggle('jodit-add-new-line_after', !this.preview);
25530
- this.j.container.appendChild(this.line);
25531
- this.line.style.width = this.j.container.clientWidth + 'px';
25527
+ this.j.async.clearTimeout(this.__timeout);
25528
+ if (this.__isShown) {
25529
+ return;
25530
+ }
25531
+ this.__isShown = true;
25532
+ this.j.container.appendChild(this.__line);
25533
+ this.__line.style.width = this.j.container.clientWidth + 'px';
25532
25534
  }
25533
25535
  onLock(isLocked) {
25534
- if (isLocked && this.isShown) {
25535
- this.hideForce();
25536
+ if (isLocked && this.__isShown) {
25537
+ this.__hideForce();
25536
25538
  }
25537
25539
  }
25538
- hide() {
25539
- if (!this.isShown || this.lineInFocus) {
25540
+ __hide() {
25541
+ if (!this.__isShown || this.__lineInFocus) {
25540
25542
  return;
25541
25543
  }
25542
- this.timeout = this.j.async.setTimeout(this.hideForce, {
25544
+ this.__timeout = this.j.async.setTimeout(this.__hideForce, {
25543
25545
  timeout: 500,
25544
25546
  label: 'add-new-line-hide'
25545
25547
  });
@@ -25549,30 +25551,30 @@ class addNewLine extends jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Plugin {
25549
25551
  return;
25550
25552
  }
25551
25553
  editor.e
25552
- .on(this.line, 'mousemove', (e) => {
25554
+ .on(this.__line, 'mousemove', (e) => {
25553
25555
  e.stopPropagation();
25554
25556
  })
25555
- .on(this.line, 'mousedown touchstart', this.onClickLine)
25556
- .on('change', this.hideForce)
25557
- .on(this.line, 'mouseenter', () => {
25558
- this.j.async.clearTimeout(this.timeout);
25559
- this.lineInFocus = true;
25557
+ .on(this.__line, 'mousedown touchstart', this.__onClickLine)
25558
+ .on('change', this.__hideForce)
25559
+ .on(this.__line, 'mouseenter', () => {
25560
+ this.j.async.clearTimeout(this.__timeout);
25561
+ this.__lineInFocus = true;
25560
25562
  })
25561
- .on(this.line, 'mouseleave', () => {
25562
- this.lineInFocus = false;
25563
+ .on(this.__line, 'mouseleave', () => {
25564
+ this.__lineInFocus = false;
25563
25565
  })
25564
- .on('changePlace', this.addEventListeners.bind(this));
25565
- this.addEventListeners();
25566
+ .on('changePlace', this.__addEventListeners.bind(this));
25567
+ this.__addEventListeners();
25566
25568
  }
25567
- addEventListeners() {
25569
+ __addEventListeners() {
25568
25570
  const editor = this.j;
25569
25571
  editor.e
25570
25572
  .off(editor.editor, '.' + ns)
25571
25573
  .off(editor.container, '.' + ns)
25572
- .on([editor.ow, editor.ew, editor.editor], 'scroll' + '.' + ns, this.hideForce)
25573
- .on(editor.editor, 'click' + '.' + ns, this.hide)
25574
- .on(editor.container, 'mouseleave' + '.' + ns, this.hide)
25575
- .on(editor.editor, 'mousemove' + '.' + ns, this.onMouseMove);
25574
+ .on([editor.ow, editor.ew, editor.editor], 'scroll' + '.' + ns, this.__hideForce)
25575
+ .on(editor.editor, 'click' + '.' + ns, this.__hide)
25576
+ .on(editor.container, 'mouseleave' + '.' + ns, this.__hide)
25577
+ .on(editor.editor, 'mousemove' + '.' + ns, this.__onMouseMove);
25576
25578
  }
25577
25579
  onDblClickEditor(e) {
25578
25580
  const editor = this.j;
@@ -25593,29 +25595,26 @@ class addNewLine extends jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Plugin {
25593
25595
  }
25594
25596
  editor.s.setCursorIn(p);
25595
25597
  editor.synchronizeValues();
25596
- this.hideForce();
25598
+ this.__hideForce();
25597
25599
  e.preventDefault();
25598
25600
  }
25599
25601
  }
25600
- onMouseMove(e) {
25602
+ __onMouseMove(e) {
25601
25603
  const editor = this.j;
25602
25604
  let currentElement = editor.ed.elementFromPoint(e.clientX, e.clientY);
25603
25605
  if (!jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Dom.isHTMLElement(currentElement) ||
25604
- jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Dom.isOrContains(this.line, currentElement)) {
25605
- return;
25606
- }
25607
- if (!jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Dom.isOrContains(editor.editor, currentElement)) {
25606
+ !jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Dom.isOrContains(editor.editor, currentElement)) {
25608
25607
  return;
25609
25608
  }
25610
25609
  if (editor.editor !== currentElement &&
25611
- !this.isMatchedTag(currentElement)) {
25612
- currentElement = jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Dom.closest(currentElement, this.isMatchedTag, editor.editor);
25610
+ !this.__isMatchedTag(currentElement)) {
25611
+ currentElement = jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Dom.closest(currentElement, this.__isMatchedTag, editor.editor);
25613
25612
  }
25614
25613
  if (!currentElement) {
25615
- this.hide();
25614
+ this.__hide();
25616
25615
  return;
25617
25616
  }
25618
- if (this.isMatchedTag(currentElement)) {
25617
+ if (this.__isMatchedTag(currentElement)) {
25619
25618
  const parentBox = jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Dom.up(currentElement, jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Dom.isBlock, editor.editor);
25620
25619
  if (parentBox && parentBox !== editor.editor) {
25621
25620
  currentElement = parentBox;
@@ -25632,30 +25631,32 @@ class addNewLine extends jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Plugin {
25632
25631
  const delta = this.j.o.addNewLineDeltaShow;
25633
25632
  if (Math.abs(clientY - pos.top) <= delta) {
25634
25633
  top = pos.top;
25635
- this.preview = true;
25634
+ this.__isBeforeContent = true;
25636
25635
  }
25637
- if (Math.abs(clientY - (pos.top + pos.height)) <= delta) {
25636
+ else if (Math.abs(clientY - (pos.top + pos.height)) <= delta) {
25638
25637
  top = pos.top + pos.height;
25639
- this.preview = false;
25638
+ this.__isBeforeContent = false;
25640
25639
  }
25640
+ const isEditor = editor.editor === currentElement;
25641
25641
  if (top !== false &&
25642
- ((editor.editor === currentElement && !this.preview) ||
25643
- !(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.call)(this.preview ? jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Dom.prev : jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Dom.next, currentElement, this.canGetFocus, editor.editor))) {
25644
- this.line.style.top = top + 'px';
25645
- this.current = currentElement;
25646
- this.show();
25647
- this.line.style.setProperty('--jd-offset-handle', clientX - pos.left - 10 + 'px');
25642
+ ((isEditor && !this.__isBeforeContent) ||
25643
+ (!isEditor &&
25644
+ !(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.call)(this.__isBeforeContent ? jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Dom.prev : jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Dom.next, currentElement, this.__canGetFocus, editor.editor)))) {
25645
+ this.__line.style.top = top + 'px';
25646
+ this.__current = currentElement;
25647
+ this.__show();
25648
+ this.__line.style.setProperty('--jd-anl-handle-offset', clientX - pos.left - 10 + 'px');
25648
25649
  }
25649
25650
  else {
25650
- this.current = false;
25651
- this.hide();
25651
+ this.__current = false;
25652
+ this.__hide();
25652
25653
  }
25653
25654
  }
25654
25655
  /** @override */
25655
25656
  beforeDestruct() {
25656
- this.j.async.clearTimeout(this.timeout);
25657
- this.j.e.off(this.line).off('changePlace', this.addEventListeners);
25658
- jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Dom.safeRemove(this.line);
25657
+ this.j.async.clearTimeout(this.__timeout);
25658
+ this.j.e.off(this.__line).off('changePlace', this.__addEventListeners);
25659
+ jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Dom.safeRemove(this.__line);
25659
25660
  this.j.e
25660
25661
  .off([this.j.ow, this.j.ew, this.j.editor], '.' + ns)
25661
25662
  .off(this.j.container, '.' + ns);
@@ -25666,13 +25667,13 @@ class addNewLine extends jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Plugin {
25666
25667
  ], addNewLine.prototype, "onLock", null);
25667
25668
  (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .gn)([
25668
25669
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
25669
- ], addNewLine.prototype, "hide", null);
25670
+ ], addNewLine.prototype, "__hide", null);
25670
25671
  (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .gn)([
25671
25672
  (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.watch)(':dblclick')
25672
25673
  ], addNewLine.prototype, "onDblClickEditor", null);
25673
25674
  (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .gn)([
25674
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.debounce)(ctx => ctx.defaultTimeout * 5)
25675
- ], addNewLine.prototype, "onMouseMove", null);
25675
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.throttle)(ctx => ctx.defaultTimeout)
25676
+ ], addNewLine.prototype, "__onMouseMove", null);
25676
25677
  jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .pw.add('addNewLine', addNewLine);
25677
25678
 
25678
25679
 
@@ -28092,6 +28093,7 @@ __webpack_require__.r(__webpack_exports__);
28092
28093
  /* harmony export */ de: function() { return /* reexport default from dynamic */ _ar_js__WEBPACK_IMPORTED_MODULE_0___default.a; },
28093
28094
  /* harmony export */ es: function() { return /* reexport default from dynamic */ _ar_js__WEBPACK_IMPORTED_MODULE_0___default.a; },
28094
28095
  /* harmony export */ fa: function() { return /* reexport default from dynamic */ _ar_js__WEBPACK_IMPORTED_MODULE_0___default.a; },
28096
+ /* harmony export */ fi: function() { return /* reexport default from dynamic */ _ar_js__WEBPACK_IMPORTED_MODULE_0___default.a; },
28095
28097
  /* harmony export */ fr: function() { return /* reexport default from dynamic */ _ar_js__WEBPACK_IMPORTED_MODULE_0___default.a; },
28096
28098
  /* harmony export */ he: function() { return /* reexport default from dynamic */ _ar_js__WEBPACK_IMPORTED_MODULE_0___default.a; },
28097
28099
  /* harmony export */ hu: function() { return /* reexport default from dynamic */ _ar_js__WEBPACK_IMPORTED_MODULE_0___default.a; },
@@ -28136,6 +28138,7 @@ __webpack_require__.r(__webpack_exports__);
28136
28138
 
28137
28139
 
28138
28140
 
28141
+
28139
28142
 
28140
28143
 
28141
28144
  /***/ }),
@@ -32922,6 +32925,7 @@ __webpack_require__.r(__webpack_exports__);
32922
32925
  /* harmony export */ de: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
32923
32926
  /* harmony export */ es: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
32924
32927
  /* harmony export */ fa: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
32928
+ /* harmony export */ fi: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
32925
32929
  /* harmony export */ fr: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
32926
32930
  /* harmony export */ he: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
32927
32931
  /* harmony export */ hu: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
@@ -32966,6 +32970,7 @@ __webpack_require__.r(__webpack_exports__);
32966
32970
 
32967
32971
 
32968
32972
 
32973
+
32969
32974
 
32970
32975
 
32971
32976
  /***/ }),
@@ -35894,11 +35899,9 @@ class resizer extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_3__/* .P
35894
35899
  if (rgx.test(data.value)) {
35895
35900
  data.value = data.value.replace(rgx, '$1');
35896
35901
  }
35897
- })
35898
- .on('hideResizer', this.hide)
35899
- .on('change afterInit afterSetMode', this.onChangeEditor);
35902
+ });
35900
35903
  this.addEventListeners();
35901
- this.onChangeEditor();
35904
+ this.__onChangeEditor();
35902
35905
  }
35903
35906
  /**
35904
35907
  * Click in the editor area
@@ -35908,7 +35911,7 @@ class resizer extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_3__/* .P
35908
35911
  const { editor, options: { allowResizeTags } } = this.j;
35909
35912
  while (node && node !== editor) {
35910
35913
  if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isTag(node, allowResizeTags)) {
35911
- this.bind(node);
35914
+ this.__bind(node);
35912
35915
  this.onClickElement(node);
35913
35916
  return;
35914
35917
  }
@@ -36082,7 +36085,7 @@ class resizer extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_3__/* .P
36082
36085
  e.preventDefault();
36083
36086
  }
36084
36087
  }
36085
- onChangeEditor() {
36088
+ __onChangeEditor() {
36086
36089
  if (this.isShown) {
36087
36090
  if (!this.element || !this.element.parentNode) {
36088
36091
  this.hide();
@@ -36091,13 +36094,13 @@ class resizer extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_3__/* .P
36091
36094
  this.updateSize();
36092
36095
  }
36093
36096
  }
36094
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.$$)('iframe', this.j.editor).forEach(this.bind);
36097
+ (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.$$)('iframe', this.j.editor).forEach(this.__bind);
36095
36098
  }
36096
36099
  /**
36097
36100
  * Bind an edit element to element
36098
36101
  * @param element - The element that you want to add a function to resize
36099
36102
  */
36100
- bind(element) {
36103
+ __bind(element) {
36101
36104
  if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isHTMLElement(element) ||
36102
36105
  !this.j.o.allowResizeTags.has(element.tagName.toLowerCase()) ||
36103
36106
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.dataBind)(element, keyBInd)) {
@@ -36229,13 +36232,14 @@ class resizer extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_3__/* .P
36229
36232
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_5__.autobind
36230
36233
  ], resizer.prototype, "onClickOutside", null);
36231
36234
  (0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .gn)([
36232
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_5__.debounce)()
36233
- ], resizer.prototype, "onChangeEditor", null);
36235
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_5__.watch)(':change')
36236
+ ], resizer.prototype, "__onChangeEditor", null);
36234
36237
  (0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .gn)([
36235
36238
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_5__.autobind
36236
- ], resizer.prototype, "bind", null);
36239
+ ], resizer.prototype, "__bind", null);
36237
36240
  (0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .gn)([
36238
- jodit_core_decorators__WEBPACK_IMPORTED_MODULE_5__.autobind
36241
+ jodit_core_decorators__WEBPACK_IMPORTED_MODULE_5__.autobind,
36242
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_5__.watch)(':hideResizer')
36239
36243
  ], resizer.prototype, "hide", null);
36240
36244
  jodit_core_global__WEBPACK_IMPORTED_MODULE_4__/* .pluginSystem */ .pw.add('resizer', resizer);
36241
36245
 
@@ -36261,7 +36265,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_4__/* .pluginSystem */ .pw.add('resiz
36261
36265
 
36262
36266
  jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.useSearch = true;
36263
36267
  jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.search = {
36264
- lazyIdleTimeout: 0
36268
+ lazyIdleTimeout: 0,
36269
+ // @ts-ignore Because Highlight is not defined in the types TS 5.3.3
36270
+ useCustomHighlightAPI: typeof window.Highlight !== 'undefined'
36265
36271
  };
36266
36272
  jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .J.set('search', (_search_svg__WEBPACK_IMPORTED_MODULE_2___default()));
36267
36273
  jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.find = {
@@ -36295,113 +36301,14 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.find = {
36295
36301
 
36296
36302
  /***/ }),
36297
36303
 
36298
- /***/ 84136:
36299
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
36300
-
36301
- "use strict";
36302
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
36303
- /* harmony export */ Al: function() { return /* reexport safe */ _sentence_finder__WEBPACK_IMPORTED_MODULE_0__.A; },
36304
- /* harmony export */ Fb: function() { return /* reexport safe */ _wrap_ranges_texts_in_tmp_span__WEBPACK_IMPORTED_MODULE_1__.Fb; },
36305
- /* harmony export */ TW: function() { return /* reexport safe */ _wrap_ranges_texts_in_tmp_span__WEBPACK_IMPORTED_MODULE_1__.TW; },
36306
- /* harmony export */ e: function() { return /* reexport safe */ _wrap_ranges_texts_in_tmp_span__WEBPACK_IMPORTED_MODULE_1__.e; },
36307
- /* harmony export */ sG: function() { return /* reexport safe */ _wrap_ranges_texts_in_tmp_span__WEBPACK_IMPORTED_MODULE_1__.sG; }
36308
- /* harmony export */ });
36309
- /* harmony import */ var _sentence_finder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(87718);
36310
- /* harmony import */ var _wrap_ranges_texts_in_tmp_span__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(43364);
36311
- /*!
36312
- * Jodit Editor (https://xdsoft.net/jodit/)
36313
- * Released under MIT see LICENSE.txt in the project root for license information.
36314
- * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
36315
- */
36316
- /**
36317
- * @module plugins/search
36318
- */
36319
-
36320
-
36321
-
36322
-
36323
- /***/ }),
36324
-
36325
- /***/ 87718:
36326
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
36327
-
36328
- "use strict";
36329
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
36330
- /* harmony export */ A: function() { return /* binding */ SentenceFinder; }
36331
- /* harmony export */ });
36332
- /* harmony import */ var jodit_core_helpers_string_fuzzy_search_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7989);
36333
- /*!
36334
- * Jodit Editor (https://xdsoft.net/jodit/)
36335
- * Released under MIT see LICENSE.txt in the project root for license information.
36336
- * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
36337
- */
36338
-
36339
- class SentenceFinder {
36340
- constructor(searchIndex = jodit_core_helpers_string_fuzzy_search_index__WEBPACK_IMPORTED_MODULE_0__/* .fuzzySearchIndex */ .Q) {
36341
- this.searchIndex = searchIndex;
36342
- this.queue = [];
36343
- this.value = '';
36344
- }
36345
- add(node) {
36346
- const value = (node.nodeValue ?? '').toLowerCase();
36347
- if (!value.length) {
36348
- return;
36349
- }
36350
- const index = this.value.length;
36351
- this.queue.push({
36352
- startIndex: index,
36353
- endIndex: index + value.length,
36354
- node
36355
- });
36356
- this.value += value;
36357
- }
36358
- ranges(needle, position = 0) {
36359
- const results = [];
36360
- let index = position, len = 0, startQueueIndex = 0;
36361
- // Find all ranges in substring
36362
- do {
36363
- [index, len] = this.searchIndex(needle, this.value, index);
36364
- if (index !== -1) {
36365
- let startContainer, startOffset = 0, endContainer, endOffset = 0;
36366
- for (let i = startQueueIndex; i < this.queue.length; i += 1) {
36367
- if (!startContainer && this.queue[i].endIndex > index) {
36368
- startContainer = this.queue[i].node;
36369
- startOffset = index - this.queue[i].startIndex;
36370
- }
36371
- if (startContainer &&
36372
- this.queue[i].endIndex >= index + len) {
36373
- endContainer = this.queue[i].node;
36374
- endOffset = index + len - this.queue[i].startIndex;
36375
- startQueueIndex = i;
36376
- break;
36377
- }
36378
- }
36379
- if (startContainer && endContainer) {
36380
- results.push({
36381
- startContainer,
36382
- startOffset,
36383
- endContainer,
36384
- endOffset
36385
- });
36386
- }
36387
- index += len;
36388
- }
36389
- } while (index !== -1);
36390
- return results.length === 0 ? null : results;
36391
- }
36392
- }
36393
-
36394
-
36395
- /***/ }),
36396
-
36397
- /***/ 43364:
36304
+ /***/ 5264:
36398
36305
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
36399
36306
 
36400
36307
  "use strict";
36401
36308
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
36309
+ /* harmony export */ AG: function() { return /* binding */ highlightTextRanges; },
36402
36310
  /* harmony export */ Fb: function() { return /* binding */ clearSelectionWrappersFromHTML; },
36403
36311
  /* harmony export */ TW: function() { return /* binding */ getSelectionWrappers; },
36404
- /* harmony export */ e: function() { return /* binding */ wrapRangesTextsInTmpSpan; },
36405
36312
  /* harmony export */ sG: function() { return /* binding */ clearSelectionWrappers; }
36406
36313
  /* harmony export */ });
36407
36314
  /* unused harmony export isSelectionWrapper */
@@ -36421,11 +36328,29 @@ const TMP_ATTR = 'jd-tmp-selection';
36421
36328
  /**
36422
36329
  * @private
36423
36330
  */
36424
- function wrapRangesTextsInTmpSpan(rng, restRanges, ci, root) {
36331
+ function highlightTextRanges(jodit, rng, restRanges, ci, root) {
36425
36332
  if (rng.startContainer.nodeValue == null ||
36426
36333
  rng.endContainer.nodeValue == null) {
36427
36334
  return;
36428
36335
  }
36336
+ if (jodit.o.search.useCustomHighlightAPI &&
36337
+ // @ts-ignore Because Highlight is not defined in the types TS 5.3.3
36338
+ typeof window.Highlight !== 'undefined') {
36339
+ const ranges = [rng, ...restRanges].map(rng => {
36340
+ const range = jodit.selection.createRange();
36341
+ range.setStart(rng.startContainer, rng.startOffset);
36342
+ range.setEnd(rng.endContainer, rng.endOffset);
36343
+ return range;
36344
+ });
36345
+ // @ts-ignore Because Highlight is not defined in the types TS 5.3.3
36346
+ const searchHighlight = new Highlight(...ranges);
36347
+ // @ts-ignore
36348
+ CSS.highlights.clear();
36349
+ // @ts-ignore
36350
+ CSS.highlights.set('jodit-search-result', searchHighlight);
36351
+ restRanges.length = 0;
36352
+ return;
36353
+ }
36429
36354
  const span = ci.element('span', {
36430
36355
  [TMP_ATTR]: true
36431
36356
  });
@@ -36509,6 +36434,105 @@ function isSelectionWrapper(node) {
36509
36434
  }
36510
36435
 
36511
36436
 
36437
+ /***/ }),
36438
+
36439
+ /***/ 84136:
36440
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
36441
+
36442
+ "use strict";
36443
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
36444
+ /* harmony export */ AG: function() { return /* reexport safe */ _highlight_text_ranges__WEBPACK_IMPORTED_MODULE_1__.AG; },
36445
+ /* harmony export */ Al: function() { return /* reexport safe */ _sentence_finder__WEBPACK_IMPORTED_MODULE_0__.A; },
36446
+ /* harmony export */ Fb: function() { return /* reexport safe */ _highlight_text_ranges__WEBPACK_IMPORTED_MODULE_1__.Fb; },
36447
+ /* harmony export */ TW: function() { return /* reexport safe */ _highlight_text_ranges__WEBPACK_IMPORTED_MODULE_1__.TW; },
36448
+ /* harmony export */ sG: function() { return /* reexport safe */ _highlight_text_ranges__WEBPACK_IMPORTED_MODULE_1__.sG; }
36449
+ /* harmony export */ });
36450
+ /* harmony import */ var _sentence_finder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(87718);
36451
+ /* harmony import */ var _highlight_text_ranges__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5264);
36452
+ /*!
36453
+ * Jodit Editor (https://xdsoft.net/jodit/)
36454
+ * Released under MIT see LICENSE.txt in the project root for license information.
36455
+ * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
36456
+ */
36457
+ /**
36458
+ * @module plugins/search
36459
+ */
36460
+
36461
+
36462
+
36463
+
36464
+ /***/ }),
36465
+
36466
+ /***/ 87718:
36467
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
36468
+
36469
+ "use strict";
36470
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
36471
+ /* harmony export */ A: function() { return /* binding */ SentenceFinder; }
36472
+ /* harmony export */ });
36473
+ /* harmony import */ var jodit_core_helpers_string_fuzzy_search_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7989);
36474
+ /*!
36475
+ * Jodit Editor (https://xdsoft.net/jodit/)
36476
+ * Released under MIT see LICENSE.txt in the project root for license information.
36477
+ * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
36478
+ */
36479
+
36480
+ class SentenceFinder {
36481
+ constructor(searchIndex = jodit_core_helpers_string_fuzzy_search_index__WEBPACK_IMPORTED_MODULE_0__/* .fuzzySearchIndex */ .Q) {
36482
+ this.searchIndex = searchIndex;
36483
+ this.queue = [];
36484
+ this.value = '';
36485
+ }
36486
+ add(node) {
36487
+ const value = (node.nodeValue ?? '').toLowerCase();
36488
+ if (!value.length) {
36489
+ return;
36490
+ }
36491
+ const index = this.value.length;
36492
+ this.queue.push({
36493
+ startIndex: index,
36494
+ endIndex: index + value.length,
36495
+ node
36496
+ });
36497
+ this.value += value;
36498
+ }
36499
+ ranges(needle, position = 0) {
36500
+ const results = [];
36501
+ let index = position, len = 0, startQueueIndex = 0;
36502
+ // Find all ranges in substring
36503
+ do {
36504
+ [index, len] = this.searchIndex(needle, this.value, index);
36505
+ if (index !== -1) {
36506
+ let startContainer, startOffset = 0, endContainer, endOffset = 0;
36507
+ for (let i = startQueueIndex; i < this.queue.length; i += 1) {
36508
+ if (!startContainer && this.queue[i].endIndex > index) {
36509
+ startContainer = this.queue[i].node;
36510
+ startOffset = index - this.queue[i].startIndex;
36511
+ }
36512
+ if (startContainer &&
36513
+ this.queue[i].endIndex >= index + len) {
36514
+ endContainer = this.queue[i].node;
36515
+ endOffset = index + len - this.queue[i].startIndex;
36516
+ startQueueIndex = i;
36517
+ break;
36518
+ }
36519
+ }
36520
+ if (startContainer && endContainer) {
36521
+ results.push({
36522
+ startContainer,
36523
+ startOffset,
36524
+ endContainer,
36525
+ endOffset
36526
+ });
36527
+ }
36528
+ index += len;
36529
+ }
36530
+ } while (index !== -1);
36531
+ return results.length === 0 ? null : results;
36532
+ }
36533
+ }
36534
+
36535
+
36512
36536
  /***/ }),
36513
36537
 
36514
36538
  /***/ 28445:
@@ -36658,7 +36682,7 @@ class search extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_1__/* .Plugin */
36658
36682
  this.drawPromise?.rejectCallback();
36659
36683
  this.j.async.cancelAnimationFrame(this.wrapFrameRequest);
36660
36684
  (0,_helpers__WEBPACK_IMPORTED_MODULE_6__/* .clearSelectionWrappers */ .sG)(this.j.editor);
36661
- this.drawPromise = this.drawSelectionRanges(bounds);
36685
+ this.drawPromise = this.__drawSelectionRanges(bounds);
36662
36686
  }
36663
36687
  this.previousQuery = query;
36664
36688
  let currentIndex = this.ui.currentIndex - 1;
@@ -36733,7 +36757,7 @@ class search extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_1__/* .Plugin */
36733
36757
  });
36734
36758
  return this.cache[query];
36735
36759
  }
36736
- drawSelectionRanges(ranges) {
36760
+ __drawSelectionRanges(ranges) {
36737
36761
  const { async, createInside: ci, editor } = this.j;
36738
36762
  async.cancelAnimationFrame(this.wrapFrameRequest);
36739
36763
  const parts = [...ranges];
@@ -36743,7 +36767,7 @@ class search extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_1__/* .Plugin */
36743
36767
  do {
36744
36768
  sRange = parts.shift();
36745
36769
  if (sRange) {
36746
- (0,_helpers__WEBPACK_IMPORTED_MODULE_6__/* .wrapRangesTextsInTmpSpan */ .e)(sRange, parts, ci, editor);
36770
+ (0,_helpers__WEBPACK_IMPORTED_MODULE_6__/* .highlightTextRanges */ .AG)(this.j, sRange, parts, ci, editor);
36747
36771
  }
36748
36772
  total += 1;
36749
36773
  } while (sRange && total <= 5);
@@ -38600,7 +38624,7 @@ class source extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_1__/* .Plugin */
38600
38624
  return false;
38601
38625
  };
38602
38626
  if (!addEventListener()) {
38603
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.loadNext)(editor, editor.o.beautifyHTMLCDNUrlsJS).then(addEventListener);
38627
+ (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.loadNext)(editor, editor.o.beautifyHTMLCDNUrlsJS).then(addEventListener, () => null);
38604
38628
  }
38605
38629
  }
38606
38630
  this.syncValueFromWYSIWYG(true);
@@ -38716,6 +38740,7 @@ __webpack_require__.r(__webpack_exports__);
38716
38740
  /* harmony export */ de: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
38717
38741
  /* harmony export */ es: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
38718
38742
  /* harmony export */ fa: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
38743
+ /* harmony export */ fi: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
38719
38744
  /* harmony export */ fr: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
38720
38745
  /* harmony export */ he: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
38721
38746
  /* harmony export */ hu: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
@@ -38760,6 +38785,7 @@ __webpack_require__.r(__webpack_exports__);
38760
38785
 
38761
38786
 
38762
38787
 
38788
+
38763
38789
 
38764
38790
 
38765
38791
  /***/ }),
@@ -39340,6 +39366,7 @@ __webpack_require__.r(__webpack_exports__);
39340
39366
  /* harmony export */ de: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
39341
39367
  /* harmony export */ es: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
39342
39368
  /* harmony export */ fa: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
39369
+ /* harmony export */ fi: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
39343
39370
  /* harmony export */ fr: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
39344
39371
  /* harmony export */ he: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
39345
39372
  /* harmony export */ hu: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
@@ -39384,6 +39411,7 @@ __webpack_require__.r(__webpack_exports__);
39384
39411
 
39385
39412
 
39386
39413
 
39414
+
39387
39415
 
39388
39416
 
39389
39417
  /***/ }),
@@ -39764,6 +39792,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .pw.add('tab',
39764
39792
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44913);
39765
39793
  /* harmony import */ var jodit_modules_table_table__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2871);
39766
39794
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(81160);
39795
+ /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(95582);
39767
39796
  /*!
39768
39797
  * Jodit Editor (https://xdsoft.net/jodit/)
39769
39798
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -39773,111 +39802,108 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .pw.add('tab',
39773
39802
 
39774
39803
 
39775
39804
 
39805
+
39806
+ const WORK_KEYS = new Set([
39807
+ jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_TAB,
39808
+ jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT,
39809
+ jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT,
39810
+ jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP,
39811
+ jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN
39812
+ ]);
39776
39813
  /**
39777
- * Process navigate keypressing in table cell
39814
+ * Process navigates key pressing in table cell
39778
39815
  */
39779
39816
  function tableKeyboardNavigation(editor) {
39780
39817
  editor.e
39781
39818
  .off('.tableKeyboardNavigation')
39782
39819
  .on('keydown.tableKeyboardNavigation', (event) => {
39783
- let current, block;
39784
- if (event.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_TAB ||
39785
- event.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT ||
39786
- event.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT ||
39787
- event.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP ||
39788
- event.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN) {
39789
- current = editor.s.current();
39790
- block = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.up(current, jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isCell, editor.editor);
39791
- if (!block) {
39792
- return;
39793
- }
39794
- const range = editor.s.range;
39795
- if (event.key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_TAB && current !== block) {
39796
- if (((event.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT ||
39797
- event.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP) &&
39798
- (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.prev(current, (elm) => event.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP
39799
- ? jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isTag(elm, 'br')
39800
- : Boolean(elm), block) ||
39801
- (event.key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP &&
39802
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isText(current) &&
39803
- range.startOffset !== 0))) ||
39804
- ((event.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT ||
39805
- event.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN) &&
39806
- (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.next(current, (elm) => event.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN
39807
- ? jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isTag(elm, 'br')
39808
- : Boolean(elm), block) ||
39809
- (event.key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN &&
39810
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isText(current) &&
39811
- current.nodeValue &&
39812
- range.startOffset !==
39813
- current.nodeValue.length)))) {
39814
- return;
39815
- }
39816
- }
39820
+ const { key } = event;
39821
+ if (!WORK_KEYS.has(key)) {
39822
+ return;
39817
39823
  }
39818
- else {
39824
+ const current = editor.s.current();
39825
+ if (!current) {
39826
+ return;
39827
+ }
39828
+ const cell = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.up(current, jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isCell, editor.editor);
39829
+ if (!cell) {
39819
39830
  return;
39820
39831
  }
39821
- const tableModule = editor.getInstance('Table', editor.o);
39822
- const table = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.up(block, (elm) => elm && /^table$/i.test(elm.nodeName), editor.editor);
39832
+ const { range } = editor.s;
39833
+ if (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_TAB && current !== cell) {
39834
+ const isNextDirection = key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT || key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN;
39835
+ const hasNext = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.call)(!isNextDirection ? jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.prev : jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.next, current, elm => key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP || key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN
39836
+ ? jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isTag(elm, 'br')
39837
+ : Boolean(elm), cell);
39838
+ if ((!isNextDirection &&
39839
+ (hasNext ||
39840
+ (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP &&
39841
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isText(current) &&
39842
+ range.startOffset !== 0))) ||
39843
+ (isNextDirection &&
39844
+ (hasNext ||
39845
+ (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN &&
39846
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isText(current) &&
39847
+ current.nodeValue &&
39848
+ range.startOffset !==
39849
+ current.nodeValue.length)))) {
39850
+ return;
39851
+ }
39852
+ }
39853
+ const tableModule = editor.getInstance(jodit_modules_table_table__WEBPACK_IMPORTED_MODULE_2__/* .Table */ .i, editor.o);
39854
+ const table = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.closest(cell, 'table', editor.editor);
39823
39855
  let next = null;
39824
- switch (event.key) {
39856
+ const isPrev = key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT || event.shiftKey;
39857
+ const getNextCell = () => (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.call)(isPrev ? jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.prev : jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.next, cell, jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isCell, table);
39858
+ switch (key) {
39825
39859
  case jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_TAB:
39826
- // case consts.KEY_RIGHT:
39827
39860
  case jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT: {
39828
- const sibling = event.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT || event.shiftKey
39829
- ? 'prev'
39830
- : 'next';
39831
- next = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i[sibling](block, (elm) => elm &&
39832
- /^td|th$/i.test(elm.tagName), table);
39861
+ next = getNextCell();
39833
39862
  if (!next) {
39834
- tableModule.appendRow(table, sibling === 'next'
39863
+ tableModule.appendRow(table, !isPrev
39835
39864
  ? false
39836
- : table.querySelector('tr'), sibling === 'next');
39837
- next = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i[sibling](block, jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isCell, table);
39865
+ : table.querySelector('tr'), !isPrev);
39866
+ next = getNextCell();
39838
39867
  }
39839
39868
  break;
39840
39869
  }
39841
39870
  case jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP:
39842
39871
  case jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN:
39843
39872
  {
39844
- let i = 0, j = 0;
39845
- const matrix = tableModule.formalMatrix(table, (elm, _i, _j) => {
39846
- if (elm === block) {
39847
- i = _i;
39848
- j = _j;
39849
- }
39850
- });
39851
- if (event.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP) {
39852
- if (matrix[i - 1] !== undefined) {
39853
- next = matrix[i - 1][j];
39873
+ const matrix = tableModule.formalMatrix(table);
39874
+ const [row, column] = tableModule.formalCoordinate(table, cell);
39875
+ if (key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP) {
39876
+ if (matrix[row - 1] !== undefined) {
39877
+ next = matrix[row - 1][column];
39854
39878
  }
39855
39879
  }
39856
39880
  else {
39857
- if (matrix[i + 1] !== undefined) {
39858
- next = matrix[i + 1][j];
39881
+ if (matrix[row + 1] !== undefined) {
39882
+ next = matrix[row + 1][column];
39859
39883
  }
39860
39884
  }
39861
39885
  }
39862
39886
  break;
39863
39887
  }
39864
- if (next) {
39865
- if (!next.firstChild) {
39866
- const first = editor.createInside.element('br');
39867
- next.appendChild(first);
39868
- editor.s.setCursorBefore(first);
39888
+ if (!next) {
39889
+ return;
39890
+ }
39891
+ editor.e.fire('hidePopup hideResizer');
39892
+ if (!next.firstChild) {
39893
+ const first = editor.createInside.element('br');
39894
+ next.appendChild(first);
39895
+ editor.s.setCursorBefore(first);
39896
+ }
39897
+ else {
39898
+ if (key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_TAB) {
39899
+ editor.s.select(next, true);
39869
39900
  }
39870
39901
  else {
39871
- if (event.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_TAB) {
39872
- editor.s.select(next, true);
39873
- }
39874
- else {
39875
- editor.s.setCursorIn(next, event.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT ||
39876
- event.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN);
39877
- }
39902
+ editor.s.setCursorIn(next, key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT || key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN);
39878
39903
  }
39879
- return false;
39880
39904
  }
39905
+ editor.synchronizeValues();
39906
+ return false;
39881
39907
  });
39882
39908
  }
39883
39909
  jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .pw.add('tableKeyboardNavigation', tableKeyboardNavigation);
@@ -41352,7 +41378,7 @@ class license extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_0__/* .P
41352
41378
  const s = document.createElement('script');
41353
41379
  s.src = `https://xdsoft.net/jodit/pro/api/licenses/validate/?code=${encodeURIComponent(code)}&host=${encodeURIComponent(domain)}`;
41354
41380
  document.body.appendChild(s);
41355
- return new Promise((res) => {
41381
+ return this.j.async.promise((res) => {
41356
41382
  window['onJoditResolveKeyCode'] = (newCode) => {
41357
41383
  try {
41358
41384
  if ((0,jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_6__/* .isBoolean */ .j)(newCode)) {