jodit 3.18.2 → 3.18.5

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 (79) hide show
  1. package/.idea/workspace.xml +114 -101
  2. package/CHANGELOG.MD +71 -35
  3. package/README.md +2 -2
  4. package/build/jodit.css +66 -5
  5. package/build/jodit.es2018.css +19 -4
  6. package/build/jodit.es2018.en.css +19 -4
  7. package/build/jodit.es2018.en.js +326 -91
  8. package/build/jodit.es2018.en.min.css +1 -1
  9. package/build/jodit.es2018.en.min.js +1 -1
  10. package/build/jodit.es2018.js +326 -91
  11. package/build/jodit.es2018.min.css +1 -1
  12. package/build/jodit.es2018.min.js +1 -1
  13. package/build/jodit.js +2036 -1755
  14. package/build/jodit.min.css +2 -2
  15. package/build/jodit.min.js +1 -1
  16. package/build/vdom.css +1 -1
  17. package/build/vdom.js +5 -3
  18. package/package.json +1 -1
  19. package/src/config.ts +5 -1
  20. package/src/core/async/async.ts +5 -3
  21. package/src/core/helpers/html/safe-html.ts +4 -0
  22. package/src/core/helpers/utils/error/error.ts +34 -0
  23. package/src/core/helpers/utils/error/errors/abort-error.ts +16 -0
  24. package/src/core/helpers/utils/error/errors/connection-error.ts +16 -0
  25. package/src/core/helpers/utils/{error.ts → error/errors/index.ts} +3 -6
  26. package/src/core/helpers/utils/error/errors/options-error.ts +16 -0
  27. package/{types/core/helpers/utils/error.d.ts → src/core/helpers/utils/error/index.ts} +4 -4
  28. package/src/core/helpers/utils/reset.ts +4 -0
  29. package/src/core/helpers/utils/scroll-into-view.ts +4 -0
  30. package/src/core/request/ajax.ts +22 -11
  31. package/src/modules/file-browser/data-provider.ts +11 -9
  32. package/src/modules/file-browser/fetch/load-items.ts +5 -3
  33. package/src/modules/file-browser/fetch/load-tree.ts +3 -10
  34. package/src/modules/file-browser/file-browser.test.js +1 -1
  35. package/src/modules/file-browser/file-browser.ts +10 -1
  36. package/src/modules/file-browser/listeners/self-listeners.ts +4 -4
  37. package/src/modules/table/table.test.js +1 -1
  38. package/src/modules/uploader/README.md +18 -0
  39. package/src/modules/uploader/config.ts +9 -0
  40. package/src/modules/uploader/helpers/send-files.ts +10 -2
  41. package/src/modules/uploader/uploader.test.js +36 -0
  42. package/src/plugins/clipboard/paste/helpers.ts +13 -4
  43. package/src/plugins/fix/clean-html/clean-html.test.js +3 -3
  44. package/src/plugins/fix/clean-html/helpers/remove-format/remove-format-for-selection.ts +1 -1
  45. package/src/plugins/print/helpers.ts +1 -1
  46. package/src/plugins/print/lib/generate-critical-css.ts +135 -0
  47. package/src/plugins/print/print.ts +7 -4
  48. package/src/plugins/source/editor/engines/ace.ts +4 -0
  49. package/src/plugins/source/editor/engines/area.ts +4 -0
  50. package/src/plugins/source/source.ts +10 -12
  51. package/src/plugins/speech/speech-recognize/README.md +0 -0
  52. package/src/plugins/speech/speech-recognize/config.ts +23 -0
  53. package/src/plugins/speech/speech-recognize/helpers/microphone-input.ts +218 -0
  54. package/src/plugins/speech/speech-recognize/helpers/voice-command.ts +118 -0
  55. package/src/plugins/speech/speech-recognize/icon.svg +5 -0
  56. package/src/plugins/speech/speech-recognize/speech-recognize.ts +38 -0
  57. package/src/plugins/table/config.ts +0 -4
  58. package/src/plugins/table/table.common.less +1 -4
  59. package/src/plugins/table/table.test.js +43 -0
  60. package/src/styles/mixins.less +8 -0
  61. package/src/types/create.d.ts +1 -1
  62. package/src/types/events.d.ts +12 -1
  63. package/src/types/source.d.ts +1 -0
  64. package/src/types/uploader.d.ts +20 -0
  65. package/types/core/helpers/utils/error/error.d.ts +13 -0
  66. package/types/core/helpers/utils/error/errors/abort-error.d.ts +11 -0
  67. package/types/core/helpers/utils/error/errors/connection-error.d.ts +11 -0
  68. package/types/core/helpers/utils/error/errors/index.d.ts +11 -0
  69. package/types/core/helpers/utils/error/errors/options-error.d.ts +11 -0
  70. package/types/core/helpers/utils/error/index.d.ts +10 -0
  71. package/types/core/helpers/utils/reset.d.ts +3 -0
  72. package/types/core/request/ajax.d.ts +1 -1
  73. package/types/plugins/print/lib/generate-critical-css.d.ts +7 -0
  74. package/types/plugins/source/editor/engines/ace.d.ts +1 -0
  75. package/types/plugins/source/editor/engines/area.d.ts +1 -0
  76. package/types/types/create.d.ts +1 -1
  77. package/types/types/events.d.ts +12 -1
  78. package/types/types/source.d.ts +1 -0
  79. package/types/types/uploader.d.ts +20 -0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
3
3
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/)
4
- * Version: v3.18.2
4
+ * Version: v3.18.5
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -4633,9 +4633,7 @@ html.jodit_fullsize-box_true {
4633
4633
  * Released under MIT see LICENSE.txt in the project root for license information.
4634
4634
  * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
4635
4635
  */
4636
- td[style*='border'] {
4637
- border-style: double !important;
4638
- }
4636
+ .jodit-context table,
4639
4637
  .jodit-wysiwyg table {
4640
4638
  max-width: 100%;
4641
4639
  border: none;
@@ -4644,16 +4642,26 @@ td[style*='border'] {
4644
4642
  border-collapse: collapse;
4645
4643
  empty-cells: show;
4646
4644
  }
4645
+ .jodit-context table tr,
4647
4646
  .jodit-wysiwyg table tr {
4648
4647
  user-select: none;
4649
4648
  }
4649
+ .jodit-context table tr th,
4650
4650
  .jodit-wysiwyg table tr th,
4651
+ .jodit-context table tr td,
4651
4652
  .jodit-wysiwyg table tr td {
4652
4653
  min-width: 2em;
4653
4654
  padding: 0.4em;
4654
4655
  border: 1px solid var(--jd-color-border);
4655
4656
  user-select: text;
4656
4657
  vertical-align: middle;
4658
+ /**
4659
+ // In some circumstances, because of this rule,
4660
+ // the borders of the table are not shown - you need to find out under what
4661
+ &[style*='border'] {
4662
+ border-style: double !important;
4663
+ }
4664
+ */
4657
4665
  }
4658
4666
  .jodit-table-resizer {
4659
4667
  position: absolute;
@@ -4777,6 +4785,13 @@ td[style*='border'] {
4777
4785
  border: 1px solid var(--jd-color-border);
4778
4786
  user-select: text;
4779
4787
  vertical-align: middle;
4788
+ /**
4789
+ // In some circumstances, because of this rule,
4790
+ // the borders of the table are not shown - you need to find out under what
4791
+ &[style*='border'] {
4792
+ border-style: double !important;
4793
+ }
4794
+ */
4780
4795
  }
4781
4796
 
4782
4797
  /*!