jodit 3.20.2 → 3.20.3

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 (481) hide show
  1. package/build/jodit.css +2 -2
  2. package/build/jodit.es2018.css +1 -1
  3. package/build/jodit.es2018.en.css +1 -1
  4. package/build/jodit.es2018.en.js +14 -12
  5. package/build/jodit.es2018.en.min.js +1 -1
  6. package/build/jodit.es2018.js +23 -12
  7. package/build/jodit.es2018.min.js +1 -1
  8. package/build/jodit.js +21 -10
  9. package/build/jodit.min.css +1 -1
  10. package/build/jodit.min.js +1 -1
  11. package/build/plugins/debug/debug.es2018.en.js +1 -1
  12. package/build/plugins/debug/debug.es2018.js +1 -1
  13. package/build/plugins/debug/debug.js +1 -1
  14. package/build/plugins/speech-recognize/speech-recognize.css +1 -1
  15. package/build/plugins/speech-recognize/speech-recognize.es2018.css +1 -1
  16. package/build/plugins/speech-recognize/speech-recognize.es2018.en.css +1 -1
  17. package/build/plugins/speech-recognize/speech-recognize.es2018.en.js +1 -1
  18. package/build/plugins/speech-recognize/speech-recognize.es2018.js +1 -1
  19. package/build/plugins/speech-recognize/speech-recognize.js +1 -1
  20. package/build/vdom.css +1 -1
  21. package/build/vdom.js +1 -1
  22. package/package.json +28 -24
  23. package/src/README.md +2 -0
  24. package/src/core/async/README.md +2 -0
  25. package/src/core/component/README.md +2 -0
  26. package/src/core/create/README.md +2 -0
  27. package/src/core/decorators/cache/README.md +2 -0
  28. package/src/core/decorators/component/README.md +2 -0
  29. package/src/core/decorators/debounce/README.md +2 -0
  30. package/src/core/decorators/hook/README.md +2 -0
  31. package/src/core/decorators/idle/README.md +2 -0
  32. package/src/core/decorators/nonenumerable/README.md +2 -0
  33. package/src/core/decorators/persistent/README.md +2 -0
  34. package/src/core/decorators/wait/README.md +2 -0
  35. package/src/core/decorators/watch/README.md +2 -0
  36. package/src/core/dom/README.md +2 -0
  37. package/src/core/event-emitter/README.md +2 -0
  38. package/src/core/helpers/README.md +2 -0
  39. package/src/core/plugin/README.md +2 -0
  40. package/src/core/request/README.md +2 -0
  41. package/src/core/selection/README.md +2 -0
  42. package/src/core/storage/README.md +2 -0
  43. package/src/core/vdom/README.md +2 -0
  44. package/src/core/view/README.md +2 -0
  45. package/src/index.ts +7 -4
  46. package/src/jodit.ts +4 -2
  47. package/src/langs/index.ts +7 -4
  48. package/src/langs/keys.js +7 -0
  49. package/src/modules/README.md +1 -1
  50. package/src/modules/dialog/README.md +2 -0
  51. package/src/modules/file-browser/README.md +12 -4
  52. package/src/modules/file-browser/file-browser.test.screenshot.js +1 -1
  53. package/src/modules/image-editor/README.md +1 -1
  54. package/src/modules/image-editor/image-editor.test.screenshot.js +1 -1
  55. package/src/modules/uploader/README.md +2 -0
  56. package/src/plugins/color/color.test.screenshot.js +26 -0
  57. package/src/plugins/image-properties/image-properties.test.screenshot.js +27 -0
  58. package/src/plugins/limit/limit.test.js +27 -0
  59. package/src/plugins/limit/limit.ts +1 -1
  60. package/src/plugins/link/link.test.screenshot.js +26 -0
  61. package/src/plugins/search/search.test.screenshot.js +38 -0
  62. package/src/plugins/symbols/symbols.test.screenshot.js +25 -0
  63. package/src/styles/icons/README.md +2 -0
  64. package/src/types/file-browser.d.ts +15 -0
  65. package/tsconfig.json +3 -0
  66. package/types/config.d.ts +0 -506
  67. package/types/core/async/async.d.ts +0 -32
  68. package/types/core/async/index.d.ts +0 -3
  69. package/types/core/component/component.d.ts +0 -81
  70. package/types/core/component/index.d.ts +0 -3
  71. package/types/core/component/statuses.d.ts +0 -3
  72. package/types/core/component/view-component.d.ts +0 -13
  73. package/types/core/constants.d.ts +0 -60
  74. package/types/core/create/create.d.ts +0 -32
  75. package/types/core/create/index.d.ts +0 -3
  76. package/types/core/decorators/component/component.d.ts +0 -9
  77. package/types/core/decorators/debounce/debounce.d.ts +0 -8
  78. package/types/core/decorators/hook/hook.d.ts +0 -8
  79. package/types/core/decorators/idle/idle.d.ts +0 -5
  80. package/types/core/decorators/index.d.ts +0 -5
  81. package/types/core/decorators/nonenumerable/nonenumerable.d.ts +0 -5
  82. package/types/core/decorators/persistent/persistent.d.ts +0 -5
  83. package/types/core/decorators/wait/wait.d.ts +0 -5
  84. package/types/core/decorators/watch/watch.d.ts +0 -8
  85. package/types/core/dom/dom.d.ts +0 -171
  86. package/types/core/dom/index.d.ts +0 -3
  87. package/types/core/dom/lazy-walker.d.ts +0 -3
  88. package/types/core/event-emitter/event-emitter.d.ts +0 -99
  89. package/types/core/event-emitter/eventify.d.ts +0 -25
  90. package/types/core/event-emitter/index.d.ts +0 -3
  91. package/types/core/event-emitter/observable.d.ts +0 -38
  92. package/types/core/event-emitter/store.d.ts +0 -3
  93. package/types/core/global.d.ts +0 -12
  94. package/types/core/helpers/array/as-array.d.ts +0 -3
  95. package/types/core/helpers/array/index.d.ts +0 -3
  96. package/types/core/helpers/array/split-array.d.ts +0 -6
  97. package/types/core/helpers/array/to-array.d.ts +0 -4
  98. package/types/core/helpers/async/index.d.ts +0 -3
  99. package/types/core/helpers/async/set-timeout.d.ts +0 -9
  100. package/types/core/helpers/checker/has-browser-color-picker.d.ts +0 -6
  101. package/types/core/helpers/checker/index.d.ts +0 -3
  102. package/types/core/helpers/checker/is-array.d.ts +0 -6
  103. package/types/core/helpers/checker/is-boolean.d.ts +0 -3
  104. package/types/core/helpers/checker/is-equal.d.ts +0 -3
  105. package/types/core/helpers/checker/is-function.d.ts +0 -6
  106. package/types/core/helpers/checker/is-html-from-word.d.ts +0 -6
  107. package/types/core/helpers/checker/is-html.d.ts +0 -3
  108. package/types/core/helpers/checker/is-imp-interface.d.ts +0 -12
  109. package/types/core/helpers/checker/is-int.d.ts +0 -3
  110. package/types/core/helpers/checker/is-jodit-object.d.ts +0 -6
  111. package/types/core/helpers/checker/is-native-function.d.ts +0 -6
  112. package/types/core/helpers/checker/is-number.d.ts +0 -6
  113. package/types/core/helpers/checker/is-numeric.d.ts +0 -3
  114. package/types/core/helpers/checker/is-plain-object.d.ts +0 -6
  115. package/types/core/helpers/checker/is-promise.d.ts +0 -3
  116. package/types/core/helpers/checker/is-string.d.ts +0 -6
  117. package/types/core/helpers/checker/is-url.d.ts +0 -6
  118. package/types/core/helpers/checker/is-valid-name.d.ts +0 -6
  119. package/types/core/helpers/checker/is-view-object.d.ts +0 -6
  120. package/types/core/helpers/checker/is-void.d.ts +0 -6
  121. package/types/core/helpers/checker/is-window.d.ts +0 -3
  122. package/types/core/helpers/color/color-to-hex.d.ts +0 -16
  123. package/types/core/helpers/color/index.d.ts +0 -3
  124. package/types/core/helpers/html/apply-styles.d.ts +0 -5
  125. package/types/core/helpers/html/clean-from-word.d.ts +0 -4
  126. package/types/core/helpers/html/htmlspecialchars.d.ts +0 -6
  127. package/types/core/helpers/html/index.d.ts +0 -3
  128. package/types/core/helpers/html/nl2br.d.ts +0 -6
  129. package/types/core/helpers/html/safe-html.d.ts +0 -3
  130. package/types/core/helpers/html/strip-tags.d.ts +0 -3
  131. package/types/core/helpers/index.d.ts +0 -5
  132. package/types/core/helpers/normalize/index.d.ts +0 -3
  133. package/types/core/helpers/normalize/normalize-color.d.ts +0 -6
  134. package/types/core/helpers/normalize/normalize-key-aliases.d.ts +0 -3
  135. package/types/core/helpers/normalize/normalize-license.d.ts +0 -3
  136. package/types/core/helpers/normalize/normalize-path.d.ts +0 -3
  137. package/types/core/helpers/normalize/normalize-relative-path.d.ts +0 -3
  138. package/types/core/helpers/normalize/normalize-size.d.ts +0 -6
  139. package/types/core/helpers/normalize/normalize-url.d.ts +0 -3
  140. package/types/core/helpers/size/get-content-width.d.ts +0 -3
  141. package/types/core/helpers/size/get-scroll-parent.d.ts +0 -3
  142. package/types/core/helpers/size/index.d.ts +0 -3
  143. package/types/core/helpers/size/inner-width.d.ts +0 -3
  144. package/types/core/helpers/size/offset.d.ts +0 -7
  145. package/types/core/helpers/size/position.d.ts +0 -3
  146. package/types/core/helpers/string/camel-case.d.ts +0 -6
  147. package/types/core/helpers/string/fuzzy-search-index.d.ts +0 -4
  148. package/types/core/helpers/string/i18n.d.ts +0 -31
  149. package/types/core/helpers/string/index.d.ts +0 -3
  150. package/types/core/helpers/string/kebab-case.d.ts +0 -3
  151. package/types/core/helpers/string/stringify.d.ts +0 -3
  152. package/types/core/helpers/string/trim.d.ts +0 -7
  153. package/types/core/helpers/string/ucfirst.d.ts +0 -6
  154. package/types/core/helpers/utils/align.d.ts +0 -12
  155. package/types/core/helpers/utils/append-script.d.ts +0 -12
  156. package/types/core/helpers/utils/assert.d.ts +0 -1
  157. package/types/core/helpers/utils/browser.d.ts +0 -14
  158. package/types/core/helpers/utils/build-query.d.ts +0 -6
  159. package/types/core/helpers/utils/complete-url.d.ts +0 -3
  160. package/types/core/helpers/utils/config-proto.d.ts +0 -33
  161. package/types/core/helpers/utils/convert-media-url-to-video-embed.d.ts +0 -3
  162. package/types/core/helpers/utils/css.d.ts +0 -6
  163. package/types/core/helpers/utils/ctrl-key.d.ts +0 -7
  164. package/types/core/helpers/utils/data-bind.d.ts +0 -3
  165. package/types/core/helpers/utils/default-language.d.ts +0 -3
  166. package/types/core/helpers/utils/error/error.d.ts +0 -3
  167. package/types/core/helpers/utils/error/errors/abort-error.d.ts +0 -3
  168. package/types/core/helpers/utils/error/errors/connection-error.d.ts +0 -3
  169. package/types/core/helpers/utils/error/errors/index.d.ts +0 -3
  170. package/types/core/helpers/utils/error/errors/options-error.d.ts +0 -3
  171. package/types/core/helpers/utils/error/index.d.ts +0 -3
  172. package/types/core/helpers/utils/get-class-name.d.ts +0 -3
  173. package/types/core/helpers/utils/get.d.ts +0 -22
  174. package/types/core/helpers/utils/human-size-to-bytes.d.ts +0 -7
  175. package/types/core/helpers/utils/index.d.ts +0 -3
  176. package/types/core/helpers/utils/mark-deprecated.d.ts +0 -10
  177. package/types/core/helpers/utils/parse-query.d.ts +0 -6
  178. package/types/core/helpers/utils/print.d.ts +0 -9
  179. package/types/core/helpers/utils/reset.d.ts +0 -10
  180. package/types/core/helpers/utils/scroll-into-view.d.ts +0 -3
  181. package/types/core/helpers/utils/selector.d.ts +0 -29
  182. package/types/core/helpers/utils/set.d.ts +0 -16
  183. package/types/core/helpers/utils/stack.d.ts +0 -3
  184. package/types/core/helpers/utils/utils.d.ts +0 -36
  185. package/types/core/helpers/utils/val.d.ts +0 -3
  186. package/types/core/plugin/index.d.ts +0 -3
  187. package/types/core/plugin/plugin-system.d.ts +0 -48
  188. package/types/core/plugin/plugin.d.ts +0 -10
  189. package/types/core/request/ajax.d.ts +0 -8
  190. package/types/core/request/config.d.ts +0 -6
  191. package/types/core/request/index.d.ts +0 -3
  192. package/types/core/request/response.d.ts +0 -3
  193. package/types/core/selection/helpers/index.d.ts +0 -3
  194. package/types/core/selection/helpers/move-node-inside-start.d.ts +0 -7
  195. package/types/core/selection/index.d.ts +0 -3
  196. package/types/core/selection/select.d.ts +0 -180
  197. package/types/core/selection/style/api/element-has-same-style.d.ts +0 -7
  198. package/types/core/selection/style/api/extract.d.ts +0 -16
  199. package/types/core/selection/style/api/finite-state-machine.d.ts +0 -3
  200. package/types/core/selection/style/api/get-suit-child.d.ts +0 -8
  201. package/types/core/selection/style/api/get-suit-parent.d.ts +0 -8
  202. package/types/core/selection/style/api/is-inside-invisible-element.d.ts +0 -4
  203. package/types/core/selection/style/api/is-normal-node.d.ts +0 -4
  204. package/types/core/selection/style/api/is-suit-element.d.ts +0 -24
  205. package/types/core/selection/style/api/toggle/toggle-css.d.ts +0 -4
  206. package/types/core/selection/style/api/toggle/toggle-ordered-list.d.ts +0 -4
  207. package/types/core/selection/style/api/toggle-commit-styles.d.ts +0 -5
  208. package/types/core/selection/style/api/unwrap-children.d.ts +0 -4
  209. package/types/core/selection/style/api/wrap-and-commit-style.d.ts +0 -4
  210. package/types/core/selection/style/api/wrap-ordered-list.d.ts +0 -5
  211. package/types/core/selection/style/api/wrap-unwrapped-text.d.ts +0 -4
  212. package/types/core/selection/style/apply-style.d.ts +0 -3
  213. package/types/core/selection/style/commit-style.d.ts +0 -9
  214. package/types/core/storage/engines/local-storage-provider.d.ts +0 -9
  215. package/types/core/storage/engines/memory-storage-provider.d.ts +0 -3
  216. package/types/core/storage/index.d.ts +0 -3
  217. package/types/core/storage/storage.d.ts +0 -5
  218. package/types/core/traits/dlgs.d.ts +0 -3
  219. package/types/core/traits/elms.d.ts +0 -9
  220. package/types/core/traits/index.d.ts +0 -3
  221. package/types/core/traits/mods.d.ts +0 -11
  222. package/types/core/ui/button/button/button.d.ts +0 -32
  223. package/types/core/ui/button/group/group.d.ts +0 -6
  224. package/types/core/ui/button/index.d.ts +0 -5
  225. package/types/core/ui/button/tooltip/tooltip.d.ts +0 -8
  226. package/types/core/ui/element.d.ts +0 -27
  227. package/types/core/ui/form/block/block.d.ts +0 -4
  228. package/types/core/ui/form/form.d.ts +0 -7
  229. package/types/core/ui/form/index.d.ts +0 -3
  230. package/types/core/ui/form/inputs/area/area.d.ts +0 -7
  231. package/types/core/ui/form/inputs/checkbox/checkbox.d.ts +0 -8
  232. package/types/core/ui/form/inputs/file/file.d.ts +0 -4
  233. package/types/core/ui/form/inputs/index.d.ts +0 -3
  234. package/types/core/ui/form/inputs/input/input.d.ts +0 -18
  235. package/types/core/ui/form/inputs/select/select.d.ts +0 -10
  236. package/types/core/ui/form/validators/index.d.ts +0 -3
  237. package/types/core/ui/form/validators/input.d.ts +0 -9
  238. package/types/core/ui/form/validators/select.d.ts +0 -6
  239. package/types/core/ui/group/group.d.ts +0 -32
  240. package/types/core/ui/group/index.d.ts +0 -3
  241. package/types/core/ui/group/list.d.ts +0 -16
  242. package/types/core/ui/group/separator.d.ts +0 -3
  243. package/types/core/ui/group/spacer.d.ts +0 -3
  244. package/types/core/ui/helpers/buttons.d.ts +0 -3
  245. package/types/core/ui/helpers/get-control-type.d.ts +0 -6
  246. package/types/core/ui/helpers/get-strong-control-types.d.ts +0 -3
  247. package/types/core/ui/icon.d.ts +0 -15
  248. package/types/core/ui/index.d.ts +0 -5
  249. package/types/core/ui/popup/index.d.ts +0 -3
  250. package/types/core/ui/popup/popup.d.ts +0 -35
  251. package/types/core/ui/progress-bar/progress-bar.d.ts +0 -10
  252. package/types/core/vdom/helpers/index.d.ts +9 -0
  253. package/types/core/vdom/index.d.ts +8 -0
  254. package/types/core/vdom/interface.d.ts +48 -0
  255. package/types/core/vdom/render/index.d.ts +23 -0
  256. package/types/core/vdom/v-dom-jodit.d.ts +15 -0
  257. package/types/core/view/view-with-toolbar.d.ts +0 -22
  258. package/types/core/view/view.d.ts +0 -64
  259. package/types/index.d.ts +1 -6
  260. package/types/jodit.d.ts +5 -257
  261. package/types/langs/index.d.ts +0 -5
  262. package/types/modules/context-menu/context-menu.d.ts +0 -20
  263. package/types/modules/dialog/alert.d.ts +0 -17
  264. package/types/modules/dialog/confirm.d.ts +0 -17
  265. package/types/modules/dialog/dialog.d.ts +0 -115
  266. package/types/modules/dialog/index.d.ts +0 -5
  267. package/types/modules/dialog/prompt.d.ts +0 -20
  268. package/types/modules/file-browser/builders/context-menu.d.ts +0 -3
  269. package/types/modules/file-browser/builders/elements-map.d.ts +0 -6
  270. package/types/modules/file-browser/builders/item.d.ts +0 -3
  271. package/types/modules/file-browser/data-provider.d.ts +0 -69
  272. package/types/modules/file-browser/factories.d.ts +0 -3
  273. package/types/modules/file-browser/fetch/delete-file.d.ts +0 -6
  274. package/types/modules/file-browser/fetch/load-items.d.ts +0 -6
  275. package/types/modules/file-browser/fetch/load-tree.d.ts +0 -6
  276. package/types/modules/file-browser/file-browser.d.ts +0 -36
  277. package/types/modules/file-browser/index.d.ts +0 -5
  278. package/types/modules/file-browser/listeners/native-listeners.d.ts +0 -3
  279. package/types/modules/file-browser/listeners/self-listeners.d.ts +0 -3
  280. package/types/modules/file-browser/listeners/state-listeners.d.ts +0 -6
  281. package/types/modules/file-browser/ui/index.d.ts +0 -3
  282. package/types/modules/history/command.d.ts +0 -3
  283. package/types/modules/history/history.d.ts +0 -30
  284. package/types/modules/history/snapshot.d.ts +0 -40
  285. package/types/modules/history/stack.d.ts +0 -3
  286. package/types/modules/image-editor/image-editor.d.ts +1 -54
  287. package/types/modules/image-editor/templates/form.d.ts +0 -3
  288. package/types/modules/index.d.ts +0 -5
  289. package/types/modules/status-bar/status-bar.d.ts +0 -20
  290. package/types/modules/table/table.d.ts +0 -57
  291. package/types/modules/toolbar/button/button.d.ts +1 -41
  292. package/types/modules/toolbar/button/content.d.ts +0 -6
  293. package/types/modules/toolbar/button/index.d.ts +0 -3
  294. package/types/modules/toolbar/collection/collection.d.ts +0 -23
  295. package/types/modules/toolbar/collection/editor-collection.d.ts +0 -19
  296. package/types/modules/toolbar/factory.d.ts +0 -11
  297. package/types/modules/uploader/config.d.ts +0 -6
  298. package/types/modules/uploader/helpers/build-data.d.ts +0 -3
  299. package/types/modules/uploader/helpers/data-uri-to-blob.d.ts +0 -6
  300. package/types/modules/uploader/helpers/index.d.ts +0 -3
  301. package/types/modules/uploader/helpers/process-old-browser-drag.d.ts +0 -3
  302. package/types/modules/uploader/helpers/send-files.d.ts +0 -6
  303. package/types/modules/uploader/helpers/send.d.ts +0 -3
  304. package/types/modules/uploader/uploader.d.ts +0 -35
  305. package/types/modules/widget/color-picker/color-picker.d.ts +0 -22
  306. package/types/modules/widget/file-selector/file-selector.d.ts +0 -41
  307. package/types/modules/widget/index.d.ts +0 -5
  308. package/types/modules/widget/tabs/tabs.d.ts +0 -22
  309. package/types/plugins/about/about.d.ts +0 -5
  310. package/types/plugins/add-new-line/add-new-line.d.ts +0 -9
  311. package/types/plugins/add-new-line/config.d.ts +0 -22
  312. package/types/plugins/backspace/backspace.d.ts +0 -14
  313. package/types/plugins/backspace/cases/check-join-neighbors.d.ts +0 -6
  314. package/types/plugins/backspace/cases/check-join-two-lists.d.ts +0 -16
  315. package/types/plugins/backspace/cases/check-not-collapsed.d.ts +0 -16
  316. package/types/plugins/backspace/cases/check-remove-char.d.ts +0 -16
  317. package/types/plugins/backspace/cases/check-remove-content-not-editable.d.ts +0 -7
  318. package/types/plugins/backspace/cases/check-remove-empty-neighbor.d.ts +0 -16
  319. package/types/plugins/backspace/cases/check-remove-empty-parent.d.ts +0 -17
  320. package/types/plugins/backspace/cases/check-remove-unbreakable-element.d.ts +0 -17
  321. package/types/plugins/backspace/cases/check-table-cell.d.ts +0 -17
  322. package/types/plugins/backspace/cases/check-unwrap-first-list-item.d.ts +0 -17
  323. package/types/plugins/backspace/cases/index.d.ts +1 -1
  324. package/types/plugins/backspace/helpers.d.ts +0 -7
  325. package/types/plugins/bold/bold.d.ts +0 -8
  326. package/types/plugins/class-span/class-span.d.ts +0 -27
  327. package/types/plugins/clean-html/clean-html.d.ts +0 -17
  328. package/types/plugins/clean-html/config.d.ts +0 -73
  329. package/types/plugins/clean-html/helpers/get-hash.d.ts +0 -6
  330. package/types/plugins/clean-html/helpers/index.d.ts +0 -3
  331. package/types/plugins/clean-html/helpers/remove-format/remove-format-for-collapsed-selection.d.ts +0 -10
  332. package/types/plugins/clean-html/helpers/remove-format/remove-format-for-selection.d.ts +0 -7
  333. package/types/plugins/clean-html/helpers/visitor/filters/allow-attributes.d.ts +0 -6
  334. package/types/plugins/clean-html/helpers/visitor/filters/fill-empty-paragraph.d.ts +0 -6
  335. package/types/plugins/clean-html/helpers/visitor/filters/index.d.ts +0 -6
  336. package/types/plugins/clean-html/helpers/visitor/filters/remove-empty-text-node.d.ts +0 -6
  337. package/types/plugins/clean-html/helpers/visitor/filters/remove-inv-text-nodes.d.ts +0 -6
  338. package/types/plugins/clean-html/helpers/visitor/filters/replace-old-tags.d.ts +0 -6
  339. package/types/plugins/clean-html/helpers/visitor/filters/sanitize-attributes.d.ts +0 -6
  340. package/types/plugins/clean-html/helpers/visitor/filters/try-remove-node.d.ts +0 -6
  341. package/types/plugins/clean-html/helpers/visitor/visit-node-walker.d.ts +0 -6
  342. package/types/plugins/clipboard/clipboard.d.ts +0 -10
  343. package/types/plugins/color/color.d.ts +0 -8
  344. package/types/plugins/copy-format/copy-format.d.ts +0 -5
  345. package/types/plugins/copy-format/langs/index.d.ts +25 -0
  346. package/types/plugins/debug/debug.d.ts +11 -0
  347. package/types/plugins/drag-and-drop/drag-and-drop.d.ts +0 -5
  348. package/types/plugins/drag-and-drop-element/config.d.ts +0 -3
  349. package/types/plugins/drag-and-drop-element/drag-and-drop-element.d.ts +0 -26
  350. package/types/plugins/dtd/after-insert/index.d.ts +0 -4
  351. package/types/plugins/dtd/after-insert/remove-extra-br.d.ts +0 -9
  352. package/types/plugins/dtd/before-insert/check-block-nesting.d.ts +0 -9
  353. package/types/plugins/dtd/before-insert/index.d.ts +0 -4
  354. package/types/plugins/dtd/config.d.ts +0 -12
  355. package/types/plugins/enter/enter.d.ts +0 -11
  356. package/types/plugins/enter/helpers/check-br.d.ts +0 -7
  357. package/types/plugins/enter/helpers/check-unsplittable-box.d.ts +0 -7
  358. package/types/plugins/enter/helpers/get-block-wrapper.d.ts +0 -7
  359. package/types/plugins/enter/helpers/has-previous-block.d.ts +0 -6
  360. package/types/plugins/enter/helpers/index.d.ts +0 -3
  361. package/types/plugins/enter/helpers/insert-paragraph.d.ts +0 -7
  362. package/types/plugins/enter/helpers/move-cursor-out-from-specal-tags.d.ts +0 -6
  363. package/types/plugins/enter/helpers/process-empty-li-leaf.d.ts +0 -7
  364. package/types/plugins/enter/helpers/split-fragment.d.ts +0 -8
  365. package/types/plugins/enter/helpers/wrap-text.d.ts +0 -8
  366. package/types/plugins/error-messages/error-messages.d.ts +0 -14
  367. package/types/plugins/file/file.d.ts +0 -5
  368. package/types/plugins/focus/focus.d.ts +0 -5
  369. package/types/plugins/font/font.d.ts +0 -8
  370. package/types/plugins/format-block/format-block.d.ts +0 -8
  371. package/types/plugins/fullsize/config.d.ts +0 -22
  372. package/types/plugins/fullsize/fullsize.d.ts +0 -8
  373. package/types/plugins/hotkeys/config.d.ts +0 -3
  374. package/types/plugins/hotkeys/hotkeys.d.ts +0 -10
  375. package/types/plugins/hr/hr.d.ts +0 -5
  376. package/types/plugins/iframe/config.d.ts +0 -49
  377. package/types/plugins/iframe/iframe.d.ts +0 -9
  378. package/types/plugins/image/image.d.ts +0 -5
  379. package/types/plugins/image-processor/config.d.ts +0 -3
  380. package/types/plugins/image-processor/image-processor.d.ts +0 -8
  381. package/types/plugins/image-properties/config.d.ts +0 -42
  382. package/types/plugins/image-properties/image-properties.d.ts +0 -42
  383. package/types/plugins/image-properties/templates/form.d.ts +0 -3
  384. package/types/plugins/image-properties/templates/main-tab.d.ts +0 -3
  385. package/types/plugins/image-properties/templates/position-tab.d.ts +0 -3
  386. package/types/plugins/indent/config.d.ts +0 -3
  387. package/types/plugins/indent/helpers.d.ts +0 -4
  388. package/types/plugins/indent/indent.d.ts +0 -8
  389. package/types/plugins/index.d.ts +0 -5
  390. package/types/plugins/inline-popup/config/config.d.ts +0 -3
  391. package/types/plugins/inline-popup/config/items/a.d.ts +8 -0
  392. package/types/plugins/inline-popup/config/items/cells.d.ts +8 -0
  393. package/types/plugins/inline-popup/config/items/iframe.d.ts +8 -0
  394. package/types/plugins/inline-popup/config/items/img.d.ts +9 -0
  395. package/types/plugins/inline-popup/config/items/toolbar.d.ts +7 -0
  396. package/types/plugins/inline-popup/inline-popup.d.ts +0 -36
  397. package/types/plugins/justify/justify.d.ts +0 -8
  398. package/types/plugins/key-arrow-outside/key-arrow-outside.d.ts +0 -8
  399. package/types/plugins/limit/config.d.ts +0 -9
  400. package/types/plugins/limit/limit.d.ts +0 -22
  401. package/types/plugins/line-height/config.d.ts +0 -9
  402. package/types/plugins/line-height/langs/index.d.ts +25 -0
  403. package/types/plugins/line-height/line-height.d.ts +0 -5
  404. package/types/plugins/link/config.d.ts +0 -33
  405. package/types/plugins/link/link.d.ts +0 -11
  406. package/types/plugins/link/template.d.ts +0 -3
  407. package/types/plugins/media/config.d.ts +0 -9
  408. package/types/plugins/media/media.d.ts +0 -8
  409. package/types/plugins/mobile/config.d.ts +0 -6
  410. package/types/plugins/mobile/mobile.d.ts +0 -8
  411. package/types/plugins/ordered-list/ordered-list.d.ts +0 -8
  412. package/types/plugins/paste/config.d.ts +0 -19
  413. package/types/plugins/paste/helpers.d.ts +0 -12
  414. package/types/plugins/paste/interface.d.ts +0 -3
  415. package/types/plugins/paste/paste.d.ts +0 -31
  416. package/types/plugins/paste-from-word/config.d.ts +0 -21
  417. package/types/plugins/paste-from-word/paste-from-word.d.ts +0 -11
  418. package/types/plugins/paste-storage/paste-storage.d.ts +0 -8
  419. package/types/plugins/placeholder/config.d.ts +0 -31
  420. package/types/plugins/placeholder/placeholder.d.ts +0 -11
  421. package/types/plugins/powered-by-jodit/powered-by-jodit.d.ts +0 -8
  422. package/types/plugins/preview/preview.d.ts +0 -5
  423. package/types/plugins/print/lib/generate-critical-css.d.ts +0 -6
  424. package/types/plugins/print/print.d.ts +0 -5
  425. package/types/plugins/redo-undo/redo-undo.d.ts +0 -9
  426. package/types/plugins/resize-cells/resize-cells.d.ts +0 -42
  427. package/types/plugins/resize-handler/resize-handler.d.ts +0 -26
  428. package/types/plugins/resizer/config.d.ts +0 -31
  429. package/types/plugins/resizer/resizer.d.ts +0 -22
  430. package/types/plugins/search/config.d.ts +0 -21
  431. package/types/plugins/search/helpers/index.d.ts +0 -3
  432. package/types/plugins/search/helpers/sentence-finder.d.ts +0 -3
  433. package/types/plugins/search/helpers/wrap-ranges-texts-in-tmp-span.d.ts +0 -3
  434. package/types/plugins/search/search.d.ts +0 -22
  435. package/types/plugins/search/ui/search.d.ts +0 -6
  436. package/types/plugins/select/config.d.ts +0 -8
  437. package/types/plugins/select/select.d.ts +0 -19
  438. package/types/plugins/select-cells/select-cells.d.ts +0 -34
  439. package/types/plugins/size/size.d.ts +0 -27
  440. package/types/plugins/source/config.d.ts +0 -25
  441. package/types/plugins/source/editor/engines/ace.d.ts +0 -6
  442. package/types/plugins/source/editor/engines/area.d.ts +0 -3
  443. package/types/plugins/source/editor/engines/index.d.ts +0 -3
  444. package/types/plugins/source/editor/factory.d.ts +0 -3
  445. package/types/plugins/source/editor/sourceEditor.d.ts +0 -6
  446. package/types/plugins/source/source.d.ts +0 -17
  447. package/types/plugins/speech-recognize/config.d.ts +19 -0
  448. package/types/plugins/speech-recognize/constants.d.ts +7 -0
  449. package/types/plugins/speech-recognize/helpers/api.d.ts +7 -0
  450. package/types/plugins/speech-recognize/helpers/exec-spell-command.d.ts +7 -0
  451. package/types/plugins/speech-recognize/helpers/recognize-manager.d.ts +45 -0
  452. package/types/plugins/speech-recognize/helpers/sound.d.ts +11 -0
  453. package/types/plugins/speech-recognize/interface.d.ts +30 -0
  454. package/types/plugins/speech-recognize/langs/index.d.ts +25 -0
  455. package/types/plugins/speech-recognize/speech-recognize.d.ts +19 -0
  456. package/types/plugins/spellcheck/config.d.ts +0 -4
  457. package/types/plugins/spellcheck/langs/index.d.ts +25 -0
  458. package/types/plugins/spellcheck/spellcheck.d.ts +0 -5
  459. package/types/plugins/stat/stat.d.ts +0 -5
  460. package/types/plugins/sticky/config.d.ts +0 -19
  461. package/types/plugins/sticky/sticky.d.ts +0 -18
  462. package/types/plugins/symbols/langs/index.d.ts +25 -0
  463. package/types/plugins/symbols/symbols.d.ts +0 -11
  464. package/types/plugins/tab/cases/index.d.ts +0 -3
  465. package/types/plugins/tab/cases/on-tab-inside-li.d.ts +0 -8
  466. package/types/plugins/tab/config.d.ts +0 -3
  467. package/types/plugins/table/table.d.ts +0 -5
  468. package/types/plugins/table-keyboard-navigation/table-keyboard-navigation.d.ts +0 -8
  469. package/types/plugins/wrap-nodes/config.d.ts +0 -3
  470. package/types/plugins/xpath/xpath.d.ts +0 -5
  471. package/types/polyfills.d.ts +10 -0
  472. package/types/styles/icons/index.d.ts +0 -5
  473. package/types/types/core.d.ts +0 -3
  474. package/types/types/file-browser.d.ts +15 -0
  475. package/types/types/jodit.d.ts +1 -1
  476. package/types/types/storage.d.ts +0 -3
  477. package/types/types/traits.d.ts +2 -2
  478. package/types/types/types.d.ts +2 -2
  479. package/types/types/uploader.d.ts +1 -1
  480. package/src/modules/file-browser/__image_snapshots__/file-browser-test-screenshot-js-filebrowser-screenshot-testing-open-filebrowser-works-1-snap.png +0 -0
  481. package/src/modules/image-editor/__image_snapshots__/image-editor-test-screenshot-js-image-editor-screenshot-testing-open-image-editor-works-1-snap.png +0 -0
package/types/config.d.ts CHANGED
@@ -3,80 +3,13 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
- /**
7
- * @module config
8
- */
9
6
  import type { IExtraPlugin, IDictionary, IViewOptions, NodeFunction, Attributes, ButtonsOption, Controls, IControlType, IUIButtonState, InsertMode, Nullable } from './types';
10
- /**
11
- * Default Editor's Configuration
12
- */
13
7
  export declare class Config implements IViewOptions {
14
- /**
15
- * Timeout of all asynchronous methods
16
- */
17
8
  defaultTimeout: number;
18
9
  namespace: string;
19
- /**
20
- * Editor loads completely without plugins. Useful when debugging your own plugin.
21
- */
22
10
  safeMode: boolean;
23
- /**
24
- * Editor's width
25
- *
26
- * @example
27
- * ```javascript
28
- * Jodit.make('.editor', {
29
- * width: '100%',
30
- * })
31
- * ```
32
- * @example
33
- * ```javascript
34
- * Jodit.make('.editor', {
35
- * width: 600, // equivalent for '600px'
36
- * })
37
- * ```
38
- * @example
39
- * ```javascript
40
- * Jodit.make('.editor', {
41
- * width: 'auto', // autosize
42
- * })
43
- * ```
44
- */
45
11
  width: number | string;
46
- /**
47
- * Editor's height
48
- *
49
- * @example
50
- * ```javascript
51
- * Jodit.make('.editor', {
52
- * height: '100%',
53
- * })
54
- * ```
55
- * @example
56
- * ```javascript
57
- * Jodit.make('.editor', {
58
- * height: 600, // equivalent for '600px'
59
- * })
60
- * ```
61
- * @example
62
- * ```javascript
63
- * Jodit.make('.editor', {
64
- * height: 'auto', // default - autosize
65
- * })
66
- * ```
67
- */
68
12
  height: number | string;
69
- /**
70
- * List of plugins that will be initialized in safe mode.
71
- *
72
- * ```js
73
- * Jodit.make('#editor', {
74
- * safeMode: true,
75
- * safePluginsList: ['about'],
76
- * extraPlugins: ['yourPluginDev']
77
- * });
78
- * ```
79
- */
80
13
  safePluginsList: string[];
81
14
  commandToHotkeys: IDictionary<string | string[]>;
82
15
  license: string;
@@ -84,497 +17,58 @@ export declare class Config implements IViewOptions {
84
17
  presets: IDictionary;
85
18
  ownerDocument: Document;
86
19
  ownerWindow: Window;
87
- /**
88
- * Shadow root if Jodit was created in it
89
- */
90
20
  shadowRoot: Nullable<ShadowRoot>;
91
- /**
92
- * Dictionary of variable values in css, a complete list can be found here
93
- * https://github.com/xdan/jodit/blob/master/src/styles/variables.less#L25
94
- *
95
- * @example
96
- * ```js
97
- * const editor = Jodit.make('#editor', {
98
- * styleValues: {
99
- * 'color-text': 'red',
100
- * colorBorder: 'black',
101
- * 'color-panel': 'blue'
102
- * }
103
- * });
104
- * ```
105
- */
106
21
  styleValues: IDictionary;
107
- /**
108
- * z-index For editor
109
- */
110
22
  zIndex: number;
111
- /**
112
- * Change the read-only state of the editor
113
- */
114
23
  readonly: boolean;
115
- /**
116
- * Change the disabled state of the editor
117
- */
118
24
  disabled: boolean;
119
25
  activeButtonsInReadOnly: string[];
120
26
  allowCommandsInReadOnly: string[];
121
- /**
122
- * Size of icons in the toolbar (can be "small", "middle", "large")
123
- *
124
- * @example
125
- * ```javascript
126
- * var editor = new Jodit(".dark_editor", {
127
- * toolbarButtonSize: "small"
128
- * });
129
- * ```
130
- */
131
27
  toolbarButtonSize: IUIButtonState['size'];
132
- /**
133
- * Allow navigation in the toolbar of the editor by Tab key
134
- */
135
28
  allowTabNavigation: boolean;
136
- /**
137
- * Inline editing mode
138
- */
139
29
  inline: boolean;
140
- /**
141
- * Theme (can be "dark")
142
- * @example
143
- * ```javascript
144
- * var editor = new Jodit(".dark_editor", {
145
- * theme: "dark"
146
- * });
147
- * ```
148
- */
149
30
  theme: string;
150
- /**
151
- * if set true then the current mode is saved in a cookie , and is restored after a reload of the page
152
- */
153
31
  saveModeInStorage: boolean;
154
- /**
155
- * Class name that can be appended to the editor
156
- *
157
- * @see [[Config.iframeCSSLinks]]
158
- * @see [[Config.iframeStyle]]
159
- *
160
- * @example
161
- * ```javascript
162
- * Jodit.make('#editor', {
163
- * editorCssClass: 'some_my_class'
164
- * });
165
- * ```
166
- * ```html
167
- * <style>
168
- * .some_my_class p{
169
- * line-height: 16px;
170
- * }
171
- * </style>
172
- * ```
173
- */
174
32
  editorCssClass: false | string;
175
- /**
176
- * The font of editor
177
- *
178
- * @example
179
- * ```javascript
180
- * Jodit.make('#editor', {
181
- * style: {
182
- * font: '12px Arial'
183
- * }
184
- * });
185
- * ```
186
- */
187
33
  style: false | IDictionary;
188
- /**
189
- * After all changes in editors for textarea will call change trigger
190
- *
191
- * @example
192
- * ```javascript
193
- * var editor = Jodit.make('#editor');
194
- * document.getElementById('editor').addEventListener('change', function () {
195
- * console.log(this.value);
196
- * })
197
- * ```
198
- */
199
34
  triggerChangeEvent: boolean;
200
- /**
201
- * The writing direction of the language which is used to create editor content. Allowed values are: ''
202
- * (an empty string) – Indicates that content direction will be the same as either the editor UI direction or
203
- * the page element direction. 'ltr' – Indicates a Left-To-Right text direction (like in English).
204
- * 'rtl' – Indicates a Right-To-Left text direction (like in Arabic).
205
- * @example
206
- * ```javascript
207
- * Jodit.make('.editor', {
208
- * direction: 'rtl'
209
- * })
210
- * ```
211
- */
212
35
  direction: 'rtl' | 'ltr' | '';
213
- /**
214
- * Language by default. if `auto` language set by document.documentElement.lang ||
215
- * (navigator.language && navigator.language.substr(0, 2)) ||
216
- * (navigator.browserLanguage && navigator.browserLanguage.substr(0, 2)) || 'en'
217
- *
218
- * @example
219
- * ```html
220
- * <!-- include in you page lang file -->
221
- * <script src="jodit/lang/de.js"></script>
222
- * <script>
223
- * var editor = Jodit.make('.editor', {
224
- * language: 'de'
225
- * });
226
- * </script>
227
- * ```
228
- */
229
36
  language: string;
230
- /**
231
- * if true all Lang.i18n(key) return `{key}`
232
- *
233
- * @example
234
- * ```html
235
- * <script>
236
- * var editor = Jodit.make('.editor', {
237
- * debugLanguage: true
238
- * });
239
- *
240
- * console.log(editor.i18n("Test")); // {Test}
241
- * </script>
242
- * ```
243
- */
244
37
  debugLanguage: boolean;
245
- /**
246
- * Collection of language pack data `{en: {'Type something': 'Type something', ...}}`
247
- *
248
- * @example
249
- * ```javascript
250
- * const editor = Jodit.make('#editor', {
251
- * language: 'ru',
252
- * i18n: {
253
- * ru: {
254
- * 'Type something': 'Начните что-либо вводить'
255
- * }
256
- * }
257
- * });
258
- * console.log(editor.i18n('Type something')) //Начните что-либо вводить
259
- * ```
260
- */
261
38
  i18n: IDictionary<IDictionary<string>> | false;
262
- /**
263
- * The tabindex global attribute is an integer indicating if the element can take
264
- * input focus (is focusable), if it should participate to sequential keyboard navigation,
265
- * and if so, at what position. It can take several values
266
- */
267
39
  tabIndex: number;
268
- /**
269
- * Boolean, whether the toolbar should be shown.
270
- * Alternatively, a valid css-selector-string to use an element as toolbar container.
271
- */
272
40
  toolbar: boolean | string | HTMLElement;
273
- /**
274
- * Boolean, whether the statusbar should be shown.
275
- */
276
41
  statusbar: boolean;
277
- /**
278
- * Show tooltip after mouse enter on the button
279
- */
280
42
  showTooltip: boolean;
281
- /**
282
- * Delay before show tooltip
283
- */
284
43
  showTooltipDelay: number;
285
- /**
286
- * Instead of create custop tooltip - use native title tooltips
287
- */
288
44
  useNativeTooltip: boolean;
289
- /**
290
- * Default insert method
291
- * @default insert_as_html
292
- */
293
45
  defaultActionOnPaste: InsertMode;
294
- /**
295
- * Element that will be created when you press Enter
296
- */
297
46
  enter: 'p' | 'div' | 'br';
298
- /**
299
- * When this option is enabled, the editor's content will be placed in an iframe and isolated from the rest of the page.
300
- *
301
- * @example
302
- * ```javascript
303
- * Jodit.make('#editor', {
304
- * iframe: true,
305
- * iframeStyle: 'html{margin: 0px;}body{padding:10px;background:transparent;color:#000;position:relative;z-index:2;\
306
- * user-select:auto;margin:0px;overflow:hidden;}body:after{content:"";clear:both;display:block}';
307
- * });
308
- * ```
309
- */
310
47
  iframe: boolean;
311
- /**
312
- * Allow editing the entire HTML document(html, head)
313
- */
314
48
  editHTMLDocumentMode: boolean;
315
- /**
316
- * Use when you need insert new block element
317
- * use enter option if not set
318
- */
319
49
  enterBlock: 'p' | 'div';
320
- /**
321
- * Jodit.MODE_WYSIWYG The HTML editor allows you to write like MSWord,
322
- * Jodit.MODE_SOURCE syntax highlighting source editor
323
- * @example
324
- * ```javascript
325
- * var editor = Jodit.make('#editor', {
326
- * defaultMode: Jodit.MODE_SPLIT
327
- * });
328
- * console.log(editor.getRealMode())
329
- * ```
330
- */
331
50
  defaultMode: number;
332
- /**
333
- * Use split mode
334
- */
335
51
  useSplitMode: boolean;
336
- /**
337
- * The colors in HEX representation to select a color for the background and for the text in colorpicker
338
- * @example
339
- * ```javascript
340
- * Jodit.make('#editor', {
341
- * colors: ['#ff0000', '#00ff00', '#0000ff']
342
- * })
343
- * ```
344
- */
345
52
  colors: IDictionary<string[]> | string[];
346
- /**
347
- * The default tab color picker
348
- * @example
349
- * ```javascript
350
- * Jodit.make('#editor2', {
351
- * colorPickerDefaultTab: 'color'
352
- * })
353
- * ```
354
- */
355
53
  colorPickerDefaultTab: 'background' | 'color';
356
- /**
357
- * Image size defaults to a larger image
358
- */
359
54
  imageDefaultWidth: number;
360
- /**
361
- * Do not display these buttons that are on the list
362
- * @example
363
- * ```javascript
364
- * Jodit.make('#editor2', {
365
- * removeButtons: ['hr', 'source']
366
- * });
367
- * ```
368
- */
369
55
  removeButtons: string[];
370
- /**
371
- * Do not init these plugins
372
- * @example
373
- * ```typescript
374
- * var editor = Jodit.make('.editor', {
375
- * disablePlugins: 'table,iframe'
376
- * });
377
- * //or
378
- * var editor = Jodit.make('.editor', {
379
- * disablePlugins: ['table', 'iframe']
380
- * });
381
- * ```
382
- */
383
56
  disablePlugins: string[] | string;
384
- /**
385
- * Init and download extra plugins
386
- * @example
387
- * ```typescript
388
- * var editor = Jodit.make('.editor', {
389
- * extraPlugins: ['emoji']
390
- * });
391
- * ```
392
- * It will try load %SCRIPT_PATH%/plugins/emoji/emoji.js and after load will try init it
393
- */
394
57
  extraPlugins: Array<string | IExtraPlugin>;
395
- /**
396
- * Base path for download extra plugins
397
- */
398
58
  basePath?: string;
399
- /**
400
- * These buttons list will be added to option.buttons
401
- */
402
59
  extraButtons: Array<string | IControlType>;
403
- /**
404
- * By default, you can only install an icon from the Jodit suite.
405
- * You can add your icon to the set using the `Jodit.modules.Icon.set (name, svg Code)` method.
406
- * But for a declarative declaration, you can use this option.
407
- *
408
- * @example
409
- * ```js
410
- * Jodit.modules.Icon.set('someIcon', '<svg><path.../></svg>');
411
- * const editor = Jodit.make({
412
- * extraButtons: [{
413
- * name: 'someButton',
414
- * icon: 'someIcon'
415
- * }]
416
- * });
417
- *
418
- * @example
419
- * const editor = Jodit.make({
420
- * extraIcons: {
421
- * someIcon: '<svg><path.../></svg>'
422
- * },
423
- * extraButtons: [{
424
- * name: 'someButton',
425
- * icon: 'someIcon'
426
- * }]
427
- * });
428
- * ```
429
- * @example
430
- * ```js
431
- * const editor = Jodit.make({
432
- * extraButtons: [{
433
- * name: 'someButton',
434
- * icon: '<svg><path.../></svg>'
435
- * }]
436
- * });
437
- * ```
438
- */
439
60
  extraIcons: IDictionary<string>;
440
- /**
441
- * Default attributes for created inside editor elements
442
- * @example
443
- * ```js
444
- * const editor2 = Jodit.make('#editor', {
445
- * createAttributes: {
446
- * div: {
447
- * class: 'test'
448
- * },
449
- * ul: function (ul) {
450
- * ul.classList.add('ui-test');
451
- * }
452
- * }
453
- * });
454
- *
455
- * const div2 = editor2.createInside.div();
456
- * expect(div2.className).equals('test');
457
- *
458
- * const ul = editor2.createInside.element('ul');
459
- * expect(ul.className).equals('ui-test');
460
- * ```
461
- * Or JSX in React
462
- * @example
463
- * ```jsx
464
- * import React, {useState, useRef} from 'react';
465
- * import JoditEditor from "jodit-react";
466
- *
467
- * const config = {
468
- * createAttributes: {
469
- * div: {
470
- * class: 'align-center'
471
- * }
472
- * }
473
- * };
474
- *
475
- * <JoditEditor config={config}/>
476
- * ```
477
- */
478
61
  createAttributes: IDictionary<Attributes | NodeFunction>;
479
- /**
480
- * The width of the editor, accepted as the biggest. Used to the responsive version of the editor
481
- */
482
62
  sizeLG: number;
483
- /**
484
- * The width of the editor, accepted as the medium. Used to the responsive version of the editor
485
- */
486
63
  sizeMD: number;
487
- /**
488
- * The width of the editor, accepted as the small. Used to the responsive version of the editor
489
- */
490
64
  sizeSM: number;
491
- /**
492
- * The list of buttons that appear in the editor's toolbar on large places (≥ options.sizeLG).
493
- * Note - this is not the width of the device, the width of the editor
494
- * @example
495
- * ```javascript
496
- * Jodit.make('#editor', {
497
- * buttons: ['bold', 'italic', 'source'],
498
- * buttonsMD: ['bold', 'italic'],
499
- * buttonsXS: ['bold', 'fullsize'],
500
- * });
501
- * ```
502
- * @example
503
- * ```javascript
504
- * Jodit.make('#editor2', {
505
- * buttons: [{
506
- * name: 'empty',
507
- * icon: 'source',
508
- * exec: function (editor) {
509
- * const dialog = new Jodit.modules.Dialog({}),
510
- * text = editor.c.element('textarea');
511
- *
512
- * dialog.setHeader('Source code');
513
- * dialog.setContent(text);
514
- * dialog.setSize(400, 300);
515
- *
516
- * Jodit.modules.Helpers.css(elm, {
517
- * width: '100%',
518
- * height: '100%'
519
- * })
520
-
521
- * dialog.open();
522
- * }
523
- * }]
524
- * });
525
- * ```
526
- * @example
527
- * ```javascript
528
- * Jodit.make('#editor2', {
529
- * buttons: Jodit.defaultOptions.buttons.concat([{
530
- * name: 'listsss',
531
- * iconURL: 'stuf/dummy.png',
532
- * list: {
533
- * h1: 'insert Header 1',
534
- * h2: 'insert Header 2',
535
- * clear: 'Empty editor',
536
- * },
537
- * exec: ({originalEvent, control, btn}) => {
538
- * var key = control.args[0],
539
- * value = control.args[1];
540
- * if (key === 'clear') {
541
- * this.val('');
542
- * return;
543
- * }
544
- * this.s.insertNode(this.c.element(key, ''));
545
- * this.e.fire('errorMessage', 'Was inserted ' + value);
546
- * },
547
- * template: function (key, value) {
548
- * return '<div>' + value + '</div>';
549
- * }
550
- * });
551
- * ```
552
- */
553
65
  buttons: ButtonsOption;
554
- /**
555
- * The list of buttons that appear in the editor's toolbar on medium places (≥ options.sizeMD).
556
- */
557
66
  buttonsMD: ButtonsOption;
558
- /**
559
- * The list of buttons that appear in the editor's toolbar on small places (≥ options.sizeSM).
560
- */
561
67
  buttonsSM: ButtonsOption;
562
- /**
563
- * The list of buttons that appear in the editor's toolbar on extra small places `(< options.sizeSM)`.
564
- */
565
68
  buttonsXS: ButtonsOption;
566
- /**
567
- * Behavior for buttons
568
- */
569
69
  controls: Controls;
570
70
  events: IDictionary<(...args: any[]) => any>;
571
- /**
572
- * Buttons in toolbat without SVG - only texts
573
- */
574
71
  textIcons: boolean;
575
- /**
576
- * shows a INPUT[type=color] to open the browser color picker, on the right bottom of widget color picker
577
- */
578
72
  showBrowserColorPicker: boolean;
579
73
  private static __defaultOptions;
580
74
  static get defaultOptions(): Config;
@@ -3,11 +3,6 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
- /**
7
- * [[include:core/async/README.md]]
8
- * @packageDocumentation
9
- * @module async
10
- */
11
6
  import type { CallbackFunction, IAsync, IAsyncParams, ITimeout, RejectablePromise } from 'jodit/types';
12
7
  export declare class Async implements IAsync {
13
8
  private timers;
@@ -16,37 +11,10 @@ export declare class Async implements IAsync {
16
11
  private clearLabel;
17
12
  clearTimeout(timer: number): void;
18
13
  clearTimeout(label: string): void;
19
- /**
20
- * Debouncing enforces that a function not be called again until a certain amount of time has passed without
21
- * it being called. As in "execute this function only if 100 milliseconds have passed without it being called."
22
- *
23
- * @example
24
- * ```javascript
25
- * var jodit = Jodit.make('.editor');
26
- * jodit.e.on('mousemove', jodit.async.debounce(() => {
27
- * // Do expensive things
28
- * }, 100));
29
- * ```
30
- */
31
14
  debounce(fn: CallbackFunction, timeout: ITimeout | IAsyncParams, firstCallImmediately?: boolean): CallbackFunction;
32
- /**
33
- * Throttling enforces a maximum number of times a function can be called over time.
34
- * As in "execute this function at most once every 100 milliseconds."
35
- *
36
- * @example
37
- * ```javascript
38
- * var jodit = Jodit.make('.editor');
39
- * jodit.e.on(document.body, 'scroll', jodit.async.throttle(function() {
40
- * // Do expensive things
41
- * }, 100));
42
- * ```
43
- */
44
15
  throttle(fn: CallbackFunction, timeout: ITimeout | IAsyncParams, ignore?: boolean): CallbackFunction;
45
16
  private promisesRejections;
46
17
  promise<T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): RejectablePromise<T>;
47
- /**
48
- * Get Promise status
49
- */
50
18
  promiseState(p: Promise<any>): Promise<'pending' | 'fulfilled' | 'rejected'>;
51
19
  private requestsIdle;
52
20
  private requestsRaf;
@@ -3,7 +3,4 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
- /**
7
- * @module async
8
- */
9
6
  export * from './async';