jodit 3.18.8 → 3.19.2

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 (622) hide show
  1. package/README.md +29 -2
  2. package/build/jodit.es2018.en.css +125 -124
  3. package/build/jodit.es2018.en.js +28267 -23413
  4. package/build/plugins/{speech/speech-recognize → speech-recognize}/speech-recognize.es2018.en.css +1 -1
  5. package/build/plugins/{speech/speech-recognize/speech-recognize.js → speech-recognize/speech-recognize.es2018.en.js} +139 -128
  6. package/package.json +22 -22
  7. package/src/config.ts +75 -0
  8. package/src/core/constants.ts +3 -0
  9. package/src/core/dom/dom.ts +34 -0
  10. package/src/core/helpers/helpers.test.js +31 -25
  11. package/src/core/helpers/string/i18n.ts +4 -6
  12. package/src/core/helpers/utils/align.ts +83 -0
  13. package/src/core/helpers/utils/default-language.ts +1 -1
  14. package/src/core/helpers/utils/index.ts +11 -9
  15. package/src/core/helpers/utils/mark-deprecated.ts +1 -1
  16. package/src/core/helpers/utils/parse-query.ts +1 -1
  17. package/src/{plugins/print/helpers.ts → core/helpers/utils/print.ts} +6 -2
  18. package/src/core/helpers/utils/utils.ts +19 -1
  19. package/src/core/plugin/plugin-system.ts +23 -7
  20. package/src/core/request/ajax.ts +9 -3
  21. package/src/core/ui/icon.ts +11 -3
  22. package/src/index.ts +2 -8
  23. package/src/langs/ar.js +0 -4
  24. package/src/langs/cs_cz.js +0 -4
  25. package/src/langs/de.js +0 -4
  26. package/src/langs/es.js +0 -4
  27. package/src/langs/fa.js +0 -4
  28. package/src/langs/fr.js +0 -4
  29. package/src/langs/he.js +0 -4
  30. package/src/langs/hu.js +0 -4
  31. package/src/langs/id.js +0 -4
  32. package/src/langs/index.ts +24 -25
  33. package/src/langs/it.js +0 -4
  34. package/src/langs/ja.js +0 -4
  35. package/src/langs/ko.js +0 -4
  36. package/src/langs/nl.js +0 -4
  37. package/src/langs/pl.js +0 -4
  38. package/src/langs/pt_br.js +0 -4
  39. package/src/langs/ru.js +0 -4
  40. package/src/langs/tr.js +0 -4
  41. package/src/langs/zh_cn.js +0 -4
  42. package/src/langs/zh_tw.js +0 -4
  43. package/src/modules/dialog/dialog.test.js +2 -0
  44. package/src/modules/file-browser/config.ts +3 -2
  45. package/src/modules/file-browser/file-browser.ts +2 -7
  46. package/src/modules/image-editor/config.ts +6 -0
  47. package/src/{styles → modules/image-editor}/icons/crop.svg +0 -0
  48. package/src/{styles → modules/image-editor}/icons/resize.svg +0 -0
  49. package/src/modules/table/table.test.js +0 -906
  50. package/src/modules/widget/color-picker/color-picker.ts +2 -0
  51. package/src/{styles/icons → modules/widget/color-picker}/palette.svg +0 -0
  52. package/src/modules/widget/file-selector/file-selector.ts +1 -1
  53. package/src/{styles/icons → plugins/about}/about.svg +0 -0
  54. package/src/plugins/about/about.ts +6 -1
  55. package/src/plugins/add-new-line/add-new-line.test.js +219 -0
  56. package/src/plugins/add-new-line/add-new-line.ts +3 -0
  57. package/src/plugins/add-new-line/config.ts +3 -0
  58. package/src/{styles/icons → plugins/add-new-line}/enter.svg +0 -0
  59. package/src/plugins/{keyboard/backspace → backspace}/backspace.test.js +0 -0
  60. package/src/plugins/{keyboard/backspace → backspace}/backspace.ts +10 -9
  61. package/src/plugins/{keyboard/backspace → backspace}/cases/check-join-neighbors.ts +7 -4
  62. package/src/plugins/{keyboard/backspace → backspace}/cases/check-join-two-lists.ts +6 -2
  63. package/src/plugins/{keyboard/backspace → backspace}/cases/check-not-collapsed.ts +4 -0
  64. package/src/plugins/{keyboard/backspace → backspace}/cases/check-remove-char.ts +7 -2
  65. package/src/plugins/{keyboard/backspace → backspace}/cases/check-remove-content-not-editable.ts +5 -0
  66. package/src/plugins/{keyboard/backspace → backspace}/cases/check-remove-empty-neighbor.ts +6 -3
  67. package/src/plugins/{keyboard/backspace → backspace}/cases/check-remove-empty-parent.ts +11 -3
  68. package/src/plugins/{keyboard/backspace → backspace}/cases/check-remove-unbreakable-element.ts +7 -2
  69. package/src/plugins/{keyboard/backspace → backspace}/cases/check-table-cell.ts +5 -1
  70. package/src/plugins/{keyboard/backspace → backspace}/cases/check-unwrap-first-list-item.ts +5 -1
  71. package/src/plugins/{keyboard/backspace → backspace}/cases/index.ts +4 -0
  72. package/src/plugins/{keyboard/backspace → backspace}/config.ts +0 -0
  73. package/src/plugins/{keyboard → backspace}/helpers.ts +1 -36
  74. package/src/plugins/{keyboard/backspace → backspace}/interface.d.ts +0 -0
  75. package/src/plugins/bold/bold.ts +11 -0
  76. package/src/{styles → plugins/bold}/icons/bold.svg +0 -0
  77. package/src/{styles → plugins/bold}/icons/italic.svg +0 -0
  78. package/src/{styles → plugins/bold}/icons/strikethrough.svg +0 -0
  79. package/src/{styles → plugins/bold}/icons/subscript.svg +0 -0
  80. package/src/{styles → plugins/bold}/icons/superscript.svg +0 -0
  81. package/src/{styles → plugins/bold}/icons/underline.svg +0 -0
  82. package/src/plugins/class-span/{icon.svg → class-span.svg} +0 -0
  83. package/src/plugins/class-span/class-span.ts +5 -2
  84. package/src/plugins/{fix/clean-html → clean-html}/README.md +0 -0
  85. package/src/plugins/{fix/clean-html → clean-html}/clean-html.test.js +0 -0
  86. package/src/plugins/{fix/clean-html → clean-html}/clean-html.ts +7 -3
  87. package/src/plugins/{fix/clean-html → clean-html}/config.ts +4 -1
  88. package/src/{styles/icons → plugins/clean-html}/eraser.svg +0 -0
  89. package/src/plugins/{fix/clean-html → clean-html}/helpers/get-hash.ts +3 -2
  90. package/src/plugins/{fix/clean-html → clean-html}/helpers/index.ts +1 -1
  91. package/src/plugins/{fix/clean-html → clean-html}/helpers/remove-format/remove-format-for-collapsed-selection.ts +1 -1
  92. package/src/plugins/{fix/clean-html → clean-html}/helpers/remove-format/remove-format-for-selection.ts +3 -3
  93. package/src/plugins/{fix/clean-html → clean-html}/helpers/visitor/filters/allow-attributes.ts +1 -1
  94. package/src/plugins/{fix/clean-html → clean-html}/helpers/visitor/filters/fill-empty-paragraph.ts +1 -1
  95. package/src/plugins/{fix/clean-html → clean-html}/helpers/visitor/filters/index.ts +1 -1
  96. package/src/plugins/{fix/clean-html → clean-html}/helpers/visitor/filters/remove-inv-text-nodes.ts +1 -1
  97. package/src/plugins/{fix/clean-html → clean-html}/helpers/visitor/filters/replace-old-tags.ts +1 -1
  98. package/src/plugins/{fix/clean-html → clean-html}/helpers/visitor/filters/sanitize-attributes.ts +2 -2
  99. package/src/plugins/{fix/clean-html → clean-html}/helpers/visitor/filters/try-remove-node.ts +7 -36
  100. package/src/plugins/{fix/clean-html → clean-html}/helpers/visitor/visit-node-walker.ts +3 -2
  101. package/src/plugins/clipboard/clipboard.ts +19 -10
  102. package/src/plugins/clipboard/config.ts +6 -0
  103. package/src/{styles → plugins/clipboard}/icons/copy.svg +0 -0
  104. package/src/{styles → plugins/clipboard}/icons/cut.svg +0 -0
  105. package/src/{styles → plugins/clipboard}/icons/paste.svg +0 -0
  106. package/src/{styles → plugins/clipboard}/icons/select-all.svg +0 -0
  107. package/src/{styles/icons → plugins/color}/brush.svg +0 -0
  108. package/src/plugins/color/color.ts +6 -169
  109. package/src/plugins/color/config.ts +183 -0
  110. package/src/{styles/icons/copyformat.svg → plugins/copy-format/copy-format.svg} +0 -0
  111. package/src/plugins/copy-format/copy-format.test.js +223 -0
  112. package/src/plugins/{clipboard → copy-format}/copy-format.ts +10 -3
  113. package/src/plugins/copy-format/langs/ar.js +9 -0
  114. package/src/plugins/copy-format/langs/cs_cz.js +9 -0
  115. package/src/plugins/copy-format/langs/de.js +9 -0
  116. package/src/plugins/copy-format/langs/es.js +9 -0
  117. package/src/plugins/copy-format/langs/fa.js +9 -0
  118. package/src/plugins/copy-format/langs/fr.js +9 -0
  119. package/src/plugins/copy-format/langs/he.js +9 -0
  120. package/src/plugins/{speech/speech-recognize → copy-format}/langs/hu.js +1 -3
  121. package/src/plugins/{speech/speech-recognize → copy-format}/langs/id.js +1 -3
  122. package/src/plugins/{speech/speech-recognize → copy-format}/langs/index.ts +0 -0
  123. package/src/plugins/copy-format/langs/it.js +9 -0
  124. package/src/plugins/copy-format/langs/ja.js +9 -0
  125. package/src/plugins/copy-format/langs/ko.js +9 -0
  126. package/src/plugins/copy-format/langs/nl.js +9 -0
  127. package/src/plugins/copy-format/langs/pl.js +9 -0
  128. package/src/plugins/{speech/speech-recognize → copy-format}/langs/pt_br.js +1 -3
  129. package/src/plugins/copy-format/langs/ru.js +9 -0
  130. package/src/plugins/copy-format/langs/tr.js +9 -0
  131. package/src/plugins/{speech/speech-recognize → copy-format}/langs/zh_cn.js +1 -3
  132. package/src/plugins/copy-format/langs/zh_tw.js +9 -0
  133. package/src/plugins/{clipboard/drag-and-drop → drag-and-drop}/drag-and-drop.ts +6 -4
  134. package/src/plugins/drag-and-drop-element/config.ts +22 -0
  135. package/src/plugins/{clipboard/drag-and-drop-element → drag-and-drop-element}/drag-and-drop-element.test.js +0 -0
  136. package/src/plugins/{clipboard/drag-and-drop-element → drag-and-drop-element}/drag-and-drop-element.ts +7 -3
  137. package/src/plugins/{keyboard/enter → enter}/README.md +0 -0
  138. package/src/plugins/{keyboard/enter → enter}/enter.test.js +0 -0
  139. package/src/plugins/{keyboard/enter → enter}/enter.ts +7 -3
  140. package/src/plugins/{keyboard/enter → enter}/helpers/check-br.ts +1 -1
  141. package/src/plugins/{keyboard/enter → enter}/helpers/check-unsplittable-box.ts +1 -1
  142. package/src/plugins/{keyboard/enter → enter}/helpers/get-block-wrapper.ts +1 -1
  143. package/src/plugins/{keyboard/enter → enter}/helpers/has-previous-block.ts +1 -1
  144. package/src/plugins/{keyboard/enter → enter}/helpers/index.ts +1 -1
  145. package/src/plugins/{keyboard/enter → enter}/helpers/insert-paragraph.ts +1 -1
  146. package/src/plugins/{keyboard/enter → enter}/helpers/process-empty-li-leaf.ts +2 -1
  147. package/src/plugins/{keyboard/enter → enter}/helpers/split-fragment.ts +3 -2
  148. package/src/plugins/{keyboard/enter → enter}/helpers/wrap-text.ts +1 -1
  149. package/src/plugins/error-messages/error-messages.ts +3 -0
  150. package/src/plugins/{media → file}/file.ts +5 -2
  151. package/src/plugins/focus/focus.ts +3 -0
  152. package/src/plugins/font/config.ts +151 -0
  153. package/src/plugins/font/font.ts +6 -134
  154. package/src/{styles → plugins/font}/icons/font.svg +0 -0
  155. package/src/{styles → plugins/font}/icons/fontsize.svg +0 -0
  156. package/src/plugins/format-block/format-block.ts +6 -0
  157. package/src/{styles/icons → plugins/format-block}/paragraph.svg +0 -0
  158. package/src/plugins/fullsize/config.ts +73 -0
  159. package/src/plugins/fullsize/fullsize.test.js +35 -0
  160. package/src/plugins/fullsize/fullsize.ts +5 -54
  161. package/src/{styles → plugins/fullsize}/icons/fullsize.svg +0 -0
  162. package/src/{styles → plugins/fullsize}/icons/shrink.svg +0 -0
  163. package/src/plugins/hotkeys/config.ts +38 -0
  164. package/src/plugins/hotkeys/hotkeys.test.js +136 -0
  165. package/src/plugins/{keyboard → hotkeys}/hotkeys.ts +6 -28
  166. package/src/{styles/icons → plugins/hr}/hr.svg +0 -0
  167. package/src/plugins/{insert/insert.test.js → hr/hr.test.js} +0 -0
  168. package/src/plugins/{insert → hr}/hr.ts +7 -1
  169. package/src/plugins/iframe/config.ts +0 -21
  170. package/src/plugins/iframe/iframe.ts +3 -0
  171. package/src/{styles/icons → plugins/image}/image.svg +0 -0
  172. package/src/plugins/image/image.ts +6 -0
  173. package/src/plugins/{image/image-processor → image-processor}/README.md +0 -0
  174. package/src/plugins/{image/image-processor → image-processor}/config.ts +0 -0
  175. package/src/plugins/{image/image-processor → image-processor}/image-processor.ts +5 -2
  176. package/src/plugins/{image/image-properties → image-properties}/config.ts +1 -1
  177. package/src/plugins/{image/image-properties → image-properties}/image-properties.less +1 -1
  178. package/src/plugins/image-properties/image-properties.test.js +548 -0
  179. package/src/plugins/{image/image-properties → image-properties}/image-properties.ts +23 -15
  180. package/src/plugins/{image/image-properties → image-properties}/templates/form.ts +2 -2
  181. package/src/plugins/{image/image-properties → image-properties}/templates/main-tab.ts +2 -2
  182. package/src/plugins/{image/image-properties → image-properties}/templates/position-tab.ts +2 -2
  183. package/src/plugins/indent/config.ts +57 -0
  184. package/src/plugins/indent/helpers.ts +23 -0
  185. package/src/{styles → plugins/indent}/icons/indent.svg +0 -0
  186. package/src/{styles → plugins/indent}/icons/outdent.svg +0 -0
  187. package/src/plugins/indent/indent.ts +6 -48
  188. package/src/plugins/index.ts +61 -53
  189. package/src/plugins/inline-popup/config/config.ts +9 -0
  190. package/src/plugins/inline-popup/config/items/img.ts +10 -7
  191. package/src/{styles → plugins/inline-popup}/icons/addcolumn.svg +0 -0
  192. package/src/{styles → plugins/inline-popup}/icons/addrow.svg +0 -0
  193. package/src/{styles → plugins/inline-popup}/icons/merge.svg +0 -0
  194. package/src/{styles → plugins/inline-popup}/icons/splitg.svg +0 -0
  195. package/src/{styles → plugins/inline-popup}/icons/splitv.svg +0 -0
  196. package/src/{styles → plugins/inline-popup}/icons/th-list.svg +0 -0
  197. package/src/{styles → plugins/inline-popup}/icons/th.svg +0 -0
  198. package/src/plugins/inline-popup/inline-popup.ts +5 -1
  199. package/src/{styles/icons → plugins/justify}/justify.svg +0 -0
  200. package/src/plugins/justify/justify.ts +9 -46
  201. package/src/plugins/{keyboard → key-arrow-outside}/key-arrow-outside.ts +6 -4
  202. package/src/plugins/limit/config.ts +30 -0
  203. package/src/plugins/limit/limit.ts +4 -23
  204. package/src/plugins/line-height/config.ts +3 -1
  205. package/src/plugins/line-height/langs/ar.js +9 -0
  206. package/src/plugins/line-height/langs/cs_cz.js +9 -0
  207. package/src/plugins/line-height/langs/de.js +9 -0
  208. package/src/plugins/line-height/langs/es.js +9 -0
  209. package/src/plugins/line-height/langs/fa.js +9 -0
  210. package/src/plugins/line-height/langs/fr.js +9 -0
  211. package/src/plugins/line-height/langs/he.js +9 -0
  212. package/src/plugins/line-height/langs/hu.js +9 -0
  213. package/src/plugins/line-height/langs/id.js +9 -0
  214. package/src/plugins/line-height/langs/index.ts +47 -0
  215. package/src/plugins/line-height/langs/it.js +9 -0
  216. package/src/plugins/line-height/langs/ja.js +9 -0
  217. package/src/plugins/line-height/langs/ko.js +9 -0
  218. package/src/plugins/line-height/langs/nl.js +9 -0
  219. package/src/plugins/line-height/langs/pl.js +9 -0
  220. package/src/plugins/line-height/langs/pt_br.js +9 -0
  221. package/src/plugins/line-height/langs/ru.js +9 -0
  222. package/src/plugins/line-height/langs/tr.js +9 -0
  223. package/src/plugins/line-height/langs/zh_cn.js +9 -0
  224. package/src/plugins/line-height/langs/zh_tw.js +9 -0
  225. package/src/{styles/icons → plugins/line-height}/line-height.svg +0 -0
  226. package/src/plugins/line-height/line-height.ts +12 -3
  227. package/src/plugins/link/config.ts +6 -0
  228. package/src/{styles → plugins/link}/icons/link.svg +0 -0
  229. package/src/{styles → plugins/link}/icons/unlink.svg +0 -0
  230. package/src/plugins/link/link.ts +5 -1
  231. package/src/plugins/media/config.ts +30 -0
  232. package/src/plugins/media/media.ts +5 -24
  233. package/src/plugins/mobile/mobile.ts +3 -0
  234. package/src/plugins/ordered-list/config.ts +4 -1
  235. package/src/{styles → plugins/ordered-list}/icons/ol.svg +0 -0
  236. package/src/{styles → plugins/ordered-list}/icons/ul.svg +0 -0
  237. package/src/plugins/ordered-list/ordered-list.ts +3 -0
  238. package/src/plugins/{clipboard/paste → paste}/README.md +0 -0
  239. package/src/plugins/{clipboard/paste → paste}/config.ts +5 -12
  240. package/src/plugins/{clipboard/paste → paste}/helpers.ts +6 -25
  241. package/src/plugins/{clipboard/paste → paste}/interface.ts +3 -14
  242. package/src/plugins/{clipboard/paste → paste}/paste.test.js +0 -0
  243. package/src/plugins/{clipboard/paste → paste}/paste.ts +20 -23
  244. package/src/plugins/{clipboard/paste-from-word → paste-from-word}/README.md +0 -0
  245. package/src/plugins/{clipboard/paste-from-word → paste-from-word}/config.ts +2 -3
  246. package/src/plugins/{clipboard/paste-from-word → paste-from-word}/paste-from-word.ts +15 -16
  247. package/src/plugins/{clipboard/paste-storage → paste-storage}/paste-storage.less +1 -1
  248. package/src/plugins/paste-storage/paste-storage.test.js +231 -0
  249. package/src/plugins/{clipboard/paste-storage → paste-storage}/paste-storage.ts +8 -5
  250. package/src/plugins/placeholder/placeholder.ts +4 -1
  251. package/src/plugins/plugins.test.js +0 -2141
  252. package/src/plugins/powered-by-jodit/powered-by-jodit.ts +9 -5
  253. package/src/plugins/{print/preview → preview}/preview.less +1 -1
  254. package/src/plugins/{print/preview → preview}/preview.test.js +0 -0
  255. package/src/plugins/{print/preview → preview}/preview.ts +4 -1
  256. package/src/plugins/print/lib/generate-critical-css.ts +3 -0
  257. package/src/{styles/icons → plugins/print}/print.svg +0 -0
  258. package/src/plugins/print/print.ts +10 -3
  259. package/src/{styles → plugins/redo-undo}/icons/redo.svg +0 -0
  260. package/src/{styles → plugins/redo-undo}/icons/undo.svg +0 -0
  261. package/src/plugins/redo-undo/redo-undo.ts +10 -1
  262. package/src/plugins/resize-cells/config.ts +19 -0
  263. package/src/plugins/resize-cells/resize-cells.less +27 -0
  264. package/src/plugins/resize-cells/resize-cells.test.js +890 -0
  265. package/src/plugins/{table → resize-cells}/resize-cells.ts +10 -4
  266. package/src/plugins/resize-handler/config.ts +21 -0
  267. package/src/plugins/{size → resize-handler}/resize-handler.ts +5 -0
  268. package/src/plugins/resizer/config.ts +1 -1
  269. package/src/plugins/resizer/resizer.ts +6 -2
  270. package/src/plugins/search/config.ts +3 -0
  271. package/src/plugins/search/helpers/sentence-finder.ts +1 -1
  272. package/src/plugins/search/helpers/wrap-ranges-texts-in-tmp-span.ts +1 -1
  273. package/src/{styles/icons → plugins/search}/search.svg +0 -0
  274. package/src/plugins/search/search.ts +7 -3
  275. package/src/plugins/select/config.ts +1 -1
  276. package/src/plugins/select/select.ts +6 -7
  277. package/src/plugins/select-cells/config.ts +19 -0
  278. package/src/plugins/{table → select-cells}/select-cells.ts +10 -5
  279. package/src/plugins/size/config.ts +0 -56
  280. package/src/plugins/size/size.test.js +27 -0
  281. package/src/plugins/size/size.ts +6 -1
  282. package/src/plugins/source/config.ts +9 -7
  283. package/src/plugins/source/editor/engines/ace.ts +8 -5
  284. package/src/plugins/source/editor/engines/area.ts +3 -2
  285. package/src/plugins/source/editor/engines/custom.ts +1 -0
  286. package/src/plugins/source/editor/factory.ts +2 -1
  287. package/src/{styles/icons → plugins/source}/source.svg +0 -0
  288. package/src/plugins/source/source.ts +9 -4
  289. package/src/plugins/{speech/speech-recognize → speech-recognize}/README.md +4 -4
  290. package/src/plugins/{speech/speech-recognize → speech-recognize}/config.ts +5 -3
  291. package/src/plugins/{speech/speech-recognize → speech-recognize}/constants.ts +2 -1
  292. package/src/plugins/{speech/speech-recognize → speech-recognize}/helpers/api.ts +1 -1
  293. package/src/plugins/{speech/speech-recognize → speech-recognize}/helpers/exec-spell-command.ts +1 -1
  294. package/src/plugins/{speech/speech-recognize → speech-recognize}/helpers/recognize-manager.ts +5 -7
  295. package/src/plugins/{speech/speech-recognize → speech-recognize}/helpers/sound.ts +4 -1
  296. package/src/plugins/{speech/speech-recognize → speech-recognize}/interface.ts +1 -1
  297. package/src/plugins/{speech/speech-recognize → speech-recognize}/langs/ar.js +4 -1
  298. package/src/plugins/{speech/speech-recognize → speech-recognize}/langs/cs_cz.js +4 -1
  299. package/src/plugins/{speech/speech-recognize → speech-recognize}/langs/de.js +4 -1
  300. package/src/plugins/{speech/speech-recognize → speech-recognize}/langs/es.js +4 -1
  301. package/src/plugins/{speech/speech-recognize → speech-recognize}/langs/fa.js +4 -1
  302. package/src/plugins/{speech/speech-recognize → speech-recognize}/langs/fr.js +4 -1
  303. package/src/plugins/{speech/speech-recognize → speech-recognize}/langs/he.js +4 -1
  304. package/src/plugins/speech-recognize/langs/hu.js +14 -0
  305. package/src/plugins/speech-recognize/langs/id.js +14 -0
  306. package/src/plugins/speech-recognize/langs/index.ts +47 -0
  307. package/src/plugins/{speech/speech-recognize → speech-recognize}/langs/it.js +4 -1
  308. package/src/plugins/{speech/speech-recognize → speech-recognize}/langs/ja.js +4 -1
  309. package/src/plugins/{speech/speech-recognize → speech-recognize}/langs/ko.js +4 -1
  310. package/src/plugins/{speech/speech-recognize → speech-recognize}/langs/nl.js +4 -1
  311. package/src/plugins/{speech/speech-recognize → speech-recognize}/langs/pl.js +4 -1
  312. package/src/plugins/speech-recognize/langs/pt_br.js +14 -0
  313. package/src/plugins/{speech/speech-recognize → speech-recognize}/langs/ru.js +4 -1
  314. package/src/plugins/{speech/speech-recognize → speech-recognize}/langs/tr.js +4 -1
  315. package/src/plugins/speech-recognize/langs/zh_cn.js +14 -0
  316. package/src/plugins/{speech/speech-recognize → speech-recognize}/langs/zh_tw.js +4 -1
  317. package/src/plugins/{speech/speech-recognize → speech-recognize}/speech-recognize.less +2 -2
  318. package/src/plugins/{speech/speech-recognize/icon.svg → speech-recognize/speech-recognize.svg} +0 -0
  319. package/src/plugins/{speech/speech-recognize → speech-recognize}/speech-recognize.ts +2 -2
  320. package/src/plugins/spellcheck/config.ts +4 -1
  321. package/src/plugins/spellcheck/langs/ar.js +9 -0
  322. package/src/plugins/spellcheck/langs/cs_cz.js +9 -0
  323. package/src/plugins/spellcheck/langs/de.js +9 -0
  324. package/src/plugins/spellcheck/langs/es.js +9 -0
  325. package/src/plugins/spellcheck/langs/fa.js +9 -0
  326. package/src/plugins/spellcheck/langs/fr.js +9 -0
  327. package/src/plugins/spellcheck/langs/he.js +9 -0
  328. package/src/plugins/spellcheck/langs/hu.js +9 -0
  329. package/src/plugins/spellcheck/langs/id.js +9 -0
  330. package/src/plugins/spellcheck/langs/index.ts +47 -0
  331. package/src/plugins/spellcheck/langs/it.js +9 -0
  332. package/src/plugins/spellcheck/langs/ja.js +9 -0
  333. package/src/plugins/spellcheck/langs/ko.js +9 -0
  334. package/src/plugins/spellcheck/langs/nl.js +9 -0
  335. package/src/plugins/spellcheck/langs/pl.js +9 -0
  336. package/src/plugins/spellcheck/langs/pt_br.js +9 -0
  337. package/src/plugins/spellcheck/langs/ru.js +9 -0
  338. package/src/plugins/spellcheck/langs/tr.js +9 -0
  339. package/src/plugins/spellcheck/langs/zh_cn.js +9 -0
  340. package/src/plugins/spellcheck/langs/zh_tw.js +9 -0
  341. package/src/plugins/spellcheck/spellcheck.ts +8 -0
  342. package/src/plugins/stat/config.ts +23 -0
  343. package/src/plugins/stat/stat.ts +6 -14
  344. package/src/plugins/sticky/config.ts +44 -0
  345. package/src/plugins/sticky/sticky.test.js +201 -0
  346. package/src/plugins/sticky/sticky.ts +6 -34
  347. package/src/plugins/symbols/config.ts +4 -2
  348. package/src/plugins/symbols/langs/ar.js +9 -0
  349. package/src/plugins/symbols/langs/cs_cz.js +9 -0
  350. package/src/plugins/symbols/langs/de.js +9 -0
  351. package/src/plugins/symbols/langs/es.js +9 -0
  352. package/src/plugins/symbols/langs/fa.js +9 -0
  353. package/src/plugins/symbols/langs/fr.js +9 -0
  354. package/src/plugins/symbols/langs/he.js +9 -0
  355. package/src/plugins/symbols/langs/hu.js +9 -0
  356. package/src/plugins/symbols/langs/id.js +9 -0
  357. package/src/plugins/symbols/langs/index.ts +47 -0
  358. package/src/plugins/symbols/langs/it.js +9 -0
  359. package/src/plugins/symbols/langs/ja.js +9 -0
  360. package/src/plugins/symbols/langs/ko.js +9 -0
  361. package/src/plugins/symbols/langs/nl.js +9 -0
  362. package/src/plugins/symbols/langs/pl.js +9 -0
  363. package/src/plugins/symbols/langs/pt_br.js +9 -0
  364. package/src/plugins/symbols/langs/ru.js +9 -0
  365. package/src/plugins/symbols/langs/tr.js +9 -0
  366. package/src/plugins/symbols/langs/zh_cn.js +9 -0
  367. package/src/plugins/symbols/langs/zh_tw.js +9 -0
  368. package/src/{styles/icons/omega.svg → plugins/symbols/symbols.svg} +0 -0
  369. package/src/plugins/symbols/symbols.test.js +280 -0
  370. package/src/plugins/symbols/symbols.ts +13 -4
  371. package/src/plugins/{keyboard/tab → tab}/README.md +0 -0
  372. package/src/plugins/{keyboard/tab → tab}/cases/index.ts +1 -1
  373. package/src/plugins/{keyboard/tab → tab}/cases/on-tab-inside-li.ts +3 -2
  374. package/src/plugins/{keyboard/tab → tab}/config.ts +1 -1
  375. package/src/plugins/{keyboard/tab → tab}/tab.test.js +0 -0
  376. package/src/plugins/{keyboard/tab → tab}/tab.ts +7 -4
  377. package/src/plugins/table/config.ts +3 -4
  378. package/src/plugins/table/table.less +0 -26
  379. package/src/{styles/icons → plugins/table}/table.svg +0 -0
  380. package/src/plugins/table/table.ts +7 -0
  381. package/src/plugins/{table → table-keyboard-navigation}/table-keyboard-navigation.ts +5 -2
  382. package/src/plugins/tooltip/tooltip.ts +4 -2
  383. package/src/plugins/{media/video → video}/config.ts +4 -1
  384. package/src/{styles/icons → plugins/video}/video.svg +0 -0
  385. package/src/plugins/{media/video/index.ts → video/video.ts} +6 -2
  386. package/src/plugins/{fix/wrap-nodes → wrap-nodes}/README.md +0 -0
  387. package/src/plugins/{fix/wrap-nodes → wrap-nodes}/config.ts +1 -1
  388. package/src/plugins/{fix/wrap-nodes → wrap-nodes}/wrap-nodes.test.js +0 -0
  389. package/src/plugins/{fix/wrap-nodes → wrap-nodes}/wrap-nodes.ts +6 -3
  390. package/src/plugins/xpath/config.ts +19 -0
  391. package/src/plugins/xpath/xpath.test.js +182 -0
  392. package/src/plugins/xpath/xpath.ts +9 -13
  393. package/src/styles/icons/index.ts +2 -114
  394. package/src/types/ajax.d.ts +7 -4
  395. package/src/types/file-browser.d.ts +5 -1
  396. package/src/types/index.d.ts +1 -1
  397. package/src/types/plugin.d.ts +1 -1
  398. package/src/types/types.d.ts +7 -0
  399. package/src/types/uploader.d.ts +6 -2
  400. package/tsconfig.json +8 -12
  401. package/types/config.d.ts +69 -1
  402. package/types/core/constants.d.ts +2 -0
  403. package/types/core/dom/dom.d.ts +8 -0
  404. package/types/core/helpers/utils/align.d.ts +18 -0
  405. package/types/core/helpers/utils/index.d.ts +11 -9
  406. package/types/core/helpers/utils/mark-deprecated.d.ts +1 -1
  407. package/types/{plugins/print/helpers.d.ts → core/helpers/utils/print.d.ts} +0 -0
  408. package/types/core/helpers/utils/utils.d.ts +5 -1
  409. package/types/index.d.ts +1 -0
  410. package/types/modules/file-browser/file-browser.d.ts +1 -4
  411. package/types/plugins/about/about.d.ts +0 -2
  412. package/types/plugins/{keyboard/backspace → backspace}/backspace.d.ts +2 -5
  413. package/types/plugins/{keyboard/backspace → backspace}/cases/check-join-neighbors.d.ts +3 -0
  414. package/types/plugins/{keyboard/backspace → backspace}/cases/check-join-two-lists.d.ts +3 -0
  415. package/types/plugins/{keyboard/backspace → backspace}/cases/check-not-collapsed.d.ts +3 -0
  416. package/types/plugins/{keyboard/backspace → backspace}/cases/check-remove-char.d.ts +4 -1
  417. package/types/plugins/{keyboard/backspace → backspace}/cases/check-remove-content-not-editable.d.ts +3 -0
  418. package/types/plugins/{keyboard/backspace → backspace}/cases/check-remove-empty-neighbor.d.ts +3 -0
  419. package/types/plugins/{keyboard/backspace → backspace}/cases/check-remove-empty-parent.d.ts +3 -0
  420. package/types/plugins/{keyboard/backspace → backspace}/cases/check-remove-unbreakable-element.d.ts +3 -0
  421. package/types/plugins/{keyboard/backspace → backspace}/cases/check-table-cell.d.ts +3 -0
  422. package/types/plugins/{keyboard/backspace → backspace}/cases/check-unwrap-first-list-item.d.ts +3 -0
  423. package/types/plugins/{keyboard/backspace → backspace}/cases/index.d.ts +0 -0
  424. package/types/plugins/{keyboard/backspace → backspace}/config.d.ts +0 -0
  425. package/types/plugins/{keyboard → backspace}/helpers.d.ts +0 -8
  426. package/types/plugins/{fix/clean-html → clean-html}/clean-html.d.ts +2 -2
  427. package/types/plugins/{fix/clean-html → clean-html}/config.d.ts +1 -1
  428. package/types/plugins/{fix/clean-html → clean-html}/helpers/get-hash.d.ts +1 -1
  429. package/types/plugins/{fix/clean-html → clean-html}/helpers/index.d.ts +1 -1
  430. package/types/plugins/{fix/clean-html → clean-html}/helpers/remove-format/remove-format-for-collapsed-selection.d.ts +1 -1
  431. package/types/plugins/{fix/clean-html → clean-html}/helpers/remove-format/remove-format-for-selection.d.ts +1 -1
  432. package/types/plugins/{fix/clean-html → clean-html}/helpers/visitor/filters/allow-attributes.d.ts +1 -1
  433. package/types/plugins/{fix/clean-html → clean-html}/helpers/visitor/filters/fill-empty-paragraph.d.ts +1 -1
  434. package/types/plugins/{fix/clean-html → clean-html}/helpers/visitor/filters/index.d.ts +1 -1
  435. package/types/plugins/{fix/clean-html → clean-html}/helpers/visitor/filters/remove-inv-text-nodes.d.ts +1 -1
  436. package/types/plugins/{fix/clean-html → clean-html}/helpers/visitor/filters/replace-old-tags.d.ts +1 -1
  437. package/types/plugins/{fix/clean-html → clean-html}/helpers/visitor/filters/sanitize-attributes.d.ts +1 -1
  438. package/types/plugins/{fix/clean-html → clean-html}/helpers/visitor/filters/try-remove-node.d.ts +4 -1
  439. package/types/plugins/{fix/clean-html → clean-html}/helpers/visitor/visit-node-walker.d.ts +1 -1
  440. package/types/plugins/clipboard/clipboard.d.ts +1 -1
  441. package/types/plugins/color/color.d.ts +1 -0
  442. package/types/plugins/{media/video → color}/config.d.ts +0 -0
  443. package/types/plugins/{clipboard → copy-format}/copy-format.d.ts +0 -0
  444. package/types/plugins/{clipboard/drag-and-drop → drag-and-drop}/drag-and-drop.d.ts +1 -1
  445. package/types/plugins/drag-and-drop-element/config.d.ts +14 -0
  446. package/types/plugins/{clipboard/drag-and-drop-element → drag-and-drop-element}/drag-and-drop-element.d.ts +2 -1
  447. package/types/plugins/{keyboard/enter → enter}/enter.d.ts +1 -1
  448. package/types/plugins/{keyboard/enter → enter}/helpers/check-br.d.ts +1 -1
  449. package/types/plugins/{keyboard/enter → enter}/helpers/check-unsplittable-box.d.ts +1 -1
  450. package/types/plugins/{keyboard/enter → enter}/helpers/get-block-wrapper.d.ts +1 -1
  451. package/types/plugins/{keyboard/enter → enter}/helpers/has-previous-block.d.ts +1 -1
  452. package/types/plugins/{keyboard/enter → enter}/helpers/index.d.ts +1 -1
  453. package/types/plugins/{keyboard/enter → enter}/helpers/insert-paragraph.d.ts +1 -1
  454. package/types/plugins/{keyboard/enter → enter}/helpers/process-empty-li-leaf.d.ts +1 -1
  455. package/types/plugins/{keyboard/enter → enter}/helpers/split-fragment.d.ts +1 -1
  456. package/types/plugins/{keyboard/enter → enter}/helpers/wrap-text.d.ts +1 -1
  457. package/types/plugins/{media → file}/file.d.ts +1 -1
  458. package/types/plugins/font/config.d.ts +11 -0
  459. package/types/plugins/font/font.d.ts +1 -5
  460. package/types/plugins/fullsize/config.d.ts +34 -0
  461. package/types/plugins/fullsize/fullsize.d.ts +1 -25
  462. package/types/plugins/hotkeys/config.d.ts +14 -0
  463. package/types/plugins/{keyboard → hotkeys}/hotkeys.d.ts +3 -7
  464. package/types/plugins/{insert → hr}/hr.d.ts +1 -1
  465. package/types/plugins/iframe/config.d.ts +0 -17
  466. package/types/plugins/{image/image-processor → image-processor}/config.d.ts +0 -0
  467. package/types/plugins/{image/image-processor → image-processor}/image-processor.d.ts +1 -1
  468. package/types/plugins/{image/image-properties → image-properties}/config.d.ts +0 -0
  469. package/types/plugins/{image/image-properties → image-properties}/image-properties.d.ts +5 -5
  470. package/types/plugins/{image/image-properties → image-properties}/templates/form.d.ts +1 -1
  471. package/types/plugins/{image/image-properties → image-properties}/templates/main-tab.d.ts +1 -1
  472. package/types/plugins/{image/image-properties → image-properties}/templates/position-tab.d.ts +1 -1
  473. package/types/plugins/indent/config.d.ts +14 -0
  474. package/types/plugins/{image → indent}/helpers.d.ts +3 -2
  475. package/types/plugins/indent/indent.d.ts +1 -8
  476. package/types/plugins/index.d.ts +61 -45
  477. package/types/plugins/inline-popup/inline-popup.d.ts +1 -1
  478. package/types/plugins/justify/justify.d.ts +0 -8
  479. package/types/plugins/{keyboard → key-arrow-outside}/key-arrow-outside.d.ts +1 -1
  480. package/types/plugins/limit/config.d.ts +22 -0
  481. package/types/plugins/limit/limit.d.ts +1 -16
  482. package/types/plugins/line-height/line-height.d.ts +1 -0
  483. package/types/plugins/media/config.d.ts +22 -0
  484. package/types/plugins/media/media.d.ts +1 -16
  485. package/types/plugins/{clipboard/paste → paste}/config.d.ts +1 -7
  486. package/types/plugins/{clipboard/paste → paste}/helpers.d.ts +3 -7
  487. package/types/plugins/{clipboard/paste → paste}/interface.d.ts +2 -3
  488. package/types/plugins/{clipboard/paste → paste}/paste.d.ts +5 -5
  489. package/types/plugins/{clipboard/paste-from-word → paste-from-word}/config.d.ts +2 -3
  490. package/types/plugins/{clipboard/paste-from-word → paste-from-word}/paste-from-word.d.ts +5 -5
  491. package/types/plugins/{clipboard/paste-storage → paste-storage}/paste-storage.d.ts +2 -2
  492. package/types/plugins/placeholder/placeholder.d.ts +1 -1
  493. package/types/plugins/{print/preview → preview}/preview.d.ts +0 -0
  494. package/types/plugins/print/lib/generate-critical-css.d.ts +3 -0
  495. package/types/plugins/redo-undo/redo-undo.d.ts +1 -1
  496. package/types/plugins/resize-cells/config.d.ts +11 -0
  497. package/types/plugins/{table → resize-cells}/resize-cells.d.ts +4 -3
  498. package/types/plugins/resize-handler/config.d.ts +12 -0
  499. package/types/plugins/{size → resize-handler}/resize-handler.d.ts +1 -0
  500. package/types/plugins/resizer/resizer.d.ts +1 -1
  501. package/types/plugins/select/select.d.ts +0 -2
  502. package/types/plugins/select-cells/config.d.ts +11 -0
  503. package/types/plugins/{table → select-cells}/select-cells.d.ts +2 -1
  504. package/types/plugins/size/config.d.ts +0 -4
  505. package/types/plugins/size/size.d.ts +2 -1
  506. package/types/plugins/source/source.d.ts +1 -0
  507. package/types/plugins/spellcheck/spellcheck.d.ts +1 -0
  508. package/types/plugins/stat/config.d.ts +16 -0
  509. package/types/plugins/stat/stat.d.ts +2 -8
  510. package/types/plugins/sticky/config.d.ts +32 -0
  511. package/types/plugins/sticky/sticky.d.ts +2 -27
  512. package/types/plugins/symbols/symbols.d.ts +3 -2
  513. package/types/plugins/{keyboard/tab → tab}/cases/index.d.ts +1 -1
  514. package/types/plugins/{keyboard/tab → tab}/cases/on-tab-inside-li.d.ts +2 -1
  515. package/types/plugins/{keyboard/tab → tab}/config.d.ts +0 -0
  516. package/types/plugins/{insert/index.d.ts → tab/tab.d.ts} +1 -4
  517. package/types/plugins/table/config.d.ts +0 -2
  518. package/types/plugins/table/table.d.ts +2 -0
  519. package/types/plugins/{table → table-keyboard-navigation}/table-keyboard-navigation.d.ts +0 -0
  520. package/types/plugins/tooltip/tooltip.d.ts +0 -13
  521. package/{src/plugins/insert/index.ts → types/plugins/video/config.d.ts} +1 -6
  522. package/types/plugins/video/video.d.ts +6 -0
  523. package/types/plugins/{fix/wrap-nodes → wrap-nodes}/config.d.ts +1 -1
  524. package/types/plugins/wrap-nodes/wrap-nodes.d.ts +6 -0
  525. package/types/plugins/xpath/config.d.ts +11 -0
  526. package/types/plugins/xpath/xpath.d.ts +1 -24
  527. package/types/styles/icons/index.d.ts +1 -57
  528. package/types/types/ajax.d.ts +7 -4
  529. package/types/types/file-browser.d.ts +5 -1
  530. package/types/types/index.d.ts +1 -1
  531. package/types/types/plugin.d.ts +1 -1
  532. package/types/types/types.d.ts +7 -0
  533. package/types/types/uploader.d.ts +6 -2
  534. package/.github/ISSUE_TEMPLATE.md +0 -18
  535. package/.github/PULL_REQUEST_TEMPLATE.md +0 -14
  536. package/.github/workflows/docs.yml +0 -16
  537. package/.github/workflows/tests.yml +0 -22
  538. package/.idea/codeStyles/Project.xml +0 -68
  539. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  540. package/.idea/dictionaries/v_chupurnov.xml +0 -12
  541. package/.idea/encodings.xml +0 -4
  542. package/.idea/inspectionProfiles/Project_Default.xml +0 -118
  543. package/.idea/jodit.iml +0 -12
  544. package/.idea/jsLibraryMappings.xml +0 -6
  545. package/.idea/markdown-navigator-enh.xml +0 -29
  546. package/.idea/markdown-navigator.xml +0 -55
  547. package/.idea/misc.xml +0 -6
  548. package/.idea/modules.xml +0 -8
  549. package/.idea/prettier.xml +0 -6
  550. package/.idea/stylesheetLinters/stylelint.xml +0 -6
  551. package/.idea/vcs.xml +0 -6
  552. package/.idea/watcherTasks.xml +0 -4
  553. package/.idea/workspace.xml +0 -1521
  554. package/CHANGELOG.MD +0 -3280
  555. package/CONTRIBUTING.md +0 -100
  556. package/SECURITY.md +0 -10
  557. package/build/jodit.css +0 -5866
  558. package/build/jodit.es2018.css +0 -4822
  559. package/build/jodit.es2018.en.min.css +0 -1
  560. package/build/jodit.es2018.en.min.js +0 -1
  561. package/build/jodit.es2018.js +0 -34937
  562. package/build/jodit.es2018.min.css +0 -1
  563. package/build/jodit.es2018.min.js +0 -1
  564. package/build/jodit.js +0 -42539
  565. package/build/jodit.min.css +0 -8
  566. package/build/jodit.min.js +0 -1
  567. package/build/plugins/speech/speech-recognize/speech-recognize.css +0 -39
  568. package/build/plugins/speech/speech-recognize/speech-recognize.es2018.css +0 -39
  569. package/build/plugins/speech/speech-recognize/speech-recognize.es2018.en.js +0 -920
  570. package/build/plugins/speech/speech-recognize/speech-recognize.es2018.en.min.css +0 -1
  571. package/build/plugins/speech/speech-recognize/speech-recognize.es2018.en.min.js +0 -1
  572. package/build/plugins/speech/speech-recognize/speech-recognize.es2018.js +0 -920
  573. package/build/plugins/speech/speech-recognize/speech-recognize.es2018.min.css +0 -1
  574. package/build/plugins/speech/speech-recognize/speech-recognize.es2018.min.js +0 -1
  575. package/build/plugins/speech/speech-recognize/speech-recognize.min.css +0 -1
  576. package/build/plugins/speech/speech-recognize/speech-recognize.min.js +0 -1
  577. package/build/vdom.css +0 -18
  578. package/build/vdom.js +0 -1297
  579. package/src/plugins/clipboard/index.ts +0 -18
  580. package/src/plugins/clipboard/paste/CHANGELOG.md +0 -21
  581. package/src/plugins/fix/index.ts +0 -12
  582. package/src/plugins/format-block/CHANGELOG.md +0 -16
  583. package/src/plugins/image/helpers.ts +0 -44
  584. package/src/plugins/image/image-properties/templates/index.ts +0 -13
  585. package/src/plugins/image/index.ts +0 -13
  586. package/src/plugins/media/index.ts +0 -13
  587. package/src/plugins/print/index.ts +0 -12
  588. package/src/plugins/size/index.ts +0 -13
  589. package/src/plugins/source/const.ts +0 -11
  590. package/src/plugins/source/index.ts +0 -14
  591. package/src/plugins/table/index.ts +0 -15
  592. package/src/styles/icons/arrows-alt.svg +0 -4
  593. package/src/styles/icons/arrows-h.svg +0 -4
  594. package/src/styles/icons/attachment.svg +0 -4
  595. package/src/styles/icons/chain-broken.svg +0 -4
  596. package/src/styles/icons/check-square.svg +0 -1
  597. package/src/styles/icons/dedent.svg +0 -4
  598. package/src/styles/icons/menu.svg +0 -1
  599. package/src/styles/icons/resizer.svg +0 -4
  600. package/tsdoc.json +0 -30
  601. package/types/core/decorators/spy/spy.d.ts +0 -9
  602. package/types/plugins/clipboard/index.d.ts +0 -16
  603. package/types/plugins/fix/index.d.ts +0 -10
  604. package/types/plugins/fix/wrap-nodes/wrap-nodes.d.ts +0 -39
  605. package/types/plugins/image/image-properties/templates/index.d.ts +0 -11
  606. package/types/plugins/image/index.d.ts +0 -11
  607. package/types/plugins/keyboard/tab/tab.d.ts +0 -18
  608. package/types/plugins/media/index.d.ts +0 -11
  609. package/types/plugins/media/video/index.d.ts +0 -11
  610. package/types/plugins/print/index.d.ts +0 -10
  611. package/types/plugins/size/index.d.ts +0 -11
  612. package/types/plugins/source/const.d.ts +0 -9
  613. package/types/plugins/source/index.d.ts +0 -12
  614. package/types/plugins/speech/speech-recognize/config.d.ts +0 -60
  615. package/types/plugins/speech/speech-recognize/constants.d.ts +0 -10
  616. package/types/plugins/speech/speech-recognize/helpers/api.d.ts +0 -10
  617. package/types/plugins/speech/speech-recognize/helpers/exec-spell-command.d.ts +0 -10
  618. package/types/plugins/speech/speech-recognize/helpers/recognize-manager.d.ts +0 -48
  619. package/types/plugins/speech/speech-recognize/helpers/sound.d.ts +0 -11
  620. package/types/plugins/speech/speech-recognize/interface.d.ts +0 -42
  621. package/types/plugins/speech/speech-recognize/speech-recognize.d.ts +0 -24
  622. package/types/plugins/table/index.d.ts +0 -13
@@ -1,18 +0,0 @@
1
- /*!
2
- * Jodit Editor (https://xdsoft.net/jodit/)
3
- * Released under MIT see LICENSE.txt in the project root for license information.
4
- * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
- */
6
-
7
- /**
8
- * @module plugins/clipboard
9
- */
10
-
11
- import './config';
12
- export * from './clipboard';
13
- export * from './paste/paste';
14
- export * from './paste-from-word/paste-from-word';
15
- export * from './paste-storage/paste-storage';
16
- export * from './copy-format';
17
- export * from './drag-and-drop/drag-and-drop';
18
- export * from './drag-and-drop-element/drag-and-drop-element';
@@ -1,21 +0,0 @@
1
- # Changelog
2
-
3
- > **Tags:**
4
- >
5
- > - :boom: [Breaking Change]
6
- > - :rocket: [New Feature]
7
- > - :bug: [Bug Fix]
8
- > - :memo: [Documentation]
9
- > - :house: [Internal]
10
- > - :nail_care: [Polish]
11
-
12
- ## (2022-06-04) @xdan
13
-
14
- - [Multiple modals 'Paste as HTML' after longer pressing ctrl+v #849](https://github.com/xdan/jodit/issues/849)
15
-
16
- ## (2022-01-06) @xdan
17
-
18
- #### :rocket: New Feature
19
-
20
- Added `memorizeChoiceWhenPasteFragment` option: When the user inserts a piece of HTML, the plugin will ask - How to insert it.
21
- If after that user insert the same fragment again, the previous option will be used without extra question.
@@ -1,12 +0,0 @@
1
- /*!
2
- * Jodit Editor (https://xdsoft.net/jodit/)
3
- * Released under MIT see LICENSE.txt in the project root for license information.
4
- * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
- */
6
-
7
- /**
8
- * @module plugins/fix
9
- */
10
-
11
- export * from './clean-html/clean-html';
12
- export * from './wrap-nodes/wrap-nodes';
@@ -1,16 +0,0 @@
1
- # Changelog
2
-
3
- > **Tags:**
4
- >
5
- > - :boom: [Breaking Change]
6
- > - :rocket: [New Feature]
7
- > - :bug: [Bug Fix]
8
- > - :memo: [Documentation]
9
- > - :house: [Internal]
10
- > - :nail_care: [Polish]
11
-
12
- ## (2022-01-06) @xdan
13
-
14
- #### :rocket: New Feature
15
-
16
- Added PRE tag to the list of items
@@ -1,44 +0,0 @@
1
- /*!
2
- * Jodit Editor (https://xdsoft.net/jodit/)
3
- * Released under MIT see LICENSE.txt in the project root for license information.
4
- * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
- */
6
-
7
- /**
8
- * @module plugins/image
9
- */
10
-
11
- import { clearCenterAlign, css } from 'jodit/core/helpers';
12
-
13
- /**
14
- * Align image
15
- */
16
- export const hAlignElement = (
17
- image: HTMLElement,
18
- align: 'normal' | 'left' | 'right' | 'center' | ''
19
- ): void => {
20
- if (align && align !== 'normal') {
21
- if (align !== 'center') {
22
- css(image, 'float', align);
23
- clearCenterAlign(image);
24
- } else {
25
- css(image, {
26
- float: '',
27
- display: 'block',
28
- marginLeft: 'auto',
29
- marginRight: 'auto'
30
- });
31
- }
32
- } else {
33
- if (
34
- css(image, 'float') &&
35
- ['right', 'left'].indexOf(
36
- css(image, 'float').toString().toLowerCase()
37
- ) !== -1
38
- ) {
39
- css(image, 'float', '');
40
- }
41
-
42
- clearCenterAlign(image);
43
- }
44
- };
@@ -1,13 +0,0 @@
1
- /*!
2
- * Jodit Editor (https://xdsoft.net/jodit/)
3
- * Released under MIT see LICENSE.txt in the project root for license information.
4
- * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
- */
6
-
7
- /**
8
- * @module plugins/image/image-properties
9
- */
10
-
11
- export * from './form';
12
- export * from './main-tab';
13
- export * from './position-tab';
@@ -1,13 +0,0 @@
1
- /*!
2
- * Jodit Editor (https://xdsoft.net/jodit/)
3
- * Released under MIT see LICENSE.txt in the project root for license information.
4
- * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
- */
6
-
7
- /**
8
- * @module plugins/image
9
- */
10
-
11
- export * from './image-properties/image-properties';
12
- export * from './image-processor/image-processor';
13
- export * from './image';
@@ -1,13 +0,0 @@
1
- /*!
2
- * Jodit Editor (https://xdsoft.net/jodit/)
3
- * Released under MIT see LICENSE.txt in the project root for license information.
4
- * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
- */
6
-
7
- /**
8
- * @module plugins/media
9
- */
10
-
11
- export * from './media';
12
- export * from './video';
13
- export * from './file';
@@ -1,12 +0,0 @@
1
- /*!
2
- * Jodit Editor (https://xdsoft.net/jodit/)
3
- * Released under MIT see LICENSE.txt in the project root for license information.
4
- * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
- */
6
-
7
- /**
8
- * @module plugins/print
9
- */
10
-
11
- export * from './preview/preview';
12
- export * from './print';
@@ -1,13 +0,0 @@
1
- /*!
2
- * Jodit Editor (https://xdsoft.net/jodit/)
3
- * Released under MIT see LICENSE.txt in the project root for license information.
4
- * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
- */
6
-
7
- /**
8
- * @module plugins/size
9
- */
10
-
11
- import './config';
12
- export * from './resize-handler';
13
- export * from './size';
@@ -1,11 +0,0 @@
1
- /*!
2
- * Jodit Editor (https://xdsoft.net/jodit/)
3
- * Released under MIT see LICENSE.txt in the project root for license information.
4
- * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
- */
6
-
7
- /**
8
- * @module plugins/source
9
- */
10
-
11
- export const SOURCE_CONSUMER = 'source-consumer';
@@ -1,14 +0,0 @@
1
- /*!
2
- * Jodit Editor (https://xdsoft.net/jodit/)
3
- * Released under MIT see LICENSE.txt in the project root for license information.
4
- * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
- */
6
-
7
- /**
8
- * [[include:plugins/source/README.md]]
9
- * @packageDocumentation
10
- * @module plugins/source
11
- */
12
-
13
- import './config';
14
- export * from './source';
@@ -1,15 +0,0 @@
1
- /*!
2
- * Jodit Editor (https://xdsoft.net/jodit/)
3
- * Released under MIT see LICENSE.txt in the project root for license information.
4
- * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
- */
6
-
7
- /**
8
- * @module plugins/table
9
- */
10
-
11
- import './config';
12
- export * from './resize-cells';
13
- export * from './select-cells';
14
- export * from './table-keyboard-navigation';
15
- export * from './table';
@@ -1,4 +0,0 @@
1
- <svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792">
2
- <path
3
- d="M1411 541l-355 355 355 355 144-144q29-31 70-14 39 17 39 59v448q0 26-19 45t-45 19h-448q-42 0-59-40-17-39 14-69l144-144-355-355-355 355 144 144q31 30 14 69-17 40-59 40h-448q-26 0-45-19t-19-45v-448q0-42 40-59 39-17 69 14l144 144 355-355-355-355-144 144q-19 19-45 19-12 0-24-5-40-17-40-59v-448q0-26 19-45t45-19h448q42 0 59 40 17 39-14 69l-144 144 355 355 355-355-144-144q-31-30-14-69 17-40 59-40h448q26 0 45 19t19 45v448q0 42-39 59-13 5-25 5-26 0-45-19z"/>
4
- </svg>
@@ -1,4 +0,0 @@
1
- <svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792">
2
- <path
3
- d="M1792 896q0 26-19 45l-256 256q-19 19-45 19t-45-19-19-45v-128h-1024v128q0 26-19 45t-45 19-45-19l-256-256q-19-19-19-45t19-45l256-256q19-19 45-19t45 19 19 45v128h1024v-128q0-26 19-45t45-19 45 19l256 256q19 19 19 45z"/>
4
- </svg>
@@ -1,4 +0,0 @@
1
- <svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792">
2
- <path
3
- d="M1596 1385q0 117-79 196t-196 79q-135 0-235-100l-777-776q-113-115-113-271 0-159 110-270t269-111q158 0 273 113l605 606q10 10 10 22 0 16-30.5 46.5t-46.5 30.5q-13 0-23-10l-606-607q-79-77-181-77-106 0-179 75t-73 181q0 105 76 181l776 777q63 63 145 63 64 0 106-42t42-106q0-82-63-145l-581-581q-26-24-60-24-29 0-48 19t-19 48q0 32 25 59l410 410q10 10 10 22 0 16-31 47t-47 31q-12 0-22-10l-410-410q-63-61-63-149 0-82 57-139t139-57q88 0 149 63l581 581q100 98 100 235z"/>
4
- </svg>
@@ -1,4 +0,0 @@
1
- <svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792">
2
- <path
3
- d="M503 1271l-256 256q-10 9-23 9-12 0-23-9-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23zm169 41v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm-224-224q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm1264 128q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-334-335q-21-21-42-56l239-18 273 274q27 27 68 27.5t68-26.5l147-146q28-28 28-67 0-40-28-68l-274-275 18-239q35 21 56 42l336 336q84 86 84 204zm-617-724l-239 18-273-274q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l274 274-18 240q-35-21-56-42l-336-336q-84-86-84-204 0-120 85-203l147-146q83-83 203-83 121 0 204 85l334 335q21 21 42 56zm633 84q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm-544-544v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm407 151l-256 256q-11 9-23 9t-23-9q-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23z"/>
4
- </svg>
@@ -1 +0,0 @@
1
- <svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"><path d="M813 1299l614-614q19-19 19-45t-19-45l-102-102q-19-19-45-19t-45 19l-467 467-211-211q-19-19-45-19t-45 19l-102 102q-19 19-19 45t19 45l358 358q19 19 45 19t45-19zm851-883v960q0 119-84.5 203.5t-203.5 84.5h-960q-119 0-203.5-84.5t-84.5-203.5v-960q0-119 84.5-203.5t203.5-84.5h960q119 0 203.5 84.5t84.5 203.5z"/></svg>
@@ -1,4 +0,0 @@
1
- <svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792">
2
- <path
3
- d="M384 544v576q0 13-9.5 22.5t-22.5 9.5q-14 0-23-9l-288-288q-9-9-9-23t9-23l288-288q9-9 23-9 13 0 22.5 9.5t9.5 22.5zm1408 768v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/>
4
- </svg>
@@ -1 +0,0 @@
1
- <svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"><path d="M1664 1344v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm0-512v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm0-512v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45z"/></svg>
@@ -1,4 +0,0 @@
1
- <svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792">
2
- <path
3
- d="M844 472q0 60-19 113.5t-63 92.5-105 39q-76 0-138-57.5t-92-135.5-30-151q0-60 19-113.5t63-92.5 105-39q77 0 138.5 57.5t91.5 135 30 151.5zm-342 483q0 80-42 139t-119 59q-76 0-141.5-55.5t-100.5-133.5-35-152q0-80 42-139.5t119-59.5q76 0 141.5 55.5t100.5 134 35 152.5zm394-27q118 0 255 97.5t229 237 92 254.5q0 46-17 76.5t-48.5 45-64.5 20-76 5.5q-68 0-187.5-45t-182.5-45q-66 0-192.5 44.5t-200.5 44.5q-183 0-183-146 0-86 56-191.5t139.5-192.5 187.5-146 193-59zm239-211q-61 0-105-39t-63-92.5-19-113.5q0-74 30-151.5t91.5-135 138.5-57.5q61 0 105 39t63 92.5 19 113.5q0 73-30 151t-92 135.5-138 57.5zm432-104q77 0 119 59.5t42 139.5q0 74-35 152t-100.5 133.5-141.5 55.5q-77 0-119-59t-42-139q0-74 35-152.5t100.5-134 141.5-55.5z"/>
4
- </svg>
package/tsdoc.json DELETED
@@ -1,30 +0,0 @@
1
- {
2
- "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
3
- "tagDefinitions": [
4
- {
5
- "tagName": "@module",
6
- "syntaxKind": "block",
7
- "allowMultiple": false
8
- },
9
- {
10
- "tagName": "@default",
11
- "syntaxKind": "block",
12
- "allowMultiple": false
13
- },
14
- {
15
- "tagName": "@event",
16
- "syntaxKind": "block",
17
- "allowMultiple": true
18
- },
19
- {
20
- "tagName": "@private",
21
- "syntaxKind": "block",
22
- "allowMultiple": false
23
- },
24
- {
25
- "tagName": "@property",
26
- "syntaxKind": "block",
27
- "allowMultiple": false
28
- }
29
- ]
30
- }
@@ -1,9 +0,0 @@
1
- /*!
2
- * Jodit Editor (https://xdsoft.net/jodit/)
3
- * Released under MIT see LICENSE.txt in the project root for license information.
4
- * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
- */
6
- /**
7
- * Allow spy for the class
8
- */
9
- export declare function spy(target: Function): void;
@@ -1,16 +0,0 @@
1
- /*!
2
- * Jodit Editor (https://xdsoft.net/jodit/)
3
- * Released under MIT see LICENSE.txt in the project root for license information.
4
- * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
- */
6
- /**
7
- * @module plugins/clipboard
8
- */
9
- import './config';
10
- export * from './clipboard';
11
- export * from './paste/paste';
12
- export * from './paste-from-word/paste-from-word';
13
- export * from './paste-storage/paste-storage';
14
- export * from './copy-format';
15
- export * from './drag-and-drop/drag-and-drop';
16
- export * from './drag-and-drop-element/drag-and-drop-element';
@@ -1,10 +0,0 @@
1
- /*!
2
- * Jodit Editor (https://xdsoft.net/jodit/)
3
- * Released under MIT see LICENSE.txt in the project root for license information.
4
- * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
- */
6
- /**
7
- * @module plugins/fix
8
- */
9
- export * from './clean-html/clean-html';
10
- export * from './wrap-nodes/wrap-nodes';
@@ -1,39 +0,0 @@
1
- /*!
2
- * Jodit Editor (https://xdsoft.net/jodit/)
3
- * Released under MIT see LICENSE.txt in the project root for license information.
4
- * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
- */
6
- /**
7
- * [[include:plugins/fix/wrap-nodes/README.md]]
8
- * @packageDocumentation
9
- * @module plugins/fix/wrap-nodes
10
- */
11
- import type { IJodit } from 'jodit/types';
12
- import { Plugin } from 'jodit/core/plugin';
13
- import './config';
14
- /**
15
- * Wrap single text nodes in block wrapper
16
- */
17
- export declare class WrapNodes extends Plugin {
18
- /** @override **/
19
- protected afterInit(jodit: IJodit): void;
20
- /** @override **/
21
- protected beforeDestruct(jodit: IJodit): void;
22
- /**
23
- * Process changed value
24
- */
25
- private postProcessSetEditorValue;
26
- private checkAloneListLeaf;
27
- /**
28
- * Found Node which should be wrapped
29
- */
30
- private isSuitableStart;
31
- /**
32
- * Node should add in block element
33
- */
34
- private isSuitable;
35
- /**
36
- * Some element which need append in block
37
- */
38
- private isNotClosed;
39
- }
@@ -1,11 +0,0 @@
1
- /*!
2
- * Jodit Editor (https://xdsoft.net/jodit/)
3
- * Released under MIT see LICENSE.txt in the project root for license information.
4
- * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
- */
6
- /**
7
- * @module plugins/image/image-properties
8
- */
9
- export * from './form';
10
- export * from './main-tab';
11
- export * from './position-tab';
@@ -1,11 +0,0 @@
1
- /*!
2
- * Jodit Editor (https://xdsoft.net/jodit/)
3
- * Released under MIT see LICENSE.txt in the project root for license information.
4
- * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
- */
6
- /**
7
- * @module plugins/image
8
- */
9
- export * from './image-properties/image-properties';
10
- export * from './image-processor/image-processor';
11
- export * from './image';
@@ -1,18 +0,0 @@
1
- /*!
2
- * Jodit Editor (https://xdsoft.net/jodit/)
3
- * Released under MIT see LICENSE.txt in the project root for license information.
4
- * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
- */
6
- /**
7
- * [[include:plugins/keyboard/tab/README.md]]
8
- * @packageDocumentation
9
- * @module plugins/keyboard/tab
10
- */
11
- import type { IJodit } from 'jodit/types';
12
- import { Plugin } from 'jodit/core/plugin';
13
- import './config';
14
- export declare class tab extends Plugin {
15
- protected afterInit(jodit: IJodit): void;
16
- protected onTab(event: KeyboardEvent): false | void;
17
- protected beforeDestruct(jodit: IJodit): void;
18
- }
@@ -1,11 +0,0 @@
1
- /*!
2
- * Jodit Editor (https://xdsoft.net/jodit/)
3
- * Released under MIT see LICENSE.txt in the project root for license information.
4
- * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
- */
6
- /**
7
- * @module plugins/media
8
- */
9
- export * from './media';
10
- export * from './video';
11
- export * from './file';
@@ -1,11 +0,0 @@
1
- /*!
2
- * Jodit Editor (https://xdsoft.net/jodit/)
3
- * Released under MIT see LICENSE.txt in the project root for license information.
4
- * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
- */
6
- /**
7
- * @module plugins/media/video
8
- */
9
- import type { IJodit } from 'jodit/types';
10
- import './config';
11
- export declare function video(editor: IJodit): void;
@@ -1,10 +0,0 @@
1
- /*!
2
- * Jodit Editor (https://xdsoft.net/jodit/)
3
- * Released under MIT see LICENSE.txt in the project root for license information.
4
- * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
- */
6
- /**
7
- * @module plugins/print
8
- */
9
- export * from './preview/preview';
10
- export * from './print';
@@ -1,11 +0,0 @@
1
- /*!
2
- * Jodit Editor (https://xdsoft.net/jodit/)
3
- * Released under MIT see LICENSE.txt in the project root for license information.
4
- * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
- */
6
- /**
7
- * @module plugins/size
8
- */
9
- import './config';
10
- export * from './resize-handler';
11
- export * from './size';
@@ -1,9 +0,0 @@
1
- /*!
2
- * Jodit Editor (https://xdsoft.net/jodit/)
3
- * Released under MIT see LICENSE.txt in the project root for license information.
4
- * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
- */
6
- /**
7
- * @module plugins/source
8
- */
9
- export declare const SOURCE_CONSUMER = "source-consumer";
@@ -1,12 +0,0 @@
1
- /*!
2
- * Jodit Editor (https://xdsoft.net/jodit/)
3
- * Released under MIT see LICENSE.txt in the project root for license information.
4
- * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
- */
6
- /**
7
- * [[include:plugins/source/README.md]]
8
- * @packageDocumentation
9
- * @module plugins/source
10
- */
11
- import './config';
12
- export * from './source';
@@ -1,60 +0,0 @@
1
- /*!
2
- * Jodit Editor (https://xdsoft.net/jodit/)
3
- * Released under MIT see LICENSE.txt in the project root for license information.
4
- * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
- */
6
- /**
7
- * @module plugins/speech/speech-recognize
8
- */
9
- import type { IDictionary } from 'jodit/types';
10
- import type { ISpeechRecognizeConstructor } from './interface';
11
- declare module 'jodit/config' {
12
- interface Config {
13
- speechRecognize: {
14
- readonly api: ISpeechRecognizeConstructor;
15
- /**
16
- * Returns and sets the language of the current SpeechRecognition.
17
- * If not specified, this defaults to the HTML lang attribute value, or
18
- * the user agent's language setting if that isn't set either.
19
- * @see https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/lang
20
- */
21
- readonly lang?: string;
22
- /**
23
- * Controls whether continuous results are returned for each recognition,
24
- * or only a single result.
25
- * @see https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/continuous
26
- */
27
- readonly continuous: boolean;
28
- /**
29
- * Controls whether interim results should be returned (true) or not (false.)
30
- * Interim results are results that are not yet final (e.g. the isFinal property is false.)
31
- * @see https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/interimResults
32
- */
33
- readonly interimResults: boolean;
34
- /**
35
- * On recognition error - make an error sound
36
- */
37
- readonly sound: boolean;
38
- /**
39
- * You can specify any commands in your language by listing them with the `|` sign.
40
- * In the value, write down any commands for
41
- * [execCommand](https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand#parameters)
42
- * and value (separated by ::)
43
- * You can also use [custom Jodit commands](#need-article)
44
- * For example
45
- * ```js
46
- * Jodit.make('#editor', {
47
- * speechRecognize: {
48
- * commands: {
49
- * 'remove line|remove paragraph': 'backspaceSentenceButton',
50
- * 'start bold': 'bold',
51
- * 'insert table|create table': 'insertHTML::<table><tr><td>test</td></tr></table>',
52
- * }
53
- * }
54
- * });
55
- * ```
56
- */
57
- readonly commands: IDictionary<string>;
58
- };
59
- }
60
- }
@@ -1,10 +0,0 @@
1
- /*!
2
- * Jodit Editor (https://xdsoft.net/jodit/)
3
- * Released under MIT see LICENSE.txt in the project root for license information.
4
- * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
- */
6
- /**
7
- * @module plugins/speech/speech-recognize
8
- */
9
- export declare const PII = 440;
10
- export declare const WARN = 940;
@@ -1,10 +0,0 @@
1
- /*!
2
- * Jodit Editor (https://xdsoft.net/jodit/)
3
- * Released under MIT see LICENSE.txt in the project root for license information.
4
- * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
- */
6
- /**
7
- * @module plugins/speech/speech-recognize
8
- */
9
- import type { ISpeechRecognizeConstructor } from '../interface';
10
- export declare const SpeechRecognition: ISpeechRecognizeConstructor;
@@ -1,10 +0,0 @@
1
- /*!
2
- * Jodit Editor (https://xdsoft.net/jodit/)
3
- * Released under MIT see LICENSE.txt in the project root for license information.
4
- * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
- */
6
- /**
7
- * @module plugins/speech/speech-recognize
8
- */
9
- import type { IJodit } from 'jodit/types';
10
- export declare function execSpellCommand(jodit: IJodit, commandSentence: string): void;