jodit 4.0.0-beta.41 → 4.0.0-beta.48

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 (505) hide show
  1. package/CHANGELOG.md +12 -6
  2. package/README.md +54 -12
  3. package/es2015/jodit.css +1 -1
  4. package/es2015/jodit.js +5592 -5068
  5. package/es2015/jodit.min.js +2 -2
  6. package/es2015/plugins/debug/debug.js +8 -8
  7. package/es2015/plugins/debug/debug.min.js +2 -2
  8. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  9. package/es2015/plugins/speech-recognize/speech-recognize.js +785 -749
  10. package/es2015/plugins/speech-recognize/speech-recognize.min.js +2 -2
  11. package/es2018/jodit.css +4896 -0
  12. package/es2018/jodit.js +38892 -0
  13. package/es2018/jodit.min.css +1 -0
  14. package/es2018/jodit.min.js +10 -0
  15. package/es2018/plugins/debug/debug.js +97 -0
  16. package/es2018/plugins/debug/debug.min.js +10 -0
  17. package/es2018/plugins/speech-recognize/speech-recognize.css +42 -0
  18. package/es2018/plugins/speech-recognize/speech-recognize.js +1043 -0
  19. package/es2018/plugins/speech-recognize/speech-recognize.min.css +1 -0
  20. package/es2018/plugins/speech-recognize/speech-recognize.min.js +10 -0
  21. package/es2021/jodit.css +1 -1
  22. package/es2021/jodit.js +5590 -5066
  23. package/es2021/jodit.min.js +2 -2
  24. package/es2021/plugins/debug/debug.js +8 -8
  25. package/es2021/plugins/debug/debug.min.js +2 -2
  26. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  27. package/es2021/plugins/speech-recognize/speech-recognize.js +773 -737
  28. package/es2021/plugins/speech-recognize/speech-recognize.min.js +2 -2
  29. package/es2021.en/jodit.css +1 -1
  30. package/es2021.en/jodit.js +5191 -4747
  31. package/es2021.en/jodit.min.js +2 -2
  32. package/es2021.en/plugins/debug/debug.js +8 -8
  33. package/es2021.en/plugins/debug/debug.min.js +2 -2
  34. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  35. package/es2021.en/plugins/speech-recognize/speech-recognize.js +34 -18
  36. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +2 -2
  37. package/es5/jodit.css +2 -2
  38. package/es5/jodit.js +7386 -1682
  39. package/es5/jodit.min.css +1 -1
  40. package/es5/jodit.min.js +2 -2
  41. package/es5/plugins/debug/debug.js +10 -10
  42. package/es5/plugins/debug/debug.min.js +2 -2
  43. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  44. package/es5/plugins/speech-recognize/speech-recognize.js +791 -755
  45. package/es5/plugins/speech-recognize/speech-recognize.min.js +2 -2
  46. package/esm/config.js +2 -1
  47. package/esm/core/constants.js +2 -1
  48. package/esm/core/view/view.js +2 -1
  49. package/esm/index.js +0 -5
  50. package/esm/langs/index.js +20 -20
  51. package/esm/plugins/copy-format/langs/index.js +0 -25
  52. package/esm/plugins/index.js +0 -44
  53. package/esm/plugins/line-height/langs/index.js +0 -25
  54. package/esm/plugins/preview/preview.js +1 -1
  55. package/esm/plugins/spellcheck/langs/index.js +0 -25
  56. package/esm/plugins/symbols/langs/index.js +0 -25
  57. package/package.json +3 -6
  58. package/types/config.d.ts +560 -1
  59. package/types/core/async/async.d.ts +32 -0
  60. package/types/core/async/index.d.ts +3 -0
  61. package/types/core/component/component.d.ts +81 -0
  62. package/types/core/component/index.d.ts +3 -0
  63. package/types/core/component/statuses.d.ts +3 -0
  64. package/types/core/component/view-component.d.ts +13 -0
  65. package/types/core/constants.d.ts +62 -1
  66. package/types/core/create/create.d.ts +32 -0
  67. package/types/core/create/index.d.ts +3 -0
  68. package/types/core/decorators/cache/cache.d.ts +5 -0
  69. package/types/core/decorators/component/component.d.ts +9 -0
  70. package/types/core/decorators/debounce/debounce.d.ts +8 -0
  71. package/types/core/decorators/hook/hook.d.ts +8 -0
  72. package/types/core/decorators/idle/idle.d.ts +5 -0
  73. package/types/core/decorators/index.d.ts +5 -0
  74. package/types/core/decorators/nonenumerable/nonenumerable.d.ts +5 -0
  75. package/types/core/decorators/persistent/persistent.d.ts +5 -0
  76. package/types/core/decorators/wait/wait.d.ts +5 -0
  77. package/types/core/decorators/watch/watch.d.ts +8 -0
  78. package/types/core/dom/dom.d.ts +180 -0
  79. package/types/core/dom/index.d.ts +3 -0
  80. package/types/core/dom/lazy-walker.d.ts +3 -0
  81. package/types/core/event-emitter/event-emitter.d.ts +99 -0
  82. package/types/core/event-emitter/eventify.d.ts +25 -0
  83. package/types/core/event-emitter/index.d.ts +3 -0
  84. package/types/core/event-emitter/observable.d.ts +38 -0
  85. package/types/core/event-emitter/store.d.ts +3 -0
  86. package/types/core/global.d.ts +12 -0
  87. package/types/core/helpers/array/as-array.d.ts +3 -0
  88. package/types/core/helpers/array/index.d.ts +3 -0
  89. package/types/core/helpers/array/split-array.d.ts +6 -0
  90. package/types/core/helpers/array/to-array.d.ts +4 -0
  91. package/types/core/helpers/async/index.d.ts +3 -0
  92. package/types/core/helpers/async/set-timeout.d.ts +9 -0
  93. package/types/core/helpers/checker/has-browser-color-picker.d.ts +6 -0
  94. package/types/core/helpers/checker/index.d.ts +3 -0
  95. package/types/core/helpers/checker/is-array.d.ts +6 -0
  96. package/types/core/helpers/checker/is-boolean.d.ts +3 -0
  97. package/types/core/helpers/checker/is-equal.d.ts +3 -0
  98. package/types/core/helpers/checker/is-function.d.ts +6 -0
  99. package/types/core/helpers/checker/is-html-from-word.d.ts +6 -0
  100. package/types/core/helpers/checker/is-html.d.ts +3 -0
  101. package/types/core/helpers/checker/is-imp-interface.d.ts +12 -0
  102. package/types/core/helpers/checker/is-int.d.ts +3 -0
  103. package/types/core/helpers/checker/is-jodit-object.d.ts +6 -0
  104. package/types/core/helpers/checker/is-marker.d.ts +3 -0
  105. package/types/core/helpers/checker/is-native-function.d.ts +6 -0
  106. package/types/core/helpers/checker/is-number.d.ts +6 -0
  107. package/types/core/helpers/checker/is-numeric.d.ts +3 -0
  108. package/types/core/helpers/checker/is-plain-object.d.ts +6 -0
  109. package/types/core/helpers/checker/is-promise.d.ts +3 -0
  110. package/types/core/helpers/checker/is-set.d.ts +3 -0
  111. package/types/core/helpers/checker/is-string.d.ts +6 -0
  112. package/types/core/helpers/checker/is-url.d.ts +6 -0
  113. package/types/core/helpers/checker/is-valid-name.d.ts +6 -0
  114. package/types/core/helpers/checker/is-view-object.d.ts +6 -0
  115. package/types/core/helpers/checker/is-void.d.ts +6 -0
  116. package/types/core/helpers/checker/is-window.d.ts +3 -0
  117. package/types/core/helpers/color/color-to-hex.d.ts +16 -0
  118. package/types/core/helpers/color/index.d.ts +3 -0
  119. package/types/core/helpers/html/apply-styles.d.ts +5 -0
  120. package/types/core/helpers/html/clean-from-word.d.ts +4 -0
  121. package/types/core/helpers/html/htmlspecialchars.d.ts +7 -0
  122. package/types/core/helpers/html/index.d.ts +3 -0
  123. package/types/core/helpers/html/nl2br.d.ts +6 -0
  124. package/types/core/helpers/html/safe-html.d.ts +3 -0
  125. package/types/core/helpers/html/strip-tags.d.ts +6 -0
  126. package/types/core/helpers/index.d.ts +5 -0
  127. package/types/core/helpers/normalize/index.d.ts +3 -0
  128. package/types/core/helpers/normalize/normalize-color.d.ts +6 -0
  129. package/types/core/helpers/normalize/normalize-key-aliases.d.ts +3 -0
  130. package/types/core/helpers/normalize/normalize-license.d.ts +3 -0
  131. package/types/core/helpers/normalize/normalize-path.d.ts +3 -0
  132. package/types/core/helpers/normalize/normalize-relative-path.d.ts +3 -0
  133. package/types/core/helpers/normalize/normalize-size.d.ts +6 -0
  134. package/types/core/helpers/normalize/normalize-url.d.ts +3 -0
  135. package/types/core/helpers/size/get-content-width.d.ts +3 -0
  136. package/types/core/helpers/size/get-scroll-parent.d.ts +3 -0
  137. package/types/core/helpers/size/index.d.ts +3 -0
  138. package/types/core/helpers/size/inner-width.d.ts +3 -0
  139. package/types/core/helpers/size/object-size.d.ts +3 -0
  140. package/types/core/helpers/size/offset.d.ts +7 -0
  141. package/types/core/helpers/size/position.d.ts +3 -0
  142. package/types/core/helpers/string/camel-case.d.ts +6 -0
  143. package/types/core/helpers/string/fuzzy-search-index.d.ts +4 -0
  144. package/types/core/helpers/string/i18n.d.ts +31 -0
  145. package/types/core/helpers/string/index.d.ts +3 -0
  146. package/types/core/helpers/string/kebab-case.d.ts +3 -0
  147. package/types/core/helpers/string/stringify.d.ts +3 -0
  148. package/types/core/helpers/string/trim.d.ts +7 -0
  149. package/types/core/helpers/string/ucfirst.d.ts +6 -0
  150. package/types/core/helpers/utils/align.d.ts +12 -0
  151. package/types/core/helpers/utils/append-script.d.ts +12 -0
  152. package/types/core/helpers/utils/assert.d.ts +1 -0
  153. package/types/core/helpers/utils/attr.d.ts +12 -0
  154. package/types/core/helpers/utils/browser.d.ts +14 -0
  155. package/types/core/helpers/utils/build-query.d.ts +6 -0
  156. package/types/core/helpers/utils/complete-url.d.ts +3 -0
  157. package/types/core/helpers/utils/config-proto.d.ts +33 -0
  158. package/types/core/helpers/utils/convert-media-url-to-video-embed.d.ts +3 -0
  159. package/types/core/helpers/utils/css.d.ts +6 -0
  160. package/types/core/helpers/utils/ctrl-key.d.ts +7 -0
  161. package/types/core/helpers/utils/data-bind.d.ts +3 -0
  162. package/types/core/helpers/utils/default-language.d.ts +3 -0
  163. package/types/core/helpers/utils/error/error.d.ts +3 -0
  164. package/types/core/helpers/utils/error/errors/abort-error.d.ts +3 -0
  165. package/types/core/helpers/utils/error/errors/connection-error.d.ts +3 -0
  166. package/types/core/helpers/utils/error/errors/index.d.ts +3 -0
  167. package/types/core/helpers/utils/error/errors/options-error.d.ts +3 -0
  168. package/types/core/helpers/utils/error/index.d.ts +3 -0
  169. package/types/core/helpers/utils/get-class-name.d.ts +3 -0
  170. package/types/core/helpers/utils/get.d.ts +22 -0
  171. package/types/core/helpers/utils/human-size-to-bytes.d.ts +7 -0
  172. package/types/core/helpers/utils/index.d.ts +3 -0
  173. package/types/core/helpers/utils/mark-deprecated.d.ts +10 -0
  174. package/types/core/helpers/utils/parse-query.d.ts +6 -0
  175. package/types/core/helpers/utils/print.d.ts +9 -0
  176. package/types/core/helpers/utils/reset.d.ts +10 -0
  177. package/types/core/helpers/utils/scroll-into-view.d.ts +6 -0
  178. package/types/core/helpers/utils/selector.d.ts +29 -0
  179. package/types/core/helpers/utils/set.d.ts +16 -0
  180. package/types/core/helpers/utils/stack.d.ts +3 -0
  181. package/types/core/helpers/utils/utils.d.ts +24 -0
  182. package/types/core/helpers/utils/val.d.ts +3 -0
  183. package/types/core/plugin/helpers/init-instance.d.ts +11 -0
  184. package/types/core/plugin/helpers/load.d.ts +9 -0
  185. package/types/core/plugin/helpers/make-instance.d.ts +7 -0
  186. package/types/core/plugin/helpers/utils.d.ts +3 -0
  187. package/types/core/plugin/index.d.ts +3 -0
  188. package/types/core/plugin/interface.d.ts +4 -0
  189. package/types/core/plugin/plugin-system.d.ts +30 -0
  190. package/types/core/plugin/plugin.d.ts +10 -0
  191. package/types/core/request/ajax.d.ts +5 -0
  192. package/types/core/request/config.d.ts +6 -0
  193. package/types/core/request/index.d.ts +3 -0
  194. package/types/core/request/response.d.ts +3 -0
  195. package/types/core/selection/helpers/index.d.ts +3 -0
  196. package/types/core/selection/helpers/move-node-inside-start.d.ts +8 -0
  197. package/types/core/selection/helpers/move-the-node-along-the-edge-outward.d.ts +4 -0
  198. package/types/core/selection/index.d.ts +3 -0
  199. package/types/core/selection/interface.d.ts +9 -0
  200. package/types/core/selection/selection.d.ts +196 -0
  201. package/types/core/selection/style/api/extract.d.ts +16 -0
  202. package/types/core/selection/style/api/finite-state-machine.d.ts +3 -0
  203. package/types/core/selection/style/api/get-suit-child.d.ts +8 -0
  204. package/types/core/selection/style/api/get-suit-parent.d.ts +8 -0
  205. package/types/core/selection/style/api/has-same-style.d.ts +7 -0
  206. package/types/core/selection/style/api/is-inside-invisible-element.d.ts +4 -0
  207. package/types/core/selection/style/api/is-normal-node.d.ts +4 -0
  208. package/types/core/selection/style/api/is-same-attributes.d.ts +4 -0
  209. package/types/core/selection/style/api/is-suit-element.d.ts +24 -0
  210. package/types/core/selection/style/api/list/toggle-ordered-list.d.ts +4 -0
  211. package/types/core/selection/style/api/list/wrap-list.d.ts +5 -0
  212. package/types/core/selection/style/api/toggle-attributes.d.ts +4 -0
  213. package/types/core/selection/style/api/unwrap-children.d.ts +4 -0
  214. package/types/core/selection/style/api/wrap-unwrapped-text.d.ts +4 -0
  215. package/types/core/selection/style/api/wrap.d.ts +4 -0
  216. package/types/core/selection/style/apply-style.d.ts +4 -0
  217. package/types/core/selection/style/commit-style.d.ts +9 -0
  218. package/types/core/storage/engines/local-storage-provider.d.ts +9 -0
  219. package/types/core/storage/engines/memory-storage-provider.d.ts +3 -0
  220. package/types/core/storage/index.d.ts +3 -0
  221. package/types/core/storage/storage.d.ts +5 -0
  222. package/types/core/traits/dlgs.d.ts +3 -0
  223. package/types/core/traits/elms.d.ts +9 -0
  224. package/types/core/traits/mods.d.ts +11 -0
  225. package/types/core/ui/button/button/button.d.ts +35 -0
  226. package/types/core/ui/button/group/group.d.ts +6 -0
  227. package/types/core/ui/button/index.d.ts +5 -0
  228. package/types/core/ui/button/tooltip/tooltip.d.ts +5 -0
  229. package/types/core/ui/element.d.ts +27 -0
  230. package/types/core/ui/form/block/block.d.ts +4 -0
  231. package/types/core/ui/form/form.d.ts +7 -0
  232. package/types/core/ui/form/index.d.ts +3 -0
  233. package/types/core/ui/form/inputs/area/area.d.ts +6 -0
  234. package/types/core/ui/form/inputs/checkbox/checkbox.d.ts +8 -0
  235. package/types/core/ui/form/inputs/file/file.d.ts +4 -0
  236. package/types/core/ui/form/inputs/index.d.ts +3 -0
  237. package/types/core/ui/form/inputs/input/input.d.ts +18 -0
  238. package/types/core/ui/form/inputs/select/select.d.ts +10 -0
  239. package/types/core/ui/form/validators/index.d.ts +3 -0
  240. package/types/core/ui/form/validators/input.d.ts +9 -0
  241. package/types/core/ui/form/validators/select.d.ts +6 -0
  242. package/types/core/ui/group/group.d.ts +32 -0
  243. package/types/core/ui/group/index.d.ts +3 -0
  244. package/types/core/ui/group/list.d.ts +16 -0
  245. package/types/core/ui/group/separator.d.ts +3 -0
  246. package/types/core/ui/group/spacer.d.ts +3 -0
  247. package/types/core/ui/helpers/buttons.d.ts +9 -0
  248. package/types/core/ui/helpers/get-control-type.d.ts +10 -0
  249. package/types/core/ui/helpers/get-strong-control-types.d.ts +6 -0
  250. package/types/core/ui/icon.d.ts +15 -0
  251. package/types/core/ui/index.d.ts +5 -0
  252. package/types/core/ui/popup/index.d.ts +3 -0
  253. package/types/core/ui/popup/popup.d.ts +35 -0
  254. package/types/core/ui/progress-bar/progress-bar.d.ts +10 -0
  255. package/types/core/view/view-with-toolbar.d.ts +22 -0
  256. package/types/core/view/view.d.ts +66 -1
  257. package/types/index.d.ts +5 -0
  258. package/types/jodit.d.ts +248 -0
  259. package/types/langs/index.d.ts +5 -0
  260. package/types/modules/context-menu/context-menu.d.ts +20 -0
  261. package/types/modules/dialog/alert.d.ts +17 -0
  262. package/types/modules/dialog/confirm.d.ts +17 -0
  263. package/types/modules/dialog/dialog.d.ts +115 -0
  264. package/types/modules/dialog/index.d.ts +5 -0
  265. package/types/modules/dialog/prompt.d.ts +20 -0
  266. package/types/modules/file-browser/builders/context-menu.d.ts +3 -0
  267. package/types/modules/file-browser/builders/elements-map.d.ts +7 -0
  268. package/types/modules/file-browser/builders/item.d.ts +3 -0
  269. package/types/modules/file-browser/data-provider.d.ts +72 -0
  270. package/types/modules/file-browser/factories.d.ts +3 -0
  271. package/types/modules/file-browser/fetch/delete-file.d.ts +7 -0
  272. package/types/modules/file-browser/fetch/load-items.d.ts +7 -0
  273. package/types/modules/file-browser/fetch/load-tree.d.ts +7 -0
  274. package/types/modules/file-browser/file-browser.d.ts +39 -0
  275. package/types/modules/file-browser/index.d.ts +5 -0
  276. package/types/modules/file-browser/listeners/native-listeners.d.ts +12 -0
  277. package/types/modules/file-browser/listeners/self-listeners.d.ts +6 -0
  278. package/types/modules/file-browser/listeners/state-listeners.d.ts +7 -0
  279. package/types/modules/file-browser/ui/index.d.ts +3 -0
  280. package/types/modules/history/command.d.ts +3 -0
  281. package/types/modules/history/history.d.ts +37 -0
  282. package/types/modules/history/snapshot.d.ts +40 -0
  283. package/types/modules/history/stack.d.ts +3 -0
  284. package/types/modules/image-editor/image-editor.d.ts +54 -1
  285. package/types/modules/image-editor/templates/form.d.ts +3 -0
  286. package/types/modules/index.d.ts +5 -0
  287. package/types/modules/messages/message.d.ts +3 -0
  288. package/types/modules/messages/messages.d.ts +8 -0
  289. package/types/modules/status-bar/status-bar.d.ts +20 -0
  290. package/types/modules/table/table.d.ts +57 -0
  291. package/types/modules/toolbar/button/button.d.ts +34 -1
  292. package/types/modules/toolbar/button/content.d.ts +6 -0
  293. package/types/modules/toolbar/button/index.d.ts +3 -0
  294. package/types/modules/toolbar/collection/collection.d.ts +23 -0
  295. package/types/modules/toolbar/collection/editor-collection.d.ts +19 -0
  296. package/types/modules/toolbar/factory.d.ts +11 -0
  297. package/types/modules/uploader/config.d.ts +6 -0
  298. package/types/modules/uploader/helpers/build-data.d.ts +3 -0
  299. package/types/modules/uploader/helpers/data-uri-to-blob.d.ts +6 -0
  300. package/types/modules/uploader/helpers/index.d.ts +3 -0
  301. package/types/modules/uploader/helpers/process-old-browser-drag.d.ts +3 -0
  302. package/types/modules/uploader/helpers/send-files.d.ts +6 -0
  303. package/types/modules/uploader/helpers/send.d.ts +3 -0
  304. package/types/modules/uploader/uploader.d.ts +35 -0
  305. package/types/modules/widget/color-picker/color-picker.d.ts +22 -0
  306. package/types/modules/widget/file-selector/file-selector.d.ts +41 -0
  307. package/types/modules/widget/index.d.ts +5 -0
  308. package/types/modules/widget/tabs/tabs.d.ts +22 -0
  309. package/types/plugins/about/about.d.ts +5 -0
  310. package/types/plugins/add-new-line/add-new-line.d.ts +9 -0
  311. package/types/plugins/add-new-line/config.d.ts +22 -0
  312. package/types/plugins/backspace/backspace.d.ts +11 -0
  313. package/types/plugins/backspace/cases/check-join-neighbors.d.ts +7 -0
  314. package/types/plugins/backspace/cases/check-join-two-lists.d.ts +16 -0
  315. package/types/plugins/backspace/cases/check-not-collapsed.d.ts +16 -0
  316. package/types/plugins/backspace/cases/check-remove-char.d.ts +16 -0
  317. package/types/plugins/backspace/cases/check-remove-content-not-editable.d.ts +7 -0
  318. package/types/plugins/backspace/cases/check-remove-empty-neighbor.d.ts +16 -0
  319. package/types/plugins/backspace/cases/check-remove-empty-parent.d.ts +17 -0
  320. package/types/plugins/backspace/cases/check-remove-unbreakable-element.d.ts +17 -0
  321. package/types/plugins/backspace/cases/check-table-cell.d.ts +17 -0
  322. package/types/plugins/backspace/cases/check-unwrap-first-list-item.d.ts +17 -0
  323. package/types/plugins/backspace/cases/index.d.ts +3 -0
  324. package/types/plugins/backspace/helpers.d.ts +11 -0
  325. package/types/plugins/backspace/interface.d.ts +27 -0
  326. package/types/plugins/bold/bold.d.ts +8 -0
  327. package/types/plugins/bold/interface.d.ts +18 -0
  328. package/types/plugins/class-span/class-span.d.ts +27 -0
  329. package/types/plugins/clean-html/clean-html.d.ts +17 -0
  330. package/types/plugins/clean-html/config.d.ts +73 -0
  331. package/types/plugins/clean-html/helpers/get-hash.d.ts +6 -0
  332. package/types/plugins/clean-html/helpers/index.d.ts +3 -0
  333. package/types/plugins/clean-html/helpers/remove-format/remove-format-for-collapsed-selection.d.ts +11 -0
  334. package/types/plugins/clean-html/helpers/remove-format/remove-format-for-selection.d.ts +7 -0
  335. package/types/plugins/clean-html/helpers/visitor/filters/allow-attributes.d.ts +6 -0
  336. package/types/plugins/clean-html/helpers/visitor/filters/fill-empty-paragraph.d.ts +6 -0
  337. package/types/plugins/clean-html/helpers/visitor/filters/index.d.ts +6 -0
  338. package/types/plugins/clean-html/helpers/visitor/filters/remove-empty-text-node.d.ts +6 -0
  339. package/types/plugins/clean-html/helpers/visitor/filters/remove-inv-text-nodes.d.ts +6 -0
  340. package/types/plugins/clean-html/helpers/visitor/filters/replace-old-tags.d.ts +6 -0
  341. package/types/plugins/clean-html/helpers/visitor/filters/sanitize-attributes.d.ts +6 -0
  342. package/types/plugins/clean-html/helpers/visitor/filters/try-remove-node.d.ts +6 -0
  343. package/types/plugins/clean-html/helpers/visitor/visit-node-walker.d.ts +6 -0
  344. package/types/plugins/clipboard/clipboard.d.ts +10 -0
  345. package/types/plugins/color/color.d.ts +8 -0
  346. package/types/plugins/copy-format/copy-format.d.ts +5 -0
  347. package/types/plugins/debug/debug.d.ts +5 -0
  348. package/types/plugins/delete/delete.d.ts +14 -0
  349. package/types/plugins/delete/interface.d.ts +3 -0
  350. package/types/plugins/drag-and-drop/drag-and-drop.d.ts +5 -0
  351. package/types/plugins/drag-and-drop-element/config.d.ts +3 -0
  352. package/types/plugins/drag-and-drop-element/drag-and-drop-element.d.ts +26 -0
  353. package/types/plugins/dtd/after-insert/index.d.ts +4 -0
  354. package/types/plugins/dtd/after-insert/remove-extra-br.d.ts +9 -0
  355. package/types/plugins/dtd/before-insert/check-block-nesting.d.ts +9 -0
  356. package/types/plugins/dtd/before-insert/index.d.ts +4 -0
  357. package/types/plugins/dtd/config.d.ts +12 -0
  358. package/types/plugins/enter/enter.d.ts +11 -0
  359. package/types/plugins/enter/helpers/check-br.d.ts +7 -0
  360. package/types/plugins/enter/helpers/check-unsplittable-box.d.ts +7 -0
  361. package/types/plugins/enter/helpers/get-block-wrapper.d.ts +7 -0
  362. package/types/plugins/enter/helpers/has-previous-block.d.ts +6 -0
  363. package/types/plugins/enter/helpers/index.d.ts +3 -0
  364. package/types/plugins/enter/helpers/insert-paragraph.d.ts +7 -0
  365. package/types/plugins/enter/helpers/move-cursor-out-from-specal-tags.d.ts +7 -0
  366. package/types/plugins/enter/helpers/process-empty-li-leaf.d.ts +7 -0
  367. package/types/plugins/enter/helpers/split-fragment.d.ts +8 -0
  368. package/types/plugins/enter/helpers/wrap-text.d.ts +8 -0
  369. package/types/plugins/enter/interface.d.ts +20 -0
  370. package/types/plugins/file/file.d.ts +5 -0
  371. package/types/plugins/focus/focus.d.ts +5 -0
  372. package/types/plugins/font/font.d.ts +8 -0
  373. package/types/plugins/format-block/format-block.d.ts +8 -0
  374. package/types/plugins/fullsize/config.d.ts +22 -0
  375. package/types/plugins/fullsize/fullsize.d.ts +8 -0
  376. package/types/plugins/hotkeys/config.d.ts +3 -0
  377. package/types/plugins/hotkeys/hotkeys.d.ts +10 -0
  378. package/types/plugins/hr/hr.d.ts +5 -0
  379. package/types/plugins/iframe/config.d.ts +49 -0
  380. package/types/plugins/iframe/iframe.d.ts +9 -0
  381. package/types/plugins/image/image.d.ts +5 -0
  382. package/types/plugins/image-processor/config.d.ts +3 -0
  383. package/types/plugins/image-processor/image-processor.d.ts +8 -0
  384. package/types/plugins/image-properties/config.d.ts +60 -0
  385. package/types/plugins/image-properties/image-properties.d.ts +42 -0
  386. package/types/plugins/image-properties/templates/form.d.ts +3 -0
  387. package/types/plugins/image-properties/templates/main-tab.d.ts +3 -0
  388. package/types/plugins/image-properties/templates/position-tab.d.ts +3 -0
  389. package/types/plugins/indent/config.d.ts +3 -0
  390. package/types/plugins/indent/helpers.d.ts +4 -0
  391. package/types/plugins/indent/indent.d.ts +8 -0
  392. package/types/plugins/index.d.ts +5 -0
  393. package/types/plugins/inline-popup/config/config.d.ts +3 -0
  394. package/types/plugins/inline-popup/config/items/a.d.ts +3 -0
  395. package/types/plugins/inline-popup/config/items/cells.d.ts +3 -0
  396. package/types/plugins/inline-popup/config/items/iframe.d.ts +3 -0
  397. package/types/plugins/inline-popup/config/items/img.d.ts +3 -0
  398. package/types/plugins/inline-popup/config/items/toolbar.d.ts +3 -0
  399. package/types/plugins/inline-popup/inline-popup.d.ts +36 -0
  400. package/types/plugins/justify/justify.d.ts +8 -0
  401. package/types/plugins/key-arrow-outside/key-arrow-outside.d.ts +8 -0
  402. package/types/plugins/limit/config.d.ts +9 -0
  403. package/types/plugins/limit/limit.d.ts +22 -0
  404. package/types/plugins/line-height/config.d.ts +9 -0
  405. package/types/plugins/line-height/line-height.d.ts +5 -0
  406. package/types/plugins/link/config.d.ts +33 -0
  407. package/types/plugins/link/link.d.ts +11 -0
  408. package/types/plugins/link/template.d.ts +3 -0
  409. package/types/plugins/media/config.d.ts +9 -0
  410. package/types/plugins/media/media.d.ts +8 -0
  411. package/types/plugins/mobile/config.d.ts +6 -0
  412. package/types/plugins/mobile/mobile.d.ts +8 -0
  413. package/types/plugins/ordered-list/ordered-list.d.ts +8 -0
  414. package/types/plugins/paste/config.d.ts +19 -0
  415. package/types/plugins/paste/helpers.d.ts +15 -0
  416. package/types/plugins/paste/interface.d.ts +15 -0
  417. package/types/plugins/paste/paste.d.ts +31 -0
  418. package/types/plugins/paste-from-word/config.d.ts +21 -0
  419. package/types/plugins/paste-from-word/paste-from-word.d.ts +11 -0
  420. package/types/plugins/paste-storage/paste-storage.d.ts +8 -0
  421. package/types/plugins/placeholder/config.d.ts +31 -0
  422. package/types/plugins/placeholder/placeholder.d.ts +12 -0
  423. package/types/plugins/powered-by-jodit/powered-by-jodit.d.ts +8 -0
  424. package/types/plugins/preview/preview.d.ts +5 -0
  425. package/types/plugins/print/lib/generate-critical-css.d.ts +6 -0
  426. package/types/plugins/print/print.d.ts +5 -0
  427. package/types/plugins/redo-undo/redo-undo.d.ts +9 -0
  428. package/types/plugins/resize-cells/resize-cells.d.ts +42 -0
  429. package/types/plugins/resize-handler/resize-handler.d.ts +26 -0
  430. package/types/plugins/resizer/config.d.ts +31 -0
  431. package/types/plugins/resizer/resizer.d.ts +22 -0
  432. package/types/plugins/search/config.d.ts +21 -0
  433. package/types/plugins/search/helpers/index.d.ts +3 -0
  434. package/types/plugins/search/helpers/sentence-finder.d.ts +3 -0
  435. package/types/plugins/search/helpers/wrap-ranges-texts-in-tmp-span.d.ts +18 -0
  436. package/types/plugins/search/interface.d.ts +23 -0
  437. package/types/plugins/search/search.d.ts +22 -0
  438. package/types/plugins/search/ui/search.d.ts +6 -0
  439. package/types/plugins/select/config.d.ts +8 -0
  440. package/types/plugins/select/select.d.ts +19 -0
  441. package/types/plugins/select-cells/select-cells.d.ts +34 -0
  442. package/types/plugins/size/size.d.ts +27 -0
  443. package/types/plugins/source/config.d.ts +25 -0
  444. package/types/plugins/source/editor/engines/ace.d.ts +6 -0
  445. package/types/plugins/source/editor/engines/area.d.ts +3 -0
  446. package/types/plugins/source/editor/engines/index.d.ts +3 -0
  447. package/types/plugins/source/editor/factory.d.ts +3 -0
  448. package/types/plugins/source/editor/sourceEditor.d.ts +6 -0
  449. package/types/plugins/source/source.d.ts +17 -0
  450. package/types/plugins/speech-recognize/config.d.ts +41 -0
  451. package/types/plugins/speech-recognize/constants.d.ts +4 -0
  452. package/types/plugins/speech-recognize/helpers/api.d.ts +3 -0
  453. package/types/plugins/speech-recognize/helpers/exec-spell-command.d.ts +3 -0
  454. package/types/plugins/speech-recognize/helpers/recognize-manager.d.ts +3 -0
  455. package/types/plugins/speech-recognize/helpers/sound.d.ts +3 -0
  456. package/types/plugins/speech-recognize/interface.d.ts +12 -0
  457. package/types/plugins/speech-recognize/speech-recognize.d.ts +5 -0
  458. package/types/plugins/spellcheck/config.d.ts +4 -0
  459. package/types/plugins/spellcheck/spellcheck.d.ts +5 -0
  460. package/types/plugins/stat/stat.d.ts +5 -0
  461. package/types/plugins/sticky/config.d.ts +19 -0
  462. package/types/plugins/sticky/sticky.d.ts +18 -0
  463. package/types/plugins/symbols/symbols.d.ts +11 -0
  464. package/types/plugins/tab/cases/index.d.ts +3 -0
  465. package/types/plugins/tab/cases/on-tab-inside-li.d.ts +8 -0
  466. package/types/plugins/tab/config.d.ts +3 -0
  467. package/types/plugins/table/table.d.ts +5 -0
  468. package/types/plugins/table-keyboard-navigation/table-keyboard-navigation.d.ts +8 -0
  469. package/types/plugins/wrap-nodes/config.d.ts +13 -0
  470. package/types/plugins/xpath/xpath.d.ts +5 -0
  471. package/types/styles/icons/index.d.ts +5 -0
  472. package/types/tsconfig.json +3 -21
  473. package/esm/plugins/source/editor/engines/custom.js +0 -34
  474. package/esm/plugins/speech-recognize/config.js +0 -92
  475. package/esm/plugins/speech-recognize/constants.js +0 -11
  476. package/esm/plugins/speech-recognize/helpers/api.js +0 -7
  477. package/esm/plugins/speech-recognize/helpers/exec-spell-command.js +0 -9
  478. package/esm/plugins/speech-recognize/helpers/recognize-manager.js +0 -168
  479. package/esm/plugins/speech-recognize/helpers/sound.js +0 -30
  480. package/esm/plugins/speech-recognize/interface.js +0 -6
  481. package/esm/plugins/speech-recognize/langs/ar.js +0 -14
  482. package/esm/plugins/speech-recognize/langs/cs_cz.js +0 -14
  483. package/esm/plugins/speech-recognize/langs/de.js +0 -14
  484. package/esm/plugins/speech-recognize/langs/es.js +0 -14
  485. package/esm/plugins/speech-recognize/langs/fa.js +0 -14
  486. package/esm/plugins/speech-recognize/langs/fr.js +0 -14
  487. package/esm/plugins/speech-recognize/langs/he.js +0 -14
  488. package/esm/plugins/speech-recognize/langs/hu.js +0 -14
  489. package/esm/plugins/speech-recognize/langs/id.js +0 -14
  490. package/esm/plugins/speech-recognize/langs/index.js +0 -26
  491. package/esm/plugins/speech-recognize/langs/it.js +0 -14
  492. package/esm/plugins/speech-recognize/langs/ja.js +0 -14
  493. package/esm/plugins/speech-recognize/langs/ko.js +0 -14
  494. package/esm/plugins/speech-recognize/langs/mn.js +0 -14
  495. package/esm/plugins/speech-recognize/langs/nl.js +0 -14
  496. package/esm/plugins/speech-recognize/langs/pl.js +0 -14
  497. package/esm/plugins/speech-recognize/langs/pt_br.js +0 -14
  498. package/esm/plugins/speech-recognize/langs/ru.js +0 -14
  499. package/esm/plugins/speech-recognize/langs/tr.js +0 -14
  500. package/esm/plugins/speech-recognize/langs/zh_cn.js +0 -14
  501. package/esm/plugins/speech-recognize/langs/zh_tw.js +0 -14
  502. package/esm/plugins/speech-recognize/speech-recognize.js +0 -115
  503. package/esm/polyfills.js +0 -54
  504. package/types/plugins/source/editor/engines/custom.d.ts +0 -24
  505. package/types/polyfills.d.ts +0 -10
@@ -3,21 +3,38 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
+ /**
7
+ * [[include:plugins/clean-html/README.md]]
8
+ * @packageDocumentation
9
+ * @module plugins/clean-html
10
+ */
6
11
  import type { IJodit } from "../../types";
7
12
  import { Plugin } from "../../core/plugin/plugin";
8
13
  import "./config";
14
+ /**
15
+ * Clean HTML after removeFormat and insertHorizontalRule command
16
+ */
9
17
  export declare class cleanHtml extends Plugin {
18
+ /** @override */
10
19
  buttons: Plugin['buttons'];
20
+ /** @override */
11
21
  protected afterInit(jodit: IJodit): void;
12
22
  private get isEditMode();
23
+ /**
24
+ * Clean HTML code on every change
25
+ */
13
26
  protected onChangeCleanHTML(): void;
14
27
  private currentSelectionNode;
15
28
  private walker;
16
29
  protected startWalker(): void;
17
30
  protected beforeCommand(command: string): void | false;
31
+ /**
32
+ * Event handler when manually assigning a value to the HTML editor.
33
+ */
18
34
  protected onBeforeSetNativeEditorValue(data: {
19
35
  value: string;
20
36
  }): boolean;
21
37
  protected onSafeHTML(sandBox: HTMLElement): void;
38
+ /** @override */
22
39
  protected beforeDestruct(): void;
23
40
  }
@@ -3,20 +3,93 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
+ /**
7
+ * @module plugins/clean-html
8
+ */
6
9
  import type { HTMLTagNames, IDictionary, Nullable } from "../../types";
7
10
  declare module 'jodit/config' {
8
11
  interface Config {
9
12
  cleanHTML: {
10
13
  timeout: number;
14
+ /**
15
+ * Replace   to plain space
16
+ */
11
17
  replaceNBSP: boolean;
12
18
  fillEmptyParagraph: boolean;
13
19
  removeEmptyElements: boolean;
14
20
  replaceOldTags: IDictionary<HTMLTagNames> | false;
21
+ /**
22
+ * Use iframe[sandbox] to paste HTML code into the editor to check it for safety
23
+ * Allows you not to run scripts and handlers, but it works much slower
24
+ * @example
25
+ * ```javascript
26
+ * Jodit.make('#editor', {
27
+ * cleanHTML: {
28
+ * useIframeSandbox: true
29
+ * }
30
+ * });
31
+ * ```
32
+ */
15
33
  useIframeSandbox: boolean;
34
+ /**
35
+ * Remove onError attributes
36
+ */
16
37
  removeOnError: boolean;
38
+ /**
39
+ * Safe href="javascript:" links
40
+ */
17
41
  safeJavaScriptLink: boolean;
42
+ /**
43
+ * The allowTags option defines which elements will remain in the
44
+ * edited text when the editor saves. You can use this limit the returned HTML.
45
+ * @example
46
+ * ```javascript
47
+ * const jodit = new Jodit.make('#editor', {
48
+ * cleanHTML: {
49
+ * cleanOnPaste: false
50
+ * }
51
+ * });
52
+ * ```
53
+ * @example
54
+ * ```javascript
55
+ * const editor = Jodit.make('#editor', {
56
+ * cleanHTML: {
57
+ * allowTags: 'p,a[href],table,tr,td, img[src=1.png]' // allow only <p>,<a>,<table>,<tr>,<td>,<img> tags and
58
+ * for <a> allow only `href` attribute and <img> allow only `src` attribute == '1.png'
59
+ * }
60
+ * });
61
+ * editor.value = 'Sorry! <strong>Goodby</strong>\
62
+ * <span>mr.</span> <a style="color:red" href="http://xdsoft.net">Freeman</a>';
63
+ * console.log(editor.value); //Sorry! <a href="http://xdsoft.net">Freeman</a>
64
+ * ```
65
+ *
66
+ * @example
67
+ * ```javascript
68
+ * const editor = Jodit.make('#editor', {
69
+ * cleanHTML: {
70
+ * allowTags: {
71
+ * p: true,
72
+ * a: {
73
+ * href: true
74
+ * },
75
+ * table: true,
76
+ * tr: true,
77
+ * td: true,
78
+ * img: {
79
+ * src: '1.png'
80
+ * }
81
+ * }
82
+ * }
83
+ * });
84
+ * ```
85
+ */
18
86
  allowTags: false | string | IDictionary<string>;
19
87
  denyTags: false | string | IDictionary<string>;
88
+ /**
89
+ * Node filtering rules that do not need to be applied to content
90
+ * The full list of rules is generated dynamically from the folder
91
+ * https://github.com/xdan/jodit/tree/main/src/plugins/clean-html/helpers/visitor/filters
92
+ */
20
93
  disableCleanFilter: Nullable<Set<string>>;
21
94
  };
22
95
  }
@@ -3,5 +3,11 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
+ /**
7
+ * @module plugins/clean-html
8
+ */
6
9
  import type { IDictionary } from "../../../types";
10
+ /**
11
+ * @private
12
+ */
7
13
  export declare function getHash(tags: false | string | IDictionary<string>): IDictionary | false;
@@ -3,6 +3,9 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
+ /**
7
+ * @module plugins/clean-html
8
+ */
6
9
  export * from "./get-hash";
7
10
  export * from "./remove-format/remove-format-for-collapsed-selection";
8
11
  export * from "./remove-format/remove-format-for-selection";
@@ -3,6 +3,17 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
+ /**
7
+ * @module plugins/clean-html
8
+ */
6
9
  import type { IJodit, Nullable } from "../../../../types";
10
+ /**
11
+ * For collapsed selection move cursor outside or split inline block
12
+ * @private
13
+ */
7
14
  export declare function removeFormatForCollapsedSelection(jodit: IJodit, fake?: Node): Nullable<Text> | void;
15
+ /**
16
+ * Element has inline display mode
17
+ * @private
18
+ */
8
19
  export declare function isInlineBlock(node: Nullable<Node>): node is Node;
@@ -3,5 +3,12 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
+ /**
7
+ * @module plugins/clean-html
8
+ */
6
9
  import type { IJodit } from "../../../../types";
10
+ /**
11
+ * Remove formatting for all selected elements
12
+ * @private
13
+ */
7
14
  export declare function removeFormatForSelection(jodit: IJodit): void;
@@ -3,5 +3,11 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
+ /**
7
+ * @module plugins/clean-html
8
+ */
6
9
  import type { IDictionary, IJodit } from "../../../../../types";
10
+ /**
11
+ * @private
12
+ */
7
13
  export declare function allowAttributes(jodit: IJodit, nodeElm: Node, hadEffect: boolean, allow: IDictionary | false): boolean;
@@ -3,5 +3,11 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
+ /**
7
+ * @module plugins/clean-html
8
+ */
6
9
  import type { IJodit } from "../../../../../types";
10
+ /**
11
+ * @private
12
+ */
7
13
  export declare function fillEmptyParagraph(jodit: IJodit, nodeElm: Node, hadEffect: boolean): boolean;
@@ -3,6 +3,12 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
+ /**
7
+ * @module plugins/clean-html
8
+ */
9
+ /**
10
+ * @private
11
+ */
6
12
  export * from "./replace-old-tags";
7
13
  export * from "./allow-attributes";
8
14
  export * from "./fill-empty-paragraph";
@@ -3,5 +3,11 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
+ /**
7
+ * @module plugins/clean-html
8
+ */
6
9
  import type { IJodit, Nullable } from "../../../../../types";
10
+ /**
11
+ * @private
12
+ */
7
13
  export declare function removeEmptyTextNode(jodit: IJodit, node: Node, hadEffect: boolean, arg: unknown, argi: unknown, currentNode: Nullable<Node>): boolean;
@@ -3,5 +3,11 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
+ /**
7
+ * @module plugins/clean-html
8
+ */
6
9
  import type { IJodit, Nullable } from "../../../../../types";
10
+ /**
11
+ * @private
12
+ */
7
13
  export declare function removeInvTextNodes(jodit: IJodit, node: Node, hadEffect: boolean, arg: unknown, argi: unknown, currentNode: Nullable<Node>): boolean;
@@ -3,5 +3,11 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
+ /**
7
+ * @module plugins/clean-html
8
+ */
6
9
  import type { IJodit } from "../../../../../types";
10
+ /**
11
+ * @private
12
+ */
7
13
  export declare function replaceOldTags(jodit: IJodit, nodeElm: Node, hadEffect: boolean): boolean;
@@ -3,5 +3,11 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
+ /**
7
+ * @module plugins/clean-html
8
+ */
6
9
  import type { IJodit } from "../../../../../types";
10
+ /**
11
+ * @private
12
+ */
7
13
  export declare function sanitizeAttributes(jodit: IJodit, nodeElm: Node, hadEffect: boolean): boolean;
@@ -3,5 +3,11 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
+ /**
7
+ * @module plugins/clean-html
8
+ */
6
9
  import type { IDictionary, IJodit, Nullable } from "../../../../../types";
10
+ /**
11
+ * @private
12
+ */
7
13
  export declare function tryRemoveNode(jodit: IJodit, nodeElm: Node, hadEffect: boolean, allowTags: IDictionary | false, denyTags: IDictionary | false, currentSelectionNode: Nullable<Node>): boolean;
@@ -3,5 +3,11 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
+ /**
7
+ * @module plugins/clean-html
8
+ */
6
9
  import type { IJodit, Nullable, IDictionary } from "../../../../types";
10
+ /**
11
+ * @private
12
+ */
7
13
  export declare function visitNodeWalker(jodit: IJodit, nodeElm: Node, allowTags: IDictionary | false, denyTags: IDictionary | false, currentSelectionNode: Nullable<Node>): boolean;
@@ -3,12 +3,22 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
+ /**
7
+ * [[include:plugins/clipboard/README.md]]
8
+ * @packageDocumentation
9
+ * @module plugins/clipboard
10
+ */
6
11
  import type { IJodit, IPlugin } from "../../types";
7
12
  import type { Plugin } from "../../core/plugin";
8
13
  import "./config";
14
+ /**
15
+ * Clipboard plugin - cut and copy functionality
16
+ */
9
17
  export declare class clipboard implements IPlugin {
10
18
  jodit: IJodit;
19
+ /** @override */
11
20
  buttons: Plugin['buttons'];
12
21
  init(editor: IJodit): void;
22
+ /** @override */
13
23
  destruct(editor: IJodit): void;
14
24
  }
@@ -3,6 +3,14 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
+ /**
7
+ * [[include:plugins/color/README.md]]
8
+ * @packageDocumentation
9
+ * @module plugins/color
10
+ */
6
11
  import type { IJodit } from "../../types";
7
12
  import "./config";
13
+ /**
14
+ * Process commands `background` and `forecolor`
15
+ */
8
16
  export declare function color(editor: IJodit): void;
@@ -3,5 +3,10 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
+ /**
7
+ * [[include:plugins/copy-format/README.md]]
8
+ * @packageDocumentation
9
+ * @module plugins/clipboard
10
+ */
6
11
  import type { IJodit } from "../../types";
7
12
  export declare function copyFormat(editor: IJodit): void;
@@ -3,6 +3,11 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
+ /**
7
+ * [[include:plugins/debug/README.md]]
8
+ * @packageDocumentation
9
+ * @module plugins/debug
10
+ */
6
11
  import type { IJodit } from "../../types";
7
12
  import { Plugin } from "../../core/plugin";
8
13
  export declare class Debug extends Plugin {
@@ -3,6 +3,11 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
+ /**
7
+ * [[include:plugins/delete/README.md]]
8
+ * @packageDocumentation
9
+ * @module plugins/delete
10
+ */
6
11
  import type { IJodit } from "../../types";
7
12
  import { Plugin } from "../../core/plugin";
8
13
  import "./interface";
@@ -10,10 +15,19 @@ export declare class deleteCommand extends Plugin {
10
15
  requires: string[];
11
16
  protected afterInit(jodit: IJodit): void;
12
17
  protected beforeDestruct(jodit: IJodit): void;
18
+ /**
19
+ * After Delete command remove extra BR
20
+ */
13
21
  private __afterDeleteCommand;
14
22
  private __onDeleteCommand;
15
23
  private __moveContentInLeftSibling;
24
+ /**
25
+ * If left sibling is list - return last leaf
26
+ */
16
27
  private __defineRightLeftBox;
28
+ /**
29
+ * Add BR in empty blocks left and right(for table cell)
30
+ */
17
31
  private __addBrInEmptyBlock;
18
32
  private __moveCursorInEditableSibling;
19
33
  }
@@ -5,6 +5,9 @@
5
5
  */
6
6
  declare module 'jodit/types/jodit' {
7
7
  interface IJodit {
8
+ /**
9
+ * Delete plugin: Remove selected text
10
+ */
8
11
  execCommand(command: 'delete'): void;
9
12
  }
10
13
  }
@@ -4,12 +4,16 @@
4
4
  * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
6
  import { Plugin } from "../../core/plugin";
7
+ /**
8
+ * Process drag and drop image from FileBrowser and movev image inside the editor
9
+ */
7
10
  export declare class dragAndDrop extends Plugin {
8
11
  private isFragmentFromEditor;
9
12
  private isCopyMode;
10
13
  private startDragPoint;
11
14
  private draggable;
12
15
  private bufferRange;
16
+ /** @override */
13
17
  afterInit(): void;
14
18
  private onDragStart;
15
19
  private addDragListeners;
@@ -18,5 +22,6 @@ export declare class dragAndDrop extends Plugin {
18
22
  private onDragEnd;
19
23
  private onDrop;
20
24
  private getText;
25
+ /** @override */
21
26
  beforeDestruct(): void;
22
27
  }
@@ -5,6 +5,9 @@
5
5
  */
6
6
  declare module 'jodit/config' {
7
7
  interface Config {
8
+ /**
9
+ * Draggable elements
10
+ */
8
11
  draggableTags: string | string[];
9
12
  }
10
13
  }
@@ -5,20 +5,46 @@
5
5
  */
6
6
  import { Plugin } from "../../core/plugin";
7
7
  import "./config";
8
+ /**
9
+ * Process drag and drop image or another element inside the editor
10
+ */
8
11
  export declare class dragAndDropElement extends Plugin {
9
12
  private dragList;
10
13
  private draggable;
11
14
  private isCopyMode;
15
+ /**
16
+ * Shift in pixels after which we consider that the transfer of the element has begun
17
+ */
12
18
  private diffStep;
13
19
  private startX;
14
20
  private startY;
15
21
  private state;
22
+ /** @override */
16
23
  protected afterInit(): void;
24
+ /**
25
+ * Drag start handler
26
+ */
17
27
  private onDragStart;
28
+ /**
29
+ * Mouse move handler handler
30
+ */
18
31
  private onDrag;
32
+ /**
33
+ * Mouseup handler in any place
34
+ */
19
35
  private onDragEnd;
36
+ /**
37
+ * Mouseup handler inside editor
38
+ */
20
39
  private onDrop;
40
+ /**
41
+ * Add global event listener after drag start
42
+ */
21
43
  private addDragListeners;
44
+ /**
45
+ * Remove global event listener after drag start
46
+ */
22
47
  private removeDragListeners;
48
+ /** @override */
23
49
  protected beforeDestruct(): void;
24
50
  }
@@ -3,4 +3,8 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
+ /**
7
+ * @module plugins/dtd
8
+ * @internal
9
+ */
6
10
  export * from "./remove-extra-br";
@@ -3,5 +3,14 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
+ /**
7
+ * @module plugins/dtd
8
+ * @internal
9
+ */
6
10
  import type { IJodit } from "../../../types";
11
+ /**
12
+ * Checks if there is a tag in the block element after the inserted br node,
13
+ * if so, removes it
14
+ * @internal
15
+ */
7
16
  export declare function removeExtraBr(jodit: IJodit, node: Node): void;
@@ -3,5 +3,14 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
+ /**
7
+ * @module plugins/dtd
8
+ * @internal
9
+ */
6
10
  import type { IJodit, Nullable } from "../../../types";
11
+ /**
12
+ * Checks whether the insertion of an element at the current location is allowed,
13
+ * if it is not allowed, it deletes an empty block element or moves the cursor after it
14
+ * @internal
15
+ */
7
16
  export declare function checkBlockNesting(jodit: IJodit, node: Nullable<Node>): void;
@@ -3,4 +3,8 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
+ /**
7
+ * @module plugins/dtd
8
+ * @internal
9
+ */
6
10
  export * from "./check-block-nesting";
@@ -3,12 +3,24 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
+ /**
7
+ * @module plugins/dtd
8
+ */
6
9
  import type { IDictionary } from "../../types";
7
10
  declare module 'jodit/config' {
8
11
  interface Config {
9
12
  dtd: {
13
+ /**
14
+ * Remove extra br element inside block element after pasting
15
+ */
10
16
  removeExtraBr: boolean;
17
+ /**
18
+ * Check when inserting a block element if it can be inside another block element (according `blockLimits`)
19
+ */
11
20
  checkBlockNesting: boolean;
21
+ /**
22
+ * List of elements that contain other blocks
23
+ */
12
24
  blockLimits: IDictionary<1>;
13
25
  };
14
26
  }
@@ -3,13 +3,24 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
+ /**
7
+ * [[include:plugins/enter/README.md]]
8
+ * @packageDocumentation
9
+ * @module plugins/enter
10
+ */
6
11
  import type { IJodit } from "../../types";
7
12
  import { Plugin } from "../../core/plugin/plugin";
8
13
  import "./interface";
14
+ /**
15
+ * One of most important core plugins. It is responsible for all the browsers to have the same effect when the Enter
16
+ * button is pressed. By default, it should insert the <p>
17
+ */
9
18
  export declare class enter extends Plugin {
19
+ /** @override */
10
20
  protected afterInit(editor: IJodit): void;
11
21
  protected onEnterKeyDown(event: KeyboardEvent): false | void;
12
22
  private onEnter;
13
23
  private __isEmptyListLeaf;
24
+ /** @override */
14
25
  beforeDestruct(editor: IJodit): void;
15
26
  }
@@ -3,5 +3,12 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
+ /**
7
+ * @module plugins/enter
8
+ */
6
9
  import type { IJodit } from "../../../types";
10
+ /**
11
+ * Checks the possibility and necessity of inserting a BR instead of a block
12
+ * @private
13
+ */
7
14
  export declare function checkBR(fake: Text, jodit: IJodit, shiftKeyPressed?: boolean): boolean;
@@ -3,5 +3,12 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
+ /**
7
+ * @module plugins/enter
8
+ */
6
9
  import type { IJodit } from "../../../types";
10
+ /**
11
+ * Inside quote/tables cell, etc. you can't split so just add br
12
+ * @private
13
+ */
7
14
  export declare function checkUnsplittableBox(fake: Text, jodit: IJodit, currentBox: HTMLElement): boolean;
@@ -3,5 +3,12 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
+ /**
7
+ * @module plugins/enter
8
+ */
6
9
  import type { IJodit, Nullable } from "../../../types";
10
+ /**
11
+ * Finds a suitable parent block container
12
+ * @private
13
+ */
7
14
  export declare function getBlockWrapper(fake: Node | null, jodit: IJodit, tagReg?: RegExp): Nullable<HTMLElement>;
@@ -3,5 +3,11 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
+ /**
7
+ * @module plugins/enter
8
+ */
6
9
  import type { IJodit } from "../../../types";
10
+ /**
11
+ * @private
12
+ */
7
13
  export declare function hasPreviousBlock(fake: Text, jodit: IJodit): boolean;