suneditor 3.0.0-beta.9 → 3.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +65 -57
- package/dist/suneditor-contents.min.css +1 -0
- package/dist/suneditor.min.css +1 -1
- package/dist/suneditor.min.js +1 -1
- package/package.json +110 -61
- package/src/assets/design/color.css +36 -17
- package/src/assets/design/size.css +2 -0
- package/src/assets/icons/defaultIcons.js +17 -2
- package/src/assets/suneditor-contents.css +51 -16
- package/src/assets/suneditor.css +116 -43
- package/src/core/config/contextProvider.js +288 -0
- package/src/core/config/eventManager.js +188 -0
- package/src/core/config/instanceCheck.js +59 -0
- package/src/core/config/optionProvider.js +452 -0
- package/src/core/editor.js +166 -1637
- package/src/core/event/actions/index.js +229 -0
- package/src/core/event/effects/common.registry.js +74 -0
- package/src/core/event/effects/keydown.registry.js +573 -0
- package/src/core/event/effects/ruleHelpers.js +148 -0
- package/src/core/event/eventOrchestrator.js +944 -0
- package/src/core/event/executor.js +27 -0
- package/src/core/{base/eventHandlers → event/handlers}/handler_toolbar.js +27 -28
- package/src/core/{base/eventHandlers → event/handlers}/handler_ww_clipboard.js +10 -8
- package/src/core/{base/eventHandlers → event/handlers}/handler_ww_dragDrop.js +22 -23
- package/src/core/event/handlers/handler_ww_input.js +75 -0
- package/src/core/event/handlers/handler_ww_key.js +228 -0
- package/src/core/event/handlers/handler_ww_mouse.js +166 -0
- package/src/core/event/ports.js +211 -0
- package/src/core/event/reducers/keydown.reducer.js +97 -0
- package/src/core/event/rules/keydown.rule.arrow.js +63 -0
- package/src/core/event/rules/keydown.rule.backspace.js +208 -0
- package/src/core/event/rules/keydown.rule.delete.js +132 -0
- package/src/core/event/rules/keydown.rule.enter.js +150 -0
- package/src/core/event/rules/keydown.rule.tab.js +35 -0
- package/src/core/event/support/defaultLineManager.js +136 -0
- package/src/core/event/support/selectionState.js +204 -0
- package/src/core/kernel/coreKernel.js +320 -0
- package/src/core/kernel/kernelInjector.js +19 -0
- package/src/core/kernel/store.js +173 -0
- package/src/core/{class → logic/dom}/char.js +42 -45
- package/src/core/logic/dom/format.js +1075 -0
- package/src/core/{class → logic/dom}/html.js +743 -624
- package/src/core/logic/dom/inline.js +1847 -0
- package/src/core/logic/dom/listFormat.js +601 -0
- package/src/core/{class → logic/dom}/nodeTransform.js +92 -72
- package/src/core/{class → logic/dom}/offset.js +254 -317
- package/src/core/logic/dom/selection.js +754 -0
- package/src/core/logic/panel/menu.js +389 -0
- package/src/core/logic/panel/toolbar.js +449 -0
- package/src/core/logic/panel/viewer.js +761 -0
- package/src/core/logic/shell/_commandExecutor.js +380 -0
- package/src/core/logic/shell/commandDispatcher.js +241 -0
- package/src/core/logic/shell/component.js +970 -0
- package/src/core/logic/shell/focusManager.js +110 -0
- package/src/core/{base → logic/shell}/history.js +110 -60
- package/src/core/logic/shell/pluginManager.js +363 -0
- package/src/core/logic/shell/shortcuts.js +130 -0
- package/src/core/logic/shell/ui.js +904 -0
- package/src/core/schema/context.js +66 -0
- package/src/core/schema/frameContext.js +160 -0
- package/src/core/schema/options.js +628 -0
- package/src/core/section/constructor.js +194 -500
- package/src/core/section/documentType.js +297 -222
- package/src/events.js +808 -543
- package/src/helper/clipboard.js +27 -16
- package/src/helper/converter.js +100 -78
- package/src/helper/dom/domCheck.js +56 -30
- package/src/helper/dom/domQuery.js +159 -89
- package/src/helper/dom/domUtils.js +114 -49
- package/src/helper/dom/index.js +5 -1
- package/src/helper/env.js +26 -26
- package/src/helper/index.js +1 -1
- package/src/helper/keyCodeMap.js +25 -28
- package/src/helper/numbers.js +4 -8
- package/src/helper/unicode.js +4 -8
- package/src/hooks/base.js +307 -0
- package/src/hooks/params.js +130 -0
- package/src/interfaces/contracts.js +227 -0
- package/src/interfaces/index.js +7 -0
- package/src/interfaces/plugins.js +239 -0
- package/src/langs/ckb.js +4 -4
- package/src/langs/cs.js +4 -4
- package/src/langs/da.js +4 -4
- package/src/langs/de.js +4 -4
- package/src/langs/en.js +4 -4
- package/src/langs/es.js +4 -4
- package/src/langs/fa.js +4 -4
- package/src/langs/fr.js +4 -4
- package/src/langs/he.js +4 -4
- package/src/langs/hu.js +4 -4
- package/src/langs/it.js +4 -4
- package/src/langs/ja.js +4 -4
- package/src/langs/km.js +4 -4
- package/src/langs/ko.js +4 -4
- package/src/langs/lv.js +4 -4
- package/src/langs/nl.js +4 -4
- package/src/langs/pl.js +4 -4
- package/src/langs/pt_br.js +13 -13
- package/src/langs/ro.js +4 -4
- package/src/langs/ru.js +4 -4
- package/src/langs/se.js +4 -4
- package/src/langs/tr.js +4 -4
- package/src/langs/uk.js +4 -4
- package/src/langs/ur.js +4 -4
- package/src/langs/zh_cn.js +4 -4
- package/src/modules/{Browser.js → contract/Browser.js} +119 -128
- package/src/modules/{ColorPicker.js → contract/ColorPicker.js} +132 -142
- package/src/modules/contract/Controller.js +589 -0
- package/src/modules/{Figure.js → contract/Figure.js} +591 -411
- package/src/modules/{HueSlider.js → contract/HueSlider.js} +125 -86
- package/src/modules/contract/Modal.js +357 -0
- package/src/modules/contract/index.js +9 -0
- package/src/modules/manager/ApiManager.js +197 -0
- package/src/modules/{FileManager.js → manager/FileManager.js} +128 -160
- package/src/modules/manager/index.js +5 -0
- package/src/modules/{ModalAnchorEditor.js → ui/ModalAnchorEditor.js} +108 -138
- package/src/modules/{SelectMenu.js → ui/SelectMenu.js} +119 -120
- package/src/modules/{_DragHandle.js → ui/_DragHandle.js} +1 -1
- package/src/modules/ui/index.js +6 -0
- package/src/plugins/browser/audioGallery.js +23 -26
- package/src/plugins/browser/fileBrowser.js +25 -28
- package/src/plugins/browser/fileGallery.js +20 -23
- package/src/plugins/browser/imageGallery.js +24 -23
- package/src/plugins/browser/videoGallery.js +27 -29
- package/src/plugins/command/blockquote.js +11 -17
- package/src/plugins/command/exportPDF.js +26 -26
- package/src/plugins/command/fileUpload.js +138 -133
- package/src/plugins/command/list_bulleted.js +48 -44
- package/src/plugins/command/list_numbered.js +48 -44
- package/src/plugins/dropdown/align.js +64 -50
- package/src/plugins/dropdown/backgroundColor.js +34 -35
- package/src/plugins/dropdown/{formatBlock.js → blockStyle.js} +43 -37
- package/src/plugins/dropdown/font.js +50 -36
- package/src/plugins/dropdown/fontColor.js +34 -35
- package/src/plugins/dropdown/hr.js +55 -50
- package/src/plugins/dropdown/layout.js +20 -15
- package/src/plugins/dropdown/lineHeight.js +46 -30
- package/src/plugins/dropdown/list.js +32 -33
- package/src/plugins/dropdown/paragraphStyle.js +40 -34
- package/src/plugins/dropdown/table/index.js +915 -0
- package/src/plugins/dropdown/table/render/table.html.js +308 -0
- package/src/plugins/dropdown/table/render/table.menu.js +121 -0
- package/src/plugins/dropdown/table/services/table.cell.js +465 -0
- package/src/plugins/dropdown/table/services/table.clipboard.js +414 -0
- package/src/plugins/dropdown/table/services/table.grid.js +504 -0
- package/src/plugins/dropdown/table/services/table.resize.js +463 -0
- package/src/plugins/dropdown/table/services/table.selection.js +466 -0
- package/src/plugins/dropdown/table/services/table.style.js +844 -0
- package/src/plugins/dropdown/table/shared/table.constants.js +109 -0
- package/src/plugins/dropdown/table/shared/table.utils.js +219 -0
- package/src/plugins/dropdown/template.js +20 -15
- package/src/plugins/dropdown/textStyle.js +28 -22
- package/src/plugins/field/mention.js +54 -49
- package/src/plugins/index.js +5 -5
- package/src/plugins/input/fontSize.js +100 -97
- package/src/plugins/input/pageNavigator.js +13 -10
- package/src/plugins/modal/audio.js +208 -219
- package/src/plugins/modal/drawing.js +99 -104
- package/src/plugins/modal/embed.js +323 -312
- package/src/plugins/modal/image/index.js +942 -0
- package/src/plugins/modal/image/render/image.html.js +150 -0
- package/src/plugins/modal/image/services/image.size.js +198 -0
- package/src/plugins/modal/image/services/image.upload.js +216 -0
- package/src/plugins/modal/image/shared/image.constants.js +20 -0
- package/src/plugins/modal/link.js +74 -54
- package/src/plugins/modal/math.js +126 -119
- package/src/plugins/modal/video/index.js +858 -0
- package/src/plugins/modal/video/render/video.html.js +131 -0
- package/src/plugins/modal/video/services/video.size.js +281 -0
- package/src/plugins/modal/video/services/video.upload.js +92 -0
- package/src/plugins/popup/anchor.js +57 -49
- package/src/suneditor.js +73 -61
- package/src/themes/cobalt.css +155 -0
- package/src/themes/dark.css +143 -120
- package/src/typedef.js +214 -63
- package/types/assets/icons/defaultIcons.d.ts +8 -0
- package/types/assets/suneditor-contents.css.d.ts +1 -0
- package/types/assets/suneditor.css.d.ts +1 -0
- package/types/core/config/contextProvider.d.ts +148 -0
- package/types/core/config/eventManager.d.ts +68 -0
- package/types/core/config/instanceCheck.d.ts +33 -0
- package/types/core/config/optionProvider.d.ts +147 -0
- package/types/core/editor.d.ts +27 -586
- package/types/core/event/actions/index.d.ts +50 -0
- package/types/core/event/effects/common.registry.d.ts +56 -0
- package/types/core/event/effects/keydown.registry.d.ts +80 -0
- package/types/core/event/effects/ruleHelpers.d.ts +36 -0
- package/types/core/event/eventOrchestrator.d.ts +191 -0
- package/types/core/event/executor.d.ts +13 -0
- package/types/core/event/handlers/handler_toolbar.d.ts +38 -0
- package/types/core/event/handlers/handler_ww_clipboard.d.ts +36 -0
- package/types/core/event/handlers/handler_ww_dragDrop.d.ts +26 -0
- package/types/core/event/handlers/handler_ww_input.d.ts +38 -0
- package/types/core/event/handlers/handler_ww_key.d.ts +40 -0
- package/types/core/event/handlers/handler_ww_mouse.d.ts +47 -0
- package/types/core/event/ports.d.ts +256 -0
- package/types/core/event/reducers/keydown.reducer.d.ts +84 -0
- package/types/core/event/rules/keydown.rule.arrow.d.ts +19 -0
- package/types/core/event/rules/keydown.rule.backspace.d.ts +18 -0
- package/types/core/event/rules/keydown.rule.delete.d.ts +18 -0
- package/types/core/event/rules/keydown.rule.enter.d.ts +18 -0
- package/types/core/event/rules/keydown.rule.tab.d.ts +18 -0
- package/types/core/event/support/defaultLineManager.d.ts +22 -0
- package/types/core/event/support/selectionState.d.ts +29 -0
- package/types/core/kernel/coreKernel.d.ts +219 -0
- package/types/core/kernel/kernelInjector.d.ts +16 -0
- package/types/core/kernel/store.d.ts +170 -0
- package/types/core/logic/dom/char.d.ts +46 -0
- package/types/core/logic/dom/format.d.ts +234 -0
- package/types/core/logic/dom/html.d.ts +290 -0
- package/types/core/logic/dom/inline.d.ts +93 -0
- package/types/core/logic/dom/listFormat.d.ts +101 -0
- package/types/core/logic/dom/nodeTransform.d.ts +110 -0
- package/types/core/logic/dom/offset.d.ts +335 -0
- package/types/core/logic/dom/selection.d.ts +165 -0
- package/types/core/logic/panel/menu.d.ts +93 -0
- package/types/core/logic/panel/toolbar.d.ts +128 -0
- package/types/core/logic/panel/viewer.d.ts +89 -0
- package/types/core/logic/shell/_commandExecutor.d.ts +18 -0
- package/types/core/logic/shell/commandDispatcher.d.ts +65 -0
- package/types/core/logic/shell/component.d.ts +182 -0
- package/types/core/logic/shell/focusManager.d.ts +31 -0
- package/types/core/{base → logic/shell}/history.d.ts +13 -12
- package/types/core/logic/shell/pluginManager.d.ts +115 -0
- package/types/core/logic/shell/shortcuts.d.ts +131 -0
- package/types/core/logic/shell/ui.d.ts +261 -0
- package/types/core/schema/context.d.ts +104 -0
- package/types/core/schema/frameContext.d.ts +320 -0
- package/types/core/schema/options.d.ts +1241 -0
- package/types/core/section/constructor.d.ts +117 -652
- package/types/core/section/documentType.d.ts +43 -61
- package/types/events.d.ts +796 -65
- package/types/helper/clipboard.d.ts +5 -4
- package/types/helper/converter.d.ts +55 -43
- package/types/helper/dom/domCheck.d.ts +27 -19
- package/types/helper/dom/domQuery.d.ts +76 -57
- package/types/helper/dom/domUtils.d.ts +62 -39
- package/types/helper/dom/index.d.ts +87 -1
- package/types/helper/env.d.ts +16 -13
- package/types/helper/index.d.ts +8 -2
- package/types/helper/keyCodeMap.d.ts +24 -23
- package/types/helper/numbers.d.ts +4 -6
- package/types/helper/unicode.d.ts +4 -3
- package/types/hooks/base.d.ts +239 -0
- package/types/hooks/params.d.ts +65 -0
- package/types/index.d.ts +20 -117
- package/types/interfaces/contracts.d.ts +183 -0
- package/types/interfaces/index.d.ts +3 -0
- package/types/interfaces/plugins.d.ts +168 -0
- package/types/langs/_Lang.d.ts +2 -2
- package/types/langs/index.d.ts +2 -2
- package/types/modules/contract/Browser.d.ts +262 -0
- package/types/modules/contract/ColorPicker.d.ts +99 -0
- package/types/modules/contract/Controller.d.ts +204 -0
- package/types/modules/contract/Figure.d.ts +529 -0
- package/types/modules/{HueSlider.d.ts → contract/HueSlider.d.ts} +39 -28
- package/types/modules/contract/Modal.d.ts +62 -0
- package/types/modules/contract/index.d.ts +7 -0
- package/types/modules/manager/ApiManager.d.ts +106 -0
- package/types/modules/manager/FileManager.d.ts +124 -0
- package/types/modules/manager/index.d.ts +3 -0
- package/types/modules/ui/ModalAnchorEditor.d.ts +152 -0
- package/types/modules/ui/SelectMenu.d.ts +107 -0
- package/types/modules/{_DragHandle.d.ts → ui/_DragHandle.d.ts} +1 -0
- package/types/modules/ui/index.d.ts +4 -0
- package/types/plugins/browser/audioGallery.d.ts +33 -41
- package/types/plugins/browser/fileBrowser.d.ts +42 -50
- package/types/plugins/browser/fileGallery.d.ts +33 -41
- package/types/plugins/browser/imageGallery.d.ts +30 -37
- package/types/plugins/browser/videoGallery.d.ts +33 -41
- package/types/plugins/command/blockquote.d.ts +4 -21
- package/types/plugins/command/exportPDF.d.ts +23 -33
- package/types/plugins/command/fileUpload.d.ts +80 -100
- package/types/plugins/command/list_bulleted.d.ts +9 -35
- package/types/plugins/command/list_numbered.d.ts +9 -35
- package/types/plugins/dropdown/align.d.ts +23 -46
- package/types/plugins/dropdown/backgroundColor.d.ts +35 -53
- package/types/plugins/dropdown/blockStyle.d.ts +45 -0
- package/types/plugins/dropdown/font.d.ts +18 -41
- package/types/plugins/dropdown/fontColor.d.ts +35 -53
- package/types/plugins/dropdown/hr.d.ts +26 -52
- package/types/plugins/dropdown/layout.d.ts +19 -25
- package/types/plugins/dropdown/lineHeight.d.ts +21 -39
- package/types/plugins/dropdown/list.d.ts +6 -34
- package/types/plugins/dropdown/paragraphStyle.d.ts +34 -45
- package/types/plugins/dropdown/table/index.d.ts +158 -0
- package/types/plugins/dropdown/table/render/table.html.d.ts +71 -0
- package/types/plugins/dropdown/table/render/table.menu.d.ts +59 -0
- package/types/plugins/dropdown/table/services/table.cell.d.ts +76 -0
- package/types/plugins/dropdown/table/services/table.clipboard.d.ts +26 -0
- package/types/plugins/dropdown/table/services/table.grid.d.ts +77 -0
- package/types/plugins/dropdown/table/services/table.resize.d.ts +72 -0
- package/types/plugins/dropdown/table/services/table.selection.d.ts +59 -0
- package/types/plugins/dropdown/table/services/table.style.d.ts +162 -0
- package/types/plugins/dropdown/table/shared/table.constants.d.ts +134 -0
- package/types/plugins/dropdown/table/shared/table.utils.d.ts +91 -0
- package/types/plugins/dropdown/template.d.ts +19 -25
- package/types/plugins/dropdown/textStyle.d.ts +23 -30
- package/types/plugins/field/mention.d.ts +66 -72
- package/types/plugins/index.d.ts +41 -40
- package/types/plugins/input/fontSize.d.ts +57 -96
- package/types/plugins/input/pageNavigator.d.ts +5 -8
- package/types/plugins/modal/audio.d.ts +60 -153
- package/types/plugins/modal/drawing.d.ts +16 -118
- package/types/plugins/modal/embed.d.ts +46 -166
- package/types/plugins/modal/image/index.d.ts +281 -0
- package/types/plugins/modal/image/render/image.html.d.ts +45 -0
- package/types/plugins/modal/image/services/image.size.d.ts +55 -0
- package/types/plugins/modal/image/services/image.upload.d.ts +24 -0
- package/types/plugins/modal/image/shared/image.constants.d.ts +17 -0
- package/types/plugins/modal/link.d.ts +46 -66
- package/types/plugins/modal/math.d.ts +17 -86
- package/types/plugins/modal/{video.d.ts → video/index.d.ts} +89 -221
- package/types/plugins/modal/video/render/video.html.d.ts +37 -0
- package/types/plugins/modal/video/services/video.size.d.ts +74 -0
- package/types/plugins/modal/video/services/video.upload.d.ts +19 -0
- package/types/plugins/popup/anchor.d.ts +8 -38
- package/types/suneditor.d.ts +55 -24
- package/types/typedef.d.ts +344 -228
- package/CONTRIBUTING.md +0 -186
- package/src/core/base/eventHandlers/handler_ww_key_input.js +0 -1200
- package/src/core/base/eventHandlers/handler_ww_mouse.js +0 -194
- package/src/core/base/eventManager.js +0 -1523
- package/src/core/class/component.js +0 -856
- package/src/core/class/format.js +0 -3433
- package/src/core/class/menu.js +0 -346
- package/src/core/class/selection.js +0 -610
- package/src/core/class/shortcuts.js +0 -98
- package/src/core/class/toolbar.js +0 -431
- package/src/core/class/ui.js +0 -424
- package/src/core/class/viewer.js +0 -750
- package/src/core/section/actives.js +0 -266
- package/src/core/section/context.js +0 -102
- package/src/editorInjector/_classes.js +0 -36
- package/src/editorInjector/_core.js +0 -87
- package/src/editorInjector/index.js +0 -73
- package/src/modules/ApiManager.js +0 -191
- package/src/modules/Controller.js +0 -474
- package/src/modules/Modal.js +0 -346
- package/src/modules/index.js +0 -14
- package/src/plugins/dropdown/table.js +0 -4034
- package/src/plugins/modal/image.js +0 -1376
- package/src/plugins/modal/video.js +0 -1226
- package/types/core/base/eventHandlers/handler_toolbar.d.ts +0 -41
- package/types/core/base/eventHandlers/handler_ww_clipboard.d.ts +0 -40
- package/types/core/base/eventHandlers/handler_ww_dragDrop.d.ts +0 -35
- package/types/core/base/eventHandlers/handler_ww_key_input.d.ts +0 -45
- package/types/core/base/eventHandlers/handler_ww_mouse.d.ts +0 -39
- package/types/core/base/eventManager.d.ts +0 -401
- package/types/core/class/char.d.ts +0 -61
- package/types/core/class/component.d.ts +0 -213
- package/types/core/class/format.d.ts +0 -623
- package/types/core/class/html.d.ts +0 -430
- package/types/core/class/menu.d.ts +0 -126
- package/types/core/class/nodeTransform.d.ts +0 -93
- package/types/core/class/offset.d.ts +0 -522
- package/types/core/class/selection.d.ts +0 -188
- package/types/core/class/shortcuts.d.ts +0 -142
- package/types/core/class/toolbar.d.ts +0 -189
- package/types/core/class/ui.d.ts +0 -164
- package/types/core/class/viewer.d.ts +0 -140
- package/types/core/section/actives.d.ts +0 -46
- package/types/core/section/context.d.ts +0 -45
- package/types/editorInjector/_classes.d.ts +0 -41
- package/types/editorInjector/_core.d.ts +0 -87
- package/types/editorInjector/index.d.ts +0 -69
- package/types/modules/ApiManager.d.ts +0 -125
- package/types/modules/Browser.d.ts +0 -326
- package/types/modules/ColorPicker.d.ts +0 -135
- package/types/modules/Controller.d.ts +0 -251
- package/types/modules/Figure.d.ts +0 -517
- package/types/modules/FileManager.d.ts +0 -202
- package/types/modules/Modal.d.ts +0 -111
- package/types/modules/ModalAnchorEditor.d.ts +0 -236
- package/types/modules/SelectMenu.d.ts +0 -194
- package/types/modules/index.d.ts +0 -26
- package/types/plugins/dropdown/formatBlock.d.ts +0 -55
- package/types/plugins/dropdown/table.d.ts +0 -627
- package/types/plugins/modal/image.d.ts +0 -451
- /package/{LICENSE → LICENSE.txt} +0 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type {} from '../../../typedef';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
/** [event, cache] */
|
|
4
|
+
/** @action prevent */
|
|
5
|
+
'event.prevent': ({ ctx }: EffectContext) => void;
|
|
6
|
+
/** @action stop */
|
|
7
|
+
'event.stop': ({ ctx }: EffectContext) => void;
|
|
8
|
+
/** @action preventStop */
|
|
9
|
+
'event.prevent.stop': ({ ctx }: EffectContext) => void;
|
|
10
|
+
/** @action cacheStyleNode */
|
|
11
|
+
'cache.styleNode': ({ ports }: EffectContext) => void;
|
|
12
|
+
/** @action cacheFormatAttrsTemp */
|
|
13
|
+
'cache.formatAttrsTemp': ({ ports }: EffectContext, { attrs }: any) => void;
|
|
14
|
+
/** [commands] */
|
|
15
|
+
/** @action editorNativeFocus */
|
|
16
|
+
'focusManager.nativeFocus': ({ ports }: EffectContext) => void;
|
|
17
|
+
/** @action historyPush */
|
|
18
|
+
'history.push': ({ ports }: EffectContext, hard: any) => void;
|
|
19
|
+
/** @action documentTypeRefreshHeader */
|
|
20
|
+
'documentType.refreshHeader': ({ ctx }: EffectContext) => void;
|
|
21
|
+
/** [class] */
|
|
22
|
+
/** @action componentDeselect */
|
|
23
|
+
'component.deselect': ({ ports }: EffectContext) => void;
|
|
24
|
+
/** @action selectionSetRange */
|
|
25
|
+
'selection.setRange': ({ ports }: EffectContext, { sc, so, ec, eo }: any) => Range;
|
|
26
|
+
/** @action formatRemoveBlock */
|
|
27
|
+
'format.removeBlock': (
|
|
28
|
+
{ ports }: EffectContext,
|
|
29
|
+
{ rangeEl, selectedFormats, newBlockElement, shouldDelete, skipHistory }: any,
|
|
30
|
+
) => {
|
|
31
|
+
cc: Node;
|
|
32
|
+
sc: Node;
|
|
33
|
+
so: number;
|
|
34
|
+
ec: Node;
|
|
35
|
+
eo: number;
|
|
36
|
+
removeArray: Array<Node> | null;
|
|
37
|
+
};
|
|
38
|
+
/** [helper] */
|
|
39
|
+
/** @action domUtilsRemoveItem */
|
|
40
|
+
'dom.utils.removeItem': (_: EffectContext, { item }: any) => void;
|
|
41
|
+
/** [utils] */
|
|
42
|
+
/** @action selectComponentFallback */
|
|
43
|
+
'select.component.fallback': ({ ports }: EffectContext, { cmponentInfo }: any) => void;
|
|
44
|
+
};
|
|
45
|
+
export default _default;
|
|
46
|
+
export type EffectContext = {
|
|
47
|
+
/**
|
|
48
|
+
* - Ports for interacting with editor
|
|
49
|
+
*/
|
|
50
|
+
ports: import('../ports').EventReducerPorts;
|
|
51
|
+
/**
|
|
52
|
+
* - Reducer context
|
|
53
|
+
*/
|
|
54
|
+
ctx: import('../reducers/keydown.reducer').KeydownReducerCtx;
|
|
55
|
+
};
|
|
56
|
+
export type Effect = (ctx: EffectContext, payload?: any) => any;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type {} from '../../../typedef';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
/** [backspace and delete] */
|
|
4
|
+
/** @action delFormatRemoveAndMove */
|
|
5
|
+
'del.format.removeAndMove': ({ ports }: EffectContext_keydown, { container, formatEl }: any) => void;
|
|
6
|
+
/** [backspace] */
|
|
7
|
+
/** @action backspaceFormatMaintain */
|
|
8
|
+
'backspace.format.maintain': ({ ctx }: EffectContext_keydown, { formatEl }: any) => void;
|
|
9
|
+
/** @action backspaceComponentSelect */
|
|
10
|
+
'backspace.component.select': ({ ports }: EffectContext_keydown, { selectionNode, range, fileComponentInfo }: any) => void;
|
|
11
|
+
/** @action backspaceComponentRemove */
|
|
12
|
+
'backspace.component.remove': ({ ports }: EffectContext_keydown, { isList, sel, formatEl, fileComponentInfo }: any) => void;
|
|
13
|
+
/** @action backspaceListMergePrev */
|
|
14
|
+
'backspace.list.mergePrev': ({ ports }: EffectContext_keydown, { prev, formatEl, rangeEl }: any) => void;
|
|
15
|
+
/** @action backspaceListRemoveNested */
|
|
16
|
+
'backspace.list.removeNested': ({ ports }: EffectContext_keydown, { range }: any) => void;
|
|
17
|
+
/** [delete] */
|
|
18
|
+
/** @action deleteComponentSelect */
|
|
19
|
+
'delete.component.select': ({ ports }: EffectContext_keydown, { formatEl, fileComponentInfo }: any) => void;
|
|
20
|
+
/** @action deleteComponentSelectNext */
|
|
21
|
+
'delete.component.selectNext': ({ ports, ctx }: EffectContext_keydown, { formatEl, nextEl }: any) => void;
|
|
22
|
+
/** @action deleteListRemoveNested */
|
|
23
|
+
'delete.list.removeNested': ({ ports, ctx }: EffectContext_keydown, { range, formatEl, rangeEl }: any) => void;
|
|
24
|
+
/** [tab] */
|
|
25
|
+
/** @action tabFormatIndent */
|
|
26
|
+
'tab.format.indent': ({ ports, ctx }: EffectContext_keydown, { range, formatEl, shift }: any) => boolean;
|
|
27
|
+
/** [enter] */
|
|
28
|
+
/** @action enterScrollTo */
|
|
29
|
+
'enter.scrollTo': ({ ports }: EffectContext_keydown, { range }: any) => void;
|
|
30
|
+
/** @action enterLineAddDefault */
|
|
31
|
+
'enter.line.addDefault': ({ ports, ctx }: EffectContext_keydown, { formatEl }: any) => void;
|
|
32
|
+
/** @action enterListAddItem */
|
|
33
|
+
'enter.list.addItem': ({ ports }: EffectContext_keydown, { formatEl, selectionNode }: any) => void;
|
|
34
|
+
/** @action enterFormatExitEmpty */
|
|
35
|
+
'enter.format.exitEmpty': ({ ports, ctx }: EffectContext_keydown, { formatEl, rangeEl }: any) => void;
|
|
36
|
+
/** @action enterFormatCleanBrAndZWS */
|
|
37
|
+
'enter.format.cleanBrAndZWS': ({ ports }: EffectContext_keydown, { selectionNode, selectionFormat, brBlock, children, offset }: any) => void;
|
|
38
|
+
/** @action enterFormatInsertBrHtml */
|
|
39
|
+
'enter.format.insertBrHtml': ({ ports }: EffectContext_keydown, { brBlock, range, wSelection, offset }: any) => void;
|
|
40
|
+
/** @action enterFormatInsertBrNode */
|
|
41
|
+
'enter.format.insertBrNode': ({ ports }: EffectContext_keydown, { wSelection }: any) => void;
|
|
42
|
+
/** @action enterFormatBreakAtEdge */
|
|
43
|
+
'enter.format.breakAtEdge': ({ ports, ctx }: EffectContext_keydown, { formatEl, selectionNode, formatStartEdge, formatEndEdge }: any) => void;
|
|
44
|
+
/** @action enterFormatBreakWithSelection */
|
|
45
|
+
'enter.format.breakWithSelection': ({ ports, ctx }: EffectContext_keydown, { formatEl, range, formatStartEdge, formatEndEdge }: any) => void;
|
|
46
|
+
/** @action enterFormatBreakAtCursor */
|
|
47
|
+
'enter.format.breakAtCursor': ({ ports, ctx }: EffectContext_keydown, { formatEl, range }: any) => void;
|
|
48
|
+
/** @action enterFigcaptionExitInList */
|
|
49
|
+
'enter.figcaption.exitInList': ({ ports }: EffectContext_keydown, { formatEl }: any) => void;
|
|
50
|
+
/** [keydown reducer] */
|
|
51
|
+
/** @action keydownInputInsertNbsp */
|
|
52
|
+
'keydown.input.insertNbsp': ({ ports }: EffectContext_keydown) => void;
|
|
53
|
+
/** @action keydownInputInsertZWS */
|
|
54
|
+
'keydown.input.insertZWS': ({ ports }: EffectContext_keydown) => void;
|
|
55
|
+
};
|
|
56
|
+
export default _default;
|
|
57
|
+
export type EffectContext_keydown = {
|
|
58
|
+
/**
|
|
59
|
+
* - Ports for interacting with editor
|
|
60
|
+
*/
|
|
61
|
+
ports: import('../ports').EventReducerPorts;
|
|
62
|
+
/**
|
|
63
|
+
* - Reducer context
|
|
64
|
+
*/
|
|
65
|
+
ctx: import('../reducers/keydown.reducer').KeydownReducerCtx;
|
|
66
|
+
};
|
|
67
|
+
export type Effect = (ctx: EffectContext_keydown, payload?: any) => any;
|
|
68
|
+
/**
|
|
69
|
+
* @param {HTMLElement} formatEl - Format element
|
|
70
|
+
* @returns {Node}
|
|
71
|
+
*/
|
|
72
|
+
export function LineDelete_next(formatEl: HTMLElement): Node;
|
|
73
|
+
/**
|
|
74
|
+
* @param {HTMLElement} formatEl - Format element
|
|
75
|
+
* @returns {{focusNode: Node, focusOffset: number}}
|
|
76
|
+
*/
|
|
77
|
+
export function LineDelete_prev(formatEl: HTMLElement): {
|
|
78
|
+
focusNode: Node;
|
|
79
|
+
focusOffset: number;
|
|
80
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type {} from '../../../typedef';
|
|
2
|
+
export type EventPorts = import('../ports').EventReducerPorts;
|
|
3
|
+
/**
|
|
4
|
+
* @typedef {import('../ports').EventReducerPorts} EventPorts
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @description Deletes specific elements such as tables in `Firefox` and media elements (image, video, audio) in `Chrome`.
|
|
8
|
+
* - Handles deletion logic based on selection range and node types.
|
|
9
|
+
* @param {EventPorts} ports - Reducer ports
|
|
10
|
+
* @returns {boolean} Returns `true` if an element was deleted and focus was adjusted, otherwise `false`.
|
|
11
|
+
*/
|
|
12
|
+
export function hardDelete(ports: EventPorts): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* @description Cleans up removed tags and normalizes DOM structure.
|
|
15
|
+
* Removes orphaned nodes that are outside the format element's valid range.
|
|
16
|
+
* @param {EventPorts} ports - Reducer ports
|
|
17
|
+
* @param {Node} startCon - Starting container node to clean
|
|
18
|
+
* @param {Element} formatEl - Parent format element containing the structure
|
|
19
|
+
* @returns {boolean} Returns `true` if nodes were removed, `undefined` otherwise
|
|
20
|
+
*/
|
|
21
|
+
export function cleanRemovedTags(ports: EventPorts, startCon: Node, formatEl: Element): boolean;
|
|
22
|
+
/**
|
|
23
|
+
* @description Determines if the `range` is within an uneditable node.
|
|
24
|
+
* @param {EventPorts} ports - Reducer ports
|
|
25
|
+
* @param {Range} range The range object
|
|
26
|
+
* @param {boolean} isFront Whether to check the start or end of the range
|
|
27
|
+
* @returns {Node|null} The uneditable node if found, otherwise `null`
|
|
28
|
+
*/
|
|
29
|
+
export function isUneditableNode(ports: EventPorts, range: Range, isFront: boolean): Node | null;
|
|
30
|
+
/**
|
|
31
|
+
* @description Execute `eventManager._setDefaultLine`
|
|
32
|
+
* @param {EventPorts} ports - Reducer ports
|
|
33
|
+
* @param {string} lineTagName - `line` tag name
|
|
34
|
+
* @returns {void}
|
|
35
|
+
*/
|
|
36
|
+
export function setDefaultLine(ports: EventPorts, lineTagName: string): void;
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import type {} from '../../typedef';
|
|
2
|
+
export default EventOrchestrator;
|
|
3
|
+
/**
|
|
4
|
+
* @description Event orchestrator
|
|
5
|
+
*/
|
|
6
|
+
declare class EventOrchestrator extends KernelInjector {
|
|
7
|
+
/**
|
|
8
|
+
* @description Old browsers: When there is no `e.isComposing` in the `keyup` event
|
|
9
|
+
* @type {boolean}
|
|
10
|
+
*/
|
|
11
|
+
isComposing: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* @description An array of parent containers that can be scrolled (in descending order)
|
|
14
|
+
* @type {Array<Element>}
|
|
15
|
+
*/
|
|
16
|
+
scrollparents: Array<Element>;
|
|
17
|
+
defaultLineManager: DefaultLineManager;
|
|
18
|
+
selectionState: SelectionState;
|
|
19
|
+
/** @internal @type {boolean} */
|
|
20
|
+
_onShortcutKey: boolean;
|
|
21
|
+
/** @internal @type {boolean} */
|
|
22
|
+
_handledInBefore: boolean;
|
|
23
|
+
/** @internal @type {ResizeObserver} */
|
|
24
|
+
_wwFrameObserver: ResizeObserver;
|
|
25
|
+
/** @internal @type {ResizeObserver} */
|
|
26
|
+
_toolbarObserver: ResizeObserver;
|
|
27
|
+
/** @internal @type {?Element} */
|
|
28
|
+
_lineBreakComp: Element | null;
|
|
29
|
+
/** @internal @type {?Object<string, *>} */
|
|
30
|
+
_formatAttrsTemp: {
|
|
31
|
+
[x: string]: any;
|
|
32
|
+
} | null;
|
|
33
|
+
/** @internal @type {number} */
|
|
34
|
+
_resizeClientY: number;
|
|
35
|
+
/** @internal @type {Array<Node>} */
|
|
36
|
+
__cacheStyleNodes: Array<Node>;
|
|
37
|
+
__onDownEv: any;
|
|
38
|
+
/** @internal @type {boolean} */
|
|
39
|
+
_inputFocus: boolean;
|
|
40
|
+
/** @internal @type {?Object<string, *>} */
|
|
41
|
+
__inputPlugin: {
|
|
42
|
+
[x: string]: any;
|
|
43
|
+
} | null;
|
|
44
|
+
/** @internal @type {?SunEditor.Event.Info=} */
|
|
45
|
+
__inputBlurEvent: (SunEditor.Event.Info | null) | undefined;
|
|
46
|
+
/** @internal @type {?SunEditor.Event.Info=} */
|
|
47
|
+
__inputKeyEvent: (SunEditor.Event.Info | null) | undefined;
|
|
48
|
+
/** @type {number|void} */
|
|
49
|
+
__retainTimer: number | void;
|
|
50
|
+
/** @type {Document} */
|
|
51
|
+
__eventDoc: Document;
|
|
52
|
+
/** @type {string} */
|
|
53
|
+
__secopy: string;
|
|
54
|
+
/**
|
|
55
|
+
* @description Activates the corresponding button with the tags information of the current cursor position,
|
|
56
|
+
* - such as `bold`, `underline`, etc., and executes the `active` method of the plugins.
|
|
57
|
+
* @param {?Node} [selectionNode] selectionNode
|
|
58
|
+
* @returns {Node|undefined} selectionNode
|
|
59
|
+
*/
|
|
60
|
+
applyTagEffect(selectionNode?: Node | null): Node | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* @internal
|
|
63
|
+
* @description Show toolbar-balloon with delay.
|
|
64
|
+
*/
|
|
65
|
+
_showToolbarBalloonDelay(): void;
|
|
66
|
+
/**
|
|
67
|
+
* @internal
|
|
68
|
+
* @description Show or hide the toolbar-balloon.
|
|
69
|
+
*/
|
|
70
|
+
_toggleToolbarBalloon(): void;
|
|
71
|
+
/**
|
|
72
|
+
* @internal
|
|
73
|
+
* @description Hide the toolbar.
|
|
74
|
+
*/
|
|
75
|
+
_hideToolbar(): void;
|
|
76
|
+
/**
|
|
77
|
+
* @internal
|
|
78
|
+
* @description Hide the Sub-Toolbar.
|
|
79
|
+
*/
|
|
80
|
+
_hideToolbar_sub(): void;
|
|
81
|
+
/**
|
|
82
|
+
* @internal
|
|
83
|
+
* @description If there is no default format, add a `line` and move `selection`.
|
|
84
|
+
* @param {?string} formatName Format tag name (default: `P`)
|
|
85
|
+
*/
|
|
86
|
+
_setDefaultLine(formatName: string | null): void;
|
|
87
|
+
/**
|
|
88
|
+
* @internal
|
|
89
|
+
* @description Handles data transfer actions for `paste` and `drop` events.
|
|
90
|
+
* - It processes clipboard data, triggers relevant events, and inserts cleaned data into the editor.
|
|
91
|
+
* @param {"paste"|"drop"} type The type of event
|
|
92
|
+
* @param {Event} e The original event object
|
|
93
|
+
* @param {DataTransfer} clipboardData The clipboard data object
|
|
94
|
+
* @param {SunEditor.FrameContext} frameContext The frame context
|
|
95
|
+
* @returns {Promise<boolean>} Resolves to `false` if processing is complete, otherwise allows default behavior
|
|
96
|
+
*/
|
|
97
|
+
_dataTransferAction(type: 'paste' | 'drop', e: Event, clipboardData: DataTransfer, frameContext: SunEditor.FrameContext): Promise<boolean>;
|
|
98
|
+
/**
|
|
99
|
+
* @internal
|
|
100
|
+
* @description Registers common UI events such as toolbar and menu interactions.
|
|
101
|
+
* - Adds event listeners for various UI elements, sets up observers, and configures window events.
|
|
102
|
+
*/
|
|
103
|
+
_addCommonEvents(): void;
|
|
104
|
+
/**
|
|
105
|
+
* @internal
|
|
106
|
+
* @description Registers event listeners for the editor's frame, including text `input`, selection, and UI interactions.
|
|
107
|
+
* - Handles events inside an `iframe` or within the standard wysiwyg editor.
|
|
108
|
+
* @param {SunEditor.FrameContext} fc The frame context object
|
|
109
|
+
*/
|
|
110
|
+
_addFrameEvents(fc: SunEditor.FrameContext): void;
|
|
111
|
+
/**
|
|
112
|
+
* @internal
|
|
113
|
+
* @description Adds event listeners for resizing the status bar if resizing is enabled.
|
|
114
|
+
* - If resizing is not enabled, applies a `se-resizing-none` class.
|
|
115
|
+
* @param {SunEditor.FrameContext} fc The frame context object
|
|
116
|
+
* @param {SunEditor.FrameOptions} fo The frame options object
|
|
117
|
+
*/
|
|
118
|
+
__addStatusbarEvent(fc: SunEditor.FrameContext, fo: SunEditor.FrameOptions): void;
|
|
119
|
+
/**
|
|
120
|
+
* @internal
|
|
121
|
+
* @description Removes all registered event listeners from the editor.
|
|
122
|
+
* - Disconnects observers and clears stored event references.
|
|
123
|
+
*/
|
|
124
|
+
_removeAllEvents(): void;
|
|
125
|
+
__focusTemp: any;
|
|
126
|
+
/**
|
|
127
|
+
* @internal
|
|
128
|
+
* @description Synchronizes the selection state by resetting it on `mouseup`.
|
|
129
|
+
* - Ensures selection updates correctly across different interactions.
|
|
130
|
+
*/
|
|
131
|
+
_setSelectionSync(): void;
|
|
132
|
+
/**
|
|
133
|
+
* @internal
|
|
134
|
+
* @description Retains the style nodes for formatting consistency when applying styles.
|
|
135
|
+
* - Preserves nested styling by cloning and restructuring the style nodes.
|
|
136
|
+
* @param {HTMLElement} formatEl The format element where styles should be retained
|
|
137
|
+
* @param {Array<Node>} _styleNodes The list of style nodes to retain
|
|
138
|
+
*/
|
|
139
|
+
_retainStyleNodes(formatEl: HTMLElement, _styleNodes: Array<Node>): void;
|
|
140
|
+
/**
|
|
141
|
+
* @internal
|
|
142
|
+
* @description Clears retained style nodes by replacing content with a single `line` break.
|
|
143
|
+
* - Resets the selection to the start of the cleared element.
|
|
144
|
+
* @param {HTMLElement} formatEl The format element where styles should be cleared
|
|
145
|
+
*/
|
|
146
|
+
_clearRetainStyleNodes(formatEl: HTMLElement): void;
|
|
147
|
+
/**
|
|
148
|
+
* @internal
|
|
149
|
+
* @description Calls a registered plugin event synchronously.
|
|
150
|
+
* @param {string} name The name of the plugin event
|
|
151
|
+
* @param {SunEditor.EventParams.PluginEvent} e The event payload
|
|
152
|
+
* @returns {boolean|undefined} Returns `false` if any handler stops the event
|
|
153
|
+
*/
|
|
154
|
+
_callPluginEvent(name: string, e: SunEditor.EventParams.PluginEvent): boolean | undefined;
|
|
155
|
+
/**
|
|
156
|
+
* @internal
|
|
157
|
+
* @description Calls a registered plugin event asynchronously.
|
|
158
|
+
* @param {string} name The name of the plugin event
|
|
159
|
+
* @param {SunEditor.EventParams.PluginEvent} e The event payload
|
|
160
|
+
* @returns {Promise<boolean|undefined>} Returns `false` if any handler stops the event
|
|
161
|
+
*/
|
|
162
|
+
_callPluginEventAsync(name: string, e: SunEditor.EventParams.PluginEvent): Promise<boolean | undefined>;
|
|
163
|
+
/**
|
|
164
|
+
* @internal
|
|
165
|
+
* @description Removes input event listeners and resets input-related properties.
|
|
166
|
+
*/
|
|
167
|
+
__removeInput(): void;
|
|
168
|
+
/**
|
|
169
|
+
* @internal
|
|
170
|
+
* @description Focus Event Postprocessing
|
|
171
|
+
* @param {SunEditor.FrameContext} frameContext - frame context object
|
|
172
|
+
* @param {FocusEvent} event - Focus event object
|
|
173
|
+
*/
|
|
174
|
+
__postFocusEvent(frameContext: SunEditor.FrameContext, event: FocusEvent): void;
|
|
175
|
+
/**
|
|
176
|
+
* @internal
|
|
177
|
+
* @description Blur Event Postprocessing
|
|
178
|
+
* @param {SunEditor.FrameContext} frameContext - frame context object
|
|
179
|
+
* @param {FocusEvent} event - Focus event object
|
|
180
|
+
*/
|
|
181
|
+
__postBlurEvent(frameContext: SunEditor.FrameContext, event: FocusEvent): void;
|
|
182
|
+
/**
|
|
183
|
+
* @internal
|
|
184
|
+
* @description Records the current viewport size.
|
|
185
|
+
*/
|
|
186
|
+
__setViewportSize(): void;
|
|
187
|
+
#private;
|
|
188
|
+
}
|
|
189
|
+
import DefaultLineManager from '../event/support/defaultLineManager';
|
|
190
|
+
import SelectionState from '../event/support/selectionState';
|
|
191
|
+
import KernelInjector from '../kernel/kernelInjector';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type {} from '../../typedef';
|
|
2
|
+
/**
|
|
3
|
+
* @typedef {import('./actions').Action[]} EventActions
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @description Execute actions sequentially by dispatching each action to its corresponding effect handler.
|
|
7
|
+
* Stops execution early if a HALT action is encountered or if any effect returns `false`.
|
|
8
|
+
* @param {EventActions} actions - Array of actions to execute
|
|
9
|
+
* @param {*} effContext - Effect context containing ports, ctx, and event
|
|
10
|
+
* @returns {Promise<false|undefined>} Returns `false` if execution was halted, `undefined` if all actions completed.
|
|
11
|
+
*/
|
|
12
|
+
export function actionExecutor(actions: EventActions, effContext: any): Promise<false | undefined>;
|
|
13
|
+
export type EventActions = import('./actions').Action[];
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type {} from '../../../typedef';
|
|
2
|
+
/**
|
|
3
|
+
* @typedef {import('../eventOrchestrator').default} EventManagerThis_handler_toolbar
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @this {EventManagerThis_handler_toolbar}
|
|
7
|
+
* @param {MouseEvent} e - Event object
|
|
8
|
+
*/
|
|
9
|
+
export function ButtonsHandler(this: import('../eventOrchestrator').default, e: MouseEvent): void;
|
|
10
|
+
export class ButtonsHandler {
|
|
11
|
+
/**
|
|
12
|
+
* @typedef {import('../eventOrchestrator').default} EventManagerThis_handler_toolbar
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @this {EventManagerThis_handler_toolbar}
|
|
16
|
+
* @param {MouseEvent} e - Event object
|
|
17
|
+
*/
|
|
18
|
+
constructor(this: import('../eventOrchestrator').default, e: MouseEvent);
|
|
19
|
+
_inputFocus: boolean;
|
|
20
|
+
__inputPlugin: {
|
|
21
|
+
obj: any;
|
|
22
|
+
target: HTMLInputElement;
|
|
23
|
+
value: string;
|
|
24
|
+
};
|
|
25
|
+
__inputBlurEvent: SunEditor.Event.Info;
|
|
26
|
+
__inputKeyEvent: SunEditor.Event.Info;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* @this {EventManagerThis_handler_toolbar}
|
|
30
|
+
* @param {MouseEvent} e - Event object
|
|
31
|
+
*/
|
|
32
|
+
export function OnClick_menuTray(this: import('../eventOrchestrator').default, e: MouseEvent): void;
|
|
33
|
+
/**
|
|
34
|
+
* @this {EventManagerThis_handler_toolbar}
|
|
35
|
+
* @param {MouseEvent} e - Event object
|
|
36
|
+
*/
|
|
37
|
+
export function OnClick_toolbar(this: import('../eventOrchestrator').default, e: MouseEvent): void;
|
|
38
|
+
export type EventManagerThis_handler_toolbar = import('../eventOrchestrator').default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type {} from '../../../typedef';
|
|
2
|
+
/**
|
|
3
|
+
* @typedef {import('../eventOrchestrator').default} EventManagerThis_handler_ww_clipboard
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @this {EventManagerThis_handler_ww_clipboard}
|
|
7
|
+
* @param {ClipboardEvent} e - Event object
|
|
8
|
+
*/
|
|
9
|
+
export function OnPaste_wysiwyg(this: import('../eventOrchestrator').default, frameContext: any, e: ClipboardEvent): true | Promise<boolean>;
|
|
10
|
+
/**
|
|
11
|
+
* @this {EventManagerThis_handler_ww_clipboard}
|
|
12
|
+
* @param {ClipboardEvent} e - Event object
|
|
13
|
+
*/
|
|
14
|
+
export function OnCopy_wysiwyg(this: import('../eventOrchestrator').default, frameContext: any, e: ClipboardEvent): Promise<boolean>;
|
|
15
|
+
export class OnCopy_wysiwyg {
|
|
16
|
+
/**
|
|
17
|
+
* @this {EventManagerThis_handler_ww_clipboard}
|
|
18
|
+
* @param {ClipboardEvent} e - Event object
|
|
19
|
+
*/
|
|
20
|
+
constructor(this: import('../eventOrchestrator').default, frameContext: any, e: ClipboardEvent);
|
|
21
|
+
__secopy: any;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @this {EventManagerThis_handler_ww_clipboard}
|
|
25
|
+
* @param {ClipboardEvent} e - Event object
|
|
26
|
+
*/
|
|
27
|
+
export function OnCut_wysiwyg(this: import('../eventOrchestrator').default, frameContext: any, e: ClipboardEvent): Promise<boolean>;
|
|
28
|
+
export class OnCut_wysiwyg {
|
|
29
|
+
/**
|
|
30
|
+
* @this {EventManagerThis_handler_ww_clipboard}
|
|
31
|
+
* @param {ClipboardEvent} e - Event object
|
|
32
|
+
*/
|
|
33
|
+
constructor(this: import('../eventOrchestrator').default, frameContext: any, e: ClipboardEvent);
|
|
34
|
+
__secopy: any;
|
|
35
|
+
}
|
|
36
|
+
export type EventManagerThis_handler_ww_clipboard = import('../eventOrchestrator').default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type {} from '../../../typedef';
|
|
2
|
+
/**
|
|
3
|
+
* @typedef {import('../eventOrchestrator').default} EventManagerThis_handler_ww_dragDrop
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @this {EventManagerThis_handler_ww_dragDrop}
|
|
7
|
+
* @param {SunEditor.FrameContext} fc - Frame context object
|
|
8
|
+
* @param {HTMLElement} dragCursor - Drag cursor element
|
|
9
|
+
* @param {?HTMLElement} _iframeTopArea - Iframe top area element
|
|
10
|
+
* @param {?HTMLElement} _innerToolbar - Inner toolbar element
|
|
11
|
+
* @param {DragEvent} e - Event object
|
|
12
|
+
*/
|
|
13
|
+
export function OnDragOver_wysiwyg(this: import('../eventOrchestrator').default, fc: SunEditor.FrameContext, dragCursor: HTMLElement, _iframeTopArea: HTMLElement | null, _innerToolbar: HTMLElement | null, e: DragEvent): void;
|
|
14
|
+
/**
|
|
15
|
+
* @this {EventManagerThis_handler_ww_dragDrop}
|
|
16
|
+
* @param {HTMLElement} dragCursor - Drag cursor element
|
|
17
|
+
*/
|
|
18
|
+
export function OnDragEnd_wysiwyg(this: import('../eventOrchestrator').default, dragCursor: HTMLElement): void;
|
|
19
|
+
/**
|
|
20
|
+
* @this {EventManagerThis_handler_ww_dragDrop}
|
|
21
|
+
* @param {SunEditor.FrameContext} fc - Frame context object
|
|
22
|
+
* @param {HTMLElement} dragCursor - Drag cursor element
|
|
23
|
+
* @param {DragEvent} e - Event object
|
|
24
|
+
*/
|
|
25
|
+
export function OnDrop_wysiwyg(this: import('../eventOrchestrator').default, fc: SunEditor.FrameContext, dragCursor: HTMLElement, e: DragEvent): boolean | Promise<boolean>;
|
|
26
|
+
export type EventManagerThis_handler_ww_dragDrop = import('../eventOrchestrator').default;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type {} from '../../../typedef';
|
|
2
|
+
/**
|
|
3
|
+
* @typedef {import('../eventOrchestrator').default} EventManagerThis_handler_ww_input
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @this {EventManagerThis_handler_ww_input}
|
|
7
|
+
* @param {SunEditor.FrameContext} fc - Frame context object
|
|
8
|
+
* @param {InputEvent} e - Event object
|
|
9
|
+
*/
|
|
10
|
+
export function OnBeforeInput_wysiwyg(this: import('../eventOrchestrator').default, fc: SunEditor.FrameContext, e: InputEvent): Promise<boolean>;
|
|
11
|
+
export class OnBeforeInput_wysiwyg {
|
|
12
|
+
/**
|
|
13
|
+
* @typedef {import('../eventOrchestrator').default} EventManagerThis_handler_ww_input
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* @this {EventManagerThis_handler_ww_input}
|
|
17
|
+
* @param {SunEditor.FrameContext} fc - Frame context object
|
|
18
|
+
* @param {InputEvent} e - Event object
|
|
19
|
+
*/
|
|
20
|
+
constructor(this: import('../eventOrchestrator').default, fc: SunEditor.FrameContext, e: InputEvent);
|
|
21
|
+
_handledInBefore: boolean;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @this {EventManagerThis_handler_ww_input}
|
|
25
|
+
* @param {SunEditor.FrameContext} fc - Frame context object
|
|
26
|
+
* @param {InputEvent} e - Event object
|
|
27
|
+
*/
|
|
28
|
+
export function OnInput_wysiwyg(this: import('../eventOrchestrator').default, fc: SunEditor.FrameContext, e: InputEvent): Promise<boolean>;
|
|
29
|
+
export class OnInput_wysiwyg {
|
|
30
|
+
/**
|
|
31
|
+
* @this {EventManagerThis_handler_ww_input}
|
|
32
|
+
* @param {SunEditor.FrameContext} fc - Frame context object
|
|
33
|
+
* @param {InputEvent} e - Event object
|
|
34
|
+
*/
|
|
35
|
+
constructor(this: import('../eventOrchestrator').default, fc: SunEditor.FrameContext, e: InputEvent);
|
|
36
|
+
_handledInBefore: boolean;
|
|
37
|
+
}
|
|
38
|
+
export type EventManagerThis_handler_ww_input = import('../eventOrchestrator').default;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type {} from '../../../typedef';
|
|
2
|
+
/**
|
|
3
|
+
* @typedef {import('../eventOrchestrator').default} EventManagerThis_handler_ww_key_input
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @this {EventManagerThis_handler_ww_key_input}
|
|
7
|
+
* @param {SunEditor.FrameContext} fc - Frame context object
|
|
8
|
+
* @param {KeyboardEvent} e - Event object
|
|
9
|
+
*/
|
|
10
|
+
export function OnKeyDown_wysiwyg(this: import('../eventOrchestrator').default, fc: SunEditor.FrameContext, e: KeyboardEvent): Promise<boolean>;
|
|
11
|
+
export class OnKeyDown_wysiwyg {
|
|
12
|
+
/**
|
|
13
|
+
* @typedef {import('../eventOrchestrator').default} EventManagerThis_handler_ww_key_input
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* @this {EventManagerThis_handler_ww_key_input}
|
|
17
|
+
* @param {SunEditor.FrameContext} fc - Frame context object
|
|
18
|
+
* @param {KeyboardEvent} e - Event object
|
|
19
|
+
*/
|
|
20
|
+
constructor(this: import('../eventOrchestrator').default, fc: SunEditor.FrameContext, e: KeyboardEvent);
|
|
21
|
+
isComposing: boolean;
|
|
22
|
+
_onShortcutKey: boolean;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @this {EventManagerThis_handler_ww_key_input}
|
|
26
|
+
* @param {SunEditor.FrameContext} fc - Frame context object
|
|
27
|
+
* @param {KeyboardEvent} e - Event object
|
|
28
|
+
*/
|
|
29
|
+
export function OnKeyUp_wysiwyg(this: import('../eventOrchestrator').default, fc: SunEditor.FrameContext, e: KeyboardEvent): Promise<void>;
|
|
30
|
+
export class OnKeyUp_wysiwyg {
|
|
31
|
+
/**
|
|
32
|
+
* @this {EventManagerThis_handler_ww_key_input}
|
|
33
|
+
* @param {SunEditor.FrameContext} fc - Frame context object
|
|
34
|
+
* @param {KeyboardEvent} e - Event object
|
|
35
|
+
*/
|
|
36
|
+
constructor(this: import('../eventOrchestrator').default, fc: SunEditor.FrameContext, e: KeyboardEvent);
|
|
37
|
+
_formatAttrsTemp: any;
|
|
38
|
+
__retainTimer: number | void;
|
|
39
|
+
}
|
|
40
|
+
export type EventManagerThis_handler_ww_key_input = import('../eventOrchestrator').default;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type {} from '../../../typedef';
|
|
2
|
+
/**
|
|
3
|
+
* @typedef {import('../eventOrchestrator').default} EventManagerThis_handler_ww_mouse
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @this {EventManagerThis_handler_ww_mouse}
|
|
7
|
+
* @param {SunEditor.FrameContext} fc - Frame context object
|
|
8
|
+
* @param {MouseEvent} e - Event object
|
|
9
|
+
*/
|
|
10
|
+
export function OnMouseDown_wysiwyg(this: import('../eventOrchestrator').default, fc: SunEditor.FrameContext, e: MouseEvent): Promise<void>;
|
|
11
|
+
export class OnMouseDown_wysiwyg {
|
|
12
|
+
/**
|
|
13
|
+
* @typedef {import('../eventOrchestrator').default} EventManagerThis_handler_ww_mouse
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* @this {EventManagerThis_handler_ww_mouse}
|
|
17
|
+
* @param {SunEditor.FrameContext} fc - Frame context object
|
|
18
|
+
* @param {MouseEvent} e - Event object
|
|
19
|
+
*/
|
|
20
|
+
constructor(this: import('../eventOrchestrator').default, fc: SunEditor.FrameContext, e: MouseEvent);
|
|
21
|
+
__onDownEv: SunEditor.Event.GlobalInfo;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @this {EventManagerThis_handler_ww_mouse}
|
|
25
|
+
* @param {SunEditor.FrameContext} fc - Frame context object
|
|
26
|
+
* @param {MouseEvent} e - Event object
|
|
27
|
+
*/
|
|
28
|
+
export function OnMouseUp_wysiwyg(this: import('../eventOrchestrator').default, fc: SunEditor.FrameContext, e: MouseEvent): Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* @this {EventManagerThis_handler_ww_mouse}
|
|
31
|
+
* @param {SunEditor.FrameContext} fc - Frame context object
|
|
32
|
+
* @param {MouseEvent} e - Event object
|
|
33
|
+
*/
|
|
34
|
+
export function OnClick_wysiwyg(this: import('../eventOrchestrator').default, fc: SunEditor.FrameContext, e: MouseEvent): Promise<boolean>;
|
|
35
|
+
/**
|
|
36
|
+
* @this {EventManagerThis_handler_ww_mouse}
|
|
37
|
+
* @param {SunEditor.FrameContext} fc - Frame context object
|
|
38
|
+
* @param {MouseEvent} e - Event object
|
|
39
|
+
*/
|
|
40
|
+
export function OnMouseMove_wysiwyg(this: import('../eventOrchestrator').default, fc: SunEditor.FrameContext, e: MouseEvent): boolean;
|
|
41
|
+
/**
|
|
42
|
+
* @this {EventManagerThis_handler_ww_mouse}
|
|
43
|
+
* @param {SunEditor.FrameContext} fc - Frame context object
|
|
44
|
+
* @param {MouseEvent} e - Event object
|
|
45
|
+
*/
|
|
46
|
+
export function OnMouseLeave_wysiwyg(this: import('../eventOrchestrator').default, fc: SunEditor.FrameContext, e: MouseEvent): Promise<void>;
|
|
47
|
+
export type EventManagerThis_handler_ww_mouse = import('../eventOrchestrator').default;
|