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
@@ -11,7 +11,9 @@
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="Moved the test files to the appropriate directories" />
14
+ <list default="true" id="5da7ff7f-03a8-49de-9fbb-8f8640d83b83" name="Default Changelist" comment="">
15
+ <change beforePath="$PROJECT_DIR$/CHANGELOG.MD" beforeDir="false" afterPath="$PROJECT_DIR$/CHANGELOG.MD" afterDir="false" />
16
+ </list>
15
17
  <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" />
16
18
  <option name="SHOW_DIALOG" value="false" />
17
19
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -75,7 +77,7 @@
75
77
  <component name="PropertiesComponent">{
76
78
  &quot;keyToString&quot;: {
77
79
  &quot;WebServerToolWindowFactoryState&quot;: &quot;true&quot;,
78
- &quot;last_opened_file_path&quot;: &quot;/Users/v-chupurnov/WebstormProjects/pet/jodit/src/plugins/inline-popup&quot;,
80
+ &quot;last_opened_file_path&quot;: &quot;/Users/v-chupurnov/WebstormProjects/pet/jodit/src/plugins/speech/speech-recognize/helpers&quot;,
79
81
  &quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
80
82
  &quot;node.js.detected.package.stylelint&quot;: &quot;true&quot;,
81
83
  &quot;node.js.detected.package.tslint&quot;: &quot;true&quot;,
@@ -91,18 +93,18 @@
91
93
  }</component>
92
94
  <component name="RecentsManager">
93
95
  <key name="CopyFile.RECENT_KEYS">
96
+ <recent name="$PROJECT_DIR$/src/plugins/speech/speech-recognize/helpers" />
94
97
  <recent name="$PROJECT_DIR$/src/plugins/inline-popup" />
95
98
  <recent name="$PROJECT_DIR$/src/plugins/image" />
96
99
  <recent name="$PROJECT_DIR$/src/plugins/clipboard/drag-and-drop-element" />
97
100
  <recent name="$PROJECT_DIR$/src/plugins/line-height" />
98
- <recent name="$PROJECT_DIR$" />
99
101
  </key>
100
102
  <key name="MoveFile.RECENT_KEYS">
103
+ <recent name="$PROJECT_DIR$/src/plugins/print" />
104
+ <recent name="$PROJECT_DIR$/src/core/helpers/utils/errors" />
105
+ <recent name="$PROJECT_DIR$/src/plugins/speech/speech-recognize" />
101
106
  <recent name="$PROJECT_DIR$/src/core/create" />
102
107
  <recent name="$PROJECT_DIR$/src/langs" />
103
- <recent name="$PROJECT_DIR$/src/plugins" />
104
- <recent name="$PROJECT_DIR$/src/plugins/clipboard" />
105
- <recent name="$PROJECT_DIR$/src/core/helpers/size" />
106
108
  </key>
107
109
  </component>
108
110
  <component name="RunManager" selected="Node.js.find-tests.js">
@@ -819,91 +821,18 @@
819
821
  <workItem from="1652042752043" duration="2143000" />
820
822
  <workItem from="1652044910721" duration="81000" />
821
823
  <workItem from="1652045004195" duration="17714000" />
822
- <workItem from="1652217495723" duration="720000" />
823
- </task>
824
- <task id="LOCAL-01071" summary="Fixed composition `wait` and `debounce` decorators">
825
- <created>1647732750559</created>
826
- <option name="number" value="01071" />
827
- <option name="presentableId" value="LOCAL-01071" />
828
- <option name="project" value="LOCAL" />
829
- <updated>1647732750559</updated>
830
- </task>
831
- <task id="LOCAL-01072" summary="Fixed apply styles inside another styles">
832
- <created>1648290585805</created>
833
- <option name="number" value="01072" />
834
- <option name="presentableId" value="LOCAL-01072" />
835
- <option name="project" value="LOCAL" />
836
- <updated>1648290585805</updated>
837
- </task>
838
- <task id="LOCAL-01073" summary="Sass compile error Css3 min() #809&#10;Issue: https://github.com/xdan/jodit/issues/809">
839
- <created>1648376444855</created>
840
- <option name="number" value="01073" />
841
- <option name="presentableId" value="LOCAL-01073" />
842
- <option name="project" value="LOCAL" />
843
- <updated>1648376444855</updated>
844
- </task>
845
- <task id="LOCAL-01074" summary="Fixed image links">
846
- <created>1648376457006</created>
847
- <option name="number" value="01074" />
848
- <option name="presentableId" value="LOCAL-01074" />
849
- <option name="project" value="LOCAL" />
850
- <updated>1648376457006</updated>
851
- </task>
852
- <task id="LOCAL-01075" summary="The preview popup has double scrollbars #808&#10;Issue: https://github.com/xdan/jodit/issues/808">
853
- <created>1648376761158</created>
854
- <option name="number" value="01075" />
855
- <option name="presentableId" value="LOCAL-01075" />
856
- <option name="project" value="LOCAL" />
857
- <updated>1648376761158</updated>
858
- </task>
859
- <task id="LOCAL-01076" summary="Fixed bug with sync editor size with iframe mode (Works only with [ResizeObserver](https://caniuse.com/resizeobserver))">
860
- <created>1648381830154</created>
861
- <option name="number" value="01076" />
862
- <option name="presentableId" value="LOCAL-01076" />
863
- <option name="project" value="LOCAL" />
864
- <updated>1648381830154</updated>
865
- </task>
866
- <task id="LOCAL-01077" summary="Fixed bug with sync editor size with iframe mode (Works only with [ResizeObserver](https://caniuse.com/resizeobserver))">
867
- <created>1648381838293</created>
868
- <option name="number" value="01077" />
869
- <option name="presentableId" value="LOCAL-01077" />
870
- <option name="project" value="LOCAL" />
871
- <updated>1648381838293</updated>
872
- </task>
873
- <task id="LOCAL-01078" summary="Added `imageProcessor.replaceDataURIToBlobIdInView` functionality">
874
- <created>1648418431582</created>
875
- <option name="number" value="01078" />
876
- <option name="presentableId" value="LOCAL-01078" />
877
- <option name="project" value="LOCAL" />
878
- <updated>1648418431582</updated>
879
- </task>
880
- <task id="LOCAL-01079" summary="Added `imageProcessor.replaceDataURIToBlobIdInView` functionality">
881
- <created>1648418757762</created>
882
- <option name="number" value="01079" />
883
- <option name="presentableId" value="LOCAL-01079" />
884
- <option name="project" value="LOCAL" />
885
- <updated>1648418757762</updated>
886
- </task>
887
- <task id="LOCAL-01080" summary="Added `imageProcessor.replaceDataURIToBlobIdInView` functionality">
888
- <created>1648420872241</created>
889
- <option name="number" value="01080" />
890
- <option name="presentableId" value="LOCAL-01080" />
891
- <option name="project" value="LOCAL" />
892
- <updated>1648420872241</updated>
893
- </task>
894
- <task id="LOCAL-01081" summary="Remove deprecated event emmit">
895
- <created>1648424690941</created>
896
- <option name="number" value="01081" />
897
- <option name="presentableId" value="LOCAL-01081" />
898
- <option name="project" value="LOCAL" />
899
- <updated>1648424690941</updated>
900
- </task>
901
- <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">
902
- <created>1648755081713</created>
903
- <option name="number" value="01082" />
904
- <option name="presentableId" value="LOCAL-01082" />
905
- <option name="project" value="LOCAL" />
906
- <updated>1648755081714</updated>
824
+ <workItem from="1652217495723" duration="2120000" />
825
+ <workItem from="1652276295627" duration="290000" />
826
+ <workItem from="1652278073818" duration="2863000" />
827
+ <workItem from="1652284339282" duration="529000" />
828
+ <workItem from="1652288722754" duration="1515000" />
829
+ <workItem from="1652290653496" duration="1875000" />
830
+ <workItem from="1652357632395" duration="2336000" />
831
+ <workItem from="1652375698652" duration="3786000" />
832
+ <workItem from="1652381164201" duration="2798000" />
833
+ <workItem from="1652442012011" duration="62000" />
834
+ <workItem from="1652610834842" duration="8668000" />
835
+ <workItem from="1652719253405" duration="4951000" />
907
836
  </task>
908
837
  <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">
909
838
  <created>1648755114501</created>
@@ -1164,7 +1093,91 @@
1164
1093
  <option name="project" value="LOCAL" />
1165
1094
  <updated>1652217605928</updated>
1166
1095
  </task>
1167
- <option name="localTasksCounter" value="1120" />
1096
+ <task id="LOCAL-01120" summary="Merge">
1097
+ <created>1652218282019</created>
1098
+ <option name="number" value="01120" />
1099
+ <option name="presentableId" value="LOCAL-01120" />
1100
+ <option name="project" value="LOCAL" />
1101
+ <updated>1652218282019</updated>
1102
+ </task>
1103
+ <task id="LOCAL-01121" summary="Merge">
1104
+ <created>1652218678007</created>
1105
+ <option name="number" value="01121" />
1106
+ <option name="presentableId" value="LOCAL-01121" />
1107
+ <option name="project" value="LOCAL" />
1108
+ <updated>1652218678007</updated>
1109
+ </task>
1110
+ <task id="LOCAL-01122" summary="Merge">
1111
+ <created>1652218704246</created>
1112
+ <option name="number" value="01122" />
1113
+ <option name="presentableId" value="LOCAL-01122" />
1114
+ <option name="project" value="LOCAL" />
1115
+ <updated>1652218704246</updated>
1116
+ </task>
1117
+ <task id="LOCAL-01123" summary="Merge">
1118
+ <created>1652218824617</created>
1119
+ <option name="number" value="01123" />
1120
+ <option name="presentableId" value="LOCAL-01123" />
1121
+ <option name="project" value="LOCAL" />
1122
+ <updated>1652218824618</updated>
1123
+ </task>
1124
+ <task id="LOCAL-01124" summary="Fixed a bug where pressing `Esc` did not close the dialog">
1125
+ <created>1652298901561</created>
1126
+ <option name="number" value="01124" />
1127
+ <option name="presentableId" value="LOCAL-01124" />
1128
+ <option name="project" value="LOCAL" />
1129
+ <updated>1652298901562</updated>
1130
+ </task>
1131
+ <task id="LOCAL-01125" summary="Added option `uploader.processFileName` - The method can be used to change the name of the uploaded file">
1132
+ <created>1652377125784</created>
1133
+ <option name="number" value="01125" />
1134
+ <option name="presentableId" value="LOCAL-01125" />
1135
+ <option name="project" value="LOCAL" />
1136
+ <updated>1652377125784</updated>
1137
+ </task>
1138
+ <task id="LOCAL-01126" summary="Fixed file naming error when uploading to server">
1139
+ <created>1652378235293</created>
1140
+ <option name="number" value="01126" />
1141
+ <option name="presentableId" value="LOCAL-01126" />
1142
+ <option name="project" value="LOCAL" />
1143
+ <updated>1652378235293</updated>
1144
+ </task>
1145
+ <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">
1146
+ <created>1652719607637</created>
1147
+ <option name="number" value="01127" />
1148
+ <option name="presentableId" value="LOCAL-01127" />
1149
+ <option name="project" value="LOCAL" />
1150
+ <updated>1652719607637</updated>
1151
+ </task>
1152
+ <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">
1153
+ <created>1652719761468</created>
1154
+ <option name="number" value="01128" />
1155
+ <option name="presentableId" value="LOCAL-01128" />
1156
+ <option name="project" value="LOCAL" />
1157
+ <updated>1652719761468</updated>
1158
+ </task>
1159
+ <task id="LOCAL-01129" summary="Fixed table default style">
1160
+ <created>1652723764770</created>
1161
+ <option name="number" value="01129" />
1162
+ <option name="presentableId" value="LOCAL-01129" />
1163
+ <option name="project" value="LOCAL" />
1164
+ <updated>1652723764770</updated>
1165
+ </task>
1166
+ <task id="LOCAL-01130" summary="Fixed styles inside print mode">
1167
+ <created>1652723793165</created>
1168
+ <option name="number" value="01130" />
1169
+ <option name="presentableId" value="LOCAL-01130" />
1170
+ <option name="project" value="LOCAL" />
1171
+ <updated>1652723793165</updated>
1172
+ </task>
1173
+ <task id="LOCAL-01131" summary="Fixed styles inside print mode">
1174
+ <created>1652724201058</created>
1175
+ <option name="number" value="01131" />
1176
+ <option name="presentableId" value="LOCAL-01131" />
1177
+ <option name="project" value="LOCAL" />
1178
+ <updated>1652724201058</updated>
1179
+ </task>
1180
+ <option name="localTasksCounter" value="1132" />
1168
1181
  <servers />
1169
1182
  </component>
1170
1183
  <component name="TypeScriptGeneratedFilesManager">
@@ -1304,14 +1317,6 @@
1304
1317
  </component>
1305
1318
  <component name="VcsManagerConfiguration">
1306
1319
  <option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="false" />
1307
- <MESSAGE value="Keyboard Trap in Source Code mode #817&#10;Issue: https://github.com/xdan/jodit/issues/817" />
1308
- <MESSAGE value="Fixed component inheritance error after component decorator" />
1309
- <MESSAGE value="Fixed processing of inserting videos from YouTube. Now you can start playing the video." />
1310
- <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" />
1311
- <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" />
1312
- <MESSAGE value="Image hyperlink is not working without https:// #821&#10;Issue: https://github.com/xdan/jodit/issues/821" />
1313
- <MESSAGE value="All components have their own instance of the Async module. What used to be `this.j.async` is now `this.async`." />
1314
- <MESSAGE value="Added tests for Enter plugin" />
1315
1320
  <MESSAGE value="Fixed non-removal of the event handler on destruct" />
1316
1321
  <MESSAGE value="Clear events Key after destruct" />
1317
1322
  <MESSAGE value="Added test for Enter inside nested list" />
@@ -1329,7 +1334,15 @@
1329
1334
  <MESSAGE value="Fix tests" />
1330
1335
  <MESSAGE value="Moved the test files to the appropriate directories" />
1331
1336
  <MESSAGE value="Added event `applyLink` for issue &#10;change default target for all links #841&#10;Issue: https://github.com/xdan/jodit/issues/841" />
1332
- <option name="LAST_COMMIT_MESSAGE" value="Added event `applyLink` for issue &#10;change default target for all links #841&#10;Issue: https://github.com/xdan/jodit/issues/841" />
1337
+ <MESSAGE value="Merge" />
1338
+ <MESSAGE value="Fixed a bug where pressing `Esc` did not close the dialog" />
1339
+ <MESSAGE value="Added option `uploader.processFileName` - The method can be used to change the name of the uploaded file" />
1340
+ <MESSAGE value="Fixed file naming error when uploading to server" />
1341
+ <MESSAGE value="Try fix datapro" />
1342
+ <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" />
1343
+ <MESSAGE value="Fixed table default style" />
1344
+ <MESSAGE value="Fixed styles inside print mode" />
1345
+ <option name="LAST_COMMIT_MESSAGE" value="Fixed styles inside print mode" />
1333
1346
  </component>
1334
1347
  <component name="XDebuggerManager">
1335
1348
  <breakpoint-manager>
package/CHANGELOG.MD CHANGED
@@ -9,7 +9,54 @@
9
9
  > - :house: [Internal]
10
10
  > - :nail_care: [Polish]
11
11
 
12
- ## 3.17.2
12
+ ## 3.18.5
13
+
14
+ #### :boom: Breaking Change
15
+
16
+ - Added default table style to `createAttributes` option:
17
+
18
+ ```js
19
+ Jodit.defaultOptions.createAttributes = {
20
+ table: {
21
+ style: 'border-collapse:collapse;width: 100%;'
22
+ }
23
+ };
24
+ ```
25
+
26
+ #### :bug: Bug Fix
27
+
28
+ - Fixed a bug where the download cancellation business exceptions were shown as errors in the file browser. Also fixed uncatchable exceptions inside Async.promise
29
+ - [Fixed Eraser delete "<a>" tag! #705 #845](https://github.com/xdan/jodit/pull/845) Thanks @s-renier-taonix-fr
30
+ - [Update Docker Env #844](https://github.com/xdan/jodit/pull/844) Thanks @s-renier-taonix-fr
31
+ - Fixed table default styles [Jodit doesn't keep table borders #295](https://github.com/xdan/jodit/issues/295)
32
+ - [All td elements got double border style. #842](https://github.com/xdan/jodit/issues/842)
33
+
34
+ ## 3.18.4
35
+
36
+ #### :rocket: New Feature
37
+
38
+ - Added option `uploader.processFileName` - The method can be used to change the name of the uploaded file
39
+
40
+ ```js
41
+ Jodit.make('#editor', {
42
+ uploader: {
43
+ url: 'some-connector.php',
44
+ processFileName: (key, file, name) => {
45
+ return [key, file, 'some-prefix_' + name];
46
+ }
47
+ }
48
+ });
49
+ ```
50
+
51
+ - Fixed file naming error when uploading to server
52
+
53
+ ## 3.18.3
54
+
55
+ #### :bug: Bug Fix
56
+
57
+ - Fixed a bug where pressing `Esc` did not close the dialog
58
+
59
+ ## 3.18.2
13
60
 
14
61
  #### :boom: Breaking Change
15
62
 
@@ -634,34 +681,28 @@ console.log(Jodit.modules.UIButton.componentName); // jodit-ui-button
634
681
  - [Remember last opened folder with FileBrowser #675](https://github.com/xdan/jodit/issues/675)
635
682
  Boolean option `filebrowser.saveStateInStorage` split to dictionary:
636
683
 
637
- ```ts
638
- interface IFileBrowserOptions
639
-
640
- :
641
- {
642
- }
643
- saveStateInStorage: false | {
644
- storeLastOpenedFolder? : boolean;
645
- storeView? : boolean;
646
- storeSortBy? : boolean;
647
- };
684
+ ```typescript
685
+ interface IFileBrowserOptions {
686
+ saveStateInStorage:
687
+ | false
688
+ | {
689
+ storeLastOpenedFolder?: boolean;
690
+ storeView?: boolean;
691
+ storeSortBy?: boolean;
692
+ };
648
693
  }
649
694
  ```
650
695
 
651
696
  By default:
652
697
 
653
698
  ```js
654
- {
699
+ opt = {
655
700
  saveStateInStorage: {
656
701
  storeLastOpenedFolder: true,
657
- storeView
658
- :
659
- true,
660
- storeSortBy
661
- :
662
- true
702
+ storeView: true,
703
+ storeSortBy: true
663
704
  }
664
- }
705
+ };
665
706
  ```
666
707
 
667
708
  Disable it:
@@ -763,9 +804,8 @@ await new Ajax(editor, {
763
804
  await new Ajax(editor, {
764
805
  url: 'index.php'
765
806
  })
766
- .send()˚
767
- .
768
- then(resp => resp.json()); // {success: true, data: ...}
807
+ .send()
808
+ .then(resp => resp.json()); // {success: true, data: ...}
769
809
  ```
770
810
 
771
811
  - In `.npmignore` added:
@@ -1432,11 +1472,11 @@ Related with https://github.com/xdan/jodit/issues/574. In some cases need to lim
1432
1472
  - @property {IUIOption[]} link.selectOptionsClassName=[] The list of the option for the select (to use with
1433
1473
  modeClassName="select")
1434
1474
  - ex: [
1435
- - { value: "", text: "" },
1436
- - { value: "val1", text: "text1" },
1437
- - { value: "val2", text: "text2" },
1438
- - { value: "val3", text: "text3" }
1439
- - ]
1475
+ - { value: "", text: "" },
1476
+ - { value: "val1", text: "text1" },
1477
+ - { value: "val2", text: "text2" },
1478
+ - { value: "val3", text: "text3" }
1479
+ - ]
1440
1480
  PR: https://github.com/xdan/jodit/pull/577 Thanks @s-renier-taonix-fr
1441
1481
 
1442
1482
  ##### New option `statusbar: boolean = true`
@@ -2587,14 +2627,10 @@ var editor = new Jodit('#example2_0', {
2587
2627
  Dom Module is now compatible with jQuery objects
2588
2628
 
2589
2629
  ```javascript
2590
- var a = jQuery("<a href="
2591
- #link
2592
- ">Link</a>"
2593
- )
2594
- ;
2630
+ var a = jQuery('<a href="#link">Link</a>');
2595
2631
  jodit.modules.Dom('.selector').append(a);
2596
- jodit.modules.Dom(jQuery("#someid")).val();
2597
- jodit.modules.Dom("#someid").val();
2632
+ jodit.modules.Dom(jQuery('#someid')).val();
2633
+ jodit.modules.Dom('#someid').val();
2598
2634
  ```
2599
2635
 
2600
2636
  But you must remember that Jodit.modules.Dom! = JQuery
package/README.md CHANGED
@@ -55,9 +55,9 @@ ES2018 Version (if your users use only modern browsers)
55
55
  ```html
56
56
  <link
57
57
  rel="stylesheet"
58
- href="https://cdnjs.cloudflare.com/ajax/libs/jodit/3.13.4/jodit.es2018.min.css"
58
+ href="https://cdnjs.cloudflare.com/ajax/libs/jodit/3.18.2/jodit.es2018.min.css"
59
59
  />
60
- <script src="https://cdnjs.cloudflare.com/ajax/libs/jodit/3.13.4/jodit.es2018.min.js"></script>
60
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/jodit/3.18.2/jodit.es2018.min.js"></script>
61
61
  ```
62
62
 
63
63
  ### USAGE
package/build/jodit.css CHANGED
@@ -1,14 +1,14 @@
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
  */
8
8
  /*!
9
9
  * jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
10
10
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/)
11
- * Version: v3.18.2
11
+ * Version: v3.18.5
12
12
  * Url: https://xdsoft.net/jodit/
13
13
  * License(s): MIT
14
14
  */
@@ -5583,9 +5583,7 @@ html.jodit_fullsize-box_true {
5583
5583
  * Released under MIT see LICENSE.txt in the project root for license information.
5584
5584
  * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5585
5585
  */
5586
- td[style*='border'] {
5587
- border-style: double !important;
5588
- }
5586
+ .jodit-context table,
5589
5587
  .jodit-wysiwyg table {
5590
5588
  max-width: 100%;
5591
5589
  border: none;
@@ -5594,12 +5592,30 @@ td[style*='border'] {
5594
5592
  border-collapse: collapse;
5595
5593
  empty-cells: show;
5596
5594
  }
5595
+ .jodit-context table tr,
5597
5596
  .jodit-wysiwyg table tr {
5598
5597
  -webkit-user-select: none;
5599
5598
  -moz-user-select: none;
5600
5599
  -ms-user-select: none;
5601
5600
  user-select: none;
5602
5601
  }
5602
+ .jodit-context table tr th {
5603
+ min-width: 2em;
5604
+ padding: 0.4em;
5605
+ border: 1px solid #dadada;
5606
+ -webkit-user-select: text;
5607
+ -moz-user-select: text;
5608
+ -ms-user-select: text;
5609
+ user-select: text;
5610
+ vertical-align: middle;
5611
+ /**
5612
+ // In some circumstances, because of this rule,
5613
+ // the borders of the table are not shown - you need to find out under what
5614
+ &[style*='border'] {
5615
+ border-style: double !important;
5616
+ }
5617
+ */
5618
+ }
5603
5619
  .jodit-wysiwyg table tr th {
5604
5620
  min-width: 2em;
5605
5621
  padding: 0.4em;
@@ -5609,6 +5625,30 @@ td[style*='border'] {
5609
5625
  -ms-user-select: text;
5610
5626
  user-select: text;
5611
5627
  vertical-align: middle;
5628
+ /**
5629
+ // In some circumstances, because of this rule,
5630
+ // the borders of the table are not shown - you need to find out under what
5631
+ &[style*='border'] {
5632
+ border-style: double !important;
5633
+ }
5634
+ */
5635
+ }
5636
+ .jodit-context table tr td {
5637
+ min-width: 2em;
5638
+ padding: 0.4em;
5639
+ border: 1px solid #dadada;
5640
+ -webkit-user-select: text;
5641
+ -moz-user-select: text;
5642
+ -ms-user-select: text;
5643
+ user-select: text;
5644
+ vertical-align: middle;
5645
+ /**
5646
+ // In some circumstances, because of this rule,
5647
+ // the borders of the table are not shown - you need to find out under what
5648
+ &[style*='border'] {
5649
+ border-style: double !important;
5650
+ }
5651
+ */
5612
5652
  }
5613
5653
  .jodit-wysiwyg table tr td {
5614
5654
  min-width: 2em;
@@ -5619,6 +5659,13 @@ td[style*='border'] {
5619
5659
  -ms-user-select: text;
5620
5660
  user-select: text;
5621
5661
  vertical-align: middle;
5662
+ /**
5663
+ // In some circumstances, because of this rule,
5664
+ // the borders of the table are not shown - you need to find out under what
5665
+ &[style*='border'] {
5666
+ border-style: double !important;
5667
+ }
5668
+ */
5622
5669
  }
5623
5670
  .jodit-table-resizer {
5624
5671
  position: absolute;
@@ -5759,6 +5806,13 @@ td[style*='border'] {
5759
5806
  -ms-user-select: text;
5760
5807
  user-select: text;
5761
5808
  vertical-align: middle;
5809
+ /**
5810
+ // In some circumstances, because of this rule,
5811
+ // the borders of the table are not shown - you need to find out under what
5812
+ &[style*='border'] {
5813
+ border-style: double !important;
5814
+ }
5815
+ */
5762
5816
  }
5763
5817
  .jodit__preview-box table tr td {
5764
5818
  min-width: 2em;
@@ -5769,6 +5823,13 @@ td[style*='border'] {
5769
5823
  -ms-user-select: text;
5770
5824
  user-select: text;
5771
5825
  vertical-align: middle;
5826
+ /**
5827
+ // In some circumstances, because of this rule,
5828
+ // the borders of the table are not shown - you need to find out under what
5829
+ &[style*='border'] {
5830
+ border-style: double !important;
5831
+ }
5832
+ */
5772
5833
  }
5773
5834
 
5774
5835
  /*!
@@ -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
  /*!