suneditor 3.0.0-beta.2 → 3.0.0-beta.20
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/CONTRIBUTING.md +186 -184
- package/LICENSE +21 -21
- package/README.md +157 -180
- package/dist/suneditor.min.css +1 -1
- package/dist/suneditor.min.js +1 -1
- package/package.json +126 -123
- package/src/assets/design/color.css +131 -121
- package/src/assets/design/index.css +3 -3
- package/src/assets/design/size.css +37 -35
- package/src/assets/design/typography.css +37 -37
- package/src/assets/icons/defaultIcons.js +247 -232
- package/src/assets/suneditor-contents.css +779 -778
- package/src/assets/suneditor.css +43 -35
- package/src/core/base/eventHandlers/handler_toolbar.js +135 -135
- package/src/core/base/eventHandlers/handler_ww_clipboard.js +56 -56
- package/src/core/base/eventHandlers/handler_ww_dragDrop.js +115 -113
- package/src/core/base/eventHandlers/handler_ww_key_input.js +1200 -1200
- package/src/core/base/eventHandlers/handler_ww_mouse.js +194 -194
- package/src/core/base/eventManager.js +1550 -1484
- package/src/core/base/history.js +355 -355
- package/src/core/class/char.js +163 -162
- package/src/core/class/component.js +856 -842
- package/src/core/class/format.js +3433 -3422
- package/src/core/class/html.js +1927 -1890
- package/src/core/class/menu.js +357 -346
- package/src/core/class/nodeTransform.js +424 -424
- package/src/core/class/offset.js +858 -891
- package/src/core/class/selection.js +710 -620
- package/src/core/class/shortcuts.js +98 -98
- package/src/core/class/toolbar.js +438 -430
- package/src/core/class/ui.js +424 -422
- package/src/core/class/viewer.js +750 -750
- package/src/core/editor.js +1810 -1708
- package/src/core/section/actives.js +268 -241
- package/src/core/section/constructor.js +1348 -1661
- package/src/core/section/context.js +102 -102
- package/src/core/section/documentType.js +582 -561
- package/src/core/section/options.js +367 -0
- package/src/core/util/instanceCheck.js +59 -0
- package/src/editorInjector/_classes.js +36 -36
- package/src/editorInjector/_core.js +92 -92
- package/src/editorInjector/index.js +75 -75
- package/src/events.js +634 -622
- package/src/helper/clipboard.js +59 -59
- package/src/helper/converter.js +586 -564
- package/src/helper/dom/domCheck.js +304 -304
- package/src/helper/dom/domQuery.js +677 -669
- package/src/helper/dom/domUtils.js +618 -557
- package/src/helper/dom/index.js +12 -12
- package/src/helper/env.js +249 -240
- package/src/helper/index.js +25 -25
- package/src/helper/keyCodeMap.js +183 -183
- package/src/helper/numbers.js +72 -72
- package/src/helper/unicode.js +47 -47
- package/src/langs/ckb.js +231 -231
- package/src/langs/cs.js +231 -231
- package/src/langs/da.js +231 -231
- package/src/langs/de.js +231 -231
- package/src/langs/en.js +230 -230
- package/src/langs/es.js +231 -231
- package/src/langs/fa.js +231 -231
- package/src/langs/fr.js +231 -231
- package/src/langs/he.js +231 -231
- package/src/langs/hu.js +230 -230
- package/src/langs/index.js +28 -28
- package/src/langs/it.js +231 -231
- package/src/langs/ja.js +230 -230
- package/src/langs/km.js +230 -230
- package/src/langs/ko.js +230 -230
- package/src/langs/lv.js +231 -231
- package/src/langs/nl.js +231 -231
- package/src/langs/pl.js +231 -231
- package/src/langs/pt_br.js +231 -231
- package/src/langs/ro.js +231 -231
- package/src/langs/ru.js +231 -231
- package/src/langs/se.js +231 -231
- package/src/langs/tr.js +231 -231
- package/src/langs/uk.js +231 -231
- package/src/langs/ur.js +231 -231
- package/src/langs/zh_cn.js +231 -231
- package/src/modules/ApiManager.js +191 -191
- package/src/modules/Browser.js +669 -667
- package/src/modules/ColorPicker.js +364 -362
- package/src/modules/Controller.js +474 -454
- package/src/modules/Figure.js +1620 -1617
- package/src/modules/FileManager.js +359 -359
- package/src/modules/HueSlider.js +577 -565
- package/src/modules/Modal.js +346 -346
- package/src/modules/ModalAnchorEditor.js +643 -643
- package/src/modules/SelectMenu.js +549 -549
- package/src/modules/_DragHandle.js +17 -17
- package/src/modules/index.js +14 -14
- package/src/plugins/browser/audioGallery.js +83 -83
- package/src/plugins/browser/fileBrowser.js +103 -103
- package/src/plugins/browser/fileGallery.js +83 -83
- package/src/plugins/browser/imageGallery.js +81 -81
- package/src/plugins/browser/videoGallery.js +103 -103
- package/src/plugins/command/blockquote.js +61 -60
- package/src/plugins/command/exportPDF.js +134 -134
- package/src/plugins/command/fileUpload.js +456 -456
- package/src/plugins/command/list_bulleted.js +149 -148
- package/src/plugins/command/list_numbered.js +152 -151
- package/src/plugins/dropdown/align.js +157 -155
- package/src/plugins/dropdown/backgroundColor.js +108 -104
- package/src/plugins/dropdown/font.js +141 -137
- package/src/plugins/dropdown/fontColor.js +109 -105
- package/src/plugins/dropdown/formatBlock.js +170 -178
- package/src/plugins/dropdown/hr.js +152 -152
- package/src/plugins/dropdown/layout.js +83 -83
- package/src/plugins/dropdown/lineHeight.js +131 -130
- package/src/plugins/dropdown/list.js +123 -122
- package/src/plugins/dropdown/paragraphStyle.js +138 -138
- package/src/plugins/dropdown/table.js +4110 -4000
- package/src/plugins/dropdown/template.js +83 -83
- package/src/plugins/dropdown/textStyle.js +149 -149
- package/src/plugins/field/mention.js +242 -242
- package/src/plugins/index.js +120 -120
- package/src/plugins/input/fontSize.js +414 -410
- package/src/plugins/input/pageNavigator.js +71 -70
- package/src/plugins/modal/audio.js +677 -677
- package/src/plugins/modal/drawing.js +537 -531
- package/src/plugins/modal/embed.js +886 -886
- package/src/plugins/modal/image.js +1377 -1376
- package/src/plugins/modal/link.js +248 -240
- package/src/plugins/modal/math.js +563 -563
- package/src/plugins/modal/video.js +1226 -1226
- package/src/plugins/popup/anchor.js +224 -222
- package/src/suneditor.js +114 -107
- package/src/themes/dark.css +132 -122
- package/src/typedef.js +132 -130
- package/types/assets/icons/defaultIcons.d.ts +8 -0
- package/types/core/base/eventManager.d.ts +29 -4
- package/types/core/class/char.d.ts +2 -1
- package/types/core/class/component.d.ts +1 -2
- package/types/core/class/format.d.ts +8 -1
- package/types/core/class/html.d.ts +8 -0
- package/types/core/class/menu.d.ts +8 -0
- package/types/core/class/offset.d.ts +24 -26
- package/types/core/class/selection.d.ts +2 -0
- package/types/core/class/toolbar.d.ts +6 -0
- package/types/core/class/ui.d.ts +1 -1
- package/types/core/editor.d.ts +34 -12
- package/types/core/section/constructor.d.ts +5 -638
- package/types/core/section/documentType.d.ts +12 -2
- package/types/core/section/options.d.ts +740 -0
- package/types/core/util/instanceCheck.d.ts +50 -0
- package/types/editorInjector/_core.d.ts +5 -5
- package/types/editorInjector/index.d.ts +2 -2
- package/types/events.d.ts +2 -0
- package/types/helper/converter.d.ts +9 -0
- package/types/helper/dom/domQuery.d.ts +5 -5
- package/types/helper/dom/domUtils.d.ts +8 -0
- package/types/helper/env.d.ts +6 -1
- package/types/helper/index.d.ts +4 -1
- package/types/index.d.ts +122 -120
- package/types/langs/_Lang.d.ts +194 -194
- package/types/modules/ColorPicker.d.ts +5 -1
- package/types/modules/Controller.d.ts +8 -4
- package/types/modules/Figure.d.ts +2 -1
- package/types/modules/HueSlider.d.ts +4 -1
- package/types/modules/SelectMenu.d.ts +1 -1
- package/types/plugins/command/blockquote.d.ts +1 -0
- package/types/plugins/command/list_bulleted.d.ts +1 -0
- package/types/plugins/command/list_numbered.d.ts +1 -0
- package/types/plugins/dropdown/align.d.ts +1 -0
- package/types/plugins/dropdown/backgroundColor.d.ts +1 -0
- package/types/plugins/dropdown/font.d.ts +1 -0
- package/types/plugins/dropdown/fontColor.d.ts +1 -0
- package/types/plugins/dropdown/formatBlock.d.ts +3 -2
- package/types/plugins/dropdown/lineHeight.d.ts +1 -0
- package/types/plugins/dropdown/list.d.ts +1 -0
- package/types/plugins/dropdown/table.d.ts +6 -0
- package/types/plugins/input/fontSize.d.ts +1 -0
- package/types/plugins/modal/drawing.d.ts +4 -0
- package/types/plugins/modal/link.d.ts +32 -15
- package/types/suneditor.d.ts +13 -9
- package/types/typedef.d.ts +8 -0
package/types/langs/_Lang.d.ts
CHANGED
|
@@ -1,194 +1,194 @@
|
|
|
1
|
-
export interface _Lang {
|
|
2
|
-
code: string;
|
|
3
|
-
align: string;
|
|
4
|
-
alignBottom: string;
|
|
5
|
-
alignCenter: string;
|
|
6
|
-
alignJustify: string;
|
|
7
|
-
alignLeft: string;
|
|
8
|
-
alignMiddle: string;
|
|
9
|
-
alignRight: string;
|
|
10
|
-
alignTop: string;
|
|
11
|
-
anchor: string;
|
|
12
|
-
asBlock: string;
|
|
13
|
-
asInline: string;
|
|
14
|
-
asLink: string;
|
|
15
|
-
audio: string;
|
|
16
|
-
audioGallery: string;
|
|
17
|
-
audio_modal_file: string;
|
|
18
|
-
audio_modal_title: string;
|
|
19
|
-
audio_modal_url: string;
|
|
20
|
-
autoSize: string;
|
|
21
|
-
backgroundColor: string;
|
|
22
|
-
basic: string;
|
|
23
|
-
blockStyle: string;
|
|
24
|
-
bold: string;
|
|
25
|
-
border: string;
|
|
26
|
-
border_all: string;
|
|
27
|
-
border_inside: string;
|
|
28
|
-
border_horizontal: string;
|
|
29
|
-
border_vertical: string;
|
|
30
|
-
border_outside: string;
|
|
31
|
-
border_left: string;
|
|
32
|
-
border_top: string;
|
|
33
|
-
border_right: string;
|
|
34
|
-
border_bottom: string;
|
|
35
|
-
border_none: string;
|
|
36
|
-
bulletedList: string;
|
|
37
|
-
cancel: string;
|
|
38
|
-
caption: string;
|
|
39
|
-
cellProperties: string;
|
|
40
|
-
center: string;
|
|
41
|
-
close: string;
|
|
42
|
-
codeView: string;
|
|
43
|
-
color: string;
|
|
44
|
-
colorPicker: string;
|
|
45
|
-
column: string;
|
|
46
|
-
comment: string;
|
|
47
|
-
commentAdd: string;
|
|
48
|
-
commentShow: string;
|
|
49
|
-
copy: string;
|
|
50
|
-
copyFormat: string;
|
|
51
|
-
cut: string;
|
|
52
|
-
default: string;
|
|
53
|
-
deleteColumn: string;
|
|
54
|
-
deleteRow: string;
|
|
55
|
-
dir_ltr: string;
|
|
56
|
-
dir_rtl: string;
|
|
57
|
-
download: string;
|
|
58
|
-
drag: string;
|
|
59
|
-
drawing: string;
|
|
60
|
-
drawing_modal_title: string;
|
|
61
|
-
edit: string;
|
|
62
|
-
embed: string;
|
|
63
|
-
embed_modal_title: string;
|
|
64
|
-
embed_modal_source: string;
|
|
65
|
-
exportPDF: string;
|
|
66
|
-
exportWord: string;
|
|
67
|
-
find: string;
|
|
68
|
-
decrease: string;
|
|
69
|
-
increase: string;
|
|
70
|
-
fileBrowser: string;
|
|
71
|
-
fileGallery: string;
|
|
72
|
-
fileUpload: string;
|
|
73
|
-
fixedColumnWidth: string;
|
|
74
|
-
font: string;
|
|
75
|
-
fontColor: string;
|
|
76
|
-
fontSize: string;
|
|
77
|
-
formats: string;
|
|
78
|
-
fullScreen: string;
|
|
79
|
-
height: string;
|
|
80
|
-
horizontalLine: string;
|
|
81
|
-
horizontalSplit: string;
|
|
82
|
-
hr_dashed: string;
|
|
83
|
-
hr_dotted: string;
|
|
84
|
-
hr_solid: string;
|
|
85
|
-
id: string;
|
|
86
|
-
image: string;
|
|
87
|
-
imageGallery: string;
|
|
88
|
-
image_modal_altText: string;
|
|
89
|
-
image_modal_file: string;
|
|
90
|
-
image_modal_title: string;
|
|
91
|
-
image_modal_url: string;
|
|
92
|
-
importWord: string;
|
|
93
|
-
indent: string;
|
|
94
|
-
inlineStyle: string;
|
|
95
|
-
insertColumnAfter: string;
|
|
96
|
-
insertColumnBefore: string;
|
|
97
|
-
insertRowAbove: string;
|
|
98
|
-
insertRowBelow: string;
|
|
99
|
-
insertLine: string;
|
|
100
|
-
italic: string;
|
|
101
|
-
layout: string;
|
|
102
|
-
left: string;
|
|
103
|
-
lineHeight: string;
|
|
104
|
-
link: string;
|
|
105
|
-
link_modal_bookmark: string;
|
|
106
|
-
link_modal_downloadLinkCheck: string;
|
|
107
|
-
link_modal_newWindowCheck: string;
|
|
108
|
-
link_modal_text: string;
|
|
109
|
-
link_modal_title: string;
|
|
110
|
-
link_modal_url: string;
|
|
111
|
-
link_modal_relAttribute: string;
|
|
112
|
-
list: string;
|
|
113
|
-
math: string;
|
|
114
|
-
math_modal_fontSizeLabel: string;
|
|
115
|
-
math_modal_inputLabel: string;
|
|
116
|
-
math_modal_previewLabel: string;
|
|
117
|
-
math_modal_title: string;
|
|
118
|
-
maxSize: string;
|
|
119
|
-
mediaGallery: string;
|
|
120
|
-
mention: string;
|
|
121
|
-
menu_bordered: string;
|
|
122
|
-
menu_code: string;
|
|
123
|
-
menu_neon: string;
|
|
124
|
-
menu_shadow: string;
|
|
125
|
-
menu_spaced: string;
|
|
126
|
-
menu_translucent: string;
|
|
127
|
-
mergeCells: string;
|
|
128
|
-
minSize: string;
|
|
129
|
-
mirrorHorizontal: string;
|
|
130
|
-
mirrorVertical: string;
|
|
131
|
-
newDocument: string;
|
|
132
|
-
numberedList: string;
|
|
133
|
-
outdent: string;
|
|
134
|
-
pageBreak: string;
|
|
135
|
-
pageDown: string;
|
|
136
|
-
pageNumber: string;
|
|
137
|
-
pageUp: string;
|
|
138
|
-
paragraphStyle: string;
|
|
139
|
-
preview: string;
|
|
140
|
-
print: string;
|
|
141
|
-
proportion: string;
|
|
142
|
-
ratio: string;
|
|
143
|
-
redo: string;
|
|
144
|
-
remove: string;
|
|
145
|
-
removeFormat: string;
|
|
146
|
-
replace: string;
|
|
147
|
-
replaceAll: string;
|
|
148
|
-
resize100: string;
|
|
149
|
-
resize25: string;
|
|
150
|
-
resize50: string;
|
|
151
|
-
resize75: string;
|
|
152
|
-
resize: string;
|
|
153
|
-
revert: string;
|
|
154
|
-
revisionHistory: string;
|
|
155
|
-
right: string;
|
|
156
|
-
rotateLeft: string;
|
|
157
|
-
rotateRight: string;
|
|
158
|
-
row: string;
|
|
159
|
-
save: string;
|
|
160
|
-
search: string;
|
|
161
|
-
selectAll: string;
|
|
162
|
-
showBlocks: string;
|
|
163
|
-
size: string;
|
|
164
|
-
splitCells: string;
|
|
165
|
-
strike: string;
|
|
166
|
-
submitButton: string;
|
|
167
|
-
subscript: string;
|
|
168
|
-
superscript: string;
|
|
169
|
-
table: string;
|
|
170
|
-
tableHeader: string;
|
|
171
|
-
tableProperties: string;
|
|
172
|
-
tags: string;
|
|
173
|
-
tag_blockquote: string;
|
|
174
|
-
tag_div: string;
|
|
175
|
-
tag_h: string;
|
|
176
|
-
tag_p: string;
|
|
177
|
-
tag_pre: string;
|
|
178
|
-
template: string;
|
|
179
|
-
textStyle: string;
|
|
180
|
-
title: string;
|
|
181
|
-
underline: string;
|
|
182
|
-
undo: string;
|
|
183
|
-
unmergeCells: string;
|
|
184
|
-
unlink: string;
|
|
185
|
-
verticalSplit: string;
|
|
186
|
-
video: string;
|
|
187
|
-
videoGallery: string;
|
|
188
|
-
video_modal_file: string;
|
|
189
|
-
video_modal_title: string;
|
|
190
|
-
video_modal_url: string;
|
|
191
|
-
width: string;
|
|
192
|
-
message_copy_success: string;
|
|
193
|
-
message_copy_fail: string;
|
|
194
|
-
}
|
|
1
|
+
export interface _Lang {
|
|
2
|
+
code: string;
|
|
3
|
+
align: string;
|
|
4
|
+
alignBottom: string;
|
|
5
|
+
alignCenter: string;
|
|
6
|
+
alignJustify: string;
|
|
7
|
+
alignLeft: string;
|
|
8
|
+
alignMiddle: string;
|
|
9
|
+
alignRight: string;
|
|
10
|
+
alignTop: string;
|
|
11
|
+
anchor: string;
|
|
12
|
+
asBlock: string;
|
|
13
|
+
asInline: string;
|
|
14
|
+
asLink: string;
|
|
15
|
+
audio: string;
|
|
16
|
+
audioGallery: string;
|
|
17
|
+
audio_modal_file: string;
|
|
18
|
+
audio_modal_title: string;
|
|
19
|
+
audio_modal_url: string;
|
|
20
|
+
autoSize: string;
|
|
21
|
+
backgroundColor: string;
|
|
22
|
+
basic: string;
|
|
23
|
+
blockStyle: string;
|
|
24
|
+
bold: string;
|
|
25
|
+
border: string;
|
|
26
|
+
border_all: string;
|
|
27
|
+
border_inside: string;
|
|
28
|
+
border_horizontal: string;
|
|
29
|
+
border_vertical: string;
|
|
30
|
+
border_outside: string;
|
|
31
|
+
border_left: string;
|
|
32
|
+
border_top: string;
|
|
33
|
+
border_right: string;
|
|
34
|
+
border_bottom: string;
|
|
35
|
+
border_none: string;
|
|
36
|
+
bulletedList: string;
|
|
37
|
+
cancel: string;
|
|
38
|
+
caption: string;
|
|
39
|
+
cellProperties: string;
|
|
40
|
+
center: string;
|
|
41
|
+
close: string;
|
|
42
|
+
codeView: string;
|
|
43
|
+
color: string;
|
|
44
|
+
colorPicker: string;
|
|
45
|
+
column: string;
|
|
46
|
+
comment: string;
|
|
47
|
+
commentAdd: string;
|
|
48
|
+
commentShow: string;
|
|
49
|
+
copy: string;
|
|
50
|
+
copyFormat: string;
|
|
51
|
+
cut: string;
|
|
52
|
+
default: string;
|
|
53
|
+
deleteColumn: string;
|
|
54
|
+
deleteRow: string;
|
|
55
|
+
dir_ltr: string;
|
|
56
|
+
dir_rtl: string;
|
|
57
|
+
download: string;
|
|
58
|
+
drag: string;
|
|
59
|
+
drawing: string;
|
|
60
|
+
drawing_modal_title: string;
|
|
61
|
+
edit: string;
|
|
62
|
+
embed: string;
|
|
63
|
+
embed_modal_title: string;
|
|
64
|
+
embed_modal_source: string;
|
|
65
|
+
exportPDF: string;
|
|
66
|
+
exportWord: string;
|
|
67
|
+
find: string;
|
|
68
|
+
decrease: string;
|
|
69
|
+
increase: string;
|
|
70
|
+
fileBrowser: string;
|
|
71
|
+
fileGallery: string;
|
|
72
|
+
fileUpload: string;
|
|
73
|
+
fixedColumnWidth: string;
|
|
74
|
+
font: string;
|
|
75
|
+
fontColor: string;
|
|
76
|
+
fontSize: string;
|
|
77
|
+
formats: string;
|
|
78
|
+
fullScreen: string;
|
|
79
|
+
height: string;
|
|
80
|
+
horizontalLine: string;
|
|
81
|
+
horizontalSplit: string;
|
|
82
|
+
hr_dashed: string;
|
|
83
|
+
hr_dotted: string;
|
|
84
|
+
hr_solid: string;
|
|
85
|
+
id: string;
|
|
86
|
+
image: string;
|
|
87
|
+
imageGallery: string;
|
|
88
|
+
image_modal_altText: string;
|
|
89
|
+
image_modal_file: string;
|
|
90
|
+
image_modal_title: string;
|
|
91
|
+
image_modal_url: string;
|
|
92
|
+
importWord: string;
|
|
93
|
+
indent: string;
|
|
94
|
+
inlineStyle: string;
|
|
95
|
+
insertColumnAfter: string;
|
|
96
|
+
insertColumnBefore: string;
|
|
97
|
+
insertRowAbove: string;
|
|
98
|
+
insertRowBelow: string;
|
|
99
|
+
insertLine: string;
|
|
100
|
+
italic: string;
|
|
101
|
+
layout: string;
|
|
102
|
+
left: string;
|
|
103
|
+
lineHeight: string;
|
|
104
|
+
link: string;
|
|
105
|
+
link_modal_bookmark: string;
|
|
106
|
+
link_modal_downloadLinkCheck: string;
|
|
107
|
+
link_modal_newWindowCheck: string;
|
|
108
|
+
link_modal_text: string;
|
|
109
|
+
link_modal_title: string;
|
|
110
|
+
link_modal_url: string;
|
|
111
|
+
link_modal_relAttribute: string;
|
|
112
|
+
list: string;
|
|
113
|
+
math: string;
|
|
114
|
+
math_modal_fontSizeLabel: string;
|
|
115
|
+
math_modal_inputLabel: string;
|
|
116
|
+
math_modal_previewLabel: string;
|
|
117
|
+
math_modal_title: string;
|
|
118
|
+
maxSize: string;
|
|
119
|
+
mediaGallery: string;
|
|
120
|
+
mention: string;
|
|
121
|
+
menu_bordered: string;
|
|
122
|
+
menu_code: string;
|
|
123
|
+
menu_neon: string;
|
|
124
|
+
menu_shadow: string;
|
|
125
|
+
menu_spaced: string;
|
|
126
|
+
menu_translucent: string;
|
|
127
|
+
mergeCells: string;
|
|
128
|
+
minSize: string;
|
|
129
|
+
mirrorHorizontal: string;
|
|
130
|
+
mirrorVertical: string;
|
|
131
|
+
newDocument: string;
|
|
132
|
+
numberedList: string;
|
|
133
|
+
outdent: string;
|
|
134
|
+
pageBreak: string;
|
|
135
|
+
pageDown: string;
|
|
136
|
+
pageNumber: string;
|
|
137
|
+
pageUp: string;
|
|
138
|
+
paragraphStyle: string;
|
|
139
|
+
preview: string;
|
|
140
|
+
print: string;
|
|
141
|
+
proportion: string;
|
|
142
|
+
ratio: string;
|
|
143
|
+
redo: string;
|
|
144
|
+
remove: string;
|
|
145
|
+
removeFormat: string;
|
|
146
|
+
replace: string;
|
|
147
|
+
replaceAll: string;
|
|
148
|
+
resize100: string;
|
|
149
|
+
resize25: string;
|
|
150
|
+
resize50: string;
|
|
151
|
+
resize75: string;
|
|
152
|
+
resize: string;
|
|
153
|
+
revert: string;
|
|
154
|
+
revisionHistory: string;
|
|
155
|
+
right: string;
|
|
156
|
+
rotateLeft: string;
|
|
157
|
+
rotateRight: string;
|
|
158
|
+
row: string;
|
|
159
|
+
save: string;
|
|
160
|
+
search: string;
|
|
161
|
+
selectAll: string;
|
|
162
|
+
showBlocks: string;
|
|
163
|
+
size: string;
|
|
164
|
+
splitCells: string;
|
|
165
|
+
strike: string;
|
|
166
|
+
submitButton: string;
|
|
167
|
+
subscript: string;
|
|
168
|
+
superscript: string;
|
|
169
|
+
table: string;
|
|
170
|
+
tableHeader: string;
|
|
171
|
+
tableProperties: string;
|
|
172
|
+
tags: string;
|
|
173
|
+
tag_blockquote: string;
|
|
174
|
+
tag_div: string;
|
|
175
|
+
tag_h: string;
|
|
176
|
+
tag_p: string;
|
|
177
|
+
tag_pre: string;
|
|
178
|
+
template: string;
|
|
179
|
+
textStyle: string;
|
|
180
|
+
title: string;
|
|
181
|
+
underline: string;
|
|
182
|
+
undo: string;
|
|
183
|
+
unmergeCells: string;
|
|
184
|
+
unlink: string;
|
|
185
|
+
verticalSplit: string;
|
|
186
|
+
video: string;
|
|
187
|
+
videoGallery: string;
|
|
188
|
+
video_modal_file: string;
|
|
189
|
+
video_modal_title: string;
|
|
190
|
+
video_modal_url: string;
|
|
191
|
+
width: string;
|
|
192
|
+
message_copy_success: string;
|
|
193
|
+
message_copy_fail: string;
|
|
194
|
+
}
|
|
@@ -83,8 +83,11 @@ declare class ColorPicker extends CoreInjector {
|
|
|
83
83
|
* @description Displays or resets the currently selected color at color list.
|
|
84
84
|
* @param {Node|string} nodeOrColor Current Selected node
|
|
85
85
|
* @param {Node} target target
|
|
86
|
+
* @param {?((current: Node) => boolean)=} stopCondition - A function used to stop traversing parent nodes while finding the color.
|
|
87
|
+
* - When this function returns true, the traversal ends at that node.
|
|
88
|
+
* - e.g., `(node) => this.format.isLine(node)` stops at line-level elements like <p>, <div>.
|
|
86
89
|
*/
|
|
87
|
-
init(nodeOrColor: Node | string, target: Node): void;
|
|
90
|
+
init(nodeOrColor: Node | string, target: Node, stopCondition?: (((current: Node) => boolean) | null) | undefined): void;
|
|
88
91
|
/**
|
|
89
92
|
* @description Store color values
|
|
90
93
|
* @param {string} hexColorStr Hax color value
|
|
@@ -104,6 +107,7 @@ declare class ColorPicker extends CoreInjector {
|
|
|
104
107
|
* @private
|
|
105
108
|
* @description Gets color value at color property of node
|
|
106
109
|
* @param {Node} node Selected node
|
|
110
|
+
* @param {(current: Node) => boolean} stopCondition - A function used to stop traversing parent nodes while finding the color.
|
|
107
111
|
* @returns {string}
|
|
108
112
|
*/
|
|
109
113
|
private _getColorInNode;
|
|
@@ -56,12 +56,14 @@ export type ControllerParams = {
|
|
|
56
56
|
parentsHide?: boolean | undefined;
|
|
57
57
|
/**
|
|
58
58
|
* The related sibling controller element that this controller is positioned relative to.
|
|
59
|
+
* - e.g.) table plugin :: 118
|
|
59
60
|
*/
|
|
60
61
|
sibling?: HTMLElement | undefined;
|
|
61
62
|
/**
|
|
62
|
-
*
|
|
63
|
+
* If true, This sibling controller is the main controller.
|
|
64
|
+
* - You must specify this option, if use "sibling"
|
|
63
65
|
*/
|
|
64
|
-
|
|
66
|
+
siblingMain?: boolean | undefined;
|
|
65
67
|
/**
|
|
66
68
|
* If the controller is inside a form, set it to true.
|
|
67
69
|
*/
|
|
@@ -90,7 +92,9 @@ export type ControllerParams = {
|
|
|
90
92
|
* @property {Array<HTMLElement>=} [parents=[]] The parent "controller" array when "controller" is opened nested.
|
|
91
93
|
* @property {boolean=} [parentsHide=false] If true, the parent element is hidden when the controller is opened.
|
|
92
94
|
* @property {HTMLElement=} [sibling=null] The related sibling controller element that this controller is positioned relative to.
|
|
93
|
-
*
|
|
95
|
+
* - e.g.) table plugin :: 118
|
|
96
|
+
* @property {boolean=} [siblingMain=false] If true, This sibling controller is the main controller.
|
|
97
|
+
* - You must specify this option, if use "sibling"
|
|
94
98
|
* @property {boolean=} [isInsideForm=false] If the controller is inside a form, set it to true.
|
|
95
99
|
* @property {boolean=} [isOutsideForm=false] If the controller is outside a form, set it to true.
|
|
96
100
|
*/
|
|
@@ -119,7 +123,7 @@ declare class Controller extends EditorInjector {
|
|
|
119
123
|
parents: HTMLElement[];
|
|
120
124
|
parentsHide: boolean;
|
|
121
125
|
sibling: HTMLElement;
|
|
122
|
-
|
|
126
|
+
siblingMain: boolean;
|
|
123
127
|
isInsideForm: boolean;
|
|
124
128
|
isOutsideForm: boolean;
|
|
125
129
|
toTop: boolean;
|
|
@@ -378,8 +378,9 @@ declare class Figure extends EditorInjector {
|
|
|
378
378
|
* @description As style[block, inline] the component
|
|
379
379
|
* @param {?Node} targetNode Target element
|
|
380
380
|
* @param {"block"|"inline"} formatStyle Format style
|
|
381
|
+
* @returns {HTMLElement} New target element after conversion
|
|
381
382
|
*/
|
|
382
|
-
convertAsFormat(targetNode: Node | null, formatStyle: 'block' | 'inline'):
|
|
383
|
+
convertAsFormat(targetNode: Node | null, formatStyle: 'block' | 'inline'): HTMLElement;
|
|
383
384
|
/**
|
|
384
385
|
* @private
|
|
385
386
|
* @description Handles format conversion (block/inline) for the figure component and applies size changes.
|
|
@@ -101,8 +101,11 @@ declare class HueSlider {
|
|
|
101
101
|
isOpen: boolean;
|
|
102
102
|
controlle: any;
|
|
103
103
|
__globalMouseDown: any;
|
|
104
|
-
|
|
104
|
+
__globalTouchMove: any;
|
|
105
105
|
__globalMouseUp: any;
|
|
106
|
+
__globalMouseMove: any;
|
|
107
|
+
__globalTouchStart: any;
|
|
108
|
+
__globalTouchEnd: any;
|
|
106
109
|
controller: Controller;
|
|
107
110
|
/**
|
|
108
111
|
* @description Get the current color information.
|
|
@@ -66,7 +66,7 @@ declare class SelectMenu extends CoreInjector {
|
|
|
66
66
|
openMethod: () => void;
|
|
67
67
|
closeMethod: () => void;
|
|
68
68
|
_refer: HTMLElement;
|
|
69
|
-
_keydownTarget:
|
|
69
|
+
_keydownTarget: any;
|
|
70
70
|
_selectMethod: (command: string) => void;
|
|
71
71
|
_bindClose_key: any;
|
|
72
72
|
_bindClose_mousedown: any;
|
|
@@ -16,6 +16,7 @@ declare class Blockquote extends EditorInjector {
|
|
|
16
16
|
* @param {?HTMLElement=} element - Node element where the cursor is currently located
|
|
17
17
|
* @param {?HTMLElement=} target - The plugin's toolbar button element
|
|
18
18
|
* @returns {boolean} - Whether the plugin is active
|
|
19
|
+
* - If it returns "undefined", it will no longer be called in this scope.
|
|
19
20
|
*/
|
|
20
21
|
active(element?: (HTMLElement | null) | undefined, target?: (HTMLElement | null) | undefined): boolean;
|
|
21
22
|
/**
|
|
@@ -17,6 +17,7 @@ declare class List_bulleted extends EditorInjector {
|
|
|
17
17
|
* @param {?HTMLElement=} element - Node element where the cursor is currently located
|
|
18
18
|
* @param {?HTMLElement=} target - The plugin's toolbar button element
|
|
19
19
|
* @returns {boolean} - Whether the plugin is active
|
|
20
|
+
* - If it returns "undefined", it will no longer be called in this scope.
|
|
20
21
|
*/
|
|
21
22
|
active(element?: (HTMLElement | null) | undefined, target?: (HTMLElement | null) | undefined): boolean;
|
|
22
23
|
/**
|
|
@@ -17,6 +17,7 @@ declare class List_numbered extends EditorInjector {
|
|
|
17
17
|
* @param {?HTMLElement=} element - Node element where the cursor is currently located
|
|
18
18
|
* @param {?HTMLElement=} target - The plugin's toolbar button element
|
|
19
19
|
* @returns {boolean} - Whether the plugin is active
|
|
20
|
+
* - If it returns "undefined", it will no longer be called in this scope.
|
|
20
21
|
*/
|
|
21
22
|
active(element?: (HTMLElement | null) | undefined, target?: (HTMLElement | null) | undefined): boolean;
|
|
22
23
|
/**
|
|
@@ -35,6 +35,7 @@ declare class Align extends EditorInjector {
|
|
|
35
35
|
* @param {?HTMLElement=} element - Node element where the cursor is currently located
|
|
36
36
|
* @param {?HTMLElement=} target - The plugin's toolbar button element
|
|
37
37
|
* @returns {boolean} - Whether the plugin is active
|
|
38
|
+
* - If it returns "undefined", it will no longer be called in this scope.
|
|
38
39
|
*/
|
|
39
40
|
active(element?: (HTMLElement | null) | undefined, target?: (HTMLElement | null) | undefined): boolean;
|
|
40
41
|
/**
|
|
@@ -38,6 +38,7 @@ declare class BackgroundColor extends EditorInjector {
|
|
|
38
38
|
* @param {?HTMLElement=} element - Node element where the cursor is currently located
|
|
39
39
|
* @param {?HTMLElement=} target - The plugin's toolbar button element
|
|
40
40
|
* @returns {boolean} - Whether the plugin is active
|
|
41
|
+
* - If it returns "undefined", it will no longer be called in this scope.
|
|
41
42
|
*/
|
|
42
43
|
active(element?: (HTMLElement | null) | undefined, target?: (HTMLElement | null) | undefined): boolean;
|
|
43
44
|
/**
|
|
@@ -34,6 +34,7 @@ declare class Font extends EditorInjector {
|
|
|
34
34
|
* @param {?HTMLElement=} element - Node element where the cursor is currently located
|
|
35
35
|
* @param {?HTMLElement=} target - The plugin's toolbar button element
|
|
36
36
|
* @returns {boolean} - Whether the plugin is active
|
|
37
|
+
* - If it returns "undefined", it will no longer be called in this scope.
|
|
37
38
|
*/
|
|
38
39
|
active(element?: (HTMLElement | null) | undefined, target?: (HTMLElement | null) | undefined): boolean;
|
|
39
40
|
/**
|
|
@@ -38,6 +38,7 @@ declare class FontColor extends EditorInjector {
|
|
|
38
38
|
* @param {?HTMLElement=} element - Node element where the cursor is currently located
|
|
39
39
|
* @param {?HTMLElement=} target - The plugin's toolbar button element
|
|
40
40
|
* @returns {boolean} - Whether the plugin is active
|
|
41
|
+
* - If it returns "undefined", it will no longer be called in this scope.
|
|
41
42
|
*/
|
|
42
43
|
active(element?: (HTMLElement | null) | undefined, target?: (HTMLElement | null) | undefined): boolean;
|
|
43
44
|
/**
|
|
@@ -29,6 +29,7 @@ declare class FormatBlock extends EditorInjector {
|
|
|
29
29
|
* @param {?HTMLElement=} element - Node element where the cursor is currently located
|
|
30
30
|
* @param {?HTMLElement=} target - The plugin's toolbar button element
|
|
31
31
|
* @returns {boolean} - Whether the plugin is active
|
|
32
|
+
* - If it returns "undefined", it will no longer be called in this scope.
|
|
32
33
|
*/
|
|
33
34
|
active(element?: (HTMLElement | null) | undefined, target?: (HTMLElement | null) | undefined): boolean;
|
|
34
35
|
/**
|
|
@@ -46,9 +47,9 @@ declare class FormatBlock extends EditorInjector {
|
|
|
46
47
|
action(target: HTMLElement): void;
|
|
47
48
|
/**
|
|
48
49
|
* @description Create a header tag, call by "shortcut" class
|
|
49
|
-
* - (e.g. shortcuts._h1: ['c+s+49
|
|
50
|
+
* - (e.g. shortcuts._h1: ['c+s+49+$~formatBlock.applyHeaderByShortcut', ''])
|
|
50
51
|
* @param {__se__PluginShortcutInfo} params - Information of the "shortcut" plugin
|
|
51
52
|
*/
|
|
52
|
-
|
|
53
|
+
applyHeaderByShortcut({ keyCode }: __se__PluginShortcutInfo): void;
|
|
53
54
|
}
|
|
54
55
|
import EditorInjector from '../../editorInjector';
|
|
@@ -32,6 +32,7 @@ declare class LineHeight extends EditorInjector {
|
|
|
32
32
|
* @param {?HTMLElement=} element - Node element where the cursor is currently located
|
|
33
33
|
* @param {?HTMLElement=} target - The plugin's toolbar button element
|
|
34
34
|
* @returns {boolean} - Whether the plugin is active
|
|
35
|
+
* - If it returns "undefined", it will no longer be called in this scope.
|
|
35
36
|
*/
|
|
36
37
|
active(element?: (HTMLElement | null) | undefined, target?: (HTMLElement | null) | undefined): boolean;
|
|
37
38
|
/**
|
|
@@ -20,6 +20,7 @@ declare class List extends EditorInjector {
|
|
|
20
20
|
* @param {?HTMLElement=} element - Node element where the cursor is currently located
|
|
21
21
|
* @param {?HTMLElement=} target - The plugin's toolbar button element
|
|
22
22
|
* @returns {boolean} - Whether the plugin is active
|
|
23
|
+
* - If it returns "undefined", it will no longer be called in this scope.
|
|
23
24
|
*/
|
|
24
25
|
active(element?: (HTMLElement | null) | undefined, target?: (HTMLElement | null) | undefined): boolean;
|
|
25
26
|
/**
|
|
@@ -409,6 +409,12 @@ declare class Table extends EditorInjector {
|
|
|
409
409
|
* @param {Node} target - The target figure element.
|
|
410
410
|
*/
|
|
411
411
|
private _figureOpen;
|
|
412
|
+
/**
|
|
413
|
+
* @private
|
|
414
|
+
* @description Converts the width of <col> elements to percentages.
|
|
415
|
+
* @param {HTMLTableElement} target - The target table element.
|
|
416
|
+
*/
|
|
417
|
+
private _resizePercentCol;
|
|
412
418
|
/**
|
|
413
419
|
* @private
|
|
414
420
|
* @description Starts resizing a table cell.
|
|
@@ -114,6 +114,7 @@ declare class FontSize extends EditorInjector {
|
|
|
114
114
|
* @param {?HTMLElement=} element - Node element where the cursor is currently located
|
|
115
115
|
* @param {?HTMLElement=} target - The plugin's toolbar button element
|
|
116
116
|
* @returns {boolean} - Whether the plugin is active
|
|
117
|
+
* - If it returns "undefined", it will no longer be called in this scope.
|
|
117
118
|
*/
|
|
118
119
|
active(element?: (HTMLElement | null) | undefined, target?: (HTMLElement | null) | undefined): boolean;
|
|
119
120
|
/**
|
|
@@ -140,6 +140,8 @@ declare class Drawing extends EditorInjector {
|
|
|
140
140
|
paths: any[];
|
|
141
141
|
resizeObserver: ResizeObserver;
|
|
142
142
|
__events: {
|
|
143
|
+
touchstart: any;
|
|
144
|
+
touchmove: any;
|
|
143
145
|
mousedown: any;
|
|
144
146
|
mousemove: any;
|
|
145
147
|
mouseup: any;
|
|
@@ -147,6 +149,8 @@ declare class Drawing extends EditorInjector {
|
|
|
147
149
|
mouseenter: any;
|
|
148
150
|
};
|
|
149
151
|
__eventsRegister: {
|
|
152
|
+
touchstart: any;
|
|
153
|
+
touchmove: any;
|
|
150
154
|
mousedown: any;
|
|
151
155
|
mousemove: any;
|
|
152
156
|
mouseup: any;
|