jodit-pro 4.0.6 → 4.0.18

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 (308) 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 +634 -530
  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 +4 -3
  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 +2 -2
  48. package/es2015/plugins/paste-code/paste-code.min.js +2 -2
  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 +634 -530
  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 +4 -3
  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 +2 -2
  109. package/es2018/plugins/paste-code/paste-code.min.js +2 -2
  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 +633 -529
  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 +4 -3
  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 +2 -2
  170. package/es2021/plugins/paste-code/paste-code.min.js +2 -2
  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 +334 -314
  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 +4 -3
  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 +2 -2
  231. package/es2021.en/plugins/paste-code/paste-code.min.js +2 -2
  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 +659 -555
  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 +4 -3
  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 +2 -2
  292. package/es5/plugins/paste-code/paste-code.min.js +2 -2
  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/esm/plugins/paste-code/paste-code.js +1 -1
  308. 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.6
4
+ * Version: v4.0.18
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.6";
2248
+ const APP_VERSION = "4.0.18";
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);
@@ -18000,6 +17990,7 @@ function addClassNames(className, elm) {
18000
17990
 
18001
17991
 
18002
17992
 
17993
+
18003
17994
 
18004
17995
 
18005
17996
  let exp = {};
@@ -18009,6 +18000,7 @@ exp = {
18009
18000
  de: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_1___default()),
18010
18001
  en: jodit_langs_en__WEBPACK_IMPORTED_MODULE_0__,
18011
18002
  es: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_1___default()),
18003
+ fi: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_1___default()),
18012
18004
  fr: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_1___default()),
18013
18005
  he: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_1___default()),
18014
18006
  hu: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_1___default()),
@@ -25478,36 +25470,38 @@ const ns = 'addnewline';
25478
25470
  class addNewLine extends jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Plugin {
25479
25471
  constructor() {
25480
25472
  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 &&
25473
+ 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>`);
25474
+ this.__isMatchedTag = (node) => Boolean(node &&
25483
25475
  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) {
25476
+ this.__isBeforeContent = false;
25477
+ this.__lineInFocus = false;
25478
+ this.__isShown = false;
25479
+ this.__hideForce = () => {
25480
+ if (!this.__isShown) {
25489
25481
  return;
25490
25482
  }
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');
25483
+ this.__isShown = false;
25484
+ this.j.async.clearTimeout(this.__timeout);
25485
+ this.__lineInFocus = false;
25486
+ jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Dom.safeRemove(this.__line);
25487
+ this.__line.style.setProperty('--jd-anl-handle-offset', '0');
25496
25488
  };
25497
- this.canGetFocus = (elm) => {
25489
+ this.__canGetFocus = (elm) => {
25498
25490
  return (elm != null &&
25499
25491
  jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Dom.isBlock(elm) &&
25500
25492
  !/^(img|table|iframe|hr)$/i.test(elm.nodeName));
25501
25493
  };
25502
- this.onClickLine = (e) => {
25494
+ this.__onClickLine = (e) => {
25503
25495
  const editor = this.j;
25504
25496
  const p = editor.createInside.element(editor.o.enter);
25505
- if (this.preview && this.current && this.current.parentNode) {
25506
- if (this.current === editor.editor) {
25497
+ if (this.__isBeforeContent &&
25498
+ this.__current &&
25499
+ this.__current.parentNode) {
25500
+ if (this.__current === editor.editor) {
25507
25501
  jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Dom.prepend(editor.editor, p);
25508
25502
  }
25509
25503
  else {
25510
- this.current.parentNode.insertBefore(p, this.current);
25504
+ this.__current.parentNode.insertBefore(p, this.__current);
25511
25505
  }
25512
25506
  }
25513
25507
  else {
@@ -25516,30 +25510,32 @@ class addNewLine extends jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Plugin {
25516
25510
  editor.s.setCursorIn(p);
25517
25511
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.scrollIntoViewIfNeeded)(p, editor.editor, editor.ed);
25518
25512
  editor.synchronizeValues();
25519
- this.hideForce();
25513
+ this.__hideForce();
25520
25514
  e.preventDefault();
25521
25515
  };
25522
25516
  }
25523
- show() {
25524
- if (this.isShown || this.j.o.readonly || this.j.isLocked) {
25517
+ __show() {
25518
+ if (this.j.o.readonly || this.j.isLocked) {
25525
25519
  return;
25526
25520
  }
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';
25521
+ this.j.async.clearTimeout(this.__timeout);
25522
+ if (this.__isShown) {
25523
+ return;
25524
+ }
25525
+ this.__isShown = true;
25526
+ this.j.container.appendChild(this.__line);
25527
+ this.__line.style.width = this.j.container.clientWidth + 'px';
25532
25528
  }
25533
25529
  onLock(isLocked) {
25534
- if (isLocked && this.isShown) {
25535
- this.hideForce();
25530
+ if (isLocked && this.__isShown) {
25531
+ this.__hideForce();
25536
25532
  }
25537
25533
  }
25538
- hide() {
25539
- if (!this.isShown || this.lineInFocus) {
25534
+ __hide() {
25535
+ if (!this.__isShown || this.__lineInFocus) {
25540
25536
  return;
25541
25537
  }
25542
- this.timeout = this.j.async.setTimeout(this.hideForce, {
25538
+ this.__timeout = this.j.async.setTimeout(this.__hideForce, {
25543
25539
  timeout: 500,
25544
25540
  label: 'add-new-line-hide'
25545
25541
  });
@@ -25549,30 +25545,30 @@ class addNewLine extends jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Plugin {
25549
25545
  return;
25550
25546
  }
25551
25547
  editor.e
25552
- .on(this.line, 'mousemove', (e) => {
25548
+ .on(this.__line, 'mousemove', (e) => {
25553
25549
  e.stopPropagation();
25554
25550
  })
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;
25551
+ .on(this.__line, 'mousedown touchstart', this.__onClickLine)
25552
+ .on('change', this.__hideForce)
25553
+ .on(this.__line, 'mouseenter', () => {
25554
+ this.j.async.clearTimeout(this.__timeout);
25555
+ this.__lineInFocus = true;
25560
25556
  })
25561
- .on(this.line, 'mouseleave', () => {
25562
- this.lineInFocus = false;
25557
+ .on(this.__line, 'mouseleave', () => {
25558
+ this.__lineInFocus = false;
25563
25559
  })
25564
- .on('changePlace', this.addEventListeners.bind(this));
25565
- this.addEventListeners();
25560
+ .on('changePlace', this.__addEventListeners.bind(this));
25561
+ this.__addEventListeners();
25566
25562
  }
25567
- addEventListeners() {
25563
+ __addEventListeners() {
25568
25564
  const editor = this.j;
25569
25565
  editor.e
25570
25566
  .off(editor.editor, '.' + ns)
25571
25567
  .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);
25568
+ .on([editor.ow, editor.ew, editor.editor], 'scroll' + '.' + ns, this.__hideForce)
25569
+ .on(editor.editor, 'click' + '.' + ns, this.__hide)
25570
+ .on(editor.container, 'mouseleave' + '.' + ns, this.__hide)
25571
+ .on(editor.editor, 'mousemove' + '.' + ns, this.__onMouseMove);
25576
25572
  }
25577
25573
  onDblClickEditor(e) {
25578
25574
  const editor = this.j;
@@ -25593,29 +25589,26 @@ class addNewLine extends jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Plugin {
25593
25589
  }
25594
25590
  editor.s.setCursorIn(p);
25595
25591
  editor.synchronizeValues();
25596
- this.hideForce();
25592
+ this.__hideForce();
25597
25593
  e.preventDefault();
25598
25594
  }
25599
25595
  }
25600
- onMouseMove(e) {
25596
+ __onMouseMove(e) {
25601
25597
  const editor = this.j;
25602
25598
  let currentElement = editor.ed.elementFromPoint(e.clientX, e.clientY);
25603
25599
  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)) {
25600
+ !jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Dom.isOrContains(editor.editor, currentElement)) {
25608
25601
  return;
25609
25602
  }
25610
25603
  if (editor.editor !== currentElement &&
25611
- !this.isMatchedTag(currentElement)) {
25612
- currentElement = jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Dom.closest(currentElement, this.isMatchedTag, editor.editor);
25604
+ !this.__isMatchedTag(currentElement)) {
25605
+ currentElement = jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Dom.closest(currentElement, this.__isMatchedTag, editor.editor);
25613
25606
  }
25614
25607
  if (!currentElement) {
25615
- this.hide();
25608
+ this.__hide();
25616
25609
  return;
25617
25610
  }
25618
- if (this.isMatchedTag(currentElement)) {
25611
+ if (this.__isMatchedTag(currentElement)) {
25619
25612
  const parentBox = jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Dom.up(currentElement, jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Dom.isBlock, editor.editor);
25620
25613
  if (parentBox && parentBox !== editor.editor) {
25621
25614
  currentElement = parentBox;
@@ -25632,30 +25625,32 @@ class addNewLine extends jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Plugin {
25632
25625
  const delta = this.j.o.addNewLineDeltaShow;
25633
25626
  if (Math.abs(clientY - pos.top) <= delta) {
25634
25627
  top = pos.top;
25635
- this.preview = true;
25628
+ this.__isBeforeContent = true;
25636
25629
  }
25637
- if (Math.abs(clientY - (pos.top + pos.height)) <= delta) {
25630
+ else if (Math.abs(clientY - (pos.top + pos.height)) <= delta) {
25638
25631
  top = pos.top + pos.height;
25639
- this.preview = false;
25632
+ this.__isBeforeContent = false;
25640
25633
  }
25634
+ const isEditor = editor.editor === currentElement;
25641
25635
  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');
25636
+ ((isEditor && !this.__isBeforeContent) ||
25637
+ (!isEditor &&
25638
+ !(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)))) {
25639
+ this.__line.style.top = top + 'px';
25640
+ this.__current = currentElement;
25641
+ this.__show();
25642
+ this.__line.style.setProperty('--jd-anl-handle-offset', clientX - pos.left - 10 + 'px');
25648
25643
  }
25649
25644
  else {
25650
- this.current = false;
25651
- this.hide();
25645
+ this.__current = false;
25646
+ this.__hide();
25652
25647
  }
25653
25648
  }
25654
25649
  /** @override */
25655
25650
  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);
25651
+ this.j.async.clearTimeout(this.__timeout);
25652
+ this.j.e.off(this.__line).off('changePlace', this.__addEventListeners);
25653
+ jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Dom.safeRemove(this.__line);
25659
25654
  this.j.e
25660
25655
  .off([this.j.ow, this.j.ew, this.j.editor], '.' + ns)
25661
25656
  .off(this.j.container, '.' + ns);
@@ -25666,13 +25661,13 @@ class addNewLine extends jodit_modules__WEBPACK_IMPORTED_MODULE_0__.Plugin {
25666
25661
  ], addNewLine.prototype, "onLock", null);
25667
25662
  (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .gn)([
25668
25663
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
25669
- ], addNewLine.prototype, "hide", null);
25664
+ ], addNewLine.prototype, "__hide", null);
25670
25665
  (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .gn)([
25671
25666
  (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.watch)(':dblclick')
25672
25667
  ], addNewLine.prototype, "onDblClickEditor", null);
25673
25668
  (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);
25669
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.throttle)(ctx => ctx.defaultTimeout)
25670
+ ], addNewLine.prototype, "__onMouseMove", null);
25676
25671
  jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .pw.add('addNewLine', addNewLine);
25677
25672
 
25678
25673
 
@@ -28092,6 +28087,7 @@ __webpack_require__.r(__webpack_exports__);
28092
28087
  /* harmony export */ de: function() { return /* reexport default from dynamic */ _ar_js__WEBPACK_IMPORTED_MODULE_0___default.a; },
28093
28088
  /* harmony export */ es: function() { return /* reexport default from dynamic */ _ar_js__WEBPACK_IMPORTED_MODULE_0___default.a; },
28094
28089
  /* harmony export */ fa: function() { return /* reexport default from dynamic */ _ar_js__WEBPACK_IMPORTED_MODULE_0___default.a; },
28090
+ /* harmony export */ fi: function() { return /* reexport default from dynamic */ _ar_js__WEBPACK_IMPORTED_MODULE_0___default.a; },
28095
28091
  /* harmony export */ fr: function() { return /* reexport default from dynamic */ _ar_js__WEBPACK_IMPORTED_MODULE_0___default.a; },
28096
28092
  /* harmony export */ he: function() { return /* reexport default from dynamic */ _ar_js__WEBPACK_IMPORTED_MODULE_0___default.a; },
28097
28093
  /* harmony export */ hu: function() { return /* reexport default from dynamic */ _ar_js__WEBPACK_IMPORTED_MODULE_0___default.a; },
@@ -28136,6 +28132,7 @@ __webpack_require__.r(__webpack_exports__);
28136
28132
 
28137
28133
 
28138
28134
 
28135
+
28139
28136
 
28140
28137
 
28141
28138
  /***/ }),
@@ -32922,6 +32919,7 @@ __webpack_require__.r(__webpack_exports__);
32922
32919
  /* harmony export */ de: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
32923
32920
  /* harmony export */ es: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
32924
32921
  /* harmony export */ fa: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
32922
+ /* harmony export */ fi: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
32925
32923
  /* harmony export */ fr: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
32926
32924
  /* harmony export */ he: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
32927
32925
  /* harmony export */ hu: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
@@ -32966,6 +32964,7 @@ __webpack_require__.r(__webpack_exports__);
32966
32964
 
32967
32965
 
32968
32966
 
32967
+
32969
32968
 
32970
32969
 
32971
32970
  /***/ }),
@@ -35894,11 +35893,9 @@ class resizer extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_3__/* .P
35894
35893
  if (rgx.test(data.value)) {
35895
35894
  data.value = data.value.replace(rgx, '$1');
35896
35895
  }
35897
- })
35898
- .on('hideResizer', this.hide)
35899
- .on('change afterInit afterSetMode', this.onChangeEditor);
35896
+ });
35900
35897
  this.addEventListeners();
35901
- this.onChangeEditor();
35898
+ this.__onChangeEditor();
35902
35899
  }
35903
35900
  /**
35904
35901
  * Click in the editor area
@@ -35908,7 +35905,7 @@ class resizer extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_3__/* .P
35908
35905
  const { editor, options: { allowResizeTags } } = this.j;
35909
35906
  while (node && node !== editor) {
35910
35907
  if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isTag(node, allowResizeTags)) {
35911
- this.bind(node);
35908
+ this.__bind(node);
35912
35909
  this.onClickElement(node);
35913
35910
  return;
35914
35911
  }
@@ -36082,7 +36079,7 @@ class resizer extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_3__/* .P
36082
36079
  e.preventDefault();
36083
36080
  }
36084
36081
  }
36085
- onChangeEditor() {
36082
+ __onChangeEditor() {
36086
36083
  if (this.isShown) {
36087
36084
  if (!this.element || !this.element.parentNode) {
36088
36085
  this.hide();
@@ -36091,13 +36088,13 @@ class resizer extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_3__/* .P
36091
36088
  this.updateSize();
36092
36089
  }
36093
36090
  }
36094
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.$$)('iframe', this.j.editor).forEach(this.bind);
36091
+ (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.$$)('iframe', this.j.editor).forEach(this.__bind);
36095
36092
  }
36096
36093
  /**
36097
36094
  * Bind an edit element to element
36098
36095
  * @param element - The element that you want to add a function to resize
36099
36096
  */
36100
- bind(element) {
36097
+ __bind(element) {
36101
36098
  if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isHTMLElement(element) ||
36102
36099
  !this.j.o.allowResizeTags.has(element.tagName.toLowerCase()) ||
36103
36100
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.dataBind)(element, keyBInd)) {
@@ -36229,13 +36226,14 @@ class resizer extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_3__/* .P
36229
36226
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_5__.autobind
36230
36227
  ], resizer.prototype, "onClickOutside", null);
36231
36228
  (0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .gn)([
36232
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_5__.debounce)()
36233
- ], resizer.prototype, "onChangeEditor", null);
36229
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_5__.watch)(':change')
36230
+ ], resizer.prototype, "__onChangeEditor", null);
36234
36231
  (0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .gn)([
36235
36232
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_5__.autobind
36236
- ], resizer.prototype, "bind", null);
36233
+ ], resizer.prototype, "__bind", null);
36237
36234
  (0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .gn)([
36238
- jodit_core_decorators__WEBPACK_IMPORTED_MODULE_5__.autobind
36235
+ jodit_core_decorators__WEBPACK_IMPORTED_MODULE_5__.autobind,
36236
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_5__.watch)(':hideResizer')
36239
36237
  ], resizer.prototype, "hide", null);
36240
36238
  jodit_core_global__WEBPACK_IMPORTED_MODULE_4__/* .pluginSystem */ .pw.add('resizer', resizer);
36241
36239
 
@@ -36261,7 +36259,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_4__/* .pluginSystem */ .pw.add('resiz
36261
36259
 
36262
36260
  jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.useSearch = true;
36263
36261
  jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.search = {
36264
- lazyIdleTimeout: 0
36262
+ lazyIdleTimeout: 0,
36263
+ // @ts-ignore Because Highlight is not defined in the types TS 5.3.3
36264
+ useCustomHighlightAPI: typeof window.Highlight !== 'undefined'
36265
36265
  };
36266
36266
  jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .J.set('search', (_search_svg__WEBPACK_IMPORTED_MODULE_2___default()));
36267
36267
  jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.find = {
@@ -36295,113 +36295,14 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.find = {
36295
36295
 
36296
36296
  /***/ }),
36297
36297
 
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:
36298
+ /***/ 5264:
36398
36299
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
36399
36300
 
36400
36301
  "use strict";
36401
36302
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
36303
+ /* harmony export */ AG: function() { return /* binding */ highlightTextRanges; },
36402
36304
  /* harmony export */ Fb: function() { return /* binding */ clearSelectionWrappersFromHTML; },
36403
36305
  /* harmony export */ TW: function() { return /* binding */ getSelectionWrappers; },
36404
- /* harmony export */ e: function() { return /* binding */ wrapRangesTextsInTmpSpan; },
36405
36306
  /* harmony export */ sG: function() { return /* binding */ clearSelectionWrappers; }
36406
36307
  /* harmony export */ });
36407
36308
  /* unused harmony export isSelectionWrapper */
@@ -36421,11 +36322,29 @@ const TMP_ATTR = 'jd-tmp-selection';
36421
36322
  /**
36422
36323
  * @private
36423
36324
  */
36424
- function wrapRangesTextsInTmpSpan(rng, restRanges, ci, root) {
36325
+ function highlightTextRanges(jodit, rng, restRanges, ci, root) {
36425
36326
  if (rng.startContainer.nodeValue == null ||
36426
36327
  rng.endContainer.nodeValue == null) {
36427
36328
  return;
36428
36329
  }
36330
+ if (jodit.o.search.useCustomHighlightAPI &&
36331
+ // @ts-ignore Because Highlight is not defined in the types TS 5.3.3
36332
+ typeof window.Highlight !== 'undefined') {
36333
+ const ranges = [rng, ...restRanges].map(rng => {
36334
+ const range = jodit.selection.createRange();
36335
+ range.setStart(rng.startContainer, rng.startOffset);
36336
+ range.setEnd(rng.endContainer, rng.endOffset);
36337
+ return range;
36338
+ });
36339
+ // @ts-ignore Because Highlight is not defined in the types TS 5.3.3
36340
+ const searchHighlight = new Highlight(...ranges);
36341
+ // @ts-ignore
36342
+ CSS.highlights.clear();
36343
+ // @ts-ignore
36344
+ CSS.highlights.set('jodit-search-result', searchHighlight);
36345
+ restRanges.length = 0;
36346
+ return;
36347
+ }
36429
36348
  const span = ci.element('span', {
36430
36349
  [TMP_ATTR]: true
36431
36350
  });
@@ -36509,6 +36428,105 @@ function isSelectionWrapper(node) {
36509
36428
  }
36510
36429
 
36511
36430
 
36431
+ /***/ }),
36432
+
36433
+ /***/ 84136:
36434
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
36435
+
36436
+ "use strict";
36437
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
36438
+ /* harmony export */ AG: function() { return /* reexport safe */ _highlight_text_ranges__WEBPACK_IMPORTED_MODULE_1__.AG; },
36439
+ /* harmony export */ Al: function() { return /* reexport safe */ _sentence_finder__WEBPACK_IMPORTED_MODULE_0__.A; },
36440
+ /* harmony export */ Fb: function() { return /* reexport safe */ _highlight_text_ranges__WEBPACK_IMPORTED_MODULE_1__.Fb; },
36441
+ /* harmony export */ TW: function() { return /* reexport safe */ _highlight_text_ranges__WEBPACK_IMPORTED_MODULE_1__.TW; },
36442
+ /* harmony export */ sG: function() { return /* reexport safe */ _highlight_text_ranges__WEBPACK_IMPORTED_MODULE_1__.sG; }
36443
+ /* harmony export */ });
36444
+ /* harmony import */ var _sentence_finder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(87718);
36445
+ /* harmony import */ var _highlight_text_ranges__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5264);
36446
+ /*!
36447
+ * Jodit Editor (https://xdsoft.net/jodit/)
36448
+ * Released under MIT see LICENSE.txt in the project root for license information.
36449
+ * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
36450
+ */
36451
+ /**
36452
+ * @module plugins/search
36453
+ */
36454
+
36455
+
36456
+
36457
+
36458
+ /***/ }),
36459
+
36460
+ /***/ 87718:
36461
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
36462
+
36463
+ "use strict";
36464
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
36465
+ /* harmony export */ A: function() { return /* binding */ SentenceFinder; }
36466
+ /* harmony export */ });
36467
+ /* harmony import */ var jodit_core_helpers_string_fuzzy_search_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7989);
36468
+ /*!
36469
+ * Jodit Editor (https://xdsoft.net/jodit/)
36470
+ * Released under MIT see LICENSE.txt in the project root for license information.
36471
+ * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
36472
+ */
36473
+
36474
+ class SentenceFinder {
36475
+ constructor(searchIndex = jodit_core_helpers_string_fuzzy_search_index__WEBPACK_IMPORTED_MODULE_0__/* .fuzzySearchIndex */ .Q) {
36476
+ this.searchIndex = searchIndex;
36477
+ this.queue = [];
36478
+ this.value = '';
36479
+ }
36480
+ add(node) {
36481
+ const value = (node.nodeValue ?? '').toLowerCase();
36482
+ if (!value.length) {
36483
+ return;
36484
+ }
36485
+ const index = this.value.length;
36486
+ this.queue.push({
36487
+ startIndex: index,
36488
+ endIndex: index + value.length,
36489
+ node
36490
+ });
36491
+ this.value += value;
36492
+ }
36493
+ ranges(needle, position = 0) {
36494
+ const results = [];
36495
+ let index = position, len = 0, startQueueIndex = 0;
36496
+ // Find all ranges in substring
36497
+ do {
36498
+ [index, len] = this.searchIndex(needle, this.value, index);
36499
+ if (index !== -1) {
36500
+ let startContainer, startOffset = 0, endContainer, endOffset = 0;
36501
+ for (let i = startQueueIndex; i < this.queue.length; i += 1) {
36502
+ if (!startContainer && this.queue[i].endIndex > index) {
36503
+ startContainer = this.queue[i].node;
36504
+ startOffset = index - this.queue[i].startIndex;
36505
+ }
36506
+ if (startContainer &&
36507
+ this.queue[i].endIndex >= index + len) {
36508
+ endContainer = this.queue[i].node;
36509
+ endOffset = index + len - this.queue[i].startIndex;
36510
+ startQueueIndex = i;
36511
+ break;
36512
+ }
36513
+ }
36514
+ if (startContainer && endContainer) {
36515
+ results.push({
36516
+ startContainer,
36517
+ startOffset,
36518
+ endContainer,
36519
+ endOffset
36520
+ });
36521
+ }
36522
+ index += len;
36523
+ }
36524
+ } while (index !== -1);
36525
+ return results.length === 0 ? null : results;
36526
+ }
36527
+ }
36528
+
36529
+
36512
36530
  /***/ }),
36513
36531
 
36514
36532
  /***/ 28445:
@@ -36658,7 +36676,7 @@ class search extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_1__/* .Plugin */
36658
36676
  this.drawPromise?.rejectCallback();
36659
36677
  this.j.async.cancelAnimationFrame(this.wrapFrameRequest);
36660
36678
  (0,_helpers__WEBPACK_IMPORTED_MODULE_6__/* .clearSelectionWrappers */ .sG)(this.j.editor);
36661
- this.drawPromise = this.drawSelectionRanges(bounds);
36679
+ this.drawPromise = this.__drawSelectionRanges(bounds);
36662
36680
  }
36663
36681
  this.previousQuery = query;
36664
36682
  let currentIndex = this.ui.currentIndex - 1;
@@ -36733,7 +36751,7 @@ class search extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_1__/* .Plugin */
36733
36751
  });
36734
36752
  return this.cache[query];
36735
36753
  }
36736
- drawSelectionRanges(ranges) {
36754
+ __drawSelectionRanges(ranges) {
36737
36755
  const { async, createInside: ci, editor } = this.j;
36738
36756
  async.cancelAnimationFrame(this.wrapFrameRequest);
36739
36757
  const parts = [...ranges];
@@ -36743,7 +36761,7 @@ class search extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_1__/* .Plugin */
36743
36761
  do {
36744
36762
  sRange = parts.shift();
36745
36763
  if (sRange) {
36746
- (0,_helpers__WEBPACK_IMPORTED_MODULE_6__/* .wrapRangesTextsInTmpSpan */ .e)(sRange, parts, ci, editor);
36764
+ (0,_helpers__WEBPACK_IMPORTED_MODULE_6__/* .highlightTextRanges */ .AG)(this.j, sRange, parts, ci, editor);
36747
36765
  }
36748
36766
  total += 1;
36749
36767
  } while (sRange && total <= 5);
@@ -38600,7 +38618,7 @@ class source extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_1__/* .Plugin */
38600
38618
  return false;
38601
38619
  };
38602
38620
  if (!addEventListener()) {
38603
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.loadNext)(editor, editor.o.beautifyHTMLCDNUrlsJS).then(addEventListener);
38621
+ (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.loadNext)(editor, editor.o.beautifyHTMLCDNUrlsJS).then(addEventListener, () => null);
38604
38622
  }
38605
38623
  }
38606
38624
  this.syncValueFromWYSIWYG(true);
@@ -38716,6 +38734,7 @@ __webpack_require__.r(__webpack_exports__);
38716
38734
  /* harmony export */ de: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
38717
38735
  /* harmony export */ es: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
38718
38736
  /* harmony export */ fa: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
38737
+ /* harmony export */ fi: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
38719
38738
  /* harmony export */ fr: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
38720
38739
  /* harmony export */ he: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
38721
38740
  /* harmony export */ hu: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
@@ -38760,6 +38779,7 @@ __webpack_require__.r(__webpack_exports__);
38760
38779
 
38761
38780
 
38762
38781
 
38782
+
38763
38783
 
38764
38784
 
38765
38785
  /***/ }),
@@ -39340,6 +39360,7 @@ __webpack_require__.r(__webpack_exports__);
39340
39360
  /* harmony export */ de: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
39341
39361
  /* harmony export */ es: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
39342
39362
  /* harmony export */ fa: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
39363
+ /* harmony export */ fi: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
39343
39364
  /* harmony export */ fr: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
39344
39365
  /* harmony export */ he: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
39345
39366
  /* harmony export */ hu: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
@@ -39384,6 +39405,7 @@ __webpack_require__.r(__webpack_exports__);
39384
39405
 
39385
39406
 
39386
39407
 
39408
+
39387
39409
 
39388
39410
 
39389
39411
  /***/ }),
@@ -39764,6 +39786,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .pw.add('tab',
39764
39786
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44913);
39765
39787
  /* harmony import */ var jodit_modules_table_table__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2871);
39766
39788
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(81160);
39789
+ /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(95582);
39767
39790
  /*!
39768
39791
  * Jodit Editor (https://xdsoft.net/jodit/)
39769
39792
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -39773,111 +39796,108 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .pw.add('tab',
39773
39796
 
39774
39797
 
39775
39798
 
39799
+
39800
+ const WORK_KEYS = new Set([
39801
+ jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_TAB,
39802
+ jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT,
39803
+ jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT,
39804
+ jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP,
39805
+ jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN
39806
+ ]);
39776
39807
  /**
39777
- * Process navigate keypressing in table cell
39808
+ * Process navigates key pressing in table cell
39778
39809
  */
39779
39810
  function tableKeyboardNavigation(editor) {
39780
39811
  editor.e
39781
39812
  .off('.tableKeyboardNavigation')
39782
39813
  .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
- }
39814
+ const { key } = event;
39815
+ if (!WORK_KEYS.has(key)) {
39816
+ return;
39817
39817
  }
39818
- else {
39818
+ const current = editor.s.current();
39819
+ if (!current) {
39820
+ return;
39821
+ }
39822
+ 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);
39823
+ if (!cell) {
39819
39824
  return;
39820
39825
  }
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);
39826
+ const { range } = editor.s;
39827
+ if (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_TAB && current !== cell) {
39828
+ const isNextDirection = key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT || key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN;
39829
+ 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
39830
+ ? jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isTag(elm, 'br')
39831
+ : Boolean(elm), cell);
39832
+ if ((!isNextDirection &&
39833
+ (hasNext ||
39834
+ (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP &&
39835
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isText(current) &&
39836
+ range.startOffset !== 0))) ||
39837
+ (isNextDirection &&
39838
+ (hasNext ||
39839
+ (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN &&
39840
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isText(current) &&
39841
+ current.nodeValue &&
39842
+ range.startOffset !==
39843
+ current.nodeValue.length)))) {
39844
+ return;
39845
+ }
39846
+ }
39847
+ const tableModule = editor.getInstance(jodit_modules_table_table__WEBPACK_IMPORTED_MODULE_2__/* .Table */ .i, editor.o);
39848
+ const table = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.closest(cell, 'table', editor.editor);
39823
39849
  let next = null;
39824
- switch (event.key) {
39850
+ const isPrev = key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT || event.shiftKey;
39851
+ 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);
39852
+ switch (key) {
39825
39853
  case jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_TAB:
39826
- // case consts.KEY_RIGHT:
39827
39854
  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);
39855
+ next = getNextCell();
39833
39856
  if (!next) {
39834
- tableModule.appendRow(table, sibling === 'next'
39857
+ tableModule.appendRow(table, !isPrev
39835
39858
  ? 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);
39859
+ : table.querySelector('tr'), !isPrev);
39860
+ next = getNextCell();
39838
39861
  }
39839
39862
  break;
39840
39863
  }
39841
39864
  case jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP:
39842
39865
  case jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN:
39843
39866
  {
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];
39867
+ const matrix = tableModule.formalMatrix(table);
39868
+ const [row, column] = tableModule.formalCoordinate(table, cell);
39869
+ if (key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP) {
39870
+ if (matrix[row - 1] !== undefined) {
39871
+ next = matrix[row - 1][column];
39854
39872
  }
39855
39873
  }
39856
39874
  else {
39857
- if (matrix[i + 1] !== undefined) {
39858
- next = matrix[i + 1][j];
39875
+ if (matrix[row + 1] !== undefined) {
39876
+ next = matrix[row + 1][column];
39859
39877
  }
39860
39878
  }
39861
39879
  }
39862
39880
  break;
39863
39881
  }
39864
- if (next) {
39865
- if (!next.firstChild) {
39866
- const first = editor.createInside.element('br');
39867
- next.appendChild(first);
39868
- editor.s.setCursorBefore(first);
39882
+ if (!next) {
39883
+ return;
39884
+ }
39885
+ editor.e.fire('hidePopup hideResizer');
39886
+ if (!next.firstChild) {
39887
+ const first = editor.createInside.element('br');
39888
+ next.appendChild(first);
39889
+ editor.s.setCursorBefore(first);
39890
+ }
39891
+ else {
39892
+ if (key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_TAB) {
39893
+ editor.s.select(next, true);
39869
39894
  }
39870
39895
  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
- }
39896
+ 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
39897
  }
39879
- return false;
39880
39898
  }
39899
+ editor.synchronizeValues();
39900
+ return false;
39881
39901
  });
39882
39902
  }
39883
39903
  jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .pw.add('tableKeyboardNavigation', tableKeyboardNavigation);
@@ -41352,7 +41372,7 @@ class license extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_0__/* .P
41352
41372
  const s = document.createElement('script');
41353
41373
  s.src = `https://xdsoft.net/jodit/pro/api/licenses/validate/?code=${encodeURIComponent(code)}&host=${encodeURIComponent(domain)}`;
41354
41374
  document.body.appendChild(s);
41355
- return new Promise((res) => {
41375
+ return this.j.async.promise((res) => {
41356
41376
  window['onJoditResolveKeyCode'] = (newCode) => {
41357
41377
  try {
41358
41378
  if ((0,jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_6__/* .isBoolean */ .j)(newCode)) {