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.
Files changed (177) hide show
  1. package/CONTRIBUTING.md +186 -184
  2. package/LICENSE +21 -21
  3. package/README.md +157 -180
  4. package/dist/suneditor.min.css +1 -1
  5. package/dist/suneditor.min.js +1 -1
  6. package/package.json +126 -123
  7. package/src/assets/design/color.css +131 -121
  8. package/src/assets/design/index.css +3 -3
  9. package/src/assets/design/size.css +37 -35
  10. package/src/assets/design/typography.css +37 -37
  11. package/src/assets/icons/defaultIcons.js +247 -232
  12. package/src/assets/suneditor-contents.css +779 -778
  13. package/src/assets/suneditor.css +43 -35
  14. package/src/core/base/eventHandlers/handler_toolbar.js +135 -135
  15. package/src/core/base/eventHandlers/handler_ww_clipboard.js +56 -56
  16. package/src/core/base/eventHandlers/handler_ww_dragDrop.js +115 -113
  17. package/src/core/base/eventHandlers/handler_ww_key_input.js +1200 -1200
  18. package/src/core/base/eventHandlers/handler_ww_mouse.js +194 -194
  19. package/src/core/base/eventManager.js +1550 -1484
  20. package/src/core/base/history.js +355 -355
  21. package/src/core/class/char.js +163 -162
  22. package/src/core/class/component.js +856 -842
  23. package/src/core/class/format.js +3433 -3422
  24. package/src/core/class/html.js +1927 -1890
  25. package/src/core/class/menu.js +357 -346
  26. package/src/core/class/nodeTransform.js +424 -424
  27. package/src/core/class/offset.js +858 -891
  28. package/src/core/class/selection.js +710 -620
  29. package/src/core/class/shortcuts.js +98 -98
  30. package/src/core/class/toolbar.js +438 -430
  31. package/src/core/class/ui.js +424 -422
  32. package/src/core/class/viewer.js +750 -750
  33. package/src/core/editor.js +1810 -1708
  34. package/src/core/section/actives.js +268 -241
  35. package/src/core/section/constructor.js +1348 -1661
  36. package/src/core/section/context.js +102 -102
  37. package/src/core/section/documentType.js +582 -561
  38. package/src/core/section/options.js +367 -0
  39. package/src/core/util/instanceCheck.js +59 -0
  40. package/src/editorInjector/_classes.js +36 -36
  41. package/src/editorInjector/_core.js +92 -92
  42. package/src/editorInjector/index.js +75 -75
  43. package/src/events.js +634 -622
  44. package/src/helper/clipboard.js +59 -59
  45. package/src/helper/converter.js +586 -564
  46. package/src/helper/dom/domCheck.js +304 -304
  47. package/src/helper/dom/domQuery.js +677 -669
  48. package/src/helper/dom/domUtils.js +618 -557
  49. package/src/helper/dom/index.js +12 -12
  50. package/src/helper/env.js +249 -240
  51. package/src/helper/index.js +25 -25
  52. package/src/helper/keyCodeMap.js +183 -183
  53. package/src/helper/numbers.js +72 -72
  54. package/src/helper/unicode.js +47 -47
  55. package/src/langs/ckb.js +231 -231
  56. package/src/langs/cs.js +231 -231
  57. package/src/langs/da.js +231 -231
  58. package/src/langs/de.js +231 -231
  59. package/src/langs/en.js +230 -230
  60. package/src/langs/es.js +231 -231
  61. package/src/langs/fa.js +231 -231
  62. package/src/langs/fr.js +231 -231
  63. package/src/langs/he.js +231 -231
  64. package/src/langs/hu.js +230 -230
  65. package/src/langs/index.js +28 -28
  66. package/src/langs/it.js +231 -231
  67. package/src/langs/ja.js +230 -230
  68. package/src/langs/km.js +230 -230
  69. package/src/langs/ko.js +230 -230
  70. package/src/langs/lv.js +231 -231
  71. package/src/langs/nl.js +231 -231
  72. package/src/langs/pl.js +231 -231
  73. package/src/langs/pt_br.js +231 -231
  74. package/src/langs/ro.js +231 -231
  75. package/src/langs/ru.js +231 -231
  76. package/src/langs/se.js +231 -231
  77. package/src/langs/tr.js +231 -231
  78. package/src/langs/uk.js +231 -231
  79. package/src/langs/ur.js +231 -231
  80. package/src/langs/zh_cn.js +231 -231
  81. package/src/modules/ApiManager.js +191 -191
  82. package/src/modules/Browser.js +669 -667
  83. package/src/modules/ColorPicker.js +364 -362
  84. package/src/modules/Controller.js +474 -454
  85. package/src/modules/Figure.js +1620 -1617
  86. package/src/modules/FileManager.js +359 -359
  87. package/src/modules/HueSlider.js +577 -565
  88. package/src/modules/Modal.js +346 -346
  89. package/src/modules/ModalAnchorEditor.js +643 -643
  90. package/src/modules/SelectMenu.js +549 -549
  91. package/src/modules/_DragHandle.js +17 -17
  92. package/src/modules/index.js +14 -14
  93. package/src/plugins/browser/audioGallery.js +83 -83
  94. package/src/plugins/browser/fileBrowser.js +103 -103
  95. package/src/plugins/browser/fileGallery.js +83 -83
  96. package/src/plugins/browser/imageGallery.js +81 -81
  97. package/src/plugins/browser/videoGallery.js +103 -103
  98. package/src/plugins/command/blockquote.js +61 -60
  99. package/src/plugins/command/exportPDF.js +134 -134
  100. package/src/plugins/command/fileUpload.js +456 -456
  101. package/src/plugins/command/list_bulleted.js +149 -148
  102. package/src/plugins/command/list_numbered.js +152 -151
  103. package/src/plugins/dropdown/align.js +157 -155
  104. package/src/plugins/dropdown/backgroundColor.js +108 -104
  105. package/src/plugins/dropdown/font.js +141 -137
  106. package/src/plugins/dropdown/fontColor.js +109 -105
  107. package/src/plugins/dropdown/formatBlock.js +170 -178
  108. package/src/plugins/dropdown/hr.js +152 -152
  109. package/src/plugins/dropdown/layout.js +83 -83
  110. package/src/plugins/dropdown/lineHeight.js +131 -130
  111. package/src/plugins/dropdown/list.js +123 -122
  112. package/src/plugins/dropdown/paragraphStyle.js +138 -138
  113. package/src/plugins/dropdown/table.js +4110 -4000
  114. package/src/plugins/dropdown/template.js +83 -83
  115. package/src/plugins/dropdown/textStyle.js +149 -149
  116. package/src/plugins/field/mention.js +242 -242
  117. package/src/plugins/index.js +120 -120
  118. package/src/plugins/input/fontSize.js +414 -410
  119. package/src/plugins/input/pageNavigator.js +71 -70
  120. package/src/plugins/modal/audio.js +677 -677
  121. package/src/plugins/modal/drawing.js +537 -531
  122. package/src/plugins/modal/embed.js +886 -886
  123. package/src/plugins/modal/image.js +1377 -1376
  124. package/src/plugins/modal/link.js +248 -240
  125. package/src/plugins/modal/math.js +563 -563
  126. package/src/plugins/modal/video.js +1226 -1226
  127. package/src/plugins/popup/anchor.js +224 -222
  128. package/src/suneditor.js +114 -107
  129. package/src/themes/dark.css +132 -122
  130. package/src/typedef.js +132 -130
  131. package/types/assets/icons/defaultIcons.d.ts +8 -0
  132. package/types/core/base/eventManager.d.ts +29 -4
  133. package/types/core/class/char.d.ts +2 -1
  134. package/types/core/class/component.d.ts +1 -2
  135. package/types/core/class/format.d.ts +8 -1
  136. package/types/core/class/html.d.ts +8 -0
  137. package/types/core/class/menu.d.ts +8 -0
  138. package/types/core/class/offset.d.ts +24 -26
  139. package/types/core/class/selection.d.ts +2 -0
  140. package/types/core/class/toolbar.d.ts +6 -0
  141. package/types/core/class/ui.d.ts +1 -1
  142. package/types/core/editor.d.ts +34 -12
  143. package/types/core/section/constructor.d.ts +5 -638
  144. package/types/core/section/documentType.d.ts +12 -2
  145. package/types/core/section/options.d.ts +740 -0
  146. package/types/core/util/instanceCheck.d.ts +50 -0
  147. package/types/editorInjector/_core.d.ts +5 -5
  148. package/types/editorInjector/index.d.ts +2 -2
  149. package/types/events.d.ts +2 -0
  150. package/types/helper/converter.d.ts +9 -0
  151. package/types/helper/dom/domQuery.d.ts +5 -5
  152. package/types/helper/dom/domUtils.d.ts +8 -0
  153. package/types/helper/env.d.ts +6 -1
  154. package/types/helper/index.d.ts +4 -1
  155. package/types/index.d.ts +122 -120
  156. package/types/langs/_Lang.d.ts +194 -194
  157. package/types/modules/ColorPicker.d.ts +5 -1
  158. package/types/modules/Controller.d.ts +8 -4
  159. package/types/modules/Figure.d.ts +2 -1
  160. package/types/modules/HueSlider.d.ts +4 -1
  161. package/types/modules/SelectMenu.d.ts +1 -1
  162. package/types/plugins/command/blockquote.d.ts +1 -0
  163. package/types/plugins/command/list_bulleted.d.ts +1 -0
  164. package/types/plugins/command/list_numbered.d.ts +1 -0
  165. package/types/plugins/dropdown/align.d.ts +1 -0
  166. package/types/plugins/dropdown/backgroundColor.d.ts +1 -0
  167. package/types/plugins/dropdown/font.d.ts +1 -0
  168. package/types/plugins/dropdown/fontColor.d.ts +1 -0
  169. package/types/plugins/dropdown/formatBlock.d.ts +3 -2
  170. package/types/plugins/dropdown/lineHeight.d.ts +1 -0
  171. package/types/plugins/dropdown/list.d.ts +1 -0
  172. package/types/plugins/dropdown/table.d.ts +6 -0
  173. package/types/plugins/input/fontSize.d.ts +1 -0
  174. package/types/plugins/modal/drawing.d.ts +4 -0
  175. package/types/plugins/modal/link.d.ts +32 -15
  176. package/types/suneditor.d.ts +13 -9
  177. package/types/typedef.d.ts +8 -0
@@ -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
- * The relative position of this controller to the sibling element (e.g., display above or beside the sibling).
63
+ * If true, This sibling controller is the main controller.
64
+ * - You must specify this option, if use "sibling"
63
65
  */
64
- siblingPosition?: 'top' | 'side';
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
- * @property {"top"|"side"} [siblingPosition="top"] The relative position of this controller to the sibling element (e.g., display above or beside the sibling).
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
- siblingPosition: 'top' | 'side';
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'): void;
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
- __globalMouseMove: any;
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: Window | HTMLInputElement;
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+p~formatBlock.createHeader', ''])
50
+ * - (e.g. shortcuts._h1: ['c+s+49+$~formatBlock.applyHeaderByShortcut', ''])
50
51
  * @param {__se__PluginShortcutInfo} params - Information of the "shortcut" plugin
51
52
  */
52
- createHeader({ keyCode }: __se__PluginShortcutInfo): void;
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;