jodit 3.18.3 → 3.18.6

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 (136) hide show
  1. package/.idea/workspace.xml +202 -178
  2. package/CHANGELOG.MD +72 -34
  3. package/build/jodit.css +69 -5
  4. package/build/jodit.es2018.css +22 -4
  5. package/build/jodit.es2018.en.css +22 -4
  6. package/build/jodit.es2018.en.js +15342 -14629
  7. package/build/jodit.es2018.en.min.css +1 -1
  8. package/build/jodit.es2018.en.min.js +1 -1
  9. package/build/jodit.es2018.js +18774 -18061
  10. package/build/jodit.es2018.min.css +1 -1
  11. package/build/jodit.es2018.min.js +1 -1
  12. package/build/jodit.js +2579 -2184
  13. package/build/jodit.min.css +2 -2
  14. package/build/jodit.min.js +1 -1
  15. package/build/plugins/speech/speech-recognize/speech-recognize.css +38 -0
  16. package/build/plugins/speech/speech-recognize/speech-recognize.es2018.css +38 -0
  17. package/build/plugins/speech/speech-recognize/speech-recognize.es2018.en.css +38 -0
  18. package/build/plugins/speech/speech-recognize/speech-recognize.es2018.en.js +901 -0
  19. package/build/plugins/speech/speech-recognize/speech-recognize.es2018.en.min.css +1 -0
  20. package/build/plugins/speech/speech-recognize/speech-recognize.es2018.en.min.js +1 -0
  21. package/build/plugins/speech/speech-recognize/speech-recognize.es2018.js +901 -0
  22. package/build/plugins/speech/speech-recognize/speech-recognize.es2018.min.css +1 -0
  23. package/build/plugins/speech/speech-recognize/speech-recognize.es2018.min.js +1 -0
  24. package/build/plugins/speech/speech-recognize/speech-recognize.js +980 -0
  25. package/build/plugins/speech/speech-recognize/speech-recognize.min.css +1 -0
  26. package/build/plugins/speech/speech-recognize/speech-recognize.min.js +1 -0
  27. package/build/vdom.css +1 -1
  28. package/build/vdom.js +5 -3
  29. package/package.json +20 -20
  30. package/src/config.ts +5 -1
  31. package/src/core/async/async.ts +5 -3
  32. package/src/core/decorators/spy/spy.ts +56 -0
  33. package/src/core/dom/lazy-walker.ts +2 -1
  34. package/src/core/event-emitter/eventify.ts +7 -2
  35. package/src/core/helpers/utils/error/error.ts +34 -0
  36. package/src/core/helpers/utils/error/errors/abort-error.ts +16 -0
  37. package/src/core/helpers/utils/error/errors/connection-error.ts +16 -0
  38. package/src/core/helpers/utils/{error.ts → error/errors/index.ts} +3 -6
  39. package/src/core/helpers/utils/error/errors/options-error.ts +16 -0
  40. package/{types/core/helpers/utils/error.d.ts → src/core/helpers/utils/error/index.ts} +4 -4
  41. package/src/core/request/ajax.ts +22 -11
  42. package/src/jodit.ts +1 -0
  43. package/src/modules/file-browser/data-provider.ts +11 -9
  44. package/src/modules/file-browser/fetch/load-items.ts +5 -3
  45. package/src/modules/file-browser/fetch/load-tree.ts +3 -10
  46. package/src/modules/file-browser/file-browser.test.js +1 -1
  47. package/src/modules/file-browser/file-browser.ts +10 -1
  48. package/src/modules/file-browser/listeners/self-listeners.ts +4 -4
  49. package/src/modules/table/table.test.js +1 -1
  50. package/src/modules/toolbar/button/button.less +4 -0
  51. package/src/modules/toolbar/button/button.ts +10 -1
  52. package/src/modules/uploader/README.md +18 -0
  53. package/src/modules/uploader/config.ts +9 -0
  54. package/src/modules/uploader/helpers/send-files.ts +10 -2
  55. package/src/modules/uploader/uploader.test.js +36 -0
  56. package/src/plugins/fix/clean-html/clean-html.test.js +3 -3
  57. package/src/plugins/fix/clean-html/clean-html.ts +1 -1
  58. package/src/plugins/fix/clean-html/helpers/remove-format/remove-format-for-selection.ts +1 -1
  59. package/src/plugins/keyboard/enter/enter.ts +9 -3
  60. package/src/plugins/keyboard/enter/helpers/check-br.ts +1 -1
  61. package/src/plugins/print/helpers.ts +1 -1
  62. package/src/plugins/print/lib/generate-critical-css.ts +139 -0
  63. package/src/plugins/print/print.ts +7 -4
  64. package/src/plugins/speech/speech-recognize/README.md +111 -0
  65. package/src/plugins/speech/speech-recognize/config.ts +174 -5
  66. package/src/plugins/speech/speech-recognize/constants.ts +12 -0
  67. package/src/plugins/speech/speech-recognize/helpers/api.ts +15 -0
  68. package/src/plugins/speech/speech-recognize/helpers/exec-spell-command.ts +16 -0
  69. package/src/plugins/speech/speech-recognize/helpers/recognize-manager.ts +208 -0
  70. package/src/plugins/speech/speech-recognize/helpers/sound.ts +44 -0
  71. package/src/plugins/speech/speech-recognize/interface.ts +51 -0
  72. package/src/plugins/speech/speech-recognize/langs/ar.js +10 -0
  73. package/src/plugins/speech/speech-recognize/langs/cs_cz.js +10 -0
  74. package/src/plugins/speech/speech-recognize/langs/de.js +10 -0
  75. package/src/plugins/speech/speech-recognize/langs/es.js +10 -0
  76. package/src/plugins/speech/speech-recognize/langs/fa.js +10 -0
  77. package/src/plugins/speech/speech-recognize/langs/fr.js +10 -0
  78. package/src/plugins/speech/speech-recognize/langs/he.js +10 -0
  79. package/src/plugins/speech/speech-recognize/langs/hu.js +10 -0
  80. package/src/plugins/speech/speech-recognize/langs/id.js +10 -0
  81. package/src/plugins/speech/speech-recognize/langs/index.ts +47 -0
  82. package/src/plugins/speech/speech-recognize/langs/it.js +10 -0
  83. package/src/plugins/speech/speech-recognize/langs/ja.js +10 -0
  84. package/src/plugins/speech/speech-recognize/langs/ko.js +10 -0
  85. package/src/plugins/speech/speech-recognize/langs/nl.js +10 -0
  86. package/src/plugins/speech/speech-recognize/langs/pl.js +10 -0
  87. package/src/plugins/speech/speech-recognize/langs/pt_br.js +10 -0
  88. package/src/plugins/speech/speech-recognize/langs/ru.js +10 -0
  89. package/src/plugins/speech/speech-recognize/langs/tr.js +10 -0
  90. package/src/plugins/speech/speech-recognize/langs/zh_cn.js +10 -0
  91. package/src/plugins/speech/speech-recognize/langs/zh_tw.js +10 -0
  92. package/src/plugins/speech/speech-recognize/speech-recognize.less +40 -0
  93. package/src/plugins/speech/speech-recognize/speech-recognize.ts +118 -12
  94. package/src/plugins/table/config.ts +0 -4
  95. package/src/plugins/table/table.common.less +1 -4
  96. package/src/plugins/table/table.test.js +43 -0
  97. package/src/styles/mixins.less +8 -0
  98. package/src/types/create.d.ts +1 -1
  99. package/src/types/toolbar.d.ts +4 -3
  100. package/src/types/types.d.ts +1 -1
  101. package/src/types/uploader.d.ts +20 -0
  102. package/tsconfig.json +1 -0
  103. package/types/core/decorators/spy/spy.d.ts +9 -0
  104. package/types/core/event-emitter/eventify.d.ts +3 -2
  105. package/types/core/helpers/string/i18n.d.ts +1 -1
  106. package/types/core/helpers/utils/append-script.d.ts +1 -1
  107. package/types/core/helpers/utils/build-query.d.ts +1 -1
  108. package/types/core/helpers/utils/default-language.d.ts +1 -1
  109. package/types/core/helpers/utils/error/error.d.ts +13 -0
  110. package/types/core/helpers/utils/error/errors/abort-error.d.ts +11 -0
  111. package/types/core/helpers/utils/error/errors/connection-error.d.ts +11 -0
  112. package/types/core/helpers/utils/error/errors/index.d.ts +11 -0
  113. package/types/core/helpers/utils/error/errors/options-error.d.ts +11 -0
  114. package/types/core/helpers/utils/error/index.d.ts +10 -0
  115. package/types/core/helpers/utils/val.d.ts +1 -1
  116. package/types/core/request/ajax.d.ts +1 -1
  117. package/types/modules/dialog/alert.d.ts +1 -1
  118. package/types/modules/dialog/prompt.d.ts +1 -1
  119. package/types/modules/widget/tabs/tabs.d.ts +1 -1
  120. package/types/plugins/fix/clean-html/clean-html.d.ts +1 -1
  121. package/types/plugins/keyboard/enter/helpers/check-br.d.ts +1 -1
  122. package/types/plugins/print/lib/generate-critical-css.d.ts +10 -0
  123. package/types/plugins/speech/speech-recognize/config.d.ts +60 -0
  124. package/types/plugins/speech/speech-recognize/constants.d.ts +10 -0
  125. package/types/plugins/speech/speech-recognize/helpers/api.d.ts +10 -0
  126. package/types/plugins/speech/speech-recognize/helpers/exec-spell-command.d.ts +10 -0
  127. package/types/plugins/speech/speech-recognize/helpers/recognize-manager.d.ts +48 -0
  128. package/types/plugins/speech/speech-recognize/helpers/sound.d.ts +11 -0
  129. package/types/plugins/speech/speech-recognize/interface.d.ts +42 -0
  130. package/types/plugins/speech/speech-recognize/speech-recognize.d.ts +24 -0
  131. package/types/types/create.d.ts +1 -1
  132. package/types/types/toolbar.d.ts +4 -3
  133. package/types/types/types.d.ts +1 -1
  134. package/types/types/uploader.d.ts +20 -0
  135. package/src/plugins/speech/speech-recognize/helpers/microphone-input.ts +0 -218
  136. package/src/plugins/speech/speech-recognize/helpers/voice-command.ts +0 -118
@@ -11,37 +11,22 @@
11
11
  <select />
12
12
  </component>
13
13
  <component name="ChangeListManager">
14
- <list default="true" id="5da7ff7f-03a8-49de-9fbb-8f8640d83b83" name="Default Changelist" comment="Merge">
15
- <change afterPath="$PROJECT_DIR$/build-system/utils/include-plugins.js" afterDir="false" />
16
- <change afterPath="$PROJECT_DIR$/src/plugins/speech/speech-recognize/README.md" afterDir="false" />
17
- <change afterPath="$PROJECT_DIR$/src/plugins/speech/speech-recognize/config.ts" afterDir="false" />
18
- <change afterPath="$PROJECT_DIR$/src/plugins/speech/speech-recognize/helpers/microphone-input.ts" afterDir="false" />
19
- <change afterPath="$PROJECT_DIR$/src/plugins/speech/speech-recognize/helpers/voice-command.ts" afterDir="false" />
20
- <change afterPath="$PROJECT_DIR$/src/plugins/speech/speech-recognize/icon.svg" afterDir="false" />
21
- <change afterPath="$PROJECT_DIR$/src/plugins/speech/speech-recognize/speech-recognize.ts" afterDir="false" />
22
- <change beforePath="$PROJECT_DIR$/CHANGELOG.MD" beforeDir="false" afterPath="$PROJECT_DIR$/CHANGELOG.MD" afterDir="false" />
23
- <change beforePath="$PROJECT_DIR$/build-system/index.js" beforeDir="false" afterPath="$PROJECT_DIR$/build-system/index.js" afterDir="false" />
14
+ <list default="true" id="5da7ff7f-03a8-49de-9fbb-8f8640d83b83" name="Default Changelist" comment="Working voice recognition plugin&#10;Feature Request: Add ability for user to dictate using local device microphone as input #828&#10;Issue: https://github.com/xdan/jodit/issues/828">
24
15
  <change beforePath="$PROJECT_DIR$/build/jodit.css" beforeDir="false" />
25
16
  <change beforePath="$PROJECT_DIR$/build/jodit.es2018.css" beforeDir="false" />
26
17
  <change beforePath="$PROJECT_DIR$/build/jodit.es2018.en.css" beforeDir="false" />
27
- <change beforePath="$PROJECT_DIR$/build/jodit.es2018.en.js" beforeDir="false" afterPath="$PROJECT_DIR$/build/jodit.es2018.en.js" afterDir="false" />
18
+ <change beforePath="$PROJECT_DIR$/build/jodit.es2018.en.js" beforeDir="false" />
28
19
  <change beforePath="$PROJECT_DIR$/build/jodit.es2018.en.min.css" beforeDir="false" />
29
- <change beforePath="$PROJECT_DIR$/build/jodit.es2018.en.min.js" beforeDir="false" afterPath="$PROJECT_DIR$/build/jodit.es2018.en.min.js" afterDir="false" />
30
- <change beforePath="$PROJECT_DIR$/build/jodit.es2018.js" beforeDir="false" afterPath="$PROJECT_DIR$/build/jodit.es2018.js" afterDir="false" />
20
+ <change beforePath="$PROJECT_DIR$/build/jodit.es2018.en.min.js" beforeDir="false" />
21
+ <change beforePath="$PROJECT_DIR$/build/jodit.es2018.js" beforeDir="false" />
31
22
  <change beforePath="$PROJECT_DIR$/build/jodit.es2018.min.css" beforeDir="false" />
32
- <change beforePath="$PROJECT_DIR$/build/jodit.es2018.min.js" beforeDir="false" afterPath="$PROJECT_DIR$/build/jodit.es2018.min.js" afterDir="false" />
33
- <change beforePath="$PROJECT_DIR$/build/jodit.js" beforeDir="false" afterPath="$PROJECT_DIR$/build/jodit.js" afterDir="false" />
23
+ <change beforePath="$PROJECT_DIR$/build/jodit.es2018.min.js" beforeDir="false" />
24
+ <change beforePath="$PROJECT_DIR$/build/jodit.js" beforeDir="false" />
34
25
  <change beforePath="$PROJECT_DIR$/build/jodit.min.css" beforeDir="false" />
35
- <change beforePath="$PROJECT_DIR$/build/jodit.min.js" beforeDir="false" afterPath="$PROJECT_DIR$/build/jodit.min.js" afterDir="false" />
26
+ <change beforePath="$PROJECT_DIR$/build/jodit.min.js" beforeDir="false" />
36
27
  <change beforePath="$PROJECT_DIR$/build/vdom.css" beforeDir="false" />
37
- <change beforePath="$PROJECT_DIR$/make.js" beforeDir="false" afterPath="$PROJECT_DIR$/make.js" afterDir="false" />
38
- <change beforePath="$PROJECT_DIR$/src/plugins/clipboard/paste/helpers.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/plugins/clipboard/paste/helpers.ts" afterDir="false" />
39
- <change beforePath="$PROJECT_DIR$/src/plugins/source/editor/engines/ace.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/plugins/source/editor/engines/ace.ts" afterDir="false" />
40
- <change beforePath="$PROJECT_DIR$/src/plugins/source/editor/engines/area.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/plugins/source/editor/engines/area.ts" afterDir="false" />
41
- <change beforePath="$PROJECT_DIR$/src/plugins/source/source.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/plugins/source/source.ts" afterDir="false" />
42
- <change beforePath="$PROJECT_DIR$/src/styles/mixins.less" beforeDir="false" afterPath="$PROJECT_DIR$/src/styles/mixins.less" afterDir="false" />
43
- <change beforePath="$PROJECT_DIR$/src/types/events.d.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/types/events.d.ts" afterDir="false" />
44
- <change beforePath="$PROJECT_DIR$/src/types/source.d.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/types/source.d.ts" afterDir="false" />
28
+ <change beforePath="$PROJECT_DIR$/build/vdom.js" beforeDir="false" />
29
+ <change beforePath="$PROJECT_DIR$/src/plugins/speech/speech-recognize/speech-recognize.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/plugins/speech/speech-recognize/speech-recognize.ts" afterDir="false" />
45
30
  </list>
46
31
  <list id="5049e1d4-15bc-4e3a-b46b-d2ce7537fc13" name="Revert &quot;Some small fixes&quot;" comment="Revert &quot;Some small fixes&quot;&#10;&#10;This reverts commit bc391ec6" />
47
32
  <option name="SHOW_DIALOG" value="false" />
@@ -130,10 +115,10 @@
130
115
  </key>
131
116
  <key name="MoveFile.RECENT_KEYS">
132
117
  <recent name="$PROJECT_DIR$/src/plugins/speech/speech-recognize" />
133
- <recent name="$PROJECT_DIR$/src/core/create" />
134
- <recent name="$PROJECT_DIR$/src/langs" />
135
- <recent name="$PROJECT_DIR$/src/plugins" />
136
- <recent name="$PROJECT_DIR$/src/plugins/clipboard" />
118
+ <recent name="$PROJECT_DIR$/src/plugins/speech/speech-recognize/helpers" />
119
+ <recent name="$PROJECT_DIR$/src/plugins/speech/speech-recognize/commands" />
120
+ <recent name="$PROJECT_DIR$/src/plugins/print" />
121
+ <recent name="$PROJECT_DIR$/src/core/helpers/utils/errors" />
137
122
  </key>
138
123
  </component>
139
124
  <component name="RunManager" selected="Node.js.find-tests.js">
@@ -855,140 +840,20 @@
855
840
  <workItem from="1652278073818" duration="2863000" />
856
841
  <workItem from="1652284339282" duration="529000" />
857
842
  <workItem from="1652288722754" duration="1515000" />
858
- <workItem from="1652290653496" duration="512000" />
859
- </task>
860
- <task id="LOCAL-01075" summary="The preview popup has double scrollbars #808&#10;Issue: https://github.com/xdan/jodit/issues/808">
861
- <created>1648376761158</created>
862
- <option name="number" value="01075" />
863
- <option name="presentableId" value="LOCAL-01075" />
864
- <option name="project" value="LOCAL" />
865
- <updated>1648376761158</updated>
866
- </task>
867
- <task id="LOCAL-01076" summary="Fixed bug with sync editor size with iframe mode (Works only with [ResizeObserver](https://caniuse.com/resizeobserver))">
868
- <created>1648381830154</created>
869
- <option name="number" value="01076" />
870
- <option name="presentableId" value="LOCAL-01076" />
871
- <option name="project" value="LOCAL" />
872
- <updated>1648381830154</updated>
873
- </task>
874
- <task id="LOCAL-01077" summary="Fixed bug with sync editor size with iframe mode (Works only with [ResizeObserver](https://caniuse.com/resizeobserver))">
875
- <created>1648381838293</created>
876
- <option name="number" value="01077" />
877
- <option name="presentableId" value="LOCAL-01077" />
878
- <option name="project" value="LOCAL" />
879
- <updated>1648381838293</updated>
880
- </task>
881
- <task id="LOCAL-01078" summary="Added `imageProcessor.replaceDataURIToBlobIdInView` functionality">
882
- <created>1648418431582</created>
883
- <option name="number" value="01078" />
884
- <option name="presentableId" value="LOCAL-01078" />
885
- <option name="project" value="LOCAL" />
886
- <updated>1648418431582</updated>
887
- </task>
888
- <task id="LOCAL-01079" summary="Added `imageProcessor.replaceDataURIToBlobIdInView` functionality">
889
- <created>1648418757762</created>
890
- <option name="number" value="01079" />
891
- <option name="presentableId" value="LOCAL-01079" />
892
- <option name="project" value="LOCAL" />
893
- <updated>1648418757762</updated>
894
- </task>
895
- <task id="LOCAL-01080" summary="Added `imageProcessor.replaceDataURIToBlobIdInView` functionality">
896
- <created>1648420872241</created>
897
- <option name="number" value="01080" />
898
- <option name="presentableId" value="LOCAL-01080" />
899
- <option name="project" value="LOCAL" />
900
- <updated>1648420872241</updated>
901
- </task>
902
- <task id="LOCAL-01081" summary="Remove deprecated event emmit">
903
- <created>1648424690941</created>
904
- <option name="number" value="01081" />
905
- <option name="presentableId" value="LOCAL-01081" />
906
- <option name="project" value="LOCAL" />
907
- <updated>1648424690941</updated>
908
- </task>
909
- <task id="LOCAL-01082" summary="&quot;Uncaught TypeError: Cannot redefine property: __activeTab&quot; occurs when I use 'brush' button twice in inline-popup for a element. #815&#10;Issue: https://github.com/xdan/jodit/issues/815">
910
- <created>1648755081713</created>
911
- <option name="number" value="01082" />
912
- <option name="presentableId" value="LOCAL-01082" />
913
- <option name="project" value="LOCAL" />
914
- <updated>1648755081714</updated>
915
- </task>
916
- <task id="LOCAL-01083" summary="&quot;Uncaught TypeError: Cannot redefine property: __activeTab&quot; occurs when I use 'brush' button twice in inline-popup for a element. #815&#10;Issue: https://github.com/xdan/jodit/issues/815">
917
- <created>1648755114501</created>
918
- <option name="number" value="01083" />
919
- <option name="presentableId" value="LOCAL-01083" />
920
- <option name="project" value="LOCAL" />
921
- <updated>1648755114501</updated>
922
- </task>
923
- <task id="LOCAL-01084" summary="Keyboard Trap in Source Code mode #817&#10;Issue: https://github.com/xdan/jodit/issues/817">
924
- <created>1648755745557</created>
925
- <option name="number" value="01084" />
926
- <option name="presentableId" value="LOCAL-01084" />
927
- <option name="project" value="LOCAL" />
928
- <updated>1648755745557</updated>
929
- </task>
930
- <task id="LOCAL-01085" summary="Keyboard Trap in Source Code mode #817&#10;Issue: https://github.com/xdan/jodit/issues/817">
931
- <created>1648755785244</created>
932
- <option name="number" value="01085" />
933
- <option name="presentableId" value="LOCAL-01085" />
934
- <option name="project" value="LOCAL" />
935
- <updated>1648755785244</updated>
936
- </task>
937
- <task id="LOCAL-01086" summary="Fixed component inheritance error after component decorator">
938
- <created>1649721240283</created>
939
- <option name="number" value="01086" />
940
- <option name="presentableId" value="LOCAL-01086" />
941
- <option name="project" value="LOCAL" />
942
- <updated>1649721240284</updated>
943
- </task>
944
- <task id="LOCAL-01087" summary="Fixed processing of inserting videos from YouTube. Now you can start playing the video.">
945
- <created>1649721334440</created>
946
- <option name="number" value="01087" />
947
- <option name="presentableId" value="LOCAL-01087" />
948
- <option name="project" value="LOCAL" />
949
- <updated>1649721334440</updated>
950
- </task>
951
- <task id="LOCAL-01088" summary="selection.insertHTML causes infinite blur loop when Jodit editor not active&#10;Added `insertCursorAfter` argument.&#10;&#10;Issue: https://github.com/xdan/jodit/issues/819">
952
- <created>1649721568763</created>
953
- <option name="number" value="01088" />
954
- <option name="presentableId" value="LOCAL-01088" />
955
- <option name="project" value="LOCAL" />
956
- <updated>1649721568763</updated>
957
- </task>
958
- <task id="LOCAL-01089" summary="Preview missing non styled content in a paragraph when there is any styled text in that paragraph #823&#10;Issue: https://github.com/xdan/jodit/issues/823">
959
- <created>1649722207918</created>
960
- <option name="number" value="01089" />
961
- <option name="presentableId" value="LOCAL-01089" />
962
- <option name="project" value="LOCAL" />
963
- <updated>1649722207919</updated>
964
- </task>
965
- <task id="LOCAL-01090" summary="Image hyperlink is not working without https:// #821&#10;Issue: https://github.com/xdan/jodit/issues/821">
966
- <created>1649722992031</created>
967
- <option name="number" value="01090" />
968
- <option name="presentableId" value="LOCAL-01090" />
969
- <option name="project" value="LOCAL" />
970
- <updated>1649722992031</updated>
971
- </task>
972
- <task id="LOCAL-01091" summary="All components have their own instance of the Async module. What used to be `this.j.async` is now `this.async`.">
973
- <created>1651499125263</created>
974
- <option name="number" value="01091" />
975
- <option name="presentableId" value="LOCAL-01091" />
976
- <option name="project" value="LOCAL" />
977
- <updated>1651499125263</updated>
978
- </task>
979
- <task id="LOCAL-01092" summary="All components have their own instance of the Async module. What used to be `this.j.async` is now `this.async`.">
980
- <created>1651499345091</created>
981
- <option name="number" value="01092" />
982
- <option name="presentableId" value="LOCAL-01092" />
983
- <option name="project" value="LOCAL" />
984
- <updated>1651499345091</updated>
985
- </task>
986
- <task id="LOCAL-01093" summary="All components have their own instance of the Async module. What used to be `this.j.async` is now `this.async`.">
987
- <created>1651500306472</created>
988
- <option name="number" value="01093" />
989
- <option name="presentableId" value="LOCAL-01093" />
990
- <option name="project" value="LOCAL" />
991
- <updated>1651500306472</updated>
843
+ <workItem from="1652290653496" duration="1875000" />
844
+ <workItem from="1652357632395" duration="2336000" />
845
+ <workItem from="1652375698652" duration="3786000" />
846
+ <workItem from="1652381164201" duration="2798000" />
847
+ <workItem from="1652442012011" duration="62000" />
848
+ <workItem from="1652610834842" duration="8668000" />
849
+ <workItem from="1652719253405" duration="7098000" />
850
+ <workItem from="1652957712199" duration="1072000" />
851
+ <workItem from="1652969884870" duration="1050000" />
852
+ <workItem from="1653300567782" duration="105000" />
853
+ <workItem from="1653334761446" duration="10805000" />
854
+ <workItem from="1653487711494" duration="1406000" />
855
+ <workItem from="1653819714453" duration="237000" />
856
+ <workItem from="1653942101883" duration="15136000" />
992
857
  </task>
993
858
  <task id="LOCAL-01094" summary="Fixed non-removal of the event handler on destruct">
994
859
  <created>1651525135265</created>
@@ -1200,7 +1065,140 @@
1200
1065
  <option name="project" value="LOCAL" />
1201
1066
  <updated>1652218824618</updated>
1202
1067
  </task>
1203
- <option name="localTasksCounter" value="1124" />
1068
+ <task id="LOCAL-01124" summary="Fixed a bug where pressing `Esc` did not close the dialog">
1069
+ <created>1652298901561</created>
1070
+ <option name="number" value="01124" />
1071
+ <option name="presentableId" value="LOCAL-01124" />
1072
+ <option name="project" value="LOCAL" />
1073
+ <updated>1652298901562</updated>
1074
+ </task>
1075
+ <task id="LOCAL-01125" summary="Added option `uploader.processFileName` - The method can be used to change the name of the uploaded file">
1076
+ <created>1652377125784</created>
1077
+ <option name="number" value="01125" />
1078
+ <option name="presentableId" value="LOCAL-01125" />
1079
+ <option name="project" value="LOCAL" />
1080
+ <updated>1652377125784</updated>
1081
+ </task>
1082
+ <task id="LOCAL-01126" summary="Fixed file naming error when uploading to server">
1083
+ <created>1652378235293</created>
1084
+ <option name="number" value="01126" />
1085
+ <option name="presentableId" value="LOCAL-01126" />
1086
+ <option name="project" value="LOCAL" />
1087
+ <updated>1652378235293</updated>
1088
+ </task>
1089
+ <task id="LOCAL-01127" summary="Fixed a bug where the download cancellation business exceptions were shown as errors in the file browser. Also fixed uncatchable exceptions inside Async.promise">
1090
+ <created>1652719607637</created>
1091
+ <option name="number" value="01127" />
1092
+ <option name="presentableId" value="LOCAL-01127" />
1093
+ <option name="project" value="LOCAL" />
1094
+ <updated>1652719607637</updated>
1095
+ </task>
1096
+ <task id="LOCAL-01128" summary="Fixed a bug where the download cancellation business exceptions were shown as errors in the file browser. Also fixed uncatchable exceptions inside Async.promise">
1097
+ <created>1652719761468</created>
1098
+ <option name="number" value="01128" />
1099
+ <option name="presentableId" value="LOCAL-01128" />
1100
+ <option name="project" value="LOCAL" />
1101
+ <updated>1652719761468</updated>
1102
+ </task>
1103
+ <task id="LOCAL-01129" summary="Fixed table default style">
1104
+ <created>1652723764770</created>
1105
+ <option name="number" value="01129" />
1106
+ <option name="presentableId" value="LOCAL-01129" />
1107
+ <option name="project" value="LOCAL" />
1108
+ <updated>1652723764770</updated>
1109
+ </task>
1110
+ <task id="LOCAL-01130" summary="Fixed styles inside print mode">
1111
+ <created>1652723793165</created>
1112
+ <option name="number" value="01130" />
1113
+ <option name="presentableId" value="LOCAL-01130" />
1114
+ <option name="project" value="LOCAL" />
1115
+ <updated>1652723793165</updated>
1116
+ </task>
1117
+ <task id="LOCAL-01131" summary="Fixed styles inside print mode">
1118
+ <created>1652724201058</created>
1119
+ <option name="number" value="01131" />
1120
+ <option name="presentableId" value="LOCAL-01131" />
1121
+ <option name="project" value="LOCAL" />
1122
+ <updated>1652724201058</updated>
1123
+ </task>
1124
+ <task id="LOCAL-01132" summary="Fixed All td elements got double border style. #842&#10;&#10;Issue: https://github.com/xdan/jodit/issues/842">
1125
+ <created>1652724265926</created>
1126
+ <option name="number" value="01132" />
1127
+ <option name="presentableId" value="LOCAL-01132" />
1128
+ <option name="project" value="LOCAL" />
1129
+ <updated>1652724265926</updated>
1130
+ </task>
1131
+ <task id="LOCAL-01133" summary="Speech recognize plugin">
1132
+ <created>1653342560857</created>
1133
+ <option name="number" value="01133" />
1134
+ <option name="presentableId" value="LOCAL-01133" />
1135
+ <option name="project" value="LOCAL" />
1136
+ <updated>1653342560858</updated>
1137
+ </task>
1138
+ <task id="LOCAL-01134" summary="PoC Speech Recognize plugin">
1139
+ <created>1653344969074</created>
1140
+ <option name="number" value="01134" />
1141
+ <option name="presentableId" value="LOCAL-01134" />
1142
+ <option name="project" value="LOCAL" />
1143
+ <updated>1653344969074</updated>
1144
+ </task>
1145
+ <task id="LOCAL-01135" summary="PoC Speech Recognize plugin">
1146
+ <created>1653345441989</created>
1147
+ <option name="number" value="01135" />
1148
+ <option name="presentableId" value="LOCAL-01135" />
1149
+ <option name="project" value="LOCAL" />
1150
+ <updated>1653345441989</updated>
1151
+ </task>
1152
+ <task id="LOCAL-01136" summary="PoC Speech Recognize plugin">
1153
+ <created>1653345498260</created>
1154
+ <option name="number" value="01136" />
1155
+ <option name="presentableId" value="LOCAL-01136" />
1156
+ <option name="project" value="LOCAL" />
1157
+ <updated>1653345498261</updated>
1158
+ </task>
1159
+ <task id="LOCAL-01137" summary="Working voice recognition plugin">
1160
+ <created>1653955748216</created>
1161
+ <option name="number" value="01137" />
1162
+ <option name="presentableId" value="LOCAL-01137" />
1163
+ <option name="project" value="LOCAL" />
1164
+ <updated>1653955748216</updated>
1165
+ </task>
1166
+ <task id="LOCAL-01138" summary="Working voice recognition plugin&#10;Feature Request: Add ability for user to dictate using local device microphone as input #828&#10;Issue: https://github.com/xdan/jodit/issues/828">
1167
+ <created>1653955872318</created>
1168
+ <option name="number" value="01138" />
1169
+ <option name="presentableId" value="LOCAL-01138" />
1170
+ <option name="project" value="LOCAL" />
1171
+ <updated>1653955872318</updated>
1172
+ </task>
1173
+ <task id="LOCAL-01139" summary="Working voice recognition plugin&#10;Feature Request: Add ability for user to dictate using local device microphone as input #828&#10;Issue: https://github.com/xdan/jodit/issues/828">
1174
+ <created>1653956527641</created>
1175
+ <option name="number" value="01139" />
1176
+ <option name="presentableId" value="LOCAL-01139" />
1177
+ <option name="project" value="LOCAL" />
1178
+ <updated>1653956527641</updated>
1179
+ </task>
1180
+ <task id="LOCAL-01140" summary="Fix docs">
1181
+ <created>1653956929439</created>
1182
+ <option name="number" value="01140" />
1183
+ <option name="presentableId" value="LOCAL-01140" />
1184
+ <option name="project" value="LOCAL" />
1185
+ <updated>1653956929439</updated>
1186
+ </task>
1187
+ <task id="LOCAL-01141" summary="Fixed speech docs">
1188
+ <created>1653958350877</created>
1189
+ <option name="number" value="01141" />
1190
+ <option name="presentableId" value="LOCAL-01141" />
1191
+ <option name="project" value="LOCAL" />
1192
+ <updated>1653958350878</updated>
1193
+ </task>
1194
+ <task id="LOCAL-01142" summary="Fixed speech docs">
1195
+ <created>1653958383790</created>
1196
+ <option name="number" value="01142" />
1197
+ <option name="presentableId" value="LOCAL-01142" />
1198
+ <option name="project" value="LOCAL" />
1199
+ <updated>1653958383791</updated>
1200
+ </task>
1201
+ <option name="localTasksCounter" value="1143" />
1204
1202
  <servers />
1205
1203
  </component>
1206
1204
  <component name="TypeScriptGeneratedFilesManager">
@@ -1278,6 +1276,31 @@
1278
1276
  </State>
1279
1277
  </value>
1280
1278
  </entry>
1279
+ <entry key="9efb17d6-6cb5-4dd7-8476-b4e0bbae340c">
1280
+ <value>
1281
+ <State>
1282
+ <option name="SHOW_ONLY_AFFECTED_CHANGES" value="true" />
1283
+ <option name="FILTERS">
1284
+ <map>
1285
+ <entry key="branch">
1286
+ <value>
1287
+ <list>
1288
+ <option value="HEAD" />
1289
+ </list>
1290
+ </value>
1291
+ </entry>
1292
+ <entry key="structure">
1293
+ <value>
1294
+ <list>
1295
+ <option value="dir:/Users/v-chupurnov/WebstormProjects/pet/jodit/src/core/decorators" />
1296
+ </list>
1297
+ </value>
1298
+ </entry>
1299
+ </map>
1300
+ </option>
1301
+ </State>
1302
+ </value>
1303
+ </entry>
1281
1304
  <entry key="MAIN">
1282
1305
  <value>
1283
1306
  <State>
@@ -1326,6 +1349,7 @@
1326
1349
  <map>
1327
1350
  <entry key="1" value="TOOL_WINDOW" />
1328
1351
  <entry key="2" value="TOOL_WINDOW" />
1352
+ <entry key="9efb17d6-6cb5-4dd7-8476-b4e0bbae340c" value="TOOL_WINDOW" />
1329
1353
  <entry key="e9207ee6-0ed8-4617-a2df-2ad787cfa51a" value="TOOL_WINDOW" />
1330
1354
  </map>
1331
1355
  </option>
@@ -1346,20 +1370,6 @@
1346
1370
  </component>
1347
1371
  <component name="VcsManagerConfiguration">
1348
1372
  <option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="false" />
1349
- <MESSAGE value="Fixed component inheritance error after component decorator" />
1350
- <MESSAGE value="Fixed processing of inserting videos from YouTube. Now you can start playing the video." />
1351
- <MESSAGE value="selection.insertHTML causes infinite blur loop when Jodit editor not active&#10;Added `insertCursorAfter` argument.&#10;&#10;Issue: https://github.com/xdan/jodit/issues/819" />
1352
- <MESSAGE value="Preview missing non styled content in a paragraph when there is any styled text in that paragraph #823&#10;Issue: https://github.com/xdan/jodit/issues/823" />
1353
- <MESSAGE value="Image hyperlink is not working without https:// #821&#10;Issue: https://github.com/xdan/jodit/issues/821" />
1354
- <MESSAGE value="All components have their own instance of the Async module. What used to be `this.j.async` is now `this.async`." />
1355
- <MESSAGE value="Added tests for Enter plugin" />
1356
- <MESSAGE value="Fixed non-removal of the event handler on destruct" />
1357
- <MESSAGE value="Clear events Key after destruct" />
1358
- <MESSAGE value="Added test for Enter inside nested list" />
1359
- <MESSAGE value="The on/one/off methods of the Jodit Event System have been greatly simplified" />
1360
- <MESSAGE value="Update deps" />
1361
- <MESSAGE value="Draft edit tests" />
1362
- <MESSAGE value="Fixed circular dependencies" />
1363
1373
  <MESSAGE value="Refactoring the HTML cleanup plugin" />
1364
1374
  <MESSAGE value="Refactoring clean-html plugin&#10;Move test into plugin folders" />
1365
1375
  <MESSAGE value="Cursor goes out of edit box when moving to a new line #824&#10;Issue: https://github.com/xdan/jodit/issues/824" />
@@ -1371,7 +1381,21 @@
1371
1381
  <MESSAGE value="Moved the test files to the appropriate directories" />
1372
1382
  <MESSAGE value="Added event `applyLink` for issue &#10;change default target for all links #841&#10;Issue: https://github.com/xdan/jodit/issues/841" />
1373
1383
  <MESSAGE value="Merge" />
1374
- <option name="LAST_COMMIT_MESSAGE" value="Merge" />
1384
+ <MESSAGE value="Fixed a bug where pressing `Esc` did not close the dialog" />
1385
+ <MESSAGE value="Added option `uploader.processFileName` - The method can be used to change the name of the uploaded file" />
1386
+ <MESSAGE value="Fixed file naming error when uploading to server" />
1387
+ <MESSAGE value="Try fix datapro" />
1388
+ <MESSAGE value="Fixed a bug where the download cancellation business exceptions were shown as errors in the file browser. Also fixed uncatchable exceptions inside Async.promise" />
1389
+ <MESSAGE value="Fixed table default style" />
1390
+ <MESSAGE value="Fixed styles inside print mode" />
1391
+ <MESSAGE value="Fixed All td elements got double border style. #842&#10;&#10;Issue: https://github.com/xdan/jodit/issues/842" />
1392
+ <MESSAGE value="Speech recognize plugin" />
1393
+ <MESSAGE value="PoC Speech Recognize plugin" />
1394
+ <MESSAGE value="Working voice recognition plugin" />
1395
+ <MESSAGE value="Fix docs" />
1396
+ <MESSAGE value="Working voice recognition plugin&#10;Feature Request: Add ability for user to dictate using local device microphone as input #828&#10;Issue: https://github.com/xdan/jodit/issues/828" />
1397
+ <MESSAGE value="Fixed speech docs" />
1398
+ <option name="LAST_COMMIT_MESSAGE" value="Fixed speech docs" />
1375
1399
  </component>
1376
1400
  <component name="XDebuggerManager">
1377
1401
  <breakpoint-manager>
package/CHANGELOG.MD CHANGED
@@ -9,6 +9,55 @@
9
9
  > - :house: [Internal]
10
10
  > - :nail_care: [Polish]
11
11
 
12
+ ## 3.18.6
13
+
14
+ #### :rocket: New Feature
15
+
16
+ - Separate plugin for voice recognition and input of recognized text into the editor.
17
+ [Feature Request: Add ability for user to dictate using local device microphone as input #828](https://github.com/xdan/jodit/issues/828)
18
+ > This plugin is not included in the main Jodit build. It must be connected separately [Подробнее](./src/plugins/speech/speech-recognize/README.md)
19
+
20
+ ## 3.18.5
21
+
22
+ #### :boom: Breaking Change
23
+
24
+ - Added default table style to `createAttributes` option:
25
+
26
+ ```js
27
+ Jodit.defaultOptions.createAttributes = {
28
+ table: {
29
+ style: 'border-collapse:collapse;width: 100%;'
30
+ }
31
+ };
32
+ ```
33
+
34
+ #### :bug: Bug Fix
35
+
36
+ - Fixed a bug where the download cancellation business exceptions were shown as errors in the file browser. Also fixed uncatchable exceptions inside Async.promise
37
+ - [Fixed Eraser delete "<a>" tag! #705 #845](https://github.com/xdan/jodit/pull/845) Thanks @s-renier-taonix-fr
38
+ - [Update Docker Env #844](https://github.com/xdan/jodit/pull/844) Thanks @s-renier-taonix-fr
39
+ - Fixed table default styles [Jodit doesn't keep table borders #295](https://github.com/xdan/jodit/issues/295)
40
+ - [All td elements got double border style. #842](https://github.com/xdan/jodit/issues/842)
41
+
42
+ ## 3.18.4
43
+
44
+ #### :rocket: New Feature
45
+
46
+ - Added option `uploader.processFileName` - The method can be used to change the name of the uploaded file
47
+
48
+ ```js
49
+ Jodit.make('#editor', {
50
+ uploader: {
51
+ url: 'some-connector.php',
52
+ processFileName: (key, file, name) => {
53
+ return [key, file, 'some-prefix_' + name];
54
+ }
55
+ }
56
+ });
57
+ ```
58
+
59
+ - Fixed file naming error when uploading to server
60
+
12
61
  ## 3.18.3
13
62
 
14
63
  #### :bug: Bug Fix
@@ -640,34 +689,28 @@ console.log(Jodit.modules.UIButton.componentName); // jodit-ui-button
640
689
  - [Remember last opened folder with FileBrowser #675](https://github.com/xdan/jodit/issues/675)
641
690
  Boolean option `filebrowser.saveStateInStorage` split to dictionary:
642
691
 
643
- ```ts
644
- interface IFileBrowserOptions
645
-
646
- :
647
- {
648
- }
649
- saveStateInStorage: false | {
650
- storeLastOpenedFolder? : boolean;
651
- storeView? : boolean;
652
- storeSortBy? : boolean;
653
- };
692
+ ```typescript
693
+ interface IFileBrowserOptions {
694
+ saveStateInStorage:
695
+ | false
696
+ | {
697
+ storeLastOpenedFolder?: boolean;
698
+ storeView?: boolean;
699
+ storeSortBy?: boolean;
700
+ };
654
701
  }
655
702
  ```
656
703
 
657
704
  By default:
658
705
 
659
706
  ```js
660
- {
707
+ opt = {
661
708
  saveStateInStorage: {
662
709
  storeLastOpenedFolder: true,
663
- storeView
664
- :
665
- true,
666
- storeSortBy
667
- :
668
- true
710
+ storeView: true,
711
+ storeSortBy: true
669
712
  }
670
- }
713
+ };
671
714
  ```
672
715
 
673
716
  Disable it:
@@ -769,9 +812,8 @@ await new Ajax(editor, {
769
812
  await new Ajax(editor, {
770
813
  url: 'index.php'
771
814
  })
772
- .send()˚
773
- .
774
- then(resp => resp.json()); // {success: true, data: ...}
815
+ .send()
816
+ .then(resp => resp.json()); // {success: true, data: ...}
775
817
  ```
776
818
 
777
819
  - In `.npmignore` added:
@@ -1438,11 +1480,11 @@ Related with https://github.com/xdan/jodit/issues/574. In some cases need to lim
1438
1480
  - @property {IUIOption[]} link.selectOptionsClassName=[] The list of the option for the select (to use with
1439
1481
  modeClassName="select")
1440
1482
  - ex: [
1441
- - { value: "", text: "" },
1442
- - { value: "val1", text: "text1" },
1443
- - { value: "val2", text: "text2" },
1444
- - { value: "val3", text: "text3" }
1445
- - ]
1483
+ - { value: "", text: "" },
1484
+ - { value: "val1", text: "text1" },
1485
+ - { value: "val2", text: "text2" },
1486
+ - { value: "val3", text: "text3" }
1487
+ - ]
1446
1488
  PR: https://github.com/xdan/jodit/pull/577 Thanks @s-renier-taonix-fr
1447
1489
 
1448
1490
  ##### New option `statusbar: boolean = true`
@@ -2593,14 +2635,10 @@ var editor = new Jodit('#example2_0', {
2593
2635
  Dom Module is now compatible with jQuery objects
2594
2636
 
2595
2637
  ```javascript
2596
- var a = jQuery("<a href="
2597
- #link
2598
- ">Link</a>"
2599
- )
2600
- ;
2638
+ var a = jQuery('<a href="#link">Link</a>');
2601
2639
  jodit.modules.Dom('.selector').append(a);
2602
- jodit.modules.Dom(jQuery("#someid")).val();
2603
- jodit.modules.Dom("#someid").val();
2640
+ jodit.modules.Dom(jQuery('#someid')).val();
2641
+ jodit.modules.Dom('#someid').val();
2604
2642
  ```
2605
2643
 
2606
2644
  But you must remember that Jodit.modules.Dom! = JQuery