@opentiny/fluent-editor 3.22.0 → 3.23.0
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/README.md +2 -0
- package/es/config/editor.config.es.js +9 -3
- package/es/config/editor.config.es.js.map +1 -1
- package/es/config/i18n/en-us.es.js +47 -26
- package/es/config/i18n/en-us.es.js.map +1 -1
- package/es/config/i18n/zh-cn.es.js +47 -26
- package/es/config/i18n/zh-cn.es.js.map +1 -1
- package/es/config/index.es.js +3 -44
- package/es/config/index.es.js.map +1 -1
- package/es/counter/index.es.js +16 -11
- package/es/counter/index.es.js.map +1 -1
- package/es/custom-clipboard.es.js +4 -4
- package/es/custom-clipboard.es.js.map +1 -1
- package/es/fluent-editor.es.js +28 -3
- package/es/fluent-editor.es.js.map +1 -1
- package/es/fullscreen/handler.es.js +10 -0
- package/es/fullscreen/handler.es.js.map +1 -1
- package/es/index.es.js +4 -3
- package/es/link/modules/tooltip.es.js +22 -5
- package/es/link/modules/tooltip.es.js.map +1 -1
- package/es/table/modules/table-operation-menu.es.js +213 -203
- package/es/table/modules/table-operation-menu.es.js.map +1 -1
- package/es/table/modules/table-selection.es.js.map +1 -1
- package/es/toolbar/index.es.js +2 -0
- package/es/toolbar/index.es.js.map +1 -1
- package/es/toolbar/toolbar-tip.es.js +106 -0
- package/es/toolbar/toolbar-tip.es.js.map +1 -0
- package/es/utils/debounce.es.js +2 -1
- package/es/utils/debounce.es.js.map +1 -1
- package/es/utils/is.es.js +10 -0
- package/es/utils/is.es.js.map +1 -0
- package/es/utils/method.es.js +0 -5
- package/es/utils/method.es.js.map +1 -1
- package/lib/config/editor.config.cjs.js +8 -2
- package/lib/config/editor.config.cjs.js.map +1 -1
- package/lib/config/i18n/en-us.cjs.js +47 -26
- package/lib/config/i18n/en-us.cjs.js.map +1 -1
- package/lib/config/i18n/zh-cn.cjs.js +47 -26
- package/lib/config/i18n/zh-cn.cjs.js.map +1 -1
- package/lib/config/index.cjs.js +3 -43
- package/lib/config/index.cjs.js.map +1 -1
- package/lib/counter/index.cjs.js +15 -10
- package/lib/counter/index.cjs.js.map +1 -1
- package/lib/custom-clipboard.cjs.js +3 -3
- package/lib/custom-clipboard.cjs.js.map +1 -1
- package/lib/fluent-editor.cjs.js +27 -2
- package/lib/fluent-editor.cjs.js.map +1 -1
- package/lib/fullscreen/handler.cjs.js +10 -0
- package/lib/fullscreen/handler.cjs.js.map +1 -1
- package/lib/index.cjs.js +2 -1
- package/lib/index.cjs.js.map +1 -1
- package/lib/link/modules/tooltip.cjs.js +22 -5
- package/lib/link/modules/tooltip.cjs.js.map +1 -1
- package/lib/table/modules/table-operation-menu.cjs.js +213 -203
- package/lib/table/modules/table-operation-menu.cjs.js.map +1 -1
- package/lib/table/modules/table-selection.cjs.js.map +1 -1
- package/lib/toolbar/index.cjs.js +2 -0
- package/lib/toolbar/index.cjs.js.map +1 -1
- package/lib/toolbar/toolbar-tip.cjs.js +106 -0
- package/lib/toolbar/toolbar-tip.cjs.js.map +1 -0
- package/lib/utils/debounce.cjs.js +2 -1
- package/lib/utils/debounce.cjs.js.map +1 -1
- package/lib/utils/is.cjs.js +10 -0
- package/lib/utils/is.cjs.js.map +1 -0
- package/lib/utils/method.cjs.js +0 -5
- package/lib/utils/method.cjs.js.map +1 -1
- package/package.json +4 -3
- package/style.css +15 -1
- package/types/config/editor.config.d.ts +214 -84
- package/types/config/i18n/en-us.d.ts +46 -26
- package/types/config/i18n/zh-cn.d.ts +46 -26
- package/types/config/index.d.ts +0 -41
- package/types/config/types/editor-config.interface.d.ts +2 -0
- package/types/counter/index.d.ts +9 -4
- package/types/custom-clipboard.d.ts +6 -3
- package/types/fluent-editor.d.ts +7 -1
- package/types/link/modules/tooltip.d.ts +1 -0
- package/types/table/modules/table-operation-menu.d.ts +6 -0
- package/types/toolbar/index.d.ts +1 -0
- package/types/toolbar/toolbar-tip.d.ts +9 -0
- package/types/utils/is.d.ts +2 -0
- package/types/utils/method.d.ts +0 -1
|
@@ -1,90 +1,220 @@
|
|
|
1
1
|
export declare const BIG_DELTA_LIMIT = 2000;
|
|
2
2
|
export declare const LANG_CONF: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
3
|
+
'en-US': {
|
|
4
|
+
header: string;
|
|
5
|
+
normal: string;
|
|
6
|
+
h1: string;
|
|
7
|
+
h2: string;
|
|
8
|
+
h3: string;
|
|
9
|
+
h4: string;
|
|
10
|
+
h5: string;
|
|
11
|
+
h6: string;
|
|
12
|
+
lineheight: string;
|
|
13
|
+
songti: string;
|
|
14
|
+
yahei: string;
|
|
15
|
+
kaiti: string;
|
|
16
|
+
heiti: string;
|
|
17
|
+
lishu: string;
|
|
18
|
+
left: string;
|
|
19
|
+
center: string;
|
|
20
|
+
right: string;
|
|
21
|
+
codeblock: string;
|
|
22
|
+
globallink: string;
|
|
23
|
+
'exit-fullscreen': string;
|
|
24
|
+
help: string;
|
|
25
|
+
more: string;
|
|
26
|
+
'help-format': string;
|
|
27
|
+
'help-insert': string;
|
|
28
|
+
'help-operation': string;
|
|
29
|
+
mention: string;
|
|
30
|
+
'quick-menu': string;
|
|
31
|
+
'toggle-help-panel': string;
|
|
32
|
+
'scroll-table': string;
|
|
33
|
+
'mouse-wheel': string;
|
|
34
|
+
save: string;
|
|
35
|
+
'copy-cells': string;
|
|
36
|
+
'copy-table': string;
|
|
37
|
+
'cut-cells': string;
|
|
38
|
+
'empty-cells': string;
|
|
39
|
+
'insert-row-up': string;
|
|
40
|
+
'insert-row-down': string;
|
|
41
|
+
'insert-column-left': string;
|
|
42
|
+
'insert-column-right': string;
|
|
43
|
+
'merge-cells': string;
|
|
44
|
+
'unmerge-cells': string;
|
|
45
|
+
'delete-row': string;
|
|
46
|
+
'delete-column': string;
|
|
47
|
+
'delete-table': string;
|
|
48
|
+
'default-link-text': string;
|
|
49
|
+
basicblock: string;
|
|
50
|
+
linkplaceholder: string;
|
|
51
|
+
'counter-template': string;
|
|
52
|
+
char: string;
|
|
53
|
+
word: string;
|
|
54
|
+
'counter-limit-tips': string;
|
|
55
|
+
'ie-msg': string;
|
|
56
|
+
loading: string;
|
|
57
|
+
pasting: string;
|
|
58
|
+
'img-error': string;
|
|
59
|
+
'img-error-info': string;
|
|
60
|
+
'last-modified': string;
|
|
61
|
+
screenshot: string;
|
|
62
|
+
uploading: string;
|
|
63
|
+
'sub-title-bg-color': string;
|
|
64
|
+
emoji: string;
|
|
65
|
+
fullscreen: string;
|
|
66
|
+
blockquote: string;
|
|
67
|
+
undo: string;
|
|
68
|
+
redo: string;
|
|
69
|
+
clean: string;
|
|
70
|
+
bold: string;
|
|
71
|
+
italic: string;
|
|
72
|
+
underline: string;
|
|
73
|
+
strike: string;
|
|
74
|
+
image: string;
|
|
75
|
+
file: string;
|
|
76
|
+
table: string;
|
|
77
|
+
link: string;
|
|
78
|
+
code: string;
|
|
79
|
+
'better-table': string;
|
|
80
|
+
'code-block': string;
|
|
81
|
+
formula: string;
|
|
82
|
+
'format-painter': string;
|
|
83
|
+
video: string;
|
|
84
|
+
color: string;
|
|
85
|
+
background: string;
|
|
86
|
+
font: string;
|
|
87
|
+
size: string;
|
|
88
|
+
'list-ordered': string;
|
|
89
|
+
'list-bullet': string;
|
|
90
|
+
'list-check': string;
|
|
91
|
+
'align-left': string;
|
|
92
|
+
'align-center': string;
|
|
93
|
+
'align-right': string;
|
|
94
|
+
'align-justify': string;
|
|
95
|
+
'direction-ltr': string;
|
|
96
|
+
'direction-rtl': string;
|
|
97
|
+
'indent--1': string;
|
|
98
|
+
'indent-+1': string;
|
|
99
|
+
'script-super': string;
|
|
100
|
+
'script-sub': string;
|
|
101
|
+
'header-normal': string;
|
|
102
|
+
'header-1': string;
|
|
103
|
+
'header-2': string;
|
|
104
|
+
'header-3': string;
|
|
105
|
+
'header-4': string;
|
|
106
|
+
'header-5': string;
|
|
107
|
+
'header-6': string;
|
|
108
|
+
};
|
|
109
|
+
'zh-CN': {
|
|
110
|
+
header: string;
|
|
111
|
+
normal: string;
|
|
112
|
+
h1: string;
|
|
113
|
+
h2: string;
|
|
114
|
+
h3: string;
|
|
115
|
+
h4: string;
|
|
116
|
+
h5: string;
|
|
117
|
+
h6: string;
|
|
118
|
+
lineheight: string;
|
|
119
|
+
songti: string;
|
|
120
|
+
yahei: string;
|
|
121
|
+
kaiti: string;
|
|
122
|
+
heiti: string;
|
|
123
|
+
lishu: string;
|
|
124
|
+
left: string;
|
|
125
|
+
center: string;
|
|
126
|
+
right: string;
|
|
127
|
+
codeblock: string;
|
|
128
|
+
globallink: string;
|
|
129
|
+
'exit-fullscreen': string;
|
|
130
|
+
help: string;
|
|
131
|
+
more: string;
|
|
132
|
+
'help-format': string;
|
|
133
|
+
'help-insert': string;
|
|
134
|
+
'help-operation': string;
|
|
135
|
+
mention: string;
|
|
136
|
+
'quick-menu': string;
|
|
137
|
+
'toggle-help-panel': string;
|
|
138
|
+
'scroll-table': string;
|
|
139
|
+
'mouse-wheel': string;
|
|
140
|
+
save: string;
|
|
141
|
+
'copy-cells': string;
|
|
142
|
+
'copy-table': string;
|
|
143
|
+
'cut-cells': string;
|
|
144
|
+
'empty-cells': string;
|
|
145
|
+
'insert-row-up': string;
|
|
146
|
+
'insert-row-down': string;
|
|
147
|
+
'insert-column-left': string;
|
|
148
|
+
'insert-column-right': string;
|
|
149
|
+
'merge-cells': string;
|
|
150
|
+
'unmerge-cells': string;
|
|
151
|
+
'delete-row': string;
|
|
152
|
+
'delete-column': string;
|
|
153
|
+
'delete-table': string;
|
|
154
|
+
'default-link-text': string;
|
|
155
|
+
basicblock: string;
|
|
156
|
+
linkplaceholder: string;
|
|
157
|
+
'counter-template': string;
|
|
158
|
+
char: string;
|
|
159
|
+
word: string;
|
|
160
|
+
'counter-limit-tips': string;
|
|
161
|
+
'ie-msg': string;
|
|
162
|
+
loading: string;
|
|
163
|
+
pasting: string;
|
|
164
|
+
'img-error': string;
|
|
165
|
+
'img-error-info': string;
|
|
166
|
+
'last-modified': string;
|
|
167
|
+
screenshot: string;
|
|
168
|
+
uploading: string;
|
|
169
|
+
'sub-title-bg-color': string;
|
|
170
|
+
emoji: string;
|
|
171
|
+
fullscreen: string;
|
|
172
|
+
blockquote: string;
|
|
173
|
+
undo: string;
|
|
174
|
+
redo: string;
|
|
175
|
+
clean: string;
|
|
176
|
+
bold: string;
|
|
177
|
+
italic: string;
|
|
178
|
+
underline: string;
|
|
179
|
+
strike: string;
|
|
180
|
+
image: string;
|
|
181
|
+
file: string;
|
|
182
|
+
table: string;
|
|
183
|
+
link: string;
|
|
184
|
+
code: string;
|
|
185
|
+
'better-table': string;
|
|
186
|
+
'code-block': string;
|
|
187
|
+
formula: string;
|
|
188
|
+
'format-painter': string;
|
|
189
|
+
video: string;
|
|
190
|
+
color: string;
|
|
191
|
+
background: string;
|
|
192
|
+
font: string;
|
|
193
|
+
size: string;
|
|
194
|
+
'list-ordered': string;
|
|
195
|
+
'list-bullet': string;
|
|
196
|
+
'list-check': string;
|
|
197
|
+
'align-left': string;
|
|
198
|
+
'align-center': string;
|
|
199
|
+
'align-right': string;
|
|
200
|
+
'align-justify': string;
|
|
201
|
+
'direction-ltr': string;
|
|
202
|
+
'direction-rtl': string;
|
|
203
|
+
'indent--1': string;
|
|
204
|
+
'indent-+1': string;
|
|
205
|
+
'script-super': string;
|
|
206
|
+
'script-sub': string;
|
|
207
|
+
'header-normal': string;
|
|
208
|
+
'header-1': string;
|
|
209
|
+
'header-2': string;
|
|
210
|
+
'header-3': string;
|
|
211
|
+
'header-4': string;
|
|
212
|
+
'header-5': string;
|
|
213
|
+
'header-6': string;
|
|
214
|
+
};
|
|
87
215
|
};
|
|
216
|
+
export declare const CHANGE_LANGUAGE_EVENT = "change-language";
|
|
217
|
+
export declare const defaultLanguage = "en-US";
|
|
88
218
|
export declare const IMAGE_UPLOADER_MIME_TYPES: string[];
|
|
89
219
|
export declare const OTHER_FILE_UPLOADER_MIME_TYPES: string[];
|
|
90
220
|
export declare const AUDIO_VIDEO_UPLOADER_MIME_TYPES: string[];
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
export declare const EN_US: {
|
|
2
|
-
undo: string;
|
|
3
|
-
redo: string;
|
|
4
|
-
clean: string;
|
|
5
2
|
header: string;
|
|
6
3
|
normal: string;
|
|
7
4
|
h1: string;
|
|
@@ -10,38 +7,17 @@ export declare const EN_US: {
|
|
|
10
7
|
h4: string;
|
|
11
8
|
h5: string;
|
|
12
9
|
h6: string;
|
|
13
|
-
font: string;
|
|
14
|
-
size: string;
|
|
15
10
|
lineheight: string;
|
|
16
11
|
songti: string;
|
|
17
12
|
yahei: string;
|
|
18
13
|
kaiti: string;
|
|
19
14
|
heiti: string;
|
|
20
15
|
lishu: string;
|
|
21
|
-
bold: string;
|
|
22
|
-
italic: string;
|
|
23
|
-
underline: string;
|
|
24
|
-
strike: string;
|
|
25
|
-
color: string;
|
|
26
|
-
background: string;
|
|
27
|
-
orderedlist: string;
|
|
28
|
-
bulletlist: string;
|
|
29
|
-
checklist: string;
|
|
30
16
|
left: string;
|
|
31
17
|
center: string;
|
|
32
18
|
right: string;
|
|
33
|
-
image: string;
|
|
34
|
-
file: string;
|
|
35
|
-
table: string;
|
|
36
|
-
link: string;
|
|
37
|
-
code: string;
|
|
38
19
|
codeblock: string;
|
|
39
|
-
blockquote: string;
|
|
40
|
-
superscript: string;
|
|
41
|
-
subscript: string;
|
|
42
20
|
globallink: string;
|
|
43
|
-
emoji: string;
|
|
44
|
-
fullscreen: string;
|
|
45
21
|
'exit-fullscreen': string;
|
|
46
22
|
help: string;
|
|
47
23
|
more: string;
|
|
@@ -79,8 +55,52 @@ export declare const EN_US: {
|
|
|
79
55
|
pasting: string;
|
|
80
56
|
'img-error': string;
|
|
81
57
|
'img-error-info': string;
|
|
82
|
-
|
|
58
|
+
'last-modified': string;
|
|
83
59
|
screenshot: string;
|
|
84
60
|
uploading: string;
|
|
85
|
-
|
|
61
|
+
'sub-title-bg-color': string;
|
|
62
|
+
emoji: string;
|
|
63
|
+
fullscreen: string;
|
|
64
|
+
blockquote: string;
|
|
65
|
+
undo: string;
|
|
66
|
+
redo: string;
|
|
67
|
+
clean: string;
|
|
68
|
+
bold: string;
|
|
69
|
+
italic: string;
|
|
70
|
+
underline: string;
|
|
71
|
+
strike: string;
|
|
72
|
+
image: string;
|
|
73
|
+
file: string;
|
|
74
|
+
table: string;
|
|
75
|
+
link: string;
|
|
76
|
+
code: string;
|
|
77
|
+
'better-table': string;
|
|
78
|
+
'code-block': string;
|
|
79
|
+
formula: string;
|
|
80
|
+
'format-painter': string;
|
|
81
|
+
video: string;
|
|
82
|
+
color: string;
|
|
83
|
+
background: string;
|
|
84
|
+
font: string;
|
|
85
|
+
size: string;
|
|
86
|
+
'list-ordered': string;
|
|
87
|
+
'list-bullet': string;
|
|
88
|
+
'list-check': string;
|
|
89
|
+
'align-left': string;
|
|
90
|
+
'align-center': string;
|
|
91
|
+
'align-right': string;
|
|
92
|
+
'align-justify': string;
|
|
93
|
+
'direction-ltr': string;
|
|
94
|
+
'direction-rtl': string;
|
|
95
|
+
'indent--1': string;
|
|
96
|
+
'indent-+1': string;
|
|
97
|
+
'script-super': string;
|
|
98
|
+
'script-sub': string;
|
|
99
|
+
'header-normal': string;
|
|
100
|
+
'header-1': string;
|
|
101
|
+
'header-2': string;
|
|
102
|
+
'header-3': string;
|
|
103
|
+
'header-4': string;
|
|
104
|
+
'header-5': string;
|
|
105
|
+
'header-6': string;
|
|
86
106
|
};
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
export declare const ZH_CN: {
|
|
2
|
-
undo: string;
|
|
3
|
-
redo: string;
|
|
4
|
-
clean: string;
|
|
5
2
|
header: string;
|
|
6
3
|
normal: string;
|
|
7
4
|
h1: string;
|
|
@@ -10,38 +7,17 @@ export declare const ZH_CN: {
|
|
|
10
7
|
h4: string;
|
|
11
8
|
h5: string;
|
|
12
9
|
h6: string;
|
|
13
|
-
font: string;
|
|
14
|
-
size: string;
|
|
15
10
|
lineheight: string;
|
|
16
11
|
songti: string;
|
|
17
12
|
yahei: string;
|
|
18
13
|
kaiti: string;
|
|
19
14
|
heiti: string;
|
|
20
15
|
lishu: string;
|
|
21
|
-
bold: string;
|
|
22
|
-
italic: string;
|
|
23
|
-
underline: string;
|
|
24
|
-
strike: string;
|
|
25
|
-
color: string;
|
|
26
|
-
background: string;
|
|
27
|
-
orderedlist: string;
|
|
28
|
-
bulletlist: string;
|
|
29
|
-
checklist: string;
|
|
30
16
|
left: string;
|
|
31
17
|
center: string;
|
|
32
18
|
right: string;
|
|
33
|
-
image: string;
|
|
34
|
-
file: string;
|
|
35
|
-
table: string;
|
|
36
|
-
link: string;
|
|
37
|
-
code: string;
|
|
38
19
|
codeblock: string;
|
|
39
|
-
blockquote: string;
|
|
40
|
-
superscript: string;
|
|
41
|
-
subscript: string;
|
|
42
20
|
globallink: string;
|
|
43
|
-
emoji: string;
|
|
44
|
-
fullscreen: string;
|
|
45
21
|
'exit-fullscreen': string;
|
|
46
22
|
help: string;
|
|
47
23
|
more: string;
|
|
@@ -79,8 +55,52 @@ export declare const ZH_CN: {
|
|
|
79
55
|
pasting: string;
|
|
80
56
|
'img-error': string;
|
|
81
57
|
'img-error-info': string;
|
|
82
|
-
|
|
58
|
+
'last-modified': string;
|
|
83
59
|
screenshot: string;
|
|
84
60
|
uploading: string;
|
|
85
|
-
|
|
61
|
+
'sub-title-bg-color': string;
|
|
62
|
+
emoji: string;
|
|
63
|
+
fullscreen: string;
|
|
64
|
+
blockquote: string;
|
|
65
|
+
undo: string;
|
|
66
|
+
redo: string;
|
|
67
|
+
clean: string;
|
|
68
|
+
bold: string;
|
|
69
|
+
italic: string;
|
|
70
|
+
underline: string;
|
|
71
|
+
strike: string;
|
|
72
|
+
image: string;
|
|
73
|
+
file: string;
|
|
74
|
+
table: string;
|
|
75
|
+
link: string;
|
|
76
|
+
code: string;
|
|
77
|
+
'better-table': string;
|
|
78
|
+
'code-block': string;
|
|
79
|
+
formula: string;
|
|
80
|
+
'format-painter': string;
|
|
81
|
+
video: string;
|
|
82
|
+
color: string;
|
|
83
|
+
background: string;
|
|
84
|
+
font: string;
|
|
85
|
+
size: string;
|
|
86
|
+
'list-ordered': string;
|
|
87
|
+
'list-bullet': string;
|
|
88
|
+
'list-check': string;
|
|
89
|
+
'align-left': string;
|
|
90
|
+
'align-center': string;
|
|
91
|
+
'align-right': string;
|
|
92
|
+
'align-justify': string;
|
|
93
|
+
'direction-ltr': string;
|
|
94
|
+
'direction-rtl': string;
|
|
95
|
+
'indent--1': string;
|
|
96
|
+
'indent-+1': string;
|
|
97
|
+
'script-super': string;
|
|
98
|
+
'script-sub': string;
|
|
99
|
+
'header-normal': string;
|
|
100
|
+
'header-1': string;
|
|
101
|
+
'header-2': string;
|
|
102
|
+
'header-3': string;
|
|
103
|
+
'header-4': string;
|
|
104
|
+
'header-5': string;
|
|
105
|
+
'header-6': string;
|
|
86
106
|
};
|
package/types/config/index.d.ts
CHANGED
|
@@ -2,47 +2,6 @@ export * from './editor.config';
|
|
|
2
2
|
export declare const ICONS_CONFIG: {
|
|
3
3
|
[key: string]: any;
|
|
4
4
|
};
|
|
5
|
-
export declare const TABLE_RIGHT_MENU_CONFIG: {
|
|
6
|
-
copyCells: {
|
|
7
|
-
text: string;
|
|
8
|
-
};
|
|
9
|
-
copyTable: {
|
|
10
|
-
text: string;
|
|
11
|
-
};
|
|
12
|
-
cutCells: {
|
|
13
|
-
text: string;
|
|
14
|
-
};
|
|
15
|
-
emptyCells: {
|
|
16
|
-
text: string;
|
|
17
|
-
};
|
|
18
|
-
insertRowUp: {
|
|
19
|
-
text: string;
|
|
20
|
-
};
|
|
21
|
-
insertRowDown: {
|
|
22
|
-
text: string;
|
|
23
|
-
};
|
|
24
|
-
insertColumnLeft: {
|
|
25
|
-
text: string;
|
|
26
|
-
};
|
|
27
|
-
insertColumnRight: {
|
|
28
|
-
text: string;
|
|
29
|
-
};
|
|
30
|
-
mergeCells: {
|
|
31
|
-
text: string;
|
|
32
|
-
};
|
|
33
|
-
unmergeCells: {
|
|
34
|
-
text: string;
|
|
35
|
-
};
|
|
36
|
-
deleteRow: {
|
|
37
|
-
text: string;
|
|
38
|
-
};
|
|
39
|
-
deleteColumn: {
|
|
40
|
-
text: string;
|
|
41
|
-
};
|
|
42
|
-
deleteTable: {
|
|
43
|
-
text: string;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
5
|
export declare function inputFile(type: any, accept: any): void;
|
|
47
6
|
export declare function getListValue(value: any, preListValue: any): any;
|
|
48
7
|
/** css namespace */
|
package/types/counter/index.d.ts
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
|
+
import { FluentEditor } from 'src/fluent-editor';
|
|
1
2
|
import { ICounterOption } from '../config/types';
|
|
2
|
-
import { default as Quill } from 'quill';
|
|
3
3
|
|
|
4
4
|
export default class Counter {
|
|
5
|
-
|
|
5
|
+
quill: FluentEditor;
|
|
6
6
|
container: HTMLDivElement;
|
|
7
7
|
options: ICounterOption;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
constructor(quill: FluentEditor, options: ICounterOption);
|
|
9
|
+
resolveOptions(options: ICounterOption): {
|
|
10
|
+
format: string;
|
|
11
|
+
unit: string;
|
|
12
|
+
template: string;
|
|
13
|
+
count: number;
|
|
14
|
+
} & ICounterOption;
|
|
10
15
|
renderCount: () => void;
|
|
11
16
|
getContentLength(format: any): number;
|
|
12
17
|
}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import { default as TypeClipboard } from 'quill/modules/clipboard';
|
|
2
|
+
import { FluentEditor } from './fluent-editor';
|
|
3
|
+
|
|
4
|
+
declare const Clipboard: typeof TypeClipboard;
|
|
2
5
|
declare class CustomClipboard extends Clipboard {
|
|
3
|
-
quill:
|
|
6
|
+
quill: FluentEditor;
|
|
4
7
|
convert: any;
|
|
5
8
|
onCopy: any;
|
|
6
9
|
matchers: any;
|
|
7
10
|
prepareMatching(container: any, nodeMatches: any): any[][];
|
|
8
11
|
onCaptureCopy(e: any, isCut?: boolean): void;
|
|
9
|
-
onCapturePaste(e:
|
|
12
|
+
onCapturePaste(e: ClipboardEvent): void;
|
|
10
13
|
onPaste(range: any, { html, text, files: clipboardFiles, rtf }: {
|
|
11
14
|
html: any;
|
|
12
15
|
text: any;
|
package/types/fluent-editor.d.ts
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
|
+
import { ExpandedQuillOptions, default as Quill } from 'quill';
|
|
1
2
|
import { IEditorConfig } from './config/types';
|
|
2
|
-
import { default as Quill } from 'quill';
|
|
3
3
|
|
|
4
|
+
export interface I18NOptions {
|
|
5
|
+
lang: string;
|
|
6
|
+
langText: Record<string, string>;
|
|
7
|
+
}
|
|
4
8
|
export declare class FluentEditor extends Quill {
|
|
5
9
|
isFullscreen: boolean;
|
|
10
|
+
options: IEditorConfig & ExpandedQuillOptions;
|
|
6
11
|
constructor(container: HTMLElement | string, options?: IEditorConfig);
|
|
12
|
+
changeLanguage(options: Partial<I18NOptions>): void;
|
|
7
13
|
}
|
|
8
14
|
declare const _default: typeof FluentEditor;
|
|
9
15
|
export default _default;
|
|
@@ -13,7 +13,13 @@ export default class TableOperationMenu {
|
|
|
13
13
|
colorSubTitle: any;
|
|
14
14
|
cellColors: any;
|
|
15
15
|
domNode: any;
|
|
16
|
+
DEFAULT_COLOR_SUBTITLE: string;
|
|
17
|
+
DEFAULT_MENU: Record<string, {
|
|
18
|
+
text: string;
|
|
19
|
+
handler: () => void;
|
|
20
|
+
}>;
|
|
16
21
|
constructor(params: any, quill: any, options: any);
|
|
22
|
+
setDefaultMenu(): void;
|
|
17
23
|
mount(): void;
|
|
18
24
|
destroy(): any;
|
|
19
25
|
menuInitial({ cell, left, top }: {
|
package/types/toolbar/index.d.ts
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { QuillToolbarTipOptions, default as QuillToolbarTip } from 'quill-toolbar-tip';
|
|
2
|
+
import { FluentEditor } from '../fluent-editor';
|
|
3
|
+
|
|
4
|
+
export declare class ToolbarTip extends QuillToolbarTip {
|
|
5
|
+
quill: FluentEditor;
|
|
6
|
+
static moduleName: string;
|
|
7
|
+
constructor(quill: FluentEditor, options: Partial<QuillToolbarTipOptions>);
|
|
8
|
+
resolveOptions(options: Partial<QuillToolbarTipOptions>): QuillToolbarTipOptions;
|
|
9
|
+
}
|
package/types/utils/method.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/** Used as a reference to the global object. */
|
|
2
2
|
export declare const root: any;
|
|
3
|
-
export declare function isObject(value: any): boolean;
|
|
4
3
|
export declare function compareArray(arr1: any, arr2: any): boolean;
|
|
5
4
|
export declare function compareObject(object1: any, object2: any): boolean;
|
|
6
5
|
export declare function compare(value: any, other: any): boolean;
|