jodit 3.13.2 → 3.13.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.idea/workspace.xml +95 -91
- package/CHANGELOG.MD +27 -5
- package/build/jodit.css +2 -2
- package/build/jodit.es2018.css +1 -1
- package/build/jodit.es2018.en.css +1 -1
- package/build/jodit.es2018.en.js +147 -53
- package/build/jodit.es2018.en.min.js +1 -1
- package/build/jodit.es2018.js +147 -53
- package/build/jodit.es2018.min.js +1 -1
- package/build/jodit.js +346 -211
- package/build/jodit.min.css +1 -1
- package/build/jodit.min.js +1 -1
- package/package.json +16 -16
- package/src/core/constants.ts +1 -1
- package/src/core/helpers/utils/css.ts +6 -1
- package/src/core/selection/style/api/get-suit-parent.ts +18 -4
- package/src/core/selection/style/commit-style.ts +10 -0
- package/src/core/ui/form/block/block.ts +3 -0
- package/src/jodit.ts +25 -6
- package/src/modules/file-browser/data-provider.ts +1 -1
- package/src/modules/file-browser/file-browser.ts +1 -0
- package/src/modules/image-editor/image-editor.ts +14 -26
- package/src/modules/status-bar/status-bar.ts +21 -13
- package/src/modules/toolbar/button/button.ts +1 -1
- package/src/plugins/index.ts +1 -0
- package/src/plugins/inline-popup/config/config.ts +1 -0
- package/src/plugins/keyboard/tab/README.md +1 -0
- package/src/plugins/keyboard/tab/cases/index.ts +6 -0
- package/src/plugins/keyboard/tab/cases/on-tab-inside-li.ts +51 -0
- package/src/plugins/keyboard/tab/config.ts +26 -0
- package/src/plugins/keyboard/tab/tab.ts +32 -0
- package/src/plugins/resizer/resizer.ts +1 -0
- package/src/types/types.d.ts +1 -1
- package/types/core/create/create.d.ts +2 -2
- package/types/core/decorators/hook/hook.d.ts +1 -1
- package/types/core/helpers/utils/css.d.ts +1 -0
- package/types/core/helpers/utils/selector.d.ts +1 -1
- package/types/core/selection/style/commit-style.d.ts +4 -0
- package/types/core/ui/form/block/block.d.ts +2 -0
- package/types/core/ui/group/group.d.ts +2 -2
- package/types/jodit.d.ts +6 -0
- package/types/modules/file-browser/listeners/native-listeners.d.ts +1 -1
- package/types/plugins/index.d.ts +1 -0
- package/types/plugins/keyboard/tab/cases/index.d.ts +6 -0
- package/types/plugins/keyboard/tab/cases/on-tab-inside-li.d.ts +14 -0
- package/types/plugins/keyboard/tab/config.d.ts +16 -0
- package/types/plugins/keyboard/tab/tab.d.ts +16 -0
- package/types/types/types.d.ts +1 -1
package/.idea/workspace.xml
CHANGED
|
@@ -11,9 +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="
|
|
15
|
-
<change beforePath="$PROJECT_DIR$/
|
|
16
|
-
<change beforePath="$PROJECT_DIR$/src/
|
|
14
|
+
<list default="true" id="5da7ff7f-03a8-49de-9fbb-8f8640d83b83" name="Default Changelist" comment="">
|
|
15
|
+
<change beforePath="$PROJECT_DIR$/src/core/selection/style/api/get-suit-parent.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/core/selection/style/api/get-suit-parent.ts" afterDir="false" />
|
|
16
|
+
<change beforePath="$PROJECT_DIR$/src/core/selection/style/commit-style.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/core/selection/style/commit-style.ts" afterDir="false" />
|
|
17
17
|
</list>
|
|
18
18
|
<list id="5049e1d4-15bc-4e3a-b46b-d2ce7537fc13" name="Revert "Some small fixes"" comment="Revert "Some small fixes" This reverts commit bc391ec6" />
|
|
19
19
|
<option name="SHOW_DIALOG" value="false" />
|
|
@@ -136,11 +136,11 @@
|
|
|
136
136
|
<recent name="$PROJECT_DIR$/src/modules/widget" />
|
|
137
137
|
</key>
|
|
138
138
|
<key name="MoveFile.RECENT_KEYS">
|
|
139
|
+
<recent name="$PROJECT_DIR$/src/plugins/keyboard/tab" />
|
|
139
140
|
<recent name="$PROJECT_DIR$/src/core/helpers/utils" />
|
|
140
141
|
<recent name="$PROJECT_DIR$/src/modules/file-browser" />
|
|
141
142
|
<recent name="$PROJECT_DIR$/src/modules/file-browser/builders" />
|
|
142
143
|
<recent name="$PROJECT_DIR$/src/modules/image-editor" />
|
|
143
|
-
<recent name="$PROJECT_DIR$/src/modules/file-browser/ui" />
|
|
144
144
|
</key>
|
|
145
145
|
</component>
|
|
146
146
|
<component name="RunManager" selected="Shell Script.build">
|
|
@@ -789,77 +789,17 @@
|
|
|
789
789
|
<workItem from="1643294541271" duration="2471000" />
|
|
790
790
|
<workItem from="1643301903480" duration="2323000" />
|
|
791
791
|
<workItem from="1643305897066" duration="2664000" />
|
|
792
|
-
<workItem from="1643574592672" duration="
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
<
|
|
796
|
-
<
|
|
797
|
-
<
|
|
798
|
-
<
|
|
799
|
-
<
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
<
|
|
803
|
-
<option name="number" value="00932" />
|
|
804
|
-
<option name="presentableId" value="LOCAL-00932" />
|
|
805
|
-
<option name="project" value="LOCAL" />
|
|
806
|
-
<updated>1641392793863</updated>
|
|
807
|
-
</task>
|
|
808
|
-
<task id="LOCAL-00933" summary="Added Jodit documentation">
|
|
809
|
-
<created>1641392964595</created>
|
|
810
|
-
<option name="number" value="00933" />
|
|
811
|
-
<option name="presentableId" value="LOCAL-00933" />
|
|
812
|
-
<option name="project" value="LOCAL" />
|
|
813
|
-
<updated>1641392964595</updated>
|
|
814
|
-
</task>
|
|
815
|
-
<task id="LOCAL-00934" summary="Change year in copyright">
|
|
816
|
-
<created>1641393559836</created>
|
|
817
|
-
<option name="number" value="00934" />
|
|
818
|
-
<option name="presentableId" value="LOCAL-00934" />
|
|
819
|
-
<option name="project" value="LOCAL" />
|
|
820
|
-
<updated>1641393559836</updated>
|
|
821
|
-
</task>
|
|
822
|
-
<task id="LOCAL-00935" summary="Fixed action name">
|
|
823
|
-
<created>1641393604640</created>
|
|
824
|
-
<option name="number" value="00935" />
|
|
825
|
-
<option name="presentableId" value="LOCAL-00935" />
|
|
826
|
-
<option name="project" value="LOCAL" />
|
|
827
|
-
<updated>1641393604640</updated>
|
|
828
|
-
</task>
|
|
829
|
-
<task id="LOCAL-00936" summary="Added example in doc">
|
|
830
|
-
<created>1641393891950</created>
|
|
831
|
-
<option name="number" value="00936" />
|
|
832
|
-
<option name="presentableId" value="LOCAL-00936" />
|
|
833
|
-
<option name="project" value="LOCAL" />
|
|
834
|
-
<updated>1641393891950</updated>
|
|
835
|
-
</task>
|
|
836
|
-
<task id="LOCAL-00937" summary="Fixed miss in docs">
|
|
837
|
-
<created>1641395377217</created>
|
|
838
|
-
<option name="number" value="00937" />
|
|
839
|
-
<option name="presentableId" value="LOCAL-00937" />
|
|
840
|
-
<option name="project" value="LOCAL" />
|
|
841
|
-
<updated>1641395377217</updated>
|
|
842
|
-
</task>
|
|
843
|
-
<task id="LOCAL-00938" summary="Fixed Full Screen showing elements not part of editable content #763 Issue: https://github.com/xdan/jodit/issues/763">
|
|
844
|
-
<created>1641396550715</created>
|
|
845
|
-
<option name="number" value="00938" />
|
|
846
|
-
<option name="presentableId" value="LOCAL-00938" />
|
|
847
|
-
<option name="project" value="LOCAL" />
|
|
848
|
-
<updated>1641396550715</updated>
|
|
849
|
-
</task>
|
|
850
|
-
<task id="LOCAL-00939" summary="Added documentation for helpers module">
|
|
851
|
-
<created>1641414677704</created>
|
|
852
|
-
<option name="number" value="00939" />
|
|
853
|
-
<option name="presentableId" value="LOCAL-00939" />
|
|
854
|
-
<option name="project" value="LOCAL" />
|
|
855
|
-
<updated>1641414677704</updated>
|
|
856
|
-
</task>
|
|
857
|
-
<task id="LOCAL-00940" summary="Remove `dialog` field from IFileBrowser">
|
|
858
|
-
<created>1641414709009</created>
|
|
859
|
-
<option name="number" value="00940" />
|
|
860
|
-
<option name="presentableId" value="LOCAL-00940" />
|
|
861
|
-
<option name="project" value="LOCAL" />
|
|
862
|
-
<updated>1641414709009</updated>
|
|
792
|
+
<workItem from="1643574592672" duration="13467000" />
|
|
793
|
+
<workItem from="1643655901733" duration="712000" />
|
|
794
|
+
<workItem from="1643798499362" duration="3037000" />
|
|
795
|
+
<workItem from="1643898746371" duration="614000" />
|
|
796
|
+
<workItem from="1643980033043" duration="2325000" />
|
|
797
|
+
<workItem from="1644175223164" duration="657000" />
|
|
798
|
+
<workItem from="1644226192216" duration="2000" />
|
|
799
|
+
<workItem from="1644247279752" duration="1468000" />
|
|
800
|
+
<workItem from="1644248796483" duration="176000" />
|
|
801
|
+
<workItem from="1644249993867" duration="1397000" />
|
|
802
|
+
<workItem from="1644263504303" duration="2917000" />
|
|
863
803
|
</task>
|
|
864
804
|
<task id="LOCAL-00941" summary="Remove `elementsMap` field from IFileBrowser">
|
|
865
805
|
<created>1641415529355</created>
|
|
@@ -1134,17 +1074,81 @@
|
|
|
1134
1074
|
<option name="project" value="LOCAL" />
|
|
1135
1075
|
<updated>1643581406610</updated>
|
|
1136
1076
|
</task>
|
|
1137
|
-
<
|
|
1077
|
+
<task id="LOCAL-00980" summary="Fixed type definition">
|
|
1078
|
+
<created>1643584353330</created>
|
|
1079
|
+
<option name="number" value="00980" />
|
|
1080
|
+
<option name="presentableId" value="LOCAL-00980" />
|
|
1081
|
+
<option name="project" value="LOCAL" />
|
|
1082
|
+
<updated>1643584353330</updated>
|
|
1083
|
+
</task>
|
|
1084
|
+
<task id="LOCAL-00981" summary="Small ref">
|
|
1085
|
+
<created>1643656093281</created>
|
|
1086
|
+
<option name="number" value="00981" />
|
|
1087
|
+
<option name="presentableId" value="LOCAL-00981" />
|
|
1088
|
+
<option name="project" value="LOCAL" />
|
|
1089
|
+
<updated>1643656093281</updated>
|
|
1090
|
+
</task>
|
|
1091
|
+
<task id="LOCAL-00982" summary="CVE-2021-23382">
|
|
1092
|
+
<created>1643656310473</created>
|
|
1093
|
+
<option name="number" value="00982" />
|
|
1094
|
+
<option name="presentableId" value="LOCAL-00982" />
|
|
1095
|
+
<option name="project" value="LOCAL" />
|
|
1096
|
+
<updated>1643656310473</updated>
|
|
1097
|
+
</task>
|
|
1098
|
+
<task id="LOCAL-00983" summary="CVE-2021-23382">
|
|
1099
|
+
<created>1643656328311</created>
|
|
1100
|
+
<option name="number" value="00983" />
|
|
1101
|
+
<option name="presentableId" value="LOCAL-00983" />
|
|
1102
|
+
<option name="project" value="LOCAL" />
|
|
1103
|
+
<updated>1643656328311</updated>
|
|
1104
|
+
</task>
|
|
1105
|
+
<task id="LOCAL-00984" summary="Small refactoring">
|
|
1106
|
+
<created>1644175276560</created>
|
|
1107
|
+
<option name="number" value="00984" />
|
|
1108
|
+
<option name="presentableId" value="LOCAL-00984" />
|
|
1109
|
+
<option name="project" value="LOCAL" />
|
|
1110
|
+
<updated>1644175276560</updated>
|
|
1111
|
+
</task>
|
|
1112
|
+
<task id="LOCAL-00985" summary="Added tab plugin">
|
|
1113
|
+
<created>1644263671136</created>
|
|
1114
|
+
<option name="number" value="00985" />
|
|
1115
|
+
<option name="presentableId" value="LOCAL-00985" />
|
|
1116
|
+
<option name="project" value="LOCAL" />
|
|
1117
|
+
<updated>1644263671136</updated>
|
|
1118
|
+
</task>
|
|
1119
|
+
<task id="LOCAL-00986" summary="Added tab plugin">
|
|
1120
|
+
<created>1644263683466</created>
|
|
1121
|
+
<option name="number" value="00986" />
|
|
1122
|
+
<option name="presentableId" value="LOCAL-00986" />
|
|
1123
|
+
<option name="project" value="LOCAL" />
|
|
1124
|
+
<updated>1644263683466</updated>
|
|
1125
|
+
</task>
|
|
1126
|
+
<task id="LOCAL-00987" summary="Added static `Jodit.isJoditAssigned` method Issue: https://github.com/xdan/jodit/issues/778">
|
|
1127
|
+
<created>1644264762295</created>
|
|
1128
|
+
<option name="number" value="00987" />
|
|
1129
|
+
<option name="presentableId" value="LOCAL-00987" />
|
|
1130
|
+
<option name="project" value="LOCAL" />
|
|
1131
|
+
<updated>1644264762295</updated>
|
|
1132
|
+
</task>
|
|
1133
|
+
<task id="LOCAL-00988" summary="- Fixed a bug when switching between source and wysiwyg mode, the FORM tag was wrapped in P">
|
|
1134
|
+
<created>1644265124550</created>
|
|
1135
|
+
<option name="number" value="00988" />
|
|
1136
|
+
<option name="presentableId" value="LOCAL-00988" />
|
|
1137
|
+
<option name="project" value="LOCAL" />
|
|
1138
|
+
<updated>1644265124550</updated>
|
|
1139
|
+
</task>
|
|
1140
|
+
<task id="LOCAL-00989" summary="Added test for issue: Not maintaining styles set when switching format blocks #773 Issue: https://github.com/xdan/jodit/issues/773">
|
|
1141
|
+
<created>1644265470862</created>
|
|
1142
|
+
<option name="number" value="00989" />
|
|
1143
|
+
<option name="presentableId" value="LOCAL-00989" />
|
|
1144
|
+
<option name="project" value="LOCAL" />
|
|
1145
|
+
<updated>1644265470862</updated>
|
|
1146
|
+
</task>
|
|
1147
|
+
<option name="localTasksCounter" value="990" />
|
|
1138
1148
|
<servers />
|
|
1139
1149
|
</component>
|
|
1140
1150
|
<component name="TypeScriptGeneratedFilesManager">
|
|
1141
1151
|
<option name="version" value="3" />
|
|
1142
|
-
<option name="exactExcludedFiles">
|
|
1143
|
-
<list>
|
|
1144
|
-
<option value="$PROJECT_DIR$/types/types/core.d.ts" />
|
|
1145
|
-
<option value="$PROJECT_DIR$/types/types/storage.d.ts" />
|
|
1146
|
-
</list>
|
|
1147
|
-
</option>
|
|
1148
1152
|
</component>
|
|
1149
1153
|
<component name="UnknownFeatures">
|
|
1150
1154
|
<option featureType="com.intellij.configurationType" implementationName="BashConfigurationType" />
|
|
@@ -1280,14 +1284,6 @@
|
|
|
1280
1284
|
</component>
|
|
1281
1285
|
<component name="VcsManagerConfiguration">
|
|
1282
1286
|
<option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="false" />
|
|
1283
|
-
<MESSAGE value="Added documentation for helpers module" />
|
|
1284
|
-
<MESSAGE value="Remove `dialog` field from IFileBrowser" />
|
|
1285
|
-
<MESSAGE value="Remove `elementsMap` field from IFileBrowser" />
|
|
1286
|
-
<MESSAGE value="Remove `loadTree`/`loadItems`/`deleteFile` methods from IFileBrowser" />
|
|
1287
|
-
<MESSAGE value="Fixed test for https://github.com/xdan/jodit/pull/772" />
|
|
1288
|
-
<MESSAGE value="Added `monospace` button in format list" />
|
|
1289
|
-
<MESSAGE value="Added `monospace` button in format list Issue: https://github.com/xdan/jodit/issues/767" />
|
|
1290
|
-
<MESSAGE value="Remove link to CHANGELOG" />
|
|
1291
1287
|
<MESSAGE value="Added `memorizeChoiceWhenPasteFragment` option" />
|
|
1292
1288
|
<MESSAGE value="Added TODO" />
|
|
1293
1289
|
<MESSAGE value="Added test for memorizeChoiceWhenPasteFragment" />
|
|
@@ -1305,7 +1301,15 @@
|
|
|
1305
1301
|
<MESSAGE value="Change observable system" />
|
|
1306
1302
|
<MESSAGE value="Fixed tests fow Windows" />
|
|
1307
1303
|
<MESSAGE value="Partially fixed bug when building Jodit with babel minimizer, some classes are not defined as instanceof" />
|
|
1308
|
-
<
|
|
1304
|
+
<MESSAGE value="Fixed type definition" />
|
|
1305
|
+
<MESSAGE value="Small ref" />
|
|
1306
|
+
<MESSAGE value="CVE-2021-23382" />
|
|
1307
|
+
<MESSAGE value="Small refactoring" />
|
|
1308
|
+
<MESSAGE value="Added tab plugin" />
|
|
1309
|
+
<MESSAGE value="Added static `Jodit.isJoditAssigned` method Issue: https://github.com/xdan/jodit/issues/778" />
|
|
1310
|
+
<MESSAGE value="- Fixed a bug when switching between source and wysiwyg mode, the FORM tag was wrapped in P" />
|
|
1311
|
+
<MESSAGE value="Added test for issue: Not maintaining styles set when switching format blocks #773 Issue: https://github.com/xdan/jodit/issues/773" />
|
|
1312
|
+
<option name="LAST_COMMIT_MESSAGE" value="Added test for issue: Not maintaining styles set when switching format blocks #773 Issue: https://github.com/xdan/jodit/issues/773" />
|
|
1309
1313
|
</component>
|
|
1310
1314
|
<component name="XDebuggerManager">
|
|
1311
1315
|
<breakpoint-manager>
|
package/CHANGELOG.MD
CHANGED
|
@@ -9,6 +9,28 @@
|
|
|
9
9
|
> - :house: [Internal]
|
|
10
10
|
> - :nail_care: [Polish]
|
|
11
11
|
|
|
12
|
+
## 3.13.2
|
|
13
|
+
|
|
14
|
+
#### :rocket: New Feature
|
|
15
|
+
|
|
16
|
+
- Added a plugin to handle pressing the Tab key, it added the functionality of processing a keystroke inside the UL/li
|
|
17
|
+
element and allows you to add tree-like lists.
|
|
18
|
+
- Added static `Jodit.isJoditAssigned` method: Checks if the element has already been initialized when for Jodit
|
|
19
|
+
|
|
20
|
+
```js
|
|
21
|
+
const area = document.getElementById('editor');
|
|
22
|
+
(Jodit.make(area) === Jodit.make(area)) === Jodit.make(area);
|
|
23
|
+
console.log(Jodit.isJoditAssigned(area)); // true
|
|
24
|
+
const editor = Jodit.make(area);
|
|
25
|
+
editor.destruct();
|
|
26
|
+
console.log(Jodit.isJoditAssigned(area)); // false
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
#### :bug: Bug Fix
|
|
30
|
+
|
|
31
|
+
- Fixed a bug when switching between source and wysiwyg mode, the FORM tag was wrapped in P
|
|
32
|
+
- [Not maintaining styles set when switching format blocks #773](https://github.com/xdan/jodit/issues/773)
|
|
33
|
+
|
|
12
34
|
## 3.13.1
|
|
13
35
|
|
|
14
36
|
#### :boom: Breaking Change
|
|
@@ -1036,11 +1058,11 @@ Related with https://github.com/xdan/jodit/issues/574. In some cases need to lim
|
|
|
1036
1058
|
- @property {IUIOption[]} link.selectOptionsClassName=[] The list of the option for the select (to use with
|
|
1037
1059
|
modeClassName="select")
|
|
1038
1060
|
- ex: [
|
|
1039
|
-
-
|
|
1040
|
-
-
|
|
1041
|
-
-
|
|
1042
|
-
-
|
|
1043
|
-
-
|
|
1061
|
+
- { value: "", text: "" },
|
|
1062
|
+
- { value: "val1", text: "text1" },
|
|
1063
|
+
- { value: "val2", text: "text2" },
|
|
1064
|
+
- { value: "val3", text: "text3" }
|
|
1065
|
+
- ]
|
|
1044
1066
|
PR: https://github.com/xdan/jodit/pull/577 Thanks @s-renier-taonix-fr
|
|
1045
1067
|
|
|
1046
1068
|
##### New option `statusbar: boolean = true`
|
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.13.
|
|
4
|
+
* Version: v3.13.3
|
|
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.13.
|
|
11
|
+
* Version: v3.13.3
|
|
12
12
|
* Url: https://xdsoft.net/jodit/
|
|
13
13
|
* License(s): MIT
|
|
14
14
|
*/
|
package/build/jodit.es2018.css
CHANGED