jodit 3.9.4 → 3.9.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.
- package/.idea/workspace.xml +84 -82
- package/CHANGELOG.MD +109 -5
- package/build/jodit.css +450 -427
- package/build/jodit.es2018.css +298 -283
- package/build/jodit.es2018.en.css +298 -283
- package/build/jodit.es2018.en.js +539 -336
- package/build/jodit.es2018.en.min.css +1 -1
- package/build/jodit.es2018.en.min.js +1 -1
- package/build/jodit.es2018.js +575 -372
- package/build/jodit.es2018.min.css +1 -1
- package/build/jodit.es2018.min.js +1 -1
- package/build/jodit.js +1142 -876
- package/build/jodit.min.css +2 -2
- package/build/jodit.min.js +1 -1
- package/package.json +1 -1
- package/src/config.ts +18 -19
- package/src/core/component/component.ts +16 -15
- package/src/core/storage/engines/local-storage-provider.ts +9 -3
- package/src/core/storage/engines/memory-storage-provider.ts +6 -3
- package/src/core/storage/storage.ts +7 -4
- package/src/core/ui/icon.ts +1 -0
- package/src/core/ui/index.ts +1 -3
- package/src/core/ui/list/group.less +8 -2
- package/src/{modules/file-browser/consts.ts → core/ui/list/index.ts} +4 -4
- package/src/core/ui/list/list.less +9 -1
- package/src/core/ui/list/list.ts +20 -3
- package/src/core/ui/{separator.ts → list/separator.ts} +2 -2
- package/src/core/ui/list/spacer.ts +15 -0
- package/src/core/view/view-with-toolbar.ts +2 -1
- package/src/modules/dialog/dialog.less +1 -15
- package/src/modules/dialog/dialog.ts +8 -1
- package/src/modules/file-browser/builders/context-menu.ts +29 -22
- package/src/modules/file-browser/config.ts +10 -2
- package/src/modules/file-browser/file-browser.ts +50 -29
- package/src/modules/file-browser/listeners/native-listeners.ts +37 -19
- package/src/modules/file-browser/listeners/state-listeners.ts +48 -22
- package/src/modules/file-browser/styles/file-browser.less +4 -291
- package/src/modules/file-browser/styles/preview.less +11 -8
- package/src/modules/file-browser/ui/files/files.less +174 -0
- package/src/modules/file-browser/ui/files/files.ts +14 -0
- package/{types/modules/file-browser/consts.d.ts → src/modules/file-browser/ui/index.ts} +3 -3
- package/src/modules/file-browser/ui/tree/tree.less +118 -0
- package/src/modules/file-browser/ui/tree/tree.ts +14 -0
- package/src/modules/toolbar/collection/collection.ts +17 -3
- package/src/modules/toolbar/collection/editor-collection.ts +22 -1
- package/src/plugins/clipboard/drag-and-drop.ts +4 -1
- package/src/plugins/inline-popup/config/config.ts +1 -0
- package/src/plugins/inline-popup/config/items/toolbar.ts +33 -0
- package/src/plugins/inline-popup/inline-popup.ts +17 -0
- package/src/plugins/size/resize-handler.ts +5 -2
- package/src/plugins/size/size.less +2 -17
- package/src/plugins/size/size.ts +6 -1
- package/src/plugins/sticky/sticky.ts +2 -0
- package/src/styles/icons/index.ts +2 -0
- package/src/{plugins/size/assests → styles/icons}/resize-handler.svg +0 -0
- package/src/styles/mixins.less +20 -0
- package/src/types/ajax.d.ts +0 -1
- package/src/types/file-browser.d.ts +13 -1
- package/src/types/jodit.d.ts +7 -1
- package/src/types/select.d.ts +2 -0
- package/src/types/storage.ts +3 -3
- package/src/types/style.d.ts +7 -1
- package/src/types/toolbar.d.ts +7 -1
- package/src/types/types.d.ts +1 -1
- package/src/types/view.d.ts +1 -1
- package/types/core/component/component.d.ts +4 -3
- package/types/core/storage/engines/local-storage-provider.d.ts +3 -3
- package/types/core/storage/engines/memory-storage-provider.d.ts +3 -3
- package/types/core/storage/storage.d.ts +3 -3
- package/types/core/ui/index.d.ts +1 -3
- package/types/core/ui/list/index.d.ts +9 -0
- package/types/core/ui/{separator.d.ts → list/separator.d.ts} +1 -1
- package/types/core/ui/list/spacer.d.ts +9 -0
- package/types/core/view/view-with-toolbar.d.ts +2 -1
- package/types/modules/file-browser/file-browser.d.ts +3 -2
- package/types/modules/file-browser/listeners/native-listeners.d.ts +5 -1
- package/types/modules/file-browser/ui/files/files.d.ts +10 -0
- package/types/modules/file-browser/ui/index.d.ts +7 -0
- package/types/modules/file-browser/ui/tree/tree.d.ts +10 -0
- package/types/modules/toolbar/collection/collection.d.ts +5 -2
- package/types/modules/toolbar/collection/editor-collection.d.ts +9 -1
- package/types/plugins/inline-popup/inline-popup.d.ts +4 -0
- package/types/styles/icons/index.d.ts +2 -1
- package/types/types/ajax.d.ts +0 -1
- package/types/types/file-browser.d.ts +13 -1
- package/types/types/jodit.d.ts +7 -1
- package/types/types/select.d.ts +2 -0
- package/types/types/storage.d.ts +3 -3
- package/types/types/storage.ts +3 -3
- package/types/types/style.d.ts +7 -1
- package/types/types/toolbar.d.ts +7 -1
- package/types/types/types.d.ts +1 -1
- package/types/types/view.d.ts +1 -1
package/.idea/workspace.xml
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
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="
|
|
14
|
+
<list default="true" id="5da7ff7f-03a8-49de-9fbb-8f8640d83b83" name="Default Changelist" comment="">
|
|
15
15
|
<change beforePath="$PROJECT_DIR$/build/jodit.css" beforeDir="false" />
|
|
16
16
|
<change beforePath="$PROJECT_DIR$/build/jodit.es2018.css" beforeDir="false" />
|
|
17
17
|
<change beforePath="$PROJECT_DIR$/build/jodit.es2018.en.css" beforeDir="false" />
|
|
@@ -24,10 +24,7 @@
|
|
|
24
24
|
<change beforePath="$PROJECT_DIR$/build/jodit.js" beforeDir="false" afterPath="$PROJECT_DIR$/build/jodit.js" afterDir="false" />
|
|
25
25
|
<change beforePath="$PROJECT_DIR$/build/jodit.min.css" beforeDir="false" />
|
|
26
26
|
<change beforePath="$PROJECT_DIR$/build/jodit.min.js" beforeDir="false" />
|
|
27
|
-
<change beforePath="$PROJECT_DIR$/src/
|
|
28
|
-
<change beforePath="$PROJECT_DIR$/src/core/selection/style/api/toggle/toggle-css.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/core/selection/style/api/toggle/toggle-css.ts" afterDir="false" />
|
|
29
|
-
<change beforePath="$PROJECT_DIR$/src/core/selection/style/apply-style.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/core/selection/style/apply-style.ts" afterDir="false" />
|
|
30
|
-
<change beforePath="$PROJECT_DIR$/test/tests/units/styleTest.js" beforeDir="false" afterPath="$PROJECT_DIR$/test/tests/units/styleTest.js" afterDir="false" />
|
|
27
|
+
<change beforePath="$PROJECT_DIR$/src/types/jodit.d.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/types/jodit.d.ts" afterDir="false" />
|
|
31
28
|
</list>
|
|
32
29
|
<list id="5049e1d4-15bc-4e3a-b46b-d2ce7537fc13" name="Revert "Some small fixes"" comment="Revert "Some small fixes" This reverts commit bc391ec6" />
|
|
33
30
|
<option name="SHOW_DIALOG" value="false" />
|
|
@@ -107,7 +104,7 @@
|
|
|
107
104
|
<property name="js.linters.configure.manually.selectedeslint" value="true" />
|
|
108
105
|
<property name="jsx.switch.disabled" value="true" />
|
|
109
106
|
<property name="last.edited.regexp" value="Sample Text" />
|
|
110
|
-
<property name="last_opened_file_path" value="$PROJECT_DIR$/src/
|
|
107
|
+
<property name="last_opened_file_path" value="$PROJECT_DIR$/src/modules/file-browser/ui" />
|
|
111
108
|
<property name="node.js.detected.package.eslint" value="true" />
|
|
112
109
|
<property name="node.js.detected.package.jscs" value="true" />
|
|
113
110
|
<property name="node.js.detected.package.standard" value="true" />
|
|
@@ -140,18 +137,18 @@
|
|
|
140
137
|
</component>
|
|
141
138
|
<component name="RecentsManager">
|
|
142
139
|
<key name="CopyFile.RECENT_KEYS">
|
|
140
|
+
<recent name="$PROJECT_DIR$/src/modules/file-browser/ui" />
|
|
143
141
|
<recent name="$PROJECT_DIR$/src/core/selection/style" />
|
|
144
142
|
<recent name="$PROJECT_DIR$/src/styles/icons" />
|
|
145
143
|
<recent name="$PROJECT_DIR$/src/plugins/table" />
|
|
146
144
|
<recent name="$PROJECT_DIR$/src/core/helpers/utils" />
|
|
147
|
-
<recent name="$PROJECT_DIR$/src/core/decorators" />
|
|
148
145
|
</key>
|
|
149
146
|
<key name="MoveFile.RECENT_KEYS">
|
|
147
|
+
<recent name="$PROJECT_DIR$/src/styles/icons" />
|
|
148
|
+
<recent name="$PROJECT_DIR$/src/core/ui/list" />
|
|
150
149
|
<recent name="$PROJECT_DIR$/src/plugins" />
|
|
151
150
|
<recent name="$PROJECT_DIR$/src/plugins/size/assests" />
|
|
152
151
|
<recent name="$PROJECT_DIR$/src/core/request" />
|
|
153
|
-
<recent name="$PROJECT_DIR$/build-system/utils" />
|
|
154
|
-
<recent name="$PROJECT_DIR$/build-system/plugins" />
|
|
155
152
|
</key>
|
|
156
153
|
</component>
|
|
157
154
|
<component name="RunManager" selected="Shell Script.build">
|
|
@@ -737,70 +734,12 @@
|
|
|
737
734
|
<workItem from="1635274751066" duration="80856000" />
|
|
738
735
|
<workItem from="1635849925964" duration="1202000" />
|
|
739
736
|
<workItem from="1635864760383" duration="729000" />
|
|
740
|
-
<workItem from="1635865507309" duration="
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
<
|
|
744
|
-
<
|
|
745
|
-
<
|
|
746
|
-
<option name="project" value="LOCAL" />
|
|
747
|
-
<updated>1635183679922</updated>
|
|
748
|
-
</task>
|
|
749
|
-
<task id="LOCAL-00837" summary="Rename events-native to event-emitter">
|
|
750
|
-
<created>1635183714470</created>
|
|
751
|
-
<option name="number" value="00837" />
|
|
752
|
-
<option name="presentableId" value="LOCAL-00837" />
|
|
753
|
-
<option name="project" value="LOCAL" />
|
|
754
|
-
<updated>1635183714470</updated>
|
|
755
|
-
</task>
|
|
756
|
-
<task id="LOCAL-00838" summary="Rename events-native.ts to event-emitter.ts">
|
|
757
|
-
<created>1635183915598</created>
|
|
758
|
-
<option name="number" value="00838" />
|
|
759
|
-
<option name="presentableId" value="LOCAL-00838" />
|
|
760
|
-
<option name="project" value="LOCAL" />
|
|
761
|
-
<updated>1635183915598</updated>
|
|
762
|
-
</task>
|
|
763
|
-
<task id="LOCAL-00839" summary="Rename events-native.ts to event-emitter.ts">
|
|
764
|
-
<created>1635184064305</created>
|
|
765
|
-
<option name="number" value="00839" />
|
|
766
|
-
<option name="presentableId" value="LOCAL-00839" />
|
|
767
|
-
<option name="project" value="LOCAL" />
|
|
768
|
-
<updated>1635184064305</updated>
|
|
769
|
-
</task>
|
|
770
|
-
<task id="LOCAL-00840" summary="ReBuild">
|
|
771
|
-
<created>1635184106602</created>
|
|
772
|
-
<option name="number" value="00840" />
|
|
773
|
-
<option name="presentableId" value="LOCAL-00840" />
|
|
774
|
-
<option name="project" value="LOCAL" />
|
|
775
|
-
<updated>1635184106602</updated>
|
|
776
|
-
</task>
|
|
777
|
-
<task id="LOCAL-00841" summary="Rename events-native.ts to event-emitter.ts">
|
|
778
|
-
<created>1635184241538</created>
|
|
779
|
-
<option name="number" value="00841" />
|
|
780
|
-
<option name="presentableId" value="LOCAL-00841" />
|
|
781
|
-
<option name="project" value="LOCAL" />
|
|
782
|
-
<updated>1635184241538</updated>
|
|
783
|
-
</task>
|
|
784
|
-
<task id="LOCAL-00842" summary="ReBuild">
|
|
785
|
-
<created>1635184250925</created>
|
|
786
|
-
<option name="number" value="00842" />
|
|
787
|
-
<option name="presentableId" value="LOCAL-00842" />
|
|
788
|
-
<option name="project" value="LOCAL" />
|
|
789
|
-
<updated>1635184250925</updated>
|
|
790
|
-
</task>
|
|
791
|
-
<task id="LOCAL-00843" summary="Small refactoring">
|
|
792
|
-
<created>1635184331470</created>
|
|
793
|
-
<option name="number" value="00843" />
|
|
794
|
-
<option name="presentableId" value="LOCAL-00843" />
|
|
795
|
-
<option name="project" value="LOCAL" />
|
|
796
|
-
<updated>1635184331470</updated>
|
|
797
|
-
</task>
|
|
798
|
-
<task id="LOCAL-00844" summary="Small refactoring">
|
|
799
|
-
<created>1635184373662</created>
|
|
800
|
-
<option name="number" value="00844" />
|
|
801
|
-
<option name="presentableId" value="LOCAL-00844" />
|
|
802
|
-
<option name="project" value="LOCAL" />
|
|
803
|
-
<updated>1635184373662</updated>
|
|
737
|
+
<workItem from="1635865507309" duration="8297000" />
|
|
738
|
+
<workItem from="1635932019443" duration="3409000" />
|
|
739
|
+
<workItem from="1636477464236" duration="2846000" />
|
|
740
|
+
<workItem from="1636561946240" duration="87000" />
|
|
741
|
+
<workItem from="1636569485566" duration="670000" />
|
|
742
|
+
<workItem from="1636640886988" duration="20040000" />
|
|
804
743
|
</task>
|
|
805
744
|
<task id="LOCAL-00845" summary="BOOM: Move Ajax class into `request` folder. Changed the signature of the send method in the Ajax API and is closer to the fetch () API">
|
|
806
745
|
<created>1635184520307</created>
|
|
@@ -1082,7 +1021,70 @@
|
|
|
1082
1021
|
<option name="project" value="LOCAL" />
|
|
1083
1022
|
<updated>1635872918386</updated>
|
|
1084
1023
|
</task>
|
|
1085
|
-
<
|
|
1024
|
+
<task id="LOCAL-00885" summary="Allow use prototype as component name">
|
|
1025
|
+
<created>1636657049441</created>
|
|
1026
|
+
<option name="number" value="00885" />
|
|
1027
|
+
<option name="presentableId" value="LOCAL-00885" />
|
|
1028
|
+
<option name="project" value="LOCAL" />
|
|
1029
|
+
<updated>1636657049441</updated>
|
|
1030
|
+
</task>
|
|
1031
|
+
<task id="LOCAL-00886" summary="Allow use prototype as component name">
|
|
1032
|
+
<created>1636657219708</created>
|
|
1033
|
+
<option name="number" value="00886" />
|
|
1034
|
+
<option name="presentableId" value="LOCAL-00886" />
|
|
1035
|
+
<option name="project" value="LOCAL" />
|
|
1036
|
+
<updated>1636657219708</updated>
|
|
1037
|
+
</task>
|
|
1038
|
+
<task id="LOCAL-00887" summary="Spacer in Button Toolbar Issue: https://github.com/xdan/jodit/issues/713">
|
|
1039
|
+
<created>1636657301732</created>
|
|
1040
|
+
<option name="number" value="00887" />
|
|
1041
|
+
<option name="presentableId" value="LOCAL-00887" />
|
|
1042
|
+
<option name="project" value="LOCAL" />
|
|
1043
|
+
<updated>1636657301732</updated>
|
|
1044
|
+
</task>
|
|
1045
|
+
<task id="LOCAL-00888" summary="Changed IStorage signature">
|
|
1046
|
+
<created>1636657342609</created>
|
|
1047
|
+
<option name="number" value="00888" />
|
|
1048
|
+
<option name="presentableId" value="LOCAL-00888" />
|
|
1049
|
+
<option name="project" value="LOCAL" />
|
|
1050
|
+
<updated>1636657342609</updated>
|
|
1051
|
+
</task>
|
|
1052
|
+
<task id="LOCAL-00889" summary="Remember last opened folder with FileBrowser #675 Issue: https://github.com/xdan/jodit/issues/675">
|
|
1053
|
+
<created>1636657657840</created>
|
|
1054
|
+
<option name="number" value="00889" />
|
|
1055
|
+
<option name="presentableId" value="LOCAL-00889" />
|
|
1056
|
+
<option name="project" value="LOCAL" />
|
|
1057
|
+
<updated>1636657657840</updated>
|
|
1058
|
+
</task>
|
|
1059
|
+
<task id="LOCAL-00890" summary="Remember last opened folder with FileBrowser #675 Issue: https://github.com/xdan/jodit/issues/675">
|
|
1060
|
+
<created>1636659626435</created>
|
|
1061
|
+
<option name="number" value="00890" />
|
|
1062
|
+
<option name="presentableId" value="LOCAL-00890" />
|
|
1063
|
+
<option name="project" value="LOCAL" />
|
|
1064
|
+
<updated>1636659626435</updated>
|
|
1065
|
+
</task>
|
|
1066
|
+
<task id="LOCAL-00891" summary="Feature request: Open the inline toolbar without having to highlight text. #600 Inline: https://github.com/xdan/jodit/issues/600">
|
|
1067
|
+
<created>1636663933769</created>
|
|
1068
|
+
<option name="number" value="00891" />
|
|
1069
|
+
<option name="presentableId" value="LOCAL-00891" />
|
|
1070
|
+
<option name="project" value="LOCAL" />
|
|
1071
|
+
<updated>1636663933769</updated>
|
|
1072
|
+
</task>
|
|
1073
|
+
<task id="LOCAL-00892" summary="Reformat">
|
|
1074
|
+
<created>1636663973424</created>
|
|
1075
|
+
<option name="number" value="00892" />
|
|
1076
|
+
<option name="presentableId" value="LOCAL-00892" />
|
|
1077
|
+
<option name="project" value="LOCAL" />
|
|
1078
|
+
<updated>1636663973424</updated>
|
|
1079
|
+
</task>
|
|
1080
|
+
<task id="LOCAL-00893" summary="Reformat">
|
|
1081
|
+
<created>1636664686084</created>
|
|
1082
|
+
<option name="number" value="00893" />
|
|
1083
|
+
<option name="presentableId" value="LOCAL-00893" />
|
|
1084
|
+
<option name="project" value="LOCAL" />
|
|
1085
|
+
<updated>1636664686084</updated>
|
|
1086
|
+
</task>
|
|
1087
|
+
<option name="localTasksCounter" value="894" />
|
|
1086
1088
|
<servers />
|
|
1087
1089
|
</component>
|
|
1088
1090
|
<component name="TypeScriptGeneratedFilesManager">
|
|
@@ -1223,12 +1225,6 @@
|
|
|
1223
1225
|
</component>
|
|
1224
1226
|
<component name="VcsManagerConfiguration">
|
|
1225
1227
|
<option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="false" />
|
|
1226
|
-
<MESSAGE value="Change Dom.each/find to generator API" />
|
|
1227
|
-
<MESSAGE value="Issue with clear format on <p> tags #680 Issue: https://github.com/xdan/jodit/issues/680" />
|
|
1228
|
-
<MESSAGE value="Indent doesn't work in table cell #729 Issue: https://github.com/xdan/jodit/issues/729" />
|
|
1229
|
-
<MESSAGE value="Added generators methods" />
|
|
1230
|
-
<MESSAGE value="Fix test" />
|
|
1231
|
-
<MESSAGE value="Font and font size settings are not applied to all text if part of it has been changed earlier #706 Issue: https://github.com/xdan/jodit/issues/706" />
|
|
1232
1228
|
<MESSAGE value="BOOM: Move Ajax class into `request` folder. Change `send`" />
|
|
1233
1229
|
<MESSAGE value="cleanHTML replaceOldTags doesn't seem to do anything #728 Issue: https://github.com/xdan/jodit/issues/728" />
|
|
1234
1230
|
<MESSAGE value="Up" />
|
|
@@ -1246,9 +1242,15 @@
|
|
|
1246
1242
|
<MESSAGE value="Fix condition for Jodit power" />
|
|
1247
1243
|
<MESSAGE value="Fix test for new resizer style" />
|
|
1248
1244
|
<MESSAGE value="Fix lints" />
|
|
1249
|
-
<MESSAGE value="Fixed dots supplementary buttons shown incorrectly #692 Issue: https://github.com/xdan/jodit/issues/692" />
|
|
1250
1245
|
<MESSAGE value="Jodit adds unexpected <span> tag when user lefts cursor inside <script> tag #687 Issue: https://github.com/xdan/jodit/issues/687" />
|
|
1251
|
-
<
|
|
1246
|
+
<MESSAGE value="Fixed dots supplementary buttons shown incorrectly #692 Issue: https://github.com/xdan/jodit/issues/692" />
|
|
1247
|
+
<MESSAGE value="Allow use prototype as component name" />
|
|
1248
|
+
<MESSAGE value="Spacer in Button Toolbar Issue: https://github.com/xdan/jodit/issues/713" />
|
|
1249
|
+
<MESSAGE value="Changed IStorage signature" />
|
|
1250
|
+
<MESSAGE value="Remember last opened folder with FileBrowser #675 Issue: https://github.com/xdan/jodit/issues/675" />
|
|
1251
|
+
<MESSAGE value="Feature request: Open the inline toolbar without having to highlight text. #600 Inline: https://github.com/xdan/jodit/issues/600" />
|
|
1252
|
+
<MESSAGE value="Reformat" />
|
|
1253
|
+
<option name="LAST_COMMIT_MESSAGE" value="Reformat" />
|
|
1252
1254
|
</component>
|
|
1253
1255
|
<component name="XDebuggerManager">
|
|
1254
1256
|
<breakpoint-manager>
|
package/CHANGELOG.MD
CHANGED
|
@@ -9,6 +9,110 @@
|
|
|
9
9
|
> - :house: [Internal]
|
|
10
10
|
> - :nail_care: [Polish]
|
|
11
11
|
|
|
12
|
+
## 3.9.5
|
|
13
|
+
|
|
14
|
+
#### :rocket: New Feature
|
|
15
|
+
|
|
16
|
+
- [Feature request: Open the inline toolbar without having to highlight text. #600](https://github.com/xdan/jodit/issues/600)
|
|
17
|
+
Allow open inline toolbar. This feature is implemented on the basis of the `inline-popup` plugin,
|
|
18
|
+
a setting has been added to it: `popup.toolbar`, which lists the buttons that will be shown in such a toolbar.
|
|
19
|
+
Added the `showInline` method to the `ToolbarEditorCollection` itself:
|
|
20
|
+
|
|
21
|
+
```js
|
|
22
|
+
const editor = Jodit.make('#editor', {
|
|
23
|
+
preset: 'inline',
|
|
24
|
+
popup: {
|
|
25
|
+
toolbar: Jodit.atom(['bold', 'italic', 'image'])
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
editor.s.focus();
|
|
29
|
+
|
|
30
|
+
editor.toolbar.showInline();
|
|
31
|
+
// or
|
|
32
|
+
editor.e.fire('showInlineToolbar');
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Also added `ToolbarCollection.hide` and `ToolbarCollection.show` methods.
|
|
36
|
+
|
|
37
|
+
```js
|
|
38
|
+
const editor = Jodit.make('#editor');
|
|
39
|
+
editor.toolbar.hide();
|
|
40
|
+
editor.toolbar.show();
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
- Allow use prototype as component name
|
|
44
|
+
|
|
45
|
+
```js
|
|
46
|
+
console.log(Jodit.modules.UIButton.getFullElName('element')); // jodit-ui-button__element
|
|
47
|
+
console.log(Jodit.modules.UIButton.componentName); // jodit-ui-button
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
- [Remember last opened folder with FileBrowser #675](https://github.com/xdan/jodit/issues/675)
|
|
51
|
+
Boolean option `filebrowser.saveStateInStorage` split to dictionary:
|
|
52
|
+
|
|
53
|
+
```ts
|
|
54
|
+
interface IFileBrowserOptions: {}
|
|
55
|
+
saveStateInStorage: false | {
|
|
56
|
+
storeLastOpenedFolder?: boolean;
|
|
57
|
+
storeView?: boolean;
|
|
58
|
+
storeSortBy?: boolean;
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
By default:
|
|
64
|
+
|
|
65
|
+
```js
|
|
66
|
+
{
|
|
67
|
+
saveStateInStorage: {
|
|
68
|
+
storeLastOpenedFolder: true,
|
|
69
|
+
storeView: true,
|
|
70
|
+
storeSortBy: true
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Disable it:
|
|
76
|
+
|
|
77
|
+
```js
|
|
78
|
+
Jodit.make('#editor', {
|
|
79
|
+
filebrowser: {
|
|
80
|
+
saveStateInStorage: false
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
// or
|
|
85
|
+
|
|
86
|
+
Jodit.make('#editor', {
|
|
87
|
+
filebrowser: {
|
|
88
|
+
saveStateInStorage: {
|
|
89
|
+
storeLastOpenedFolder: false
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
- [Spacer in Button Toolbar](https://github.com/xdan/jodit/issues/713)
|
|
96
|
+
In addition to the `|` metacharacters and `\n` which stand for separator and newline, the `---` metacharacter has appeared,
|
|
97
|
+
which allows you to add a spacer element which pushes all buttons behind the spacer to the right side of the toolbar
|
|
98
|
+
and creates space in the middle.
|
|
99
|
+
|
|
100
|
+
```js
|
|
101
|
+
Jodit.make('#editor', {
|
|
102
|
+
buttons: [
|
|
103
|
+
'source',
|
|
104
|
+
'bold',
|
|
105
|
+
'|',
|
|
106
|
+
'---',
|
|
107
|
+
'|',
|
|
108
|
+
'brush',
|
|
109
|
+
'about',
|
|
110
|
+
'\n',
|
|
111
|
+
'italic'
|
|
112
|
+
]
|
|
113
|
+
});
|
|
114
|
+
```
|
|
115
|
+
|
|
12
116
|
## 3.9.4
|
|
13
117
|
|
|
14
118
|
#### :rocket: New Feature
|
|
@@ -731,11 +835,11 @@ Related with https://github.com/xdan/jodit/issues/574. In some cases need to lim
|
|
|
731
835
|
- @property {number} link.selectSizeClassName=3 The size of the select (to use with modeClassName="select")
|
|
732
836
|
- @property {IUIOption[]} link.selectOptionsClassName=[] The list of the option for the select (to use with modeClassName="select")
|
|
733
837
|
- ex: [
|
|
734
|
-
-
|
|
735
|
-
-
|
|
736
|
-
-
|
|
737
|
-
-
|
|
738
|
-
-
|
|
838
|
+
- { value: "", text: "" },
|
|
839
|
+
- { value: "val1", text: "text1" },
|
|
840
|
+
- { value: "val2", text: "text2" },
|
|
841
|
+
- { value: "val3", text: "text3" }
|
|
842
|
+
- ]
|
|
739
843
|
PR: https://github.com/xdan/jodit/pull/577 Thanks @s-renier-taonix-fr
|
|
740
844
|
|
|
741
845
|
##### New option `statusbar: boolean = true`
|