suneditor 3.0.0-beta.3 → 3.0.0-beta.30

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 (241) hide show
  1. package/CONTRIBUTING.md +8 -8
  2. package/README.md +44 -49
  3. package/dist/suneditor.min.css +1 -1
  4. package/dist/suneditor.min.js +1 -1
  5. package/package.json +95 -53
  6. package/src/assets/design/color.css +2 -2
  7. package/src/assets/design/size.css +2 -0
  8. package/src/assets/icons/defaultIcons.js +16 -1
  9. package/src/assets/suneditor-contents.css +9 -8
  10. package/src/assets/suneditor.css +29 -26
  11. package/src/core/{section → base}/actives.js +20 -12
  12. package/src/core/base/history.js +4 -4
  13. package/src/core/class/char.js +10 -10
  14. package/src/core/class/component.js +146 -57
  15. package/src/core/class/format.js +94 -2458
  16. package/src/core/class/html.js +187 -129
  17. package/src/core/class/inline.js +1853 -0
  18. package/src/core/class/listFormat.js +582 -0
  19. package/src/core/class/menu.js +14 -3
  20. package/src/core/class/nodeTransform.js +9 -14
  21. package/src/core/class/offset.js +162 -197
  22. package/src/core/class/selection.js +137 -34
  23. package/src/core/class/toolbar.js +73 -52
  24. package/src/core/class/ui.js +11 -11
  25. package/src/core/class/viewer.js +56 -55
  26. package/src/core/config/context.js +122 -0
  27. package/src/core/config/frameContext.js +204 -0
  28. package/src/core/config/options.js +639 -0
  29. package/src/core/editor.js +181 -108
  30. package/src/core/event/actions/index.js +229 -0
  31. package/src/core/event/effects/common.registry.js +60 -0
  32. package/src/core/event/effects/keydown.registry.js +551 -0
  33. package/src/core/event/effects/ruleHelpers.js +145 -0
  34. package/src/core/{base → event}/eventManager.js +119 -201
  35. package/src/core/event/executor.js +21 -0
  36. package/src/core/{base/eventHandlers → event/handlers}/handler_toolbar.js +4 -4
  37. package/src/core/{base/eventHandlers → event/handlers}/handler_ww_dragDrop.js +2 -2
  38. package/src/core/event/handlers/handler_ww_input.js +77 -0
  39. package/src/core/event/handlers/handler_ww_key.js +228 -0
  40. package/src/core/{base/eventHandlers → event/handlers}/handler_ww_mouse.js +3 -3
  41. package/src/core/event/ports.js +211 -0
  42. package/src/core/event/reducers/keydown.reducer.js +89 -0
  43. package/src/core/event/rules/keydown.rule.arrow.js +54 -0
  44. package/src/core/event/rules/keydown.rule.backspace.js +202 -0
  45. package/src/core/event/rules/keydown.rule.delete.js +126 -0
  46. package/src/core/event/rules/keydown.rule.enter.js +144 -0
  47. package/src/core/event/rules/keydown.rule.tab.js +29 -0
  48. package/src/core/section/constructor.js +79 -388
  49. package/src/core/section/documentType.js +47 -26
  50. package/src/core/util/instanceCheck.js +59 -0
  51. package/src/editorInjector/_classes.js +4 -0
  52. package/src/editorInjector/_core.js +17 -7
  53. package/src/editorInjector/index.js +10 -2
  54. package/src/events.js +6 -0
  55. package/src/helper/clipboard.js +24 -10
  56. package/src/helper/converter.js +17 -12
  57. package/src/helper/dom/domCheck.js +22 -3
  58. package/src/helper/dom/domQuery.js +91 -45
  59. package/src/helper/dom/domUtils.js +93 -19
  60. package/src/helper/dom/index.js +4 -0
  61. package/src/helper/env.js +11 -7
  62. package/src/helper/keyCodeMap.js +4 -3
  63. package/src/langs/ckb.js +1 -1
  64. package/src/langs/cs.js +1 -1
  65. package/src/langs/da.js +1 -1
  66. package/src/langs/de.js +1 -1
  67. package/src/langs/en.js +1 -1
  68. package/src/langs/es.js +1 -1
  69. package/src/langs/fa.js +1 -1
  70. package/src/langs/fr.js +1 -1
  71. package/src/langs/he.js +1 -1
  72. package/src/langs/hu.js +1 -1
  73. package/src/langs/it.js +1 -1
  74. package/src/langs/ja.js +1 -1
  75. package/src/langs/km.js +1 -1
  76. package/src/langs/ko.js +1 -1
  77. package/src/langs/lv.js +1 -1
  78. package/src/langs/nl.js +1 -1
  79. package/src/langs/pl.js +1 -1
  80. package/src/langs/pt_br.js +10 -10
  81. package/src/langs/ro.js +1 -1
  82. package/src/langs/ru.js +1 -1
  83. package/src/langs/se.js +1 -1
  84. package/src/langs/tr.js +1 -1
  85. package/src/langs/uk.js +1 -1
  86. package/src/langs/ur.js +1 -1
  87. package/src/langs/zh_cn.js +1 -1
  88. package/src/modules/ApiManager.js +25 -18
  89. package/src/modules/Browser.js +52 -61
  90. package/src/modules/ColorPicker.js +37 -38
  91. package/src/modules/Controller.js +85 -79
  92. package/src/modules/Figure.js +275 -187
  93. package/src/modules/FileManager.js +86 -92
  94. package/src/modules/HueSlider.js +67 -35
  95. package/src/modules/Modal.js +84 -77
  96. package/src/modules/ModalAnchorEditor.js +62 -79
  97. package/src/modules/SelectMenu.js +89 -86
  98. package/src/plugins/browser/audioGallery.js +9 -5
  99. package/src/plugins/browser/fileBrowser.js +10 -6
  100. package/src/plugins/browser/fileGallery.js +9 -5
  101. package/src/plugins/browser/imageGallery.js +9 -5
  102. package/src/plugins/browser/videoGallery.js +11 -6
  103. package/src/plugins/command/blockquote.js +1 -0
  104. package/src/plugins/command/exportPDF.js +11 -8
  105. package/src/plugins/command/fileUpload.js +41 -29
  106. package/src/plugins/command/list_bulleted.js +2 -1
  107. package/src/plugins/command/list_numbered.js +2 -1
  108. package/src/plugins/dropdown/align.js +8 -2
  109. package/src/plugins/dropdown/backgroundColor.js +19 -11
  110. package/src/plugins/dropdown/font.js +15 -9
  111. package/src/plugins/dropdown/fontColor.js +19 -11
  112. package/src/plugins/dropdown/formatBlock.js +7 -2
  113. package/src/plugins/dropdown/hr.js +7 -3
  114. package/src/plugins/dropdown/layout.js +6 -2
  115. package/src/plugins/dropdown/lineHeight.js +8 -3
  116. package/src/plugins/dropdown/list.js +2 -1
  117. package/src/plugins/dropdown/paragraphStyle.js +15 -11
  118. package/src/plugins/dropdown/{table.js → table/index.js} +514 -362
  119. package/src/plugins/dropdown/template.js +6 -2
  120. package/src/plugins/dropdown/textStyle.js +7 -3
  121. package/src/plugins/field/mention.js +33 -27
  122. package/src/plugins/input/fontSize.js +44 -37
  123. package/src/plugins/input/pageNavigator.js +3 -2
  124. package/src/plugins/modal/audio.js +90 -85
  125. package/src/plugins/modal/drawing.js +58 -66
  126. package/src/plugins/modal/embed.js +193 -180
  127. package/src/plugins/modal/image.js +441 -439
  128. package/src/plugins/modal/link.js +31 -8
  129. package/src/plugins/modal/math.js +23 -22
  130. package/src/plugins/modal/video.js +233 -230
  131. package/src/plugins/popup/anchor.js +24 -18
  132. package/src/suneditor.js +69 -24
  133. package/src/typedef.js +42 -19
  134. package/types/assets/icons/defaultIcons.d.ts +8 -0
  135. package/types/core/class/char.d.ts +1 -1
  136. package/types/core/class/component.d.ts +29 -7
  137. package/types/core/class/format.d.ts +4 -354
  138. package/types/core/class/html.d.ts +13 -4
  139. package/types/core/class/inline.d.ts +263 -0
  140. package/types/core/class/listFormat.d.ts +135 -0
  141. package/types/core/class/menu.d.ts +10 -2
  142. package/types/core/class/offset.d.ts +24 -26
  143. package/types/core/class/selection.d.ts +2 -0
  144. package/types/core/class/toolbar.d.ts +24 -11
  145. package/types/core/class/ui.d.ts +1 -1
  146. package/types/core/class/viewer.d.ts +1 -1
  147. package/types/core/config/context.d.ts +157 -0
  148. package/types/core/config/frameContext.d.ts +367 -0
  149. package/types/core/config/options.d.ts +1119 -0
  150. package/types/core/editor.d.ts +101 -66
  151. package/types/core/event/actions/index.d.ts +47 -0
  152. package/types/core/event/effects/common.registry.d.ts +50 -0
  153. package/types/core/event/effects/keydown.registry.d.ts +73 -0
  154. package/types/core/event/effects/ruleHelpers.d.ts +31 -0
  155. package/types/core/{base → event}/eventManager.d.ts +15 -46
  156. package/types/core/event/executor.d.ts +6 -0
  157. package/types/core/event/handlers/handler_ww_input.d.ts +41 -0
  158. package/types/core/{base/eventHandlers/handler_ww_key_input.d.ts → event/handlers/handler_ww_key.d.ts} +4 -6
  159. package/types/core/event/ports.d.ts +255 -0
  160. package/types/core/event/reducers/keydown.reducer.d.ts +75 -0
  161. package/types/core/event/rules/keydown.rule.arrow.d.ts +8 -0
  162. package/types/core/event/rules/keydown.rule.backspace.d.ts +9 -0
  163. package/types/core/event/rules/keydown.rule.delete.d.ts +9 -0
  164. package/types/core/event/rules/keydown.rule.enter.d.ts +9 -0
  165. package/types/core/event/rules/keydown.rule.tab.d.ts +9 -0
  166. package/types/core/section/constructor.d.ts +101 -631
  167. package/types/core/section/documentType.d.ts +14 -4
  168. package/types/core/util/instanceCheck.d.ts +50 -0
  169. package/types/editorInjector/_classes.d.ts +4 -0
  170. package/types/editorInjector/_core.d.ts +17 -7
  171. package/types/editorInjector/index.d.ts +10 -2
  172. package/types/events.d.ts +1 -0
  173. package/types/helper/clipboard.d.ts +2 -2
  174. package/types/helper/converter.d.ts +6 -9
  175. package/types/helper/dom/domCheck.d.ts +7 -0
  176. package/types/helper/dom/domQuery.d.ts +19 -8
  177. package/types/helper/dom/domUtils.d.ts +24 -2
  178. package/types/helper/dom/index.d.ts +86 -1
  179. package/types/helper/env.d.ts +6 -1
  180. package/types/helper/index.d.ts +7 -1
  181. package/types/helper/keyCodeMap.d.ts +3 -3
  182. package/types/index.d.ts +23 -117
  183. package/types/langs/index.d.ts +2 -2
  184. package/types/modules/ApiManager.d.ts +1 -8
  185. package/types/modules/Browser.d.ts +4 -62
  186. package/types/modules/ColorPicker.d.ts +4 -21
  187. package/types/modules/Controller.d.ts +8 -64
  188. package/types/modules/Figure.d.ts +54 -50
  189. package/types/modules/FileManager.d.ts +1 -13
  190. package/types/modules/HueSlider.d.ts +13 -3
  191. package/types/modules/Modal.d.ts +0 -43
  192. package/types/modules/ModalAnchorEditor.d.ts +0 -73
  193. package/types/modules/SelectMenu.d.ts +0 -85
  194. package/types/modules/index.d.ts +3 -3
  195. package/types/plugins/browser/audioGallery.d.ts +29 -18
  196. package/types/plugins/browser/fileBrowser.d.ts +38 -27
  197. package/types/plugins/browser/fileGallery.d.ts +29 -18
  198. package/types/plugins/browser/imageGallery.d.ts +24 -16
  199. package/types/plugins/browser/videoGallery.d.ts +29 -18
  200. package/types/plugins/command/blockquote.d.ts +1 -0
  201. package/types/plugins/command/exportPDF.d.ts +18 -18
  202. package/types/plugins/command/fileUpload.d.ts +65 -45
  203. package/types/plugins/command/list_bulleted.d.ts +1 -0
  204. package/types/plugins/command/list_numbered.d.ts +1 -0
  205. package/types/plugins/dropdown/align.d.ts +13 -8
  206. package/types/plugins/dropdown/backgroundColor.d.ts +30 -19
  207. package/types/plugins/dropdown/font.d.ts +13 -12
  208. package/types/plugins/dropdown/fontColor.d.ts +30 -19
  209. package/types/plugins/dropdown/formatBlock.d.ts +13 -8
  210. package/types/plugins/dropdown/hr.d.ts +15 -11
  211. package/types/plugins/dropdown/layout.d.ts +15 -11
  212. package/types/plugins/dropdown/lineHeight.d.ts +16 -11
  213. package/types/plugins/dropdown/list.d.ts +1 -0
  214. package/types/plugins/dropdown/paragraphStyle.d.ts +31 -27
  215. package/types/plugins/dropdown/table/index.d.ts +582 -0
  216. package/types/plugins/dropdown/table.d.ts +41 -86
  217. package/types/plugins/dropdown/template.d.ts +15 -11
  218. package/types/plugins/dropdown/textStyle.d.ts +19 -11
  219. package/types/plugins/field/mention.d.ts +58 -56
  220. package/types/plugins/index.d.ts +38 -38
  221. package/types/plugins/input/fontSize.d.ts +46 -50
  222. package/types/plugins/modal/audio.d.ts +26 -56
  223. package/types/plugins/modal/drawing.d.ts +0 -85
  224. package/types/plugins/modal/embed.d.ts +15 -79
  225. package/types/plugins/modal/image.d.ts +24 -136
  226. package/types/plugins/modal/link.d.ts +34 -15
  227. package/types/plugins/modal/math.d.ts +0 -16
  228. package/types/plugins/modal/video.d.ts +17 -86
  229. package/types/plugins/popup/anchor.d.ts +1 -8
  230. package/types/suneditor.d.ts +70 -19
  231. package/types/typedef.d.ts +60 -46
  232. package/src/core/base/eventHandlers/handler_ww_key_input.js +0 -1200
  233. package/src/core/section/context.js +0 -102
  234. package/types/core/section/context.d.ts +0 -45
  235. package/types/langs/_Lang.d.ts +0 -194
  236. /package/src/core/{base/eventHandlers → event/handlers}/handler_ww_clipboard.js +0 -0
  237. /package/types/core/{section → base}/actives.d.ts +0 -0
  238. /package/types/core/{base/eventHandlers → event/handlers}/handler_toolbar.d.ts +0 -0
  239. /package/types/core/{base/eventHandlers → event/handlers}/handler_ww_clipboard.d.ts +0 -0
  240. /package/types/core/{base/eventHandlers → event/handlers}/handler_ww_dragDrop.d.ts +0 -0
  241. /package/types/core/{base/eventHandlers → event/handlers}/handler_ww_mouse.d.ts +0 -0
@@ -1,53 +1,39 @@
1
1
  export default Editor;
2
- export type EditorInitOptions_editor = import('./section/constructor').EditorInitOptions;
3
- export type EditorFrameOptions_editor = import('./section/constructor').EditorFrameOptions;
4
2
  export type ControllerInfo_editor = import('../modules/Controller').ControllerInfo;
5
- /**
6
- * @typedef {import('./section/constructor').EditorInitOptions} EditorInitOptions_editor
7
- */
8
- /**
9
- * @typedef {import('./section/constructor').EditorFrameOptions} EditorFrameOptions_editor
10
- */
11
3
  /**
12
4
  * @typedef {import('../modules/Controller').ControllerInfo} ControllerInfo_editor
13
5
  */
14
6
  /**
15
7
  * @constructor
16
8
  * @description SunEditor constructor function.
17
- * @param {Array<{target: Element, key: *, options: EditorFrameOptions_editor}>} multiTargets Target element
18
- * @param {EditorInitOptions_editor} options options
9
+ * @param {Array<{target: Element, key: *, options: __se__EditorFrameOptions}>} multiTargets Target element
10
+ * @param {__se__EditorOptions} options options
19
11
  */
20
12
  declare function Editor(
21
13
  multiTargets: Array<{
22
14
  target: Element;
23
15
  key: any;
24
- options: EditorFrameOptions_editor;
16
+ options: __se__EditorFrameOptions;
25
17
  }>,
26
- options: EditorInitOptions_editor
18
+ options: __se__EditorOptions
27
19
  ): void;
28
20
  declare class Editor {
29
- /**
30
- * @typedef {import('./section/constructor').EditorInitOptions} EditorInitOptions_editor
31
- */
32
- /**
33
- * @typedef {import('./section/constructor').EditorFrameOptions} EditorFrameOptions_editor
34
- */
35
21
  /**
36
22
  * @typedef {import('../modules/Controller').ControllerInfo} ControllerInfo_editor
37
23
  */
38
24
  /**
39
25
  * @constructor
40
26
  * @description SunEditor constructor function.
41
- * @param {Array<{target: Element, key: *, options: EditorFrameOptions_editor}>} multiTargets Target element
42
- * @param {EditorInitOptions_editor} options options
27
+ * @param {Array<{target: Element, key: *, options: __se__EditorFrameOptions}>} multiTargets Target element
28
+ * @param {__se__EditorOptions} options options
43
29
  */
44
30
  constructor(
45
31
  multiTargets: Array<{
46
32
  target: Element;
47
33
  key: any;
48
- options: EditorFrameOptions_editor;
34
+ options: __se__EditorFrameOptions;
49
35
  }>,
50
- options: EditorInitOptions_editor
36
+ options: __se__EditorOptions
51
37
  );
52
38
  /**
53
39
  * @description Frame root key array
@@ -59,21 +45,6 @@ declare class Editor {
59
45
  * @type {Map<*, __se__FrameContext>}
60
46
  */
61
47
  frameRoots: Map<any, __se__FrameContext>;
62
- /**
63
- * @description Editor context object
64
- * @type {__se__Context}
65
- */
66
- context: __se__Context;
67
- /**
68
- * @description Current focusing frame context
69
- * @type {__se__FrameContext}
70
- */
71
- frameContext: __se__FrameContext;
72
- /**
73
- * @description Current focusing frame context options
74
- * @type {__se__FrameOptions}
75
- */
76
- frameOptions: __se__FrameOptions;
77
48
  /**
78
49
  * @description Document object
79
50
  * @type {Document}
@@ -90,10 +61,49 @@ declare class Editor {
90
61
  */
91
62
  carrierWrapper: HTMLElement;
92
63
  /**
93
- * @description Editor options
64
+ * @description Editor context object
65
+ * @type {__se__Context}
66
+ */
67
+ __context: __se__Context;
68
+ /**
69
+ * @description Utility object that manages the editor's runtime context.
70
+ * Provides methods to get, set, and inspect internal context.
71
+ * @type {ContextUtil}
72
+ */
73
+ context: ContextUtil;
74
+ /**
75
+ * @description Current focusing [frame] context
76
+ * @type {import('./config/frameContext').FrameContextMap}
77
+ */
78
+ __frameContext: import('./config/frameContext').FrameContextMap;
79
+ /**
80
+ * @description Utility object that manages the editor's runtime [frame] context.
81
+ * Provides methods to get, set, and inspect internal context.
82
+ * @type {FrameContextUtil}
83
+ */
84
+ frameContext: FrameContextUtil;
85
+ /**
86
+ * @description Current focusing [frame] context options
87
+ * @type {__se__FrameOptions}
88
+ */
89
+ __frameOptions: __se__FrameOptions;
90
+ /**
91
+ * @description Utility object that manages the editor's runtime [frame] options.
92
+ * Provides methods to get, set, and inspect internal [frame] options.
93
+ * @type {FrameOptionsMap}
94
+ */
95
+ frameOptions: FrameOptionsMap;
96
+ /**
97
+ * @description Editor row options
94
98
  * @type {Map<string, *>}
95
99
  */
96
- options: Map<string, any>;
100
+ __options: Map<string, any>;
101
+ /**
102
+ * @description Utility object that manages the editor's runtime options.
103
+ * Provides methods to get, set, and inspect internal editor options.
104
+ * @type {BaseOptionsMap}
105
+ */
106
+ options: BaseOptionsMap;
97
107
  /**
98
108
  * @description Plugins
99
109
  * @type {Object<string, *>}
@@ -180,9 +190,9 @@ declare class Editor {
180
190
  /**
181
191
  * @description Shoutcuts reverse key array
182
192
  * - An array of key codes generated with the reverseButtons option, used to reverse the action for a specific key combination.
183
- * @type {Array<string>}
193
+ * @type {Set<string>}
184
194
  */
185
- reverseKeys: Array<string>;
195
+ reverseKeys: Set<string>;
186
196
  /**
187
197
  * @description A map with the plugin's buttons having an "active" method and the default command buttons with an "active" action.
188
198
  * - Each button is contained in an array.
@@ -226,8 +236,10 @@ declare class Editor {
226
236
  selectMenuOn: boolean;
227
237
  /** @description History class instance @type {ReturnType<typeof import('./base/history').default>} */
228
238
  history: ReturnType<typeof import('./base/history').default>;
229
- /** @description EventManager class instance @type {import('./base/eventManager').default} */
230
- eventManager: import('./base/eventManager').default;
239
+ /** @description EventManager class instance @type {import('./event/eventManager').default} */
240
+ eventManager: import('./event/eventManager').default;
241
+ /** @description iframe-safe instanceof check utility class @type {import('./util/instanceCheck').default} */
242
+ instanceCheck: import('./util/instanceCheck').default;
231
243
  /** @description Toolbar class instance @type {import('./class/toolbar').default} */
232
244
  toolbar: import('./class/toolbar').default;
233
245
  /** @description Sub-Toolbar class instance @type {import('./class/toolbar').default|null} */
@@ -240,6 +252,10 @@ declare class Editor {
240
252
  format: import('./class/format').default;
241
253
  /** @description HTML class instance @type {import('./class/html').default} */
242
254
  html: import('./class/html').default;
255
+ /** @description Inline format class instance @type {import('./class/inline').default} */
256
+ inline: import('./class/inline').default;
257
+ /** @description List format class instance @type {import('./class/listFormat').default} */
258
+ listFormat: import('./class/listFormat').default;
243
259
  /** @description Menu class instance @type {import('./class/menu').default} */
244
260
  menu: import('./class/menu').default;
245
261
  /** @description NodeTransform class instance @type {import('./class/nodeTransform').default} */
@@ -266,9 +282,11 @@ declare class Editor {
266
282
  _lineBreaker_b: HTMLElement;
267
283
  /**
268
284
  * @description Closest ShadowRoot to editor if found
269
- * @type {ShadowRoot}
285
+ * @type {ShadowRoot & { getSelection?: () => Selection }} - Chromium-based browsers (Chrome, Edge, etc.) has a getSelection method on the ShadowRoot
270
286
  */
271
- _shadowRoot: ShadowRoot;
287
+ _shadowRoot: ShadowRoot & {
288
+ getSelection?: () => Selection;
289
+ };
272
290
  /**
273
291
  * @description Plugin call event map
274
292
  * @type {Map<string, Array<((...args: *) => *) & { index: number }>>}
@@ -309,14 +327,20 @@ declare class Editor {
309
327
  _codeViewDisabledButtons: Array<HTMLButtonElement | HTMLInputElement>;
310
328
  /**
311
329
  * @description List of buttons to run plugins in the toolbar
312
- * @type {Array<HTMLElement>}
330
+ * @type {Object<string, Array<HTMLElement>>}
313
331
  */
314
- _pluginCallButtons: Array<HTMLElement>;
332
+ _pluginCallButtons: {
333
+ [x: string]: HTMLElement[];
334
+ };
315
335
  /**
316
336
  * @description List of buttons to run plugins in the Sub-Toolbar
317
- * @type {Array<HTMLElement>}
337
+ * @type {Object<string, Array<HTMLElement>>|[]}
318
338
  */
319
- _pluginCallButtons_sub: Array<HTMLElement>;
339
+ _pluginCallButtons_sub:
340
+ | {
341
+ [x: string]: Array<HTMLElement>;
342
+ }
343
+ | [];
320
344
  /**
321
345
  * @description Responsive Toolbar Button Structure array
322
346
  * @type {Array<*>}
@@ -358,9 +382,15 @@ declare class Editor {
358
382
  _componentsInfoReset: boolean;
359
383
  /**
360
384
  * @description plugin retainFormat info Map()
361
- * @type {Map<string, ((...args: *) => *)>}
385
+ * @type {Map<string, { key: string, method: (...args: *) => * }>}
362
386
  */
363
- _MELInfo: Map<string, (...args: any) => any>;
387
+ _MELInfo: Map<
388
+ string,
389
+ {
390
+ key: string;
391
+ method: (...args: any) => any;
392
+ }
393
+ >;
364
394
  /**
365
395
  * @description Properties for managing files in the "FileManager" module
366
396
  * @type {Array<*>}
@@ -390,9 +420,9 @@ declare class Editor {
390
420
  _figureContainer: HTMLElement | null;
391
421
  /**
392
422
  * @description Origin options
393
- * @type {EditorInitOptions_editor}
423
+ * @type {__se__EditorOptions}
394
424
  */
395
- _originOptions: EditorInitOptions_editor;
425
+ _originOptions: __se__EditorOptions;
396
426
  /**
397
427
  * @description If the plugin is not added, add the plugin and call the 'add' function.
398
428
  * - If the plugin is added call callBack function.
@@ -453,9 +483,9 @@ declare class Editor {
453
483
  setDir(dir: string): void;
454
484
  /**
455
485
  * @description Add or reset option property (Editor is reloaded)
456
- * @param {EditorInitOptions_editor} newOptions Options
486
+ * @param {__se__EditorOptions} newOptions Options
457
487
  */
458
- resetOptions(newOptions: EditorInitOptions_editor): void;
488
+ resetOptions(newOptions: __se__EditorOptions): void;
459
489
  /**
460
490
  * @description Change the current root index.
461
491
  * @param {*} rootKey
@@ -526,17 +556,17 @@ declare class Editor {
526
556
  /**
527
557
  * @private
528
558
  * @description Modify the height value of the iframe when the height of the iframe is automatic.
529
- * @param {__se__FrameContext} fc - Frame context object
559
+ * @param {__se__FrameContext|FrameContextUtil} fc - Frame context object
530
560
  */
531
- _iframeAutoHeight(fc: __se__FrameContext): void;
561
+ _iframeAutoHeight(fc: __se__FrameContext | FrameContextUtil): void;
532
562
  /**
533
563
  * @private
534
564
  * @description Call the "onResizeEditor" event
535
- * @param {__se__FrameContext} fc - Frame context object
565
+ * @param {__se__FrameContext|FrameContextUtil} fc - Frame context object
536
566
  * @param {number} h - Height value
537
567
  * @param {ResizeObserverEntry} resizeObserverEntry - ResizeObserverEntry object
538
568
  */
539
- __callResizeFunction(fc: __se__FrameContext, h: number, resizeObserverEntry: ResizeObserverEntry): void;
569
+ __callResizeFunction(fc: __se__FrameContext | FrameContextUtil, h: number, resizeObserverEntry: ResizeObserverEntry): void;
540
570
  /**
541
571
  * @private
542
572
  * @description Set display property when there is placeholder.
@@ -546,20 +576,21 @@ declare class Editor {
546
576
  /**
547
577
  * @private
548
578
  * @description Initializ editor
549
- * @param {EditorInitOptions_editor} options Options
579
+ * @param {__se__EditorOptions} options Options
550
580
  */
551
- __editorInit(options: EditorInitOptions_editor): void;
581
+ __editorInit(options: __se__EditorOptions): void;
552
582
  /**
553
583
  * @private
554
584
  * @description Initializ core variable
555
- * @param {EditorInitOptions_editor} options Options
585
+ * @param {__se__EditorOptions} options Options
556
586
  */
557
- __init(options: EditorInitOptions_editor): void;
587
+ __init(options: __se__EditorOptions): void;
558
588
  /**
559
589
  * @private
560
590
  * @description Caching basic buttons to use
591
+ * @param {string} mode 'all' | 'main' | 'sub'
561
592
  */
562
- __cachingButtons(): void;
593
+ __cachingButtons(mode: string): void;
563
594
  /**
564
595
  * @private
565
596
  * @description Set the disabled button list
@@ -607,9 +638,13 @@ declare class Editor {
607
638
  /**
608
639
  * @private
609
640
  * @description Creates the editor instance and initializes components.
610
- * @param {EditorInitOptions_editor} originOptions - The initial editor options.
641
+ * @param {__se__EditorOptions} originOptions - The initial editor options.
611
642
  * @returns {Promise<void>}
612
643
  */
613
- __Create(originOptions: EditorInitOptions_editor): Promise<void>;
644
+ __Create(originOptions: __se__EditorOptions): Promise<void>;
614
645
  Constructor: typeof Editor;
615
646
  }
647
+ import { ContextUtil } from './config/context';
648
+ import { FrameContextUtil } from './config/frameContext';
649
+ import { FrameOptionsMap } from './config/options';
650
+ import { BaseOptionsMap } from './config/options';
@@ -0,0 +1,47 @@
1
+ export namespace A {
2
+ function prevent(): Action;
3
+ function stop(): Action;
4
+ function preventStop(): Action;
5
+ function cacheStyleNode(): Action;
6
+ function cacheFormatAttrsTemp(attrs: NamedNodeMap): Action;
7
+ function componentDeselect(): Action;
8
+ function editorNativeFocus(): Action;
9
+ function historyPush(hard: boolean): Action;
10
+ function documentTypeRefreshHeader(): Action;
11
+ function selectionSetRange(sc: Node, so: number, ec: Node, eo: number): Action;
12
+ function formatRemoveBlock(rangeEl: Element, selectedFormats: Element[] | null, newBlockElement: Element | null, shouldDelete: boolean, skipHistory: boolean): Action;
13
+ function domUtilsRemoveItem(item: Node): Action;
14
+ function selectComponentFallback(cmponentInfo: __se__ComponentInfo): Action;
15
+ function delFormatRemoveAndMove(container: Node, formatEl: Element): Action;
16
+ function backspaceFormatMaintain(formatEl: Element): Action;
17
+ function backspaceComponentSelect(selectionNode: Node, range: Range, fileComponentInfo: __se__ComponentInfo): Action;
18
+ function backspaceComponentRemove(isList: boolean, sel: Node, formatEl: Element, fileComponentInfo: __se__ComponentInfo): Action;
19
+ function backspaceListMergePrev(prev: Element, formatEl: Element, rangeEl: Element): Action;
20
+ function backspaceListRemoveNested(range: Range): Action;
21
+ function deleteComponentSelect(formatEl: Element, fileComponentInfo: __se__ComponentInfo): Action;
22
+ function deleteComponentSelectNext(formatEl: any, nextEl: Element): Action;
23
+ function deleteListRemoveNested(range: Range, formatEl: Element, rangeEl: Element): Action;
24
+ function tabFormatIndent(range: Range, formatEl: Element, shift: boolean): Action;
25
+ function enterScrollTo(range: Range): Action;
26
+ function enterLineAddDefault(formatEl: Element): Action;
27
+ function enterListAddItem(formatEl: Element, selectionNode: Node): Action;
28
+ function enterFormatExitEmpty(formatEl: Element, rangeEl: Element): Action;
29
+ function enterFormatCleanBrAndZWS(selectionNode: Node, selectionFormat: boolean, brBlock: Element, children: NodeList, offset: number): Action;
30
+ function enterFormatInsertBrHtml(brBlock: Element, range: Range, wSelection: Selection, offset: number): Action;
31
+ function enterFormatInsertBrNode(wSelection: Selection): Action;
32
+ function enterFormatBreakAtEdge(formatEl: Element, selectionNode: Node, formatStartEdge: boolean, formatEndEdge: boolean): Action;
33
+ function enterFormatBreakWithSelection(formatEl: Element, range: Range, formatStartEdge: boolean, formatEndEdge: boolean): Action;
34
+ function enterFormatBreakAtCursor(formatEl: Element, range: Range): Action;
35
+ function enterFigcaptionExitInList(formatEl: Element): Action;
36
+ function keydownInputInsertNbsp(): Action;
37
+ function keydownInputInsertZWS(): Action;
38
+ }
39
+ export type Action = {
40
+ t: string;
41
+ p?: any;
42
+ };
43
+ export type __se__ComponentInfo = {
44
+ target: Element;
45
+ pluginName: string;
46
+ options?: any;
47
+ };
@@ -0,0 +1,50 @@
1
+ declare const _default: {
2
+ /** @action prevent */
3
+ 'event.prevent': ({ ctx }: EffectContext) => void;
4
+ /** @action stop */
5
+ 'event.stop': ({ ctx }: EffectContext) => void;
6
+ /** @action preventStop */
7
+ 'event.prevent.stop': ({ ctx }: EffectContext) => void;
8
+ /** @action cacheStyleNode */
9
+ 'cache.styleNode': ({ ports }: EffectContext) => void;
10
+ /** @action cacheFormatAttrsTemp */
11
+ 'cache.formatAttrsTemp': ({ ports }: EffectContext, { attrs }: any) => void;
12
+ /** @action editorNativeFocus */
13
+ 'editor._nativeFocus': ({ ports }: EffectContext) => void;
14
+ /** @action historyPush */
15
+ 'history.push': ({ ports }: EffectContext, hard: any) => void;
16
+ /** @action documentTypeRefreshHeader */
17
+ 'documentType.refreshHeader': ({ ctx }: EffectContext) => void;
18
+ /** @action componentDeselect */
19
+ 'component.deselect': ({ ports }: EffectContext) => void;
20
+ /** @action selectionSetRange */
21
+ 'selection.setRange': ({ ports }: EffectContext, { sc, so, ec, eo }: any) => Range;
22
+ /** @action formatRemoveBlock */
23
+ 'format.removeBlock': (
24
+ { ports }: EffectContext,
25
+ { rangeEl, selectedFormats, newBlockElement, shouldDelete, skipHistory }: any
26
+ ) => {
27
+ cc: Node;
28
+ sc: Node;
29
+ so: number;
30
+ ec: Node;
31
+ eo: number;
32
+ removeArray: Array<Node> | null;
33
+ };
34
+ /** @action domUtilsRemoveItem */
35
+ 'dom.utils.removeItem': (_: EffectContext, { item }: any) => void;
36
+ /** @action selectComponentFallback */
37
+ 'select.component.fallback': ({ ports }: EffectContext, { cmponentInfo }: any) => void;
38
+ };
39
+ export default _default;
40
+ export type EffectContext = {
41
+ /**
42
+ * - Ports for interacting with editor
43
+ */
44
+ ports: __se__EventPorts;
45
+ /**
46
+ * - Reducer context
47
+ */
48
+ ctx: __se__EventKeydownCtx;
49
+ };
50
+ export type Effect = (ctx: EffectContext, payload?: any) => any;
@@ -0,0 +1,73 @@
1
+ declare const _default: {
2
+ /** @action delFormatRemoveAndMove */
3
+ 'del.format.removeAndMove': ({ ports }: EffectContext_keydown, { container, formatEl }: any) => void;
4
+ /** @action backspaceFormatMaintain */
5
+ 'backspace.format.maintain': ({ ctx }: EffectContext_keydown, { formatEl }: any) => void;
6
+ /** @action backspaceComponentSelect */
7
+ 'backspace.component.select': ({ ports }: EffectContext_keydown, { selectionNode, range, fileComponentInfo }: any) => void;
8
+ /** @action backspaceComponentRemove */
9
+ 'backspace.component.remove': ({ ports }: EffectContext_keydown, { isList, sel, formatEl, fileComponentInfo }: any) => void;
10
+ /** @action backspaceListMergePrev */
11
+ 'backspace.list.mergePrev': ({ ports }: EffectContext_keydown, { prev, formatEl, rangeEl }: any) => void;
12
+ /** @action backspaceListRemoveNested */
13
+ 'backspace.list.removeNested': ({ ports }: EffectContext_keydown, { range }: any) => void;
14
+ /** @action deleteComponentSelect */
15
+ 'delete.component.select': ({ ports }: EffectContext_keydown, { formatEl, fileComponentInfo }: any) => void;
16
+ /** @action deleteComponentSelectNext */
17
+ 'delete.component.selectNext': ({ ports, ctx }: EffectContext_keydown, { formatEl, nextEl }: any) => void;
18
+ /** @action deleteListRemoveNested */
19
+ 'delete.list.removeNested': ({ ports, ctx }: EffectContext_keydown, { range, formatEl, rangeEl }: any) => void;
20
+ /** @action tabFormatIndent */
21
+ 'tab.format.indent': ({ ports, ctx }: EffectContext_keydown, { range, formatEl, shift }: any) => boolean;
22
+ /** @action enterScrollTo */
23
+ 'enter.scrollTo': ({ ports }: EffectContext_keydown, { range }: any) => void;
24
+ /** @action enterLineAddDefault */
25
+ 'enter.line.addDefault': ({ ports, ctx }: EffectContext_keydown, { formatEl }: any) => void;
26
+ /** @action enterListAddItem */
27
+ 'enter.list.addItem': ({ ports }: EffectContext_keydown, { formatEl, selectionNode }: any) => void;
28
+ /** @action enterFormatExitEmpty */
29
+ 'enter.format.exitEmpty': ({ ports, ctx }: EffectContext_keydown, { formatEl, rangeEl }: any) => void;
30
+ /** @action enterFormatCleanBrAndZWS */
31
+ 'enter.format.cleanBrAndZWS': ({ ports }: EffectContext_keydown, { selectionNode, selectionFormat, brBlock, children, offset }: any) => void;
32
+ /** @action enterFormatInsertBrHtml */
33
+ 'enter.format.insertBrHtml': ({ ports }: EffectContext_keydown, { brBlock, range, wSelection, offset }: any) => void;
34
+ /** @action enterFormatInsertBrNode */
35
+ 'enter.format.insertBrNode': ({ ports }: EffectContext_keydown, { wSelection }: any) => void;
36
+ /** @action enterFormatBreakAtEdge */
37
+ 'enter.format.breakAtEdge': ({ ports, ctx }: EffectContext_keydown, { formatEl, selectionNode, formatStartEdge, formatEndEdge }: any) => void;
38
+ /** @action enterFormatBreakWithSelection */
39
+ 'enter.format.breakWithSelection': ({ ports, ctx }: EffectContext_keydown, { formatEl, range, formatStartEdge, formatEndEdge }: any) => void;
40
+ /** @action enterFormatBreakAtCursor */
41
+ 'enter.format.breakAtCursor': ({ ports, ctx }: EffectContext_keydown, { formatEl, range }: any) => void;
42
+ /** @action enterFigcaptionExitInList */
43
+ 'enter.figcaption.exitInList': ({ ports }: EffectContext_keydown, { formatEl }: any) => void;
44
+ /** @action keydownInputInsertNbsp */
45
+ 'keydown.input.insertNbsp': ({ ports }: EffectContext_keydown) => void;
46
+ /** @action keydownInputInsertZWS */
47
+ 'keydown.input.insertZWS': ({ ports }: EffectContext_keydown) => void;
48
+ };
49
+ export default _default;
50
+ export type EffectContext_keydown = {
51
+ /**
52
+ * - Ports for interacting with editor
53
+ */
54
+ ports: __se__EventPorts;
55
+ /**
56
+ * - Reducer context
57
+ */
58
+ ctx: __se__EventKeydownCtx;
59
+ };
60
+ export type Effect = (ctx: EffectContext_keydown, payload?: any) => any;
61
+ /**
62
+ * @param {HTMLElement} formatEl - Format element
63
+ * @returns {Node}
64
+ */
65
+ export function LineDelete_next(formatEl: HTMLElement): Node;
66
+ /**
67
+ * @param {HTMLElement} formatEl - Format element
68
+ * @returns {{focusNode: Node, focusOffset: number}}
69
+ */
70
+ export function LineDelete_prev(formatEl: HTMLElement): {
71
+ focusNode: Node;
72
+ focusOffset: number;
73
+ };
@@ -0,0 +1,31 @@
1
+ /**
2
+ * @description Deletes specific elements such as tables in "Firefox" and media elements (image, video, audio) in "Chrome".
3
+ * - Handles deletion logic based on selection range and node types.
4
+ * @param {__se__EventPorts} ports - Reducer ports
5
+ * @returns {boolean} Returns `true` if an element was deleted and focus was adjusted, otherwise `false`.
6
+ */
7
+ export function hardDelete(ports: __se__EventPorts): boolean;
8
+ /**
9
+ * @description Cleans up removed tags and normalizes DOM structure.
10
+ * Removes orphaned nodes that are outside the format element's valid range.
11
+ * @param {__se__EventPorts} ports - Reducer ports
12
+ * @param {Node} startCon - Starting container node to clean
13
+ * @param {Element} formatEl - Parent format element containing the structure
14
+ * @returns {boolean|undefined} Returns true if nodes were removed, undefined otherwise
15
+ */
16
+ export function cleanRemovedTags(ports: __se__EventPorts, startCon: Node, formatEl: Element): boolean | undefined;
17
+ /**
18
+ * @description Determines if the "range" is within an uneditable node.
19
+ * @param {__se__EventPorts} ports - Reducer ports
20
+ * @param {Range} range The range object
21
+ * @param {boolean} isFront Whether to check the start or end of the range
22
+ * @returns {Node|null} The uneditable node if found, otherwise null
23
+ */
24
+ export function isUneditableNode(ports: __se__EventPorts, range: Range, isFront: boolean): Node | null;
25
+ /**
26
+ * @description Excute eventManager._setDefaultLine
27
+ * @param {__se__EventPorts} ports - Reducer ports
28
+ * @param {string} lineTagName - line tag name
29
+ * @returns {void|null}
30
+ */
31
+ export function setDefaultLine(ports: __se__EventPorts, lineTagName: string): void | null;
@@ -28,12 +28,19 @@ declare class EventManager {
28
28
  * @type {boolean}
29
29
  */
30
30
  isComposing: boolean;
31
+ /**
32
+ * @description An array of parent containers that can be scrolled (in descending order)
33
+ * @type {Array<Element>}
34
+ */
35
+ scrollparents: Array<Element>;
31
36
  /** @type {Array<*>} */
32
37
  _events: Array<any>;
33
38
  /** @type {RegExp} */
34
39
  _onButtonsCheck: RegExp;
35
40
  /** @type {boolean} */
36
41
  _onShortcutKey: boolean;
42
+ /** @type {boolean} */
43
+ _handledInBefore: boolean;
37
44
  /** @type {number} */
38
45
  _balloonDelay: number;
39
46
  /** @type {ResizeObserver} */
@@ -54,8 +61,6 @@ declare class EventManager {
54
61
  __close_move: __se__GlobalEventInfo | null;
55
62
  /** @type {__se__GlobalEventInfo|null} */
56
63
  __geckoActiveEvent: __se__GlobalEventInfo | null;
57
- /** @type {Array<Element>} */
58
- __scrollparents: Array<Element>;
59
64
  /** @type {Array<Node>} */
60
65
  __cacheStyleNodes: Array<Node>;
61
66
  /** @type {__se__GlobalEventInfo|null} */
@@ -188,34 +193,6 @@ declare class EventManager {
188
193
  * @returns {boolean} True if the node is non-focusable, otherwise false
189
194
  */
190
195
  _isNonFocusNode(this: Omit<EventManager & Partial<import('../../editorInjector').default>, 'eventManager'>, node: Node): boolean;
191
- /**
192
- * @private
193
- * @this {EventManagerThis}
194
- * @description Determines if the "range" is within an uneditable node.
195
- * @param {Range} range The range object
196
- * @param {boolean} isFront Whether to check the start or end of the range
197
- * @returns {Node|null} The uneditable node if found, otherwise null
198
- */
199
- _isUneditableNode(this: Omit<EventManager & Partial<import('../../editorInjector').default>, 'eventManager'>, range: Range, isFront: boolean): Node | null;
200
- /**
201
- * @private
202
- * @this {EventManagerThis}
203
- * @description Retrieves the sibling node of a selected node if it is uneditable.
204
- * - Used only in `_isUneditableNode`.
205
- * @param {Node} selectNode The selected node
206
- * @param {string} siblingKey The key to access the sibling (`previousSibling` or `nextSibling`)
207
- * @param {Node} container The parent container node
208
- * @returns {Node|null} The sibling node if found, otherwise null
209
- */
210
- _isUneditableNode_getSibling(this: Omit<EventManager & Partial<import('../../editorInjector').default>, 'eventManager'>, selectNode: Node, siblingKey: string, container: Node): Node | null;
211
- /**
212
- * @private
213
- * @this {EventManagerThis}
214
- * @description Deletes specific elements such as tables in "Firefox" and media elements (image, video, audio) in "Chrome".
215
- * - Handles deletion logic based on selection range and node types.
216
- * @returns {boolean} Returns `true` if an element was deleted and focus was adjusted, otherwise `false`.
217
- */
218
- _hardDelete(this: Omit<EventManager & Partial<import('../../editorInjector').default>, 'eventManager'>): boolean;
219
196
  /**
220
197
  * @private
221
198
  * @this {EventManagerThis}
@@ -283,9 +260,9 @@ declare class EventManager {
283
260
  * @this {EventManagerThis}
284
261
  * @description Adjusts the position of the editor's toolbar, controllers, and other floating elements based on scroll position.
285
262
  * - Ensures UI elements maintain their intended relative positions when scrolling.
286
- * @param {Element} eventWysiwyg The wysiwyg event object containing scroll data
263
+ * @param {*} eventWysiwyg The wysiwyg event object containing scroll data (Window or element)
287
264
  */
288
- _moveContainer(this: Omit<EventManager & Partial<import('../../editorInjector').default>, 'eventManager'>, eventWysiwyg: Element): void;
265
+ _moveContainer(this: Omit<EventManager & Partial<import('../../editorInjector').default>, 'eventManager'>, eventWysiwyg: any): void;
289
266
  /**
290
267
  * @private
291
268
  * @this {EventManagerThis}
@@ -368,20 +345,6 @@ declare class EventManager {
368
345
  * @description Removes input event listeners and resets input-related properties.
369
346
  */
370
347
  __removeInput(this: Omit<EventManager & Partial<import('../../editorInjector').default>, 'eventManager'>): void;
371
- /**
372
- * @private
373
- * @this {EventManagerThis}
374
- * @description Prevents the default behavior of the Enter key and refocuses the editor.
375
- * @param {Event} e The keyboard event
376
- */
377
- __enterPrevent(this: Omit<EventManager & Partial<import('../../editorInjector').default>, 'eventManager'>, e: Event): void;
378
- /**
379
- * @private
380
- * @description Scrolls the editor view to the caret position after pressing Enter. (Ignored on mobile devices)
381
- * @this {EventManagerThis}
382
- * @param {*} range Range object
383
- */
384
- __enterScrollTo(this: Omit<EventManager & Partial<import('../../editorInjector').default>, 'eventManager'>, range: any): void;
385
348
  /**
386
349
  * @private
387
350
  * @description Focus Event Postprocessing
@@ -398,4 +361,10 @@ declare class EventManager {
398
361
  * @param {Event} event - Event object
399
362
  */
400
363
  __postBlurEvent(this: Omit<EventManager & Partial<import('../../editorInjector').default>, 'eventManager'>, frameContext: __se__FrameContext, event: Event): void;
364
+ /**
365
+ * @private
366
+ * @description Records the current viewport size.
367
+ * @this {EventManagerThis}
368
+ */
369
+ __setViewportSize(this: Omit<EventManager & Partial<import('../../editorInjector').default>, 'eventManager'>): void;
401
370
  }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @description Execute actions sequentially
3
+ * @param {__se__EventActions} actions - Array of actions to execute
4
+ * @param {*} effContext - Effect context containing ports, ctx, and event
5
+ */
6
+ export function actionExecutor(actions: __se__EventActions, effContext: any): Promise<boolean>;
@@ -0,0 +1,41 @@
1
+ /**
2
+ * @typedef {Omit<import('../eventManager').default & Partial<__se__EditorInjector>, 'eventManager'>} EventManagerThis_handler_ww_input
3
+ */
4
+ /**
5
+ * @private
6
+ * @this {EventManagerThis_handler_ww_input}
7
+ * @param {__se__FrameContext} fc - Frame context object
8
+ * @param {InputEvent} e - Event object
9
+ */
10
+ export function OnBeforeInput_wysiwyg(this: Omit<import('../eventManager').default & Partial<import('../../../editorInjector').default>, 'eventManager'>, fc: __se__FrameContext, e: InputEvent): Promise<boolean>;
11
+ export class OnBeforeInput_wysiwyg {
12
+ /**
13
+ * @typedef {Omit<import('../eventManager').default & Partial<__se__EditorInjector>, 'eventManager'>} EventManagerThis_handler_ww_input
14
+ */
15
+ /**
16
+ * @private
17
+ * @this {EventManagerThis_handler_ww_input}
18
+ * @param {__se__FrameContext} fc - Frame context object
19
+ * @param {InputEvent} e - Event object
20
+ */
21
+ private constructor();
22
+ _handledInBefore: boolean;
23
+ }
24
+ /**
25
+ * @private
26
+ * @this {EventManagerThis_handler_ww_input}
27
+ * @param {__se__FrameContext} fc - Frame context object
28
+ * @param {InputEvent} e - Event object
29
+ */
30
+ export function OnInput_wysiwyg(this: Omit<import('../eventManager').default & Partial<import('../../../editorInjector').default>, 'eventManager'>, fc: __se__FrameContext, e: InputEvent): Promise<boolean>;
31
+ export class OnInput_wysiwyg {
32
+ /**
33
+ * @private
34
+ * @this {EventManagerThis_handler_ww_input}
35
+ * @param {__se__FrameContext} fc - Frame context object
36
+ * @param {InputEvent} e - Event object
37
+ */
38
+ private constructor();
39
+ _handledInBefore: boolean;
40
+ }
41
+ export type EventManagerThis_handler_ww_input = Omit<import('../eventManager').default & Partial<__se__EditorInjector>, 'eventManager'>;