@syncfusion/ej2-richtexteditor 29.2.4-738301 → 29.2.4-760237
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/.eslintrc.json +262 -260
- package/aceconfig.js +17 -0
- package/blazorGlobalSrc/common/config.d.ts +63 -0
- package/blazorGlobalSrc/common/config.js +123 -0
- package/blazorGlobalSrc/common/constant.d.ts +117 -0
- package/blazorGlobalSrc/common/constant.js +23 -0
- package/blazorGlobalSrc/common/editor-styles.d.ts +1 -0
- package/blazorGlobalSrc/common/editor-styles.js +5 -0
- package/blazorGlobalSrc/common/index.d.ts +7 -0
- package/blazorGlobalSrc/common/index.js +9 -0
- package/blazorGlobalSrc/common/interface.d.ts +119 -0
- package/blazorGlobalSrc/common/interface.js +4 -0
- package/blazorGlobalSrc/common/types.d.ts +25 -0
- package/blazorGlobalSrc/common/types.js +4 -0
- package/blazorGlobalSrc/common/user-agent.d.ts +41 -0
- package/blazorGlobalSrc/common/user-agent.js +71 -0
- package/blazorGlobalSrc/common/util.d.ts +70 -0
- package/blazorGlobalSrc/common/util.js +222 -0
- package/blazorGlobalSrc/components.d.ts +8 -0
- package/blazorGlobalSrc/components.js +12 -0
- package/blazorGlobalSrc/editor-manager/base/classes.d.ts +31 -0
- package/blazorGlobalSrc/editor-manager/base/classes.js +28 -0
- package/blazorGlobalSrc/editor-manager/base/constant.d.ts +97 -0
- package/blazorGlobalSrc/editor-manager/base/constant.js +41 -0
- package/blazorGlobalSrc/editor-manager/base/editor-manager.d.ts +95 -0
- package/blazorGlobalSrc/editor-manager/base/editor-manager.js +339 -0
- package/blazorGlobalSrc/editor-manager/base/enum.d.ts +17 -0
- package/blazorGlobalSrc/editor-manager/base/enum.js +4 -0
- package/blazorGlobalSrc/editor-manager/base/interface.d.ts +263 -0
- package/blazorGlobalSrc/editor-manager/base/interface.js +4 -0
- package/blazorGlobalSrc/editor-manager/base/types.d.ts +7 -0
- package/blazorGlobalSrc/editor-manager/base/types.js +4 -0
- package/blazorGlobalSrc/editor-manager/base.d.ts +8 -0
- package/blazorGlobalSrc/editor-manager/base.js +10 -0
- package/blazorGlobalSrc/editor-manager/index.d.ts +5 -0
- package/blazorGlobalSrc/editor-manager/index.js +9 -0
- package/blazorGlobalSrc/editor-manager/plugin/alignments.d.ts +26 -0
- package/blazorGlobalSrc/editor-manager/plugin/alignments.js +105 -0
- package/blazorGlobalSrc/editor-manager/plugin/audio.d.ts +34 -0
- package/blazorGlobalSrc/editor-manager/plugin/audio.js +145 -0
- package/blazorGlobalSrc/editor-manager/plugin/clearformat-exec.d.ts +24 -0
- package/blazorGlobalSrc/editor-manager/plugin/clearformat-exec.js +47 -0
- package/blazorGlobalSrc/editor-manager/plugin/clearformat.d.ts +29 -0
- package/blazorGlobalSrc/editor-manager/plugin/clearformat.js +249 -0
- package/blazorGlobalSrc/editor-manager/plugin/dom-node.d.ts +351 -0
- package/blazorGlobalSrc/editor-manager/plugin/dom-node.js +737 -0
- package/blazorGlobalSrc/editor-manager/plugin/dom-tree.d.ts +84 -0
- package/blazorGlobalSrc/editor-manager/plugin/dom-tree.js +164 -0
- package/blazorGlobalSrc/editor-manager/plugin/emoji-picker-action.d.ts +10 -0
- package/blazorGlobalSrc/editor-manager/plugin/emoji-picker-action.js +86 -0
- package/blazorGlobalSrc/editor-manager/plugin/format-painter-actions.d.ts +47 -0
- package/blazorGlobalSrc/editor-manager/plugin/format-painter-actions.js +622 -0
- package/blazorGlobalSrc/editor-manager/plugin/formats.d.ts +43 -0
- package/blazorGlobalSrc/editor-manager/plugin/formats.js +597 -0
- package/blazorGlobalSrc/editor-manager/plugin/image.d.ts +48 -0
- package/blazorGlobalSrc/editor-manager/plugin/image.js +399 -0
- package/blazorGlobalSrc/editor-manager/plugin/indents.d.ts +24 -0
- package/blazorGlobalSrc/editor-manager/plugin/indents.js +106 -0
- package/blazorGlobalSrc/editor-manager/plugin/insert-methods.d.ts +48 -0
- package/blazorGlobalSrc/editor-manager/plugin/insert-methods.js +37 -0
- package/blazorGlobalSrc/editor-manager/plugin/insert-text.d.ts +22 -0
- package/blazorGlobalSrc/editor-manager/plugin/insert-text.js +36 -0
- package/blazorGlobalSrc/editor-manager/plugin/inserthtml-exec.d.ts +22 -0
- package/blazorGlobalSrc/editor-manager/plugin/inserthtml-exec.js +49 -0
- package/blazorGlobalSrc/editor-manager/plugin/inserthtml.d.ts +51 -0
- package/blazorGlobalSrc/editor-manager/plugin/inserthtml.js +985 -0
- package/blazorGlobalSrc/editor-manager/plugin/isformatted.d.ts +89 -0
- package/blazorGlobalSrc/editor-manager/plugin/isformatted.js +199 -0
- package/blazorGlobalSrc/editor-manager/plugin/link.d.ts +41 -0
- package/blazorGlobalSrc/editor-manager/plugin/link.js +550 -0
- package/blazorGlobalSrc/editor-manager/plugin/lists.d.ts +74 -0
- package/blazorGlobalSrc/editor-manager/plugin/lists.js +1503 -0
- package/blazorGlobalSrc/editor-manager/plugin/ms-word-clean-up.d.ts +61 -0
- package/blazorGlobalSrc/editor-manager/plugin/ms-word-clean-up.js +1136 -0
- package/blazorGlobalSrc/editor-manager/plugin/nodecutter.d.ts +64 -0
- package/blazorGlobalSrc/editor-manager/plugin/nodecutter.js +167 -0
- package/blazorGlobalSrc/editor-manager/plugin/selection-commands.d.ts +41 -0
- package/blazorGlobalSrc/editor-manager/plugin/selection-commands.js +1069 -0
- package/blazorGlobalSrc/editor-manager/plugin/selection-exec.d.ts +24 -0
- package/blazorGlobalSrc/editor-manager/plugin/selection-exec.js +49 -0
- package/blazorGlobalSrc/editor-manager/plugin/table-selection.d.ts +26 -0
- package/blazorGlobalSrc/editor-manager/plugin/table-selection.js +210 -0
- package/blazorGlobalSrc/editor-manager/plugin/table.d.ts +56 -0
- package/blazorGlobalSrc/editor-manager/plugin/table.js +1100 -0
- package/blazorGlobalSrc/editor-manager/plugin/toolbar-status.d.ts +39 -0
- package/blazorGlobalSrc/editor-manager/plugin/toolbar-status.js +384 -0
- package/blazorGlobalSrc/editor-manager/plugin/undo.d.ts +85 -0
- package/blazorGlobalSrc/editor-manager/plugin/undo.js +216 -0
- package/blazorGlobalSrc/editor-manager/plugin/video.d.ts +38 -0
- package/blazorGlobalSrc/editor-manager/plugin/video.js +311 -0
- package/blazorGlobalSrc/editor-manager/plugin.d.ts +27 -0
- package/blazorGlobalSrc/editor-manager/plugin.js +31 -0
- package/blazorGlobalSrc/global.d.ts +1 -0
- package/blazorGlobalSrc/global.js +3 -0
- package/blazorGlobalSrc/index.d.ts +8 -0
- package/blazorGlobalSrc/index.js +12 -0
- package/blazorGlobalSrc/markdown-parser/base/constant.d.ts +39 -0
- package/blazorGlobalSrc/markdown-parser/base/constant.js +10 -0
- package/blazorGlobalSrc/markdown-parser/base/interface.d.ts +169 -0
- package/blazorGlobalSrc/markdown-parser/base/interface.js +4 -0
- package/blazorGlobalSrc/markdown-parser/base/markdown-parser.d.ts +69 -0
- package/blazorGlobalSrc/markdown-parser/base/markdown-parser.js +87 -0
- package/blazorGlobalSrc/markdown-parser/base/types.d.ts +7 -0
- package/blazorGlobalSrc/markdown-parser/base/types.js +4 -0
- package/blazorGlobalSrc/markdown-parser/base.d.ts +7 -0
- package/blazorGlobalSrc/markdown-parser/base.js +9 -0
- package/blazorGlobalSrc/markdown-parser/index.d.ts +5 -0
- package/blazorGlobalSrc/markdown-parser/index.js +9 -0
- package/blazorGlobalSrc/markdown-parser/plugin/clearformat.d.ts +28 -0
- package/blazorGlobalSrc/markdown-parser/plugin/clearformat.js +110 -0
- package/blazorGlobalSrc/markdown-parser/plugin/formats.d.ts +32 -0
- package/blazorGlobalSrc/markdown-parser/plugin/formats.js +225 -0
- package/blazorGlobalSrc/markdown-parser/plugin/insert-text.d.ts +24 -0
- package/blazorGlobalSrc/markdown-parser/plugin/insert-text.js +49 -0
- package/blazorGlobalSrc/markdown-parser/plugin/link.d.ts +24 -0
- package/blazorGlobalSrc/markdown-parser/plugin/link.js +50 -0
- package/blazorGlobalSrc/markdown-parser/plugin/lists.d.ts +39 -0
- package/blazorGlobalSrc/markdown-parser/plugin/lists.js +462 -0
- package/blazorGlobalSrc/markdown-parser/plugin/markdown-selection.d.ts +140 -0
- package/blazorGlobalSrc/markdown-parser/plugin/markdown-selection.js +104 -0
- package/blazorGlobalSrc/markdown-parser/plugin/md-selection-formats.d.ts +31 -0
- package/blazorGlobalSrc/markdown-parser/plugin/md-selection-formats.js +335 -0
- package/blazorGlobalSrc/markdown-parser/plugin/table.d.ts +52 -0
- package/blazorGlobalSrc/markdown-parser/plugin/table.js +216 -0
- package/blazorGlobalSrc/markdown-parser/plugin/undo.d.ts +83 -0
- package/blazorGlobalSrc/markdown-parser/plugin/undo.js +147 -0
- package/blazorGlobalSrc/markdown-parser/plugin.d.ts +11 -0
- package/blazorGlobalSrc/markdown-parser/plugin.js +15 -0
- package/blazorGlobalSrc/rich-text-editor/actions/base-quick-toolbar.d.ts +114 -0
- package/blazorGlobalSrc/rich-text-editor/actions/base-quick-toolbar.js +465 -0
- package/blazorGlobalSrc/rich-text-editor/actions/base-toolbar.d.ts +58 -0
- package/blazorGlobalSrc/rich-text-editor/actions/base-toolbar.js +216 -0
- package/blazorGlobalSrc/rich-text-editor/actions/color-picker.d.ts +52 -0
- package/blazorGlobalSrc/rich-text-editor/actions/color-picker.js +241 -0
- package/blazorGlobalSrc/rich-text-editor/actions/count.d.ts +55 -0
- package/blazorGlobalSrc/rich-text-editor/actions/count.js +117 -0
- package/blazorGlobalSrc/rich-text-editor/actions/dropdown-buttons.d.ts +72 -0
- package/blazorGlobalSrc/rich-text-editor/actions/dropdown-buttons.js +552 -0
- package/blazorGlobalSrc/rich-text-editor/actions/emoji-picker.d.ts +51 -0
- package/blazorGlobalSrc/rich-text-editor/actions/emoji-picker.js +853 -0
- package/blazorGlobalSrc/rich-text-editor/actions/enter-key.d.ts +28 -0
- package/blazorGlobalSrc/rich-text-editor/actions/enter-key.js +821 -0
- package/blazorGlobalSrc/rich-text-editor/actions/execute-command-callback.d.ts +11 -0
- package/blazorGlobalSrc/rich-text-editor/actions/execute-command-callback.js +28 -0
- package/blazorGlobalSrc/rich-text-editor/actions/file-manager.d.ts +45 -0
- package/blazorGlobalSrc/rich-text-editor/actions/file-manager.js +249 -0
- package/blazorGlobalSrc/rich-text-editor/actions/format-painter.d.ts +25 -0
- package/blazorGlobalSrc/rich-text-editor/actions/format-painter.js +156 -0
- package/blazorGlobalSrc/rich-text-editor/actions/full-screen.d.ts +40 -0
- package/blazorGlobalSrc/rich-text-editor/actions/full-screen.js +148 -0
- package/blazorGlobalSrc/rich-text-editor/actions/html-attributes.d.ts +15 -0
- package/blazorGlobalSrc/rich-text-editor/actions/html-attributes.js +50 -0
- package/blazorGlobalSrc/rich-text-editor/actions/html-editor.d.ts +120 -0
- package/blazorGlobalSrc/rich-text-editor/actions/html-editor.js +1244 -0
- package/blazorGlobalSrc/rich-text-editor/actions/html-toolbar-status.d.ts +14 -0
- package/blazorGlobalSrc/rich-text-editor/actions/html-toolbar-status.js +47 -0
- package/blazorGlobalSrc/rich-text-editor/actions/import-export.d.ts +21 -0
- package/blazorGlobalSrc/rich-text-editor/actions/import-export.js +117 -0
- package/blazorGlobalSrc/rich-text-editor/actions/keyboard-model.d.ts +30 -0
- package/blazorGlobalSrc/rich-text-editor/actions/keyboard.d.ts +110 -0
- package/blazorGlobalSrc/rich-text-editor/actions/keyboard.js +163 -0
- package/blazorGlobalSrc/rich-text-editor/actions/markdown-editor.d.ts +66 -0
- package/blazorGlobalSrc/rich-text-editor/actions/markdown-editor.js +142 -0
- package/blazorGlobalSrc/rich-text-editor/actions/markdown-toolbar-status.d.ts +23 -0
- package/blazorGlobalSrc/rich-text-editor/actions/markdown-toolbar-status.js +124 -0
- package/blazorGlobalSrc/rich-text-editor/actions/paste-clean-up.d.ts +86 -0
- package/blazorGlobalSrc/rich-text-editor/actions/paste-clean-up.js +1071 -0
- package/blazorGlobalSrc/rich-text-editor/actions/quick-toolbar.d.ts +151 -0
- package/blazorGlobalSrc/rich-text-editor/actions/quick-toolbar.js +548 -0
- package/blazorGlobalSrc/rich-text-editor/actions/resize.d.ts +37 -0
- package/blazorGlobalSrc/rich-text-editor/actions/resize.js +188 -0
- package/blazorGlobalSrc/rich-text-editor/actions/sanitize-helper.d.ts +11 -0
- package/blazorGlobalSrc/rich-text-editor/actions/sanitize-helper.js +168 -0
- package/blazorGlobalSrc/rich-text-editor/actions/toolbar-action.d.ts +18 -0
- package/blazorGlobalSrc/rich-text-editor/actions/toolbar-action.js +76 -0
- package/blazorGlobalSrc/rich-text-editor/actions/toolbar.d.ts +185 -0
- package/blazorGlobalSrc/rich-text-editor/actions/toolbar.js +512 -0
- package/blazorGlobalSrc/rich-text-editor/actions/xhtml-validation.d.ts +25 -0
- package/blazorGlobalSrc/rich-text-editor/actions/xhtml-validation.js +166 -0
- package/blazorGlobalSrc/rich-text-editor/actions.d.ts +26 -0
- package/blazorGlobalSrc/rich-text-editor/actions.js +30 -0
- package/blazorGlobalSrc/rich-text-editor/audio.d.ts +4 -0
- package/blazorGlobalSrc/rich-text-editor/audio.js +8 -0
- package/blazorGlobalSrc/rich-text-editor/base/classes.d.ts +628 -0
- package/blazorGlobalSrc/rich-text-editor/base/classes.js +129 -0
- package/blazorGlobalSrc/rich-text-editor/base/constant.d.ts +808 -0
- package/blazorGlobalSrc/rich-text-editor/base/constant.js +334 -0
- package/blazorGlobalSrc/rich-text-editor/base/enum.d.ts +81 -0
- package/blazorGlobalSrc/rich-text-editor/base/enum.js +37 -0
- package/blazorGlobalSrc/rich-text-editor/base/interface.d.ts +1577 -0
- package/blazorGlobalSrc/rich-text-editor/base/interface.js +194 -0
- package/blazorGlobalSrc/rich-text-editor/base/rich-text-editor-model.d.ts +1032 -0
- package/blazorGlobalSrc/rich-text-editor/base/rich-text-editor.d.ts +1699 -0
- package/blazorGlobalSrc/rich-text-editor/base/rich-text-editor.js +2645 -0
- package/blazorGlobalSrc/rich-text-editor/base/util.d.ts +212 -0
- package/blazorGlobalSrc/rich-text-editor/base/util.js +610 -0
- package/blazorGlobalSrc/rich-text-editor/base.d.ts +10 -0
- package/blazorGlobalSrc/rich-text-editor/base.js +13 -0
- package/blazorGlobalSrc/rich-text-editor/formatter/formatter.d.ts +87 -0
- package/blazorGlobalSrc/rich-text-editor/formatter/formatter.js +223 -0
- package/blazorGlobalSrc/rich-text-editor/formatter/html-formatter.d.ts +34 -0
- package/blazorGlobalSrc/rich-text-editor/formatter/html-formatter.js +44 -0
- package/blazorGlobalSrc/rich-text-editor/formatter/markdown-formatter.d.ts +39 -0
- package/blazorGlobalSrc/rich-text-editor/formatter/markdown-formatter.js +48 -0
- package/blazorGlobalSrc/rich-text-editor/formatter.d.ts +6 -0
- package/blazorGlobalSrc/rich-text-editor/formatter.js +10 -0
- package/blazorGlobalSrc/rich-text-editor/html-editor.d.ts +4 -0
- package/blazorGlobalSrc/rich-text-editor/html-editor.js +8 -0
- package/blazorGlobalSrc/rich-text-editor/image.d.ts +4 -0
- package/blazorGlobalSrc/rich-text-editor/image.js +8 -0
- package/blazorGlobalSrc/rich-text-editor/index.d.ts +9 -0
- package/blazorGlobalSrc/rich-text-editor/index.js +12 -0
- package/blazorGlobalSrc/rich-text-editor/link.d.ts +4 -0
- package/blazorGlobalSrc/rich-text-editor/link.js +8 -0
- package/blazorGlobalSrc/rich-text-editor/markdown-editor.d.ts +4 -0
- package/blazorGlobalSrc/rich-text-editor/markdown-editor.js +8 -0
- package/blazorGlobalSrc/rich-text-editor/models/default-locale.d.ts +25 -0
- package/blazorGlobalSrc/rich-text-editor/models/default-locale.js +391 -0
- package/blazorGlobalSrc/rich-text-editor/models/iframe-settings-model.d.ts +68 -0
- package/blazorGlobalSrc/rich-text-editor/models/iframe-settings.d.ts +61 -0
- package/blazorGlobalSrc/rich-text-editor/models/iframe-settings.js +60 -0
- package/blazorGlobalSrc/rich-text-editor/models/inline-mode-model.d.ts +24 -0
- package/blazorGlobalSrc/rich-text-editor/models/inline-mode.d.ts +20 -0
- package/blazorGlobalSrc/rich-text-editor/models/inline-mode.js +37 -0
- package/blazorGlobalSrc/rich-text-editor/models/items.d.ts +36 -0
- package/blazorGlobalSrc/rich-text-editor/models/items.js +1011 -0
- package/blazorGlobalSrc/rich-text-editor/models/models.d.ts +7 -0
- package/blazorGlobalSrc/rich-text-editor/models/models.js +4 -0
- package/blazorGlobalSrc/rich-text-editor/models/slash-menu-settings-model.d.ts +40 -0
- package/blazorGlobalSrc/rich-text-editor/models/slash-menu-settings.d.ts +50 -0
- package/blazorGlobalSrc/rich-text-editor/models/slash-menu-settings.js +143 -0
- package/blazorGlobalSrc/rich-text-editor/models/toolbar-settings-model.d.ts +1130 -0
- package/blazorGlobalSrc/rich-text-editor/models/toolbar-settings.d.ts +992 -0
- package/blazorGlobalSrc/rich-text-editor/models/toolbar-settings.js +510 -0
- package/blazorGlobalSrc/rich-text-editor/models.d.ts +4 -0
- package/blazorGlobalSrc/rich-text-editor/models.js +4 -0
- package/blazorGlobalSrc/rich-text-editor/quick-toolbar.d.ts +4 -0
- package/blazorGlobalSrc/rich-text-editor/quick-toolbar.js +8 -0
- package/blazorGlobalSrc/rich-text-editor/renderer/audio-module.d.ts +82 -0
- package/blazorGlobalSrc/rich-text-editor/renderer/audio-module.js +886 -0
- package/blazorGlobalSrc/rich-text-editor/renderer/content-renderer.d.ts +65 -0
- package/blazorGlobalSrc/rich-text-editor/renderer/content-renderer.js +49 -0
- package/blazorGlobalSrc/rich-text-editor/renderer/dialog-renderer.d.ts +39 -0
- package/blazorGlobalSrc/rich-text-editor/renderer/dialog-renderer.js +111 -0
- package/blazorGlobalSrc/rich-text-editor/renderer/iframe-content-renderer.d.ts +33 -0
- package/blazorGlobalSrc/rich-text-editor/renderer/iframe-content-renderer.js +101 -0
- package/blazorGlobalSrc/rich-text-editor/renderer/image-module.d.ts +199 -0
- package/blazorGlobalSrc/rich-text-editor/renderer/image-module.js +2494 -0
- package/blazorGlobalSrc/rich-text-editor/renderer/link-module.d.ts +63 -0
- package/blazorGlobalSrc/rich-text-editor/renderer/link-module.js +596 -0
- package/blazorGlobalSrc/rich-text-editor/renderer/markdown-renderer.d.ts +65 -0
- package/blazorGlobalSrc/rich-text-editor/renderer/markdown-renderer.js +38 -0
- package/blazorGlobalSrc/rich-text-editor/renderer/popup-renderer.d.ts +54 -0
- package/blazorGlobalSrc/rich-text-editor/renderer/popup-renderer.js +35 -0
- package/blazorGlobalSrc/rich-text-editor/renderer/render.d.ts +46 -0
- package/blazorGlobalSrc/rich-text-editor/renderer/render.js +70 -0
- package/blazorGlobalSrc/rich-text-editor/renderer/slash-menu.d.ts +20 -0
- package/blazorGlobalSrc/rich-text-editor/renderer/slash-menu.js +224 -0
- package/blazorGlobalSrc/rich-text-editor/renderer/table-module.d.ts +155 -0
- package/blazorGlobalSrc/rich-text-editor/renderer/table-module.js +2206 -0
- package/blazorGlobalSrc/rich-text-editor/renderer/toolbar-renderer.d.ts +131 -0
- package/blazorGlobalSrc/rich-text-editor/renderer/toolbar-renderer.js +747 -0
- package/blazorGlobalSrc/rich-text-editor/renderer/video-module.d.ts +120 -0
- package/blazorGlobalSrc/rich-text-editor/renderer/video-module.js +1507 -0
- package/blazorGlobalSrc/rich-text-editor/renderer/view-source.d.ts +74 -0
- package/blazorGlobalSrc/rich-text-editor/renderer/view-source.js +225 -0
- package/blazorGlobalSrc/rich-text-editor/renderer.d.ts +17 -0
- package/blazorGlobalSrc/rich-text-editor/renderer.js +21 -0
- package/blazorGlobalSrc/rich-text-editor/services/renderer-factory.d.ts +33 -0
- package/blazorGlobalSrc/rich-text-editor/services/renderer-factory.js +29 -0
- package/blazorGlobalSrc/rich-text-editor/services/service-locator.d.ts +29 -0
- package/blazorGlobalSrc/rich-text-editor/services/service-locator.js +25 -0
- package/blazorGlobalSrc/rich-text-editor/services.d.ts +5 -0
- package/blazorGlobalSrc/rich-text-editor/services.js +9 -0
- package/blazorGlobalSrc/rich-text-editor/toolbar.d.ts +4 -0
- package/blazorGlobalSrc/rich-text-editor/toolbar.js +8 -0
- package/blazorGlobalSrc/rich-text-editor/video.d.ts +4 -0
- package/blazorGlobalSrc/rich-text-editor/video.js +8 -0
- package/blazorGlobalSrc/rich-text-editor.d.ts +4 -0
- package/blazorGlobalSrc/rich-text-editor.js +8 -0
- package/blazorGlobalSrc/selection/index.d.ts +4 -0
- package/blazorGlobalSrc/selection/index.js +8 -0
- package/blazorGlobalSrc/selection/selection.d.ts +244 -0
- package/blazorGlobalSrc/selection/selection.js +309 -0
- package/dist/ej2-richtexteditor.umd.min.js +1 -1
- package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es2015.js +6 -4
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +6 -4
- package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
- package/helpers/e2e/index.d.ts +1 -0
- package/helpers/e2e/index.js +8 -0
- package/helpers/e2e/rte-helper.d.ts +79 -0
- package/helpers/e2e/rte-helper.js +81 -0
- package/package.json +1 -1
- package/src/editor-manager/plugin/dom-tree.js +6 -4
- package/src/global.d.ts +1 -0
- package/styles/bds-lite.css +7 -17
- package/styles/bds.css +11 -22
- package/styles/bootstrap-dark-lite.css +3 -13
- package/styles/bootstrap-dark.css +3 -14
- package/styles/bootstrap-lite.css +3 -13
- package/styles/bootstrap.css +3 -14
- package/styles/bootstrap4-lite.css +3 -13
- package/styles/bootstrap4.css +3 -14
- package/styles/bootstrap5-dark-lite.css +3 -13
- package/styles/bootstrap5-dark.css +3 -14
- package/styles/bootstrap5-lite.css +3 -13
- package/styles/bootstrap5.3-lite.css +3 -13
- package/styles/bootstrap5.3.css +3 -14
- package/styles/bootstrap5.css +3 -14
- package/styles/fabric-dark-lite.css +3 -13
- package/styles/fabric-dark.css +3 -14
- package/styles/fabric-lite.css +3 -13
- package/styles/fabric.css +3 -14
- package/styles/fluent-dark-lite.css +3 -13
- package/styles/fluent-dark.css +3 -14
- package/styles/fluent-lite.css +3 -13
- package/styles/fluent.css +3 -14
- package/styles/fluent2-lite.css +3 -13
- package/styles/fluent2.css +3 -14
- package/styles/highcontrast-light-lite.css +3 -13
- package/styles/highcontrast-light.css +3 -14
- package/styles/highcontrast-lite.css +3 -13
- package/styles/highcontrast.css +3 -14
- package/styles/material-dark-lite.css +3 -13
- package/styles/material-dark.css +3 -14
- package/styles/material-lite.css +3 -13
- package/styles/material.css +3 -14
- package/styles/material3-dark-lite.css +3 -13
- package/styles/material3-dark.css +3 -14
- package/styles/material3-lite.css +3 -13
- package/styles/material3.css +3 -14
- package/styles/rich-text-editor/_bds-definition.scss +2 -2
- package/styles/rich-text-editor/_bigger.scss +0 -1
- package/styles/rich-text-editor/_layout.scss +0 -9
- package/styles/rich-text-editor/_theme.scss +3 -0
- package/styles/rich-text-editor/bds.css +11 -22
- package/styles/rich-text-editor/bootstrap-dark.css +3 -14
- package/styles/rich-text-editor/bootstrap.css +3 -14
- package/styles/rich-text-editor/bootstrap4.css +3 -14
- package/styles/rich-text-editor/bootstrap5-dark.css +3 -14
- package/styles/rich-text-editor/bootstrap5.3.css +3 -14
- package/styles/rich-text-editor/bootstrap5.css +3 -14
- package/styles/rich-text-editor/fabric-dark.css +3 -14
- package/styles/rich-text-editor/fabric.css +3 -14
- package/styles/rich-text-editor/fluent-dark.css +3 -14
- package/styles/rich-text-editor/fluent.css +3 -14
- package/styles/rich-text-editor/fluent2.css +3 -14
- package/styles/rich-text-editor/highcontrast-light.css +3 -14
- package/styles/rich-text-editor/highcontrast.css +3 -14
- package/styles/rich-text-editor/material-dark.css +3 -14
- package/styles/rich-text-editor/material.css +3 -14
- package/styles/rich-text-editor/material3-dark.css +3 -14
- package/styles/rich-text-editor/material3.css +3 -14
- package/styles/rich-text-editor/tailwind-dark.css +3 -14
- package/styles/rich-text-editor/tailwind.css +3 -14
- package/styles/rich-text-editor/tailwind3.css +3 -14
- package/styles/tailwind-dark-lite.css +3 -13
- package/styles/tailwind-dark.css +3 -14
- package/styles/tailwind-lite.css +3 -13
- package/styles/tailwind.css +3 -14
- package/styles/tailwind3-lite.css +3 -13
- package/styles/tailwind3.css +3 -14
- package/tslint.json +111 -0
|
@@ -0,0 +1,1577 @@
|
|
|
1
|
+
import { Component, Observer, L10n, KeyboardEventArgs, EmitType } from '@syncfusion/ej2-base';
|
|
2
|
+
import { ItemModel, OverflowMode } from '@syncfusion/ej2-navigations';
|
|
3
|
+
import { ItemModel as DropDownItemModel, DropDownButton } from '@syncfusion/ej2-splitbuttons';
|
|
4
|
+
import { ToolbarType, RenderType, ImageInputSource, DialogType } from './enum';
|
|
5
|
+
import { Toolbar } from '../actions/toolbar';
|
|
6
|
+
import { UndoRedoManager } from '../../editor-manager/plugin/undo';
|
|
7
|
+
import { ClickEventArgs } from '@syncfusion/ej2-navigations';
|
|
8
|
+
import { BaseToolbar } from '../actions/base-toolbar';
|
|
9
|
+
import { BaseQuickToolbar } from '../actions/base-quick-toolbar';
|
|
10
|
+
import { NodeSelection } from '../../selection/selection';
|
|
11
|
+
import { EditorMode, EnterKey, ShiftEnterKey } from './../../common/types';
|
|
12
|
+
import { MarkdownSelection } from './../../markdown-parser/plugin/markdown-selection';
|
|
13
|
+
import { ToolbarSettingsModel, IFrameSettingsModel, ImageSettingsModel, AudioSettingsModel, VideoSettingsModel, TableSettingsModel, FormatPainterSettingsModel, EmojiSettingsModel, ImportWordModel, ExportWordModel, ExportPdfModel } from '../models/models';
|
|
14
|
+
import { QuickToolbarSettingsModel, InlineModeModel, PasteCleanupSettingsModel, FileManagerSettingsModel } from '../models/models';
|
|
15
|
+
import { Count } from '../actions/count';
|
|
16
|
+
import { ColorPicker, ColorPickerEventArgs, ColorPickerModel, FileInfo } from '@syncfusion/ej2-inputs';
|
|
17
|
+
import { Link } from '../renderer/link-module';
|
|
18
|
+
import { Image } from '../renderer/image-module';
|
|
19
|
+
import { Audio } from '../renderer/audio-module';
|
|
20
|
+
import { Video } from '../renderer/video-module';
|
|
21
|
+
import { Table } from '../renderer/table-module';
|
|
22
|
+
import { ServiceLocator } from '../services/service-locator';
|
|
23
|
+
import { UndoRedoCommands } from '../../markdown-parser/plugin/undo';
|
|
24
|
+
import { MDSelectionFormats } from '../../markdown-parser/plugin/md-selection-formats';
|
|
25
|
+
import { QuickToolbar } from '../actions/quick-toolbar';
|
|
26
|
+
import { HtmlEditor } from '../actions/html-editor';
|
|
27
|
+
import { MarkdownEditor } from '../actions/markdown-editor';
|
|
28
|
+
import { FullScreen } from '../actions/full-screen';
|
|
29
|
+
import { DropDownButtons } from '../actions/dropdown-buttons';
|
|
30
|
+
import { IToolbarStatus } from '../../common/interface';
|
|
31
|
+
import { KeyboardEvents } from '../actions/keyboard';
|
|
32
|
+
import { ViewSource } from '../renderer/view-source';
|
|
33
|
+
import { PasteCleanup } from '../actions/paste-clean-up';
|
|
34
|
+
import { Popup } from '@syncfusion/ej2-popups';
|
|
35
|
+
import { Resize } from '../actions/resize';
|
|
36
|
+
import { FileManager } from '../actions/file-manager';
|
|
37
|
+
import { NodeCutter, DOMNode, IFormatPainterEditor } from '../../editor-manager';
|
|
38
|
+
import { EnterKeyAction } from '../actions/enter-key';
|
|
39
|
+
import { EmojiPicker } from '../actions/emoji-picker';
|
|
40
|
+
import { SlashMenuSettingsModel } from '../models/slash-menu-settings-model';
|
|
41
|
+
import { CustomUserAgentData } from '../../common/user-agent';
|
|
42
|
+
/**
|
|
43
|
+
* Specifies Rich Text Editor interfaces.
|
|
44
|
+
*
|
|
45
|
+
* @hidden
|
|
46
|
+
* @deprecated
|
|
47
|
+
*/
|
|
48
|
+
export interface IRichTextEditor extends Component<HTMLElement> {
|
|
49
|
+
/**
|
|
50
|
+
* Provides data about the user agent, platform and then whether its a mobile device.
|
|
51
|
+
*
|
|
52
|
+
* @hidden
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
userAgentData: CustomUserAgentData;
|
|
56
|
+
/**
|
|
57
|
+
* Specifies the root container of the Rich Text Editor component.
|
|
58
|
+
*
|
|
59
|
+
**/
|
|
60
|
+
rootContainer: HTMLElement;
|
|
61
|
+
toolbarSettings?: ToolbarSettingsModel;
|
|
62
|
+
quickToolbarSettings?: QuickToolbarSettingsModel;
|
|
63
|
+
iframeSettings?: IFrameSettingsModel;
|
|
64
|
+
/**
|
|
65
|
+
* Configures the image settings of the RTE.
|
|
66
|
+
*
|
|
67
|
+
* @default
|
|
68
|
+
* {
|
|
69
|
+
* allowedTypes: ['jpeg', 'jpg', 'png'],
|
|
70
|
+
* display: 'inline', width: '200px', saveFormat: 'Base64',
|
|
71
|
+
* height: '200px', saveUrl:null, path: null, resize: false
|
|
72
|
+
* }
|
|
73
|
+
*/
|
|
74
|
+
insertImageSettings: ImageSettingsModel;
|
|
75
|
+
/**
|
|
76
|
+
* Configures the import word of the RTE.
|
|
77
|
+
*
|
|
78
|
+
* @default
|
|
79
|
+
* {
|
|
80
|
+
* serviceUrl:null,
|
|
81
|
+
* }
|
|
82
|
+
*/
|
|
83
|
+
importWord: ImportWordModel;
|
|
84
|
+
/**
|
|
85
|
+
* Configures the export word of the RTE.
|
|
86
|
+
*
|
|
87
|
+
* @default
|
|
88
|
+
* {
|
|
89
|
+
* serviceUrl:null, fileName:Sample.docx, stylesheet: null,
|
|
90
|
+
* }
|
|
91
|
+
*/
|
|
92
|
+
exportWord: ExportWordModel;
|
|
93
|
+
/**
|
|
94
|
+
* Configures the export pdf of the RTE.
|
|
95
|
+
*
|
|
96
|
+
* @default
|
|
97
|
+
* {
|
|
98
|
+
* serviceUrl:null, fileName:Sample.pdf, stylesheet: null,
|
|
99
|
+
* }
|
|
100
|
+
*/
|
|
101
|
+
exportPdf: ExportPdfModel;
|
|
102
|
+
/**
|
|
103
|
+
* Configures the image settings of the RTE.
|
|
104
|
+
*
|
|
105
|
+
* @default
|
|
106
|
+
* {
|
|
107
|
+
* allowedTypes: ['wav', 'mp3', 'm4a','wma'],
|
|
108
|
+
* layoutOption: 'Inline', saveFormat: 'Blob',
|
|
109
|
+
* saveUrl:null, path: null,
|
|
110
|
+
* }
|
|
111
|
+
*/
|
|
112
|
+
insertAudioSettings: AudioSettingsModel;
|
|
113
|
+
/**
|
|
114
|
+
* Configures the video settings of the RTE.
|
|
115
|
+
*
|
|
116
|
+
* @default
|
|
117
|
+
* {
|
|
118
|
+
* allowedTypes: ['mp4', 'mov', 'wmv', 'avi'],
|
|
119
|
+
* layoutOption: 'Inline', width: '200px', saveFormat: 'Blob',
|
|
120
|
+
* height: '200px', saveUrl:null, path: null, resize: false
|
|
121
|
+
* }
|
|
122
|
+
*/
|
|
123
|
+
insertVideoSettings: VideoSettingsModel;
|
|
124
|
+
fileManagerSettings: FileManagerSettingsModel;
|
|
125
|
+
tableSettings: TableSettingsModel;
|
|
126
|
+
pasteCleanupSettings: PasteCleanupSettingsModel;
|
|
127
|
+
/**
|
|
128
|
+
* Configure the format painter settings of the RTE.
|
|
129
|
+
*
|
|
130
|
+
* @default
|
|
131
|
+
* {
|
|
132
|
+
* allowedFormats: 'b; em; font; sub; sup; kbd; i; s; u; code; strong; span; p; div; h1; h2; h3; h4; h5; h6; blockquote; table; thead; tbody; tr; td; th; ol; ul; li; pre;',
|
|
133
|
+
* deniedFormats: null
|
|
134
|
+
* }
|
|
135
|
+
*/
|
|
136
|
+
formatPainterSettings: FormatPainterSettingsModel;
|
|
137
|
+
emojiPickerSettings: EmojiSettingsModel;
|
|
138
|
+
floatingToolbarOffset?: number;
|
|
139
|
+
showCharCount?: boolean;
|
|
140
|
+
enableTabKey?: boolean;
|
|
141
|
+
maxLength?: number;
|
|
142
|
+
inlineMode?: InlineModeModel;
|
|
143
|
+
width?: string | number;
|
|
144
|
+
height?: string | number;
|
|
145
|
+
fontFamily?: IFontProperties;
|
|
146
|
+
fontSize?: IFontProperties;
|
|
147
|
+
fontColor?: IColorProperties;
|
|
148
|
+
numberFormatList?: INumberFormatListPropertiesProperties;
|
|
149
|
+
bulletFormatList?: IBulletFormatListPropertiesProperties;
|
|
150
|
+
backgroundColor?: IColorProperties;
|
|
151
|
+
format?: IFormatProperties;
|
|
152
|
+
value?: string;
|
|
153
|
+
saveInterval?: number;
|
|
154
|
+
showTooltip?: boolean;
|
|
155
|
+
isBlur?: boolean;
|
|
156
|
+
isRTE?: boolean;
|
|
157
|
+
contentModule?: IRenderer;
|
|
158
|
+
enabled?: boolean;
|
|
159
|
+
readonly?: boolean;
|
|
160
|
+
placeholder?: string;
|
|
161
|
+
cssClass?: string;
|
|
162
|
+
valueContainer?: HTMLTextAreaElement;
|
|
163
|
+
editorMode?: EditorMode;
|
|
164
|
+
enableHtmlEncode?: boolean;
|
|
165
|
+
formatter?: IFormatter;
|
|
166
|
+
inputElement?: HTMLElement;
|
|
167
|
+
toolbarModule?: Toolbar;
|
|
168
|
+
tableModule?: Table;
|
|
169
|
+
fileManagerModule?: FileManager;
|
|
170
|
+
sourceCodeModule?: ViewSource;
|
|
171
|
+
getToolbarElement?(): Element;
|
|
172
|
+
fullScreenModule?: FullScreen;
|
|
173
|
+
resizeModule?: Resize;
|
|
174
|
+
refreshUI?(): void;
|
|
175
|
+
enterKeyModule?: EnterKeyAction;
|
|
176
|
+
enterKey?: EnterKey;
|
|
177
|
+
shiftEnterKey?: ShiftEnterKey;
|
|
178
|
+
audioModule?: Audio;
|
|
179
|
+
videoModule?: Video;
|
|
180
|
+
pasteCleanupModule?: PasteCleanup;
|
|
181
|
+
undoRedoModule?: UndoRedoManager;
|
|
182
|
+
quickToolbarModule?: QuickToolbar;
|
|
183
|
+
undoRedoSteps?: number;
|
|
184
|
+
markdownEditorModule: MarkdownEditor;
|
|
185
|
+
htmlEditorModule: HtmlEditor;
|
|
186
|
+
countModule?: Count;
|
|
187
|
+
formatPainterModule?: IFormatPainter;
|
|
188
|
+
emojiPickerModule?: EmojiPicker;
|
|
189
|
+
serviceLocator?: ServiceLocator;
|
|
190
|
+
setEnable?(): void;
|
|
191
|
+
setReadOnly?(isInit?: boolean): void;
|
|
192
|
+
setPlaceHolder?(): void;
|
|
193
|
+
updateValue?(): void;
|
|
194
|
+
print(): void;
|
|
195
|
+
getContent?(): Element;
|
|
196
|
+
setRTEContent?(value: Element): void;
|
|
197
|
+
ensureModuleInjected(module: object): boolean;
|
|
198
|
+
getToolbar(): HTMLElement;
|
|
199
|
+
getTBarItemsIndex?(items: string[]): number[];
|
|
200
|
+
getCollection?(items: string | string[]): string[];
|
|
201
|
+
getRange(): Range;
|
|
202
|
+
getID(): string;
|
|
203
|
+
getCssClass(isSpace?: boolean): string;
|
|
204
|
+
getText(): string;
|
|
205
|
+
updateValueData?(): void;
|
|
206
|
+
getBaseToolbarObject(): BaseToolbar;
|
|
207
|
+
keyConfig?: {
|
|
208
|
+
[key: string]: string;
|
|
209
|
+
};
|
|
210
|
+
undoRedoTimer?: number;
|
|
211
|
+
sourceCode?(): void;
|
|
212
|
+
enableToolbarItem?(items: string | string[]): void;
|
|
213
|
+
disableToolbarItem?(items: string | string[]): void;
|
|
214
|
+
wireScrollElementsEvents?(): void;
|
|
215
|
+
unWireScrollElementsEvents?(): void;
|
|
216
|
+
keyDown?(e?: KeyboardEvent): void;
|
|
217
|
+
keyboardModule?: KeyboardEvents;
|
|
218
|
+
onCopy?(): void;
|
|
219
|
+
onCut?(): void;
|
|
220
|
+
onPaste?(): void;
|
|
221
|
+
clipboardAction?: Function;
|
|
222
|
+
localeObj?: L10n;
|
|
223
|
+
invokeChangeEvent?(): void;
|
|
224
|
+
addAudioVideoWrapper?(): void;
|
|
225
|
+
preventDefaultResize?(e?: FocusEvent | MouseEvent): void;
|
|
226
|
+
autoResize?(): void;
|
|
227
|
+
executeCommand?(commandName: CommandName, value?: string | HTMLElement): void;
|
|
228
|
+
serializeValue?(value: string): string;
|
|
229
|
+
sanitizeHtml?(value: string): string;
|
|
230
|
+
enableAutoUrl?: boolean;
|
|
231
|
+
enableXhtml?: boolean;
|
|
232
|
+
enableHtmlSanitizer?: boolean;
|
|
233
|
+
getInsertImgMaxWidth?(): string | number;
|
|
234
|
+
getInsertVidMaxWidth?(): string | number;
|
|
235
|
+
getSelection(): string;
|
|
236
|
+
currentTarget: HTMLElement;
|
|
237
|
+
focusIn(): void;
|
|
238
|
+
showEmojiPicker?(x?: number, y?: number): void;
|
|
239
|
+
addAnchorAriaLabel?(value: string): string;
|
|
240
|
+
autoSaveOnIdle: boolean;
|
|
241
|
+
slashMenuSettings: SlashMenuSettingsModel;
|
|
242
|
+
showDialog(type: DialogType): void;
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* @deprecated
|
|
246
|
+
*/
|
|
247
|
+
export interface IRenderer {
|
|
248
|
+
linkQTBar?: BaseQuickToolbar;
|
|
249
|
+
imageQTBar?: BaseQuickToolbar;
|
|
250
|
+
audioQTBar?: BaseQuickToolbar;
|
|
251
|
+
videoQTBar?: BaseQuickToolbar;
|
|
252
|
+
tableQTBar?: BaseQuickToolbar;
|
|
253
|
+
textQTBar?: BaseQuickToolbar;
|
|
254
|
+
inlineQTBar?: BaseQuickToolbar;
|
|
255
|
+
renderPanel?(): void;
|
|
256
|
+
setPanel?(panel: Element): void;
|
|
257
|
+
/**
|
|
258
|
+
* Retrieves the parent element of the content editable div.
|
|
259
|
+
* If the editor is in iframe mode, it returns the `iframe` element.
|
|
260
|
+
* Otherwise, it returns the parent element with the class `e-rte-content`.
|
|
261
|
+
*
|
|
262
|
+
* @returns {Element} - The parent element of the content editable div or the `iframe` element.
|
|
263
|
+
*/
|
|
264
|
+
getPanel?(): Element;
|
|
265
|
+
/**
|
|
266
|
+
* Retrieves the content editable `div` element of the RichTextEditor.
|
|
267
|
+
* If the editor is in iframe mode, it returns the `body` element of the iframe.
|
|
268
|
+
*
|
|
269
|
+
*/
|
|
270
|
+
getEditPanel?(): Element;
|
|
271
|
+
getText?(): string;
|
|
272
|
+
getDocument?(): Document;
|
|
273
|
+
addEventListener?(): void;
|
|
274
|
+
removeEventListener?(): void;
|
|
275
|
+
renderToolbar?(args: IToolbarOptions): void;
|
|
276
|
+
renderPopup?(args: BaseQuickToolbar): void;
|
|
277
|
+
renderDropDownButton?(args: DropDownItemModel): DropDownButton;
|
|
278
|
+
renderColorPicker?(args: IColorPickerModel, item?: string, toobarType?: string): ColorPicker;
|
|
279
|
+
renderColorPickerDropDown?(args?: IColorPickerModel, item?: string, colorPicker?: ColorPicker, defaultColor?: string, toobarType?: string): DropDownButton;
|
|
280
|
+
renderListDropDown?(args: IDropDownModel): DropDownButton;
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* Provides information about a notification event in the rich text editor.
|
|
284
|
+
*/
|
|
285
|
+
export interface NotifyArgs {
|
|
286
|
+
module?: string;
|
|
287
|
+
args?: KeyboardEvent | MouseEvent | ClickEventArgs | ClipboardEvent | TouchEvent;
|
|
288
|
+
cancel?: boolean;
|
|
289
|
+
requestType?: string;
|
|
290
|
+
enable?: boolean;
|
|
291
|
+
properties?: object;
|
|
292
|
+
selection?: NodeSelection;
|
|
293
|
+
selfLink?: Link;
|
|
294
|
+
link?: HTMLInputElement;
|
|
295
|
+
selectNode?: Node[];
|
|
296
|
+
selectParent?: Node[];
|
|
297
|
+
url?: string;
|
|
298
|
+
text?: string;
|
|
299
|
+
isWordPaste?: boolean;
|
|
300
|
+
title?: string;
|
|
301
|
+
target?: string;
|
|
302
|
+
member?: string;
|
|
303
|
+
/** Specifies the name of the notifier handling the event. */
|
|
304
|
+
name?: string;
|
|
305
|
+
/** Represents the range of text selection involved in the notification. */
|
|
306
|
+
range?: Range;
|
|
307
|
+
/** Describes the action associated with the notification event. */
|
|
308
|
+
action?: string;
|
|
309
|
+
callBack?(args?: string | IImageCommandsArgs, cropImageData?: {
|
|
310
|
+
[key: string]: string | boolean | number;
|
|
311
|
+
}[], pasteTableSource?: string): void;
|
|
312
|
+
file?: Blob;
|
|
313
|
+
insertElement?: Element;
|
|
314
|
+
touchData?: ITouchData;
|
|
315
|
+
allowedStylePropertiesArray?: string[];
|
|
316
|
+
isPlainPaste?: boolean;
|
|
317
|
+
formatPainterSettings?: FormatPainterSettingsModel;
|
|
318
|
+
emojiPickerSettings?: EmojiSettingsModel;
|
|
319
|
+
ariaLabel?: string;
|
|
320
|
+
/**
|
|
321
|
+
* Defines the source of the Table content.
|
|
322
|
+
*
|
|
323
|
+
* @private
|
|
324
|
+
*/
|
|
325
|
+
pasteTableSource?: string;
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* Provides information about the current and previous cssClass property .
|
|
329
|
+
*/
|
|
330
|
+
export interface ICssClassArgs {
|
|
331
|
+
cssClass?: string;
|
|
332
|
+
oldCssClass?: string;
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* @deprecated
|
|
336
|
+
*/
|
|
337
|
+
export interface IItemCollectionArgs {
|
|
338
|
+
/** Defines the instance of the current selection */
|
|
339
|
+
selection?: NodeSelection;
|
|
340
|
+
/** Defines the HTML elements of currently selected content */
|
|
341
|
+
selectNode?: Node[];
|
|
342
|
+
/** Defines the parent HTML elements of current selection */
|
|
343
|
+
selectParent?: Node[];
|
|
344
|
+
/** Defines the URL action details for link element */
|
|
345
|
+
url?: string;
|
|
346
|
+
/** Defines the Display Text action details for link element */
|
|
347
|
+
text?: string;
|
|
348
|
+
/** Defines the title of the link action details */
|
|
349
|
+
title?: string;
|
|
350
|
+
/** Defines the target as string for link element */
|
|
351
|
+
target?: string;
|
|
352
|
+
/** Defines the element to be inserted */
|
|
353
|
+
insertElement?: Element;
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* Provides information about a TouchData.
|
|
357
|
+
*/
|
|
358
|
+
export interface ITouchData {
|
|
359
|
+
prevClientX?: number;
|
|
360
|
+
prevClientY?: number;
|
|
361
|
+
clientX?: number;
|
|
362
|
+
clientY?: number;
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* @hidden
|
|
366
|
+
* @deprecated
|
|
367
|
+
*/
|
|
368
|
+
export interface IFormatPainter {
|
|
369
|
+
/** Stores the previous action. */
|
|
370
|
+
previousAction: string;
|
|
371
|
+
destroy: Function;
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* @hidden
|
|
375
|
+
* @deprecated
|
|
376
|
+
*/
|
|
377
|
+
export interface IColorPickerModel extends ColorPickerModel {
|
|
378
|
+
element?: HTMLElement;
|
|
379
|
+
value?: string;
|
|
380
|
+
command?: string;
|
|
381
|
+
subCommand?: string;
|
|
382
|
+
target?: string;
|
|
383
|
+
iconCss?: string;
|
|
384
|
+
cssClass?: string;
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* @hidden
|
|
388
|
+
* @deprecated
|
|
389
|
+
*/
|
|
390
|
+
export interface IColorPickerEventArgs extends ColorPickerEventArgs {
|
|
391
|
+
item?: IColorPickerModel;
|
|
392
|
+
originalEvent: string;
|
|
393
|
+
cancel?: boolean;
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* @hidden
|
|
397
|
+
* @deprecated
|
|
398
|
+
*/
|
|
399
|
+
export interface IDropDownItem extends ItemModel {
|
|
400
|
+
command?: string;
|
|
401
|
+
subCommand?: string;
|
|
402
|
+
controlParent?: DropDownButton;
|
|
403
|
+
listImage?: string;
|
|
404
|
+
value?: string;
|
|
405
|
+
}
|
|
406
|
+
/**
|
|
407
|
+
* @hidden
|
|
408
|
+
* @deprecated
|
|
409
|
+
*/
|
|
410
|
+
export interface IDropDownClickArgs extends ClickEventArgs {
|
|
411
|
+
item: IDropDownItem;
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* @deprecated
|
|
415
|
+
*/
|
|
416
|
+
export interface IColorPickerRenderArgs {
|
|
417
|
+
items?: string[];
|
|
418
|
+
containerType?: string;
|
|
419
|
+
container?: HTMLElement;
|
|
420
|
+
}
|
|
421
|
+
/**
|
|
422
|
+
* @deprecated
|
|
423
|
+
*/
|
|
424
|
+
export interface IImageNotifyArgs {
|
|
425
|
+
module?: string;
|
|
426
|
+
args?: KeyboardEvent | MouseEvent | ClickEventArgs | IToolbarItemModel | ClipboardEvent | TouchEvent;
|
|
427
|
+
cancel?: boolean;
|
|
428
|
+
requestType?: string;
|
|
429
|
+
enable?: boolean;
|
|
430
|
+
properties?: object;
|
|
431
|
+
selection?: NodeSelection;
|
|
432
|
+
selfImage?: Image;
|
|
433
|
+
selfAudio?: Audio;
|
|
434
|
+
selfVideo?: Video;
|
|
435
|
+
link?: HTMLInputElement | HTMLElement;
|
|
436
|
+
selectNode?: Node[];
|
|
437
|
+
selectParent?: Node[];
|
|
438
|
+
target?: string;
|
|
439
|
+
alt?: HTMLInputElement | HTMLElement;
|
|
440
|
+
text?: string;
|
|
441
|
+
member?: string;
|
|
442
|
+
name?: string;
|
|
443
|
+
cssClass?: string;
|
|
444
|
+
ariaLabel?: string;
|
|
445
|
+
}
|
|
446
|
+
/**
|
|
447
|
+
* Represents the details of an image integrated into the Rich Text Editor.
|
|
448
|
+
*/
|
|
449
|
+
export interface IImageCommandsArgs {
|
|
450
|
+
/** Specifies the `src` attribute of the image. */
|
|
451
|
+
url?: string;
|
|
452
|
+
/** Represents the current selection instance. */
|
|
453
|
+
selection?: NodeSelection;
|
|
454
|
+
/** Specifies the minimum, maximum, and actual width of the image. */
|
|
455
|
+
width?: {
|
|
456
|
+
minWidth?: string | number;
|
|
457
|
+
maxWidth?: string | number;
|
|
458
|
+
width?: string | number;
|
|
459
|
+
};
|
|
460
|
+
/** Specifies the minimum, maximum, and actual height of the image. */
|
|
461
|
+
height?: {
|
|
462
|
+
minHeight?: string | number;
|
|
463
|
+
maxHeight?: string | number;
|
|
464
|
+
height?: string | number;
|
|
465
|
+
};
|
|
466
|
+
/** Describes the alternate text attribute for the image. */
|
|
467
|
+
altText?: string;
|
|
468
|
+
/** Defines the CSS class names to be applied to the image. */
|
|
469
|
+
cssClass?: string;
|
|
470
|
+
/** Refers to the image element that is to be edited. */
|
|
471
|
+
selectParent?: Node[];
|
|
472
|
+
}
|
|
473
|
+
/**
|
|
474
|
+
* Provides details about an audio element added to the Rich Text Editor.
|
|
475
|
+
*/
|
|
476
|
+
export interface IAudioCommandsArgs {
|
|
477
|
+
/** Specifies the source URL of the audio. */
|
|
478
|
+
url?: string;
|
|
479
|
+
/** Represents the instance of the current selection within the editor. */
|
|
480
|
+
selection?: NodeSelection;
|
|
481
|
+
/** Specifies the file name of the audio. */
|
|
482
|
+
fileName?: string;
|
|
483
|
+
/** Specifies the CSS class to be applied to the audio element. */
|
|
484
|
+
cssClass?: string;
|
|
485
|
+
/** Represents the selected parent node of the audio element to be edited. */
|
|
486
|
+
selectParent?: Node[];
|
|
487
|
+
/** Specifies the title attribute for the audio element. */
|
|
488
|
+
title?: string;
|
|
489
|
+
}
|
|
490
|
+
/**
|
|
491
|
+
* Provides details about a video element added to the Rich Text Editor.
|
|
492
|
+
*/
|
|
493
|
+
export interface IVideoCommandsArgs {
|
|
494
|
+
/** Specifies the source URL of the video. */
|
|
495
|
+
url?: string;
|
|
496
|
+
/** Represents the instance of the current selection within the editor. */
|
|
497
|
+
selection?: NodeSelection;
|
|
498
|
+
/** Defines the minimum, maximum, and current width of the video. */
|
|
499
|
+
width?: {
|
|
500
|
+
minWidth?: string | number;
|
|
501
|
+
maxWidth?: string | number;
|
|
502
|
+
width?: string | number;
|
|
503
|
+
};
|
|
504
|
+
/** Defines the minimum, maximum, and current height of the video. */
|
|
505
|
+
height?: {
|
|
506
|
+
minHeight?: string | number;
|
|
507
|
+
maxHeight?: string | number;
|
|
508
|
+
height?: string | number;
|
|
509
|
+
};
|
|
510
|
+
/** Specifies the file name of the video, which can be a string or a DocumentFragment. */
|
|
511
|
+
fileName?: string | DocumentFragment;
|
|
512
|
+
/** Indicates whether the video link is an embedded URL. */
|
|
513
|
+
isEmbedUrl?: boolean;
|
|
514
|
+
/** Specifies the CSS class to be applied to the video element. */
|
|
515
|
+
cssClass?: string;
|
|
516
|
+
/** Represents the selected parent node of the video element to be edited. */
|
|
517
|
+
selectParent?: Node[];
|
|
518
|
+
/** Specifies the title attribute for the video element. */
|
|
519
|
+
title?: string;
|
|
520
|
+
}
|
|
521
|
+
/**
|
|
522
|
+
* @deprecated
|
|
523
|
+
*/
|
|
524
|
+
export interface ImageDragEvent extends DragEvent {
|
|
525
|
+
rangeParent?: Element;
|
|
526
|
+
rangeOffset?: number;
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
* Provides information about the image drop event in a rich text editor.
|
|
530
|
+
*/
|
|
531
|
+
export interface ImageDropEventArgs extends DragEvent {
|
|
532
|
+
/** Determines whether the action should be prevented. */
|
|
533
|
+
cancel: boolean;
|
|
534
|
+
/** Refers to the parent element of the drop range. */
|
|
535
|
+
rangeParent?: Element;
|
|
536
|
+
/** Specifies the offset value for the drop range. */
|
|
537
|
+
rangeOffset?: number;
|
|
538
|
+
}
|
|
539
|
+
/**
|
|
540
|
+
* Provides details about a link added to the Rich Text Editor.
|
|
541
|
+
*/
|
|
542
|
+
export interface ILinkCommandsArgs {
|
|
543
|
+
/** Specifies the URL attribute of the link. */
|
|
544
|
+
url?: string;
|
|
545
|
+
/** Represents the instance of the current selection. */
|
|
546
|
+
selection?: NodeSelection;
|
|
547
|
+
/** Indicates the title for the link to be inserted. */
|
|
548
|
+
title?: string;
|
|
549
|
+
/** Specifies the text for the link to be inserted. */
|
|
550
|
+
text?: string;
|
|
551
|
+
/** Indicates the target attribute of the link. */
|
|
552
|
+
target?: string;
|
|
553
|
+
/** Identifies the link element to be edited. */
|
|
554
|
+
selectParent?: Node[];
|
|
555
|
+
}
|
|
556
|
+
/**
|
|
557
|
+
* Provides details about a table added to the Rich Text Editor.
|
|
558
|
+
*/
|
|
559
|
+
export interface ITableCommandsArgs {
|
|
560
|
+
/**
|
|
561
|
+
* @deprecated
|
|
562
|
+
* This argument deprecated. Use `rows` argument.
|
|
563
|
+
*/
|
|
564
|
+
row?: number;
|
|
565
|
+
/** Specifies the number of rows to be inserted in the table. */
|
|
566
|
+
rows?: number;
|
|
567
|
+
/** Specifies the number of columns to be inserted in the table. */
|
|
568
|
+
columns?: number;
|
|
569
|
+
/** Defines the minimum width, maximum width, and width of the table. */
|
|
570
|
+
width?: {
|
|
571
|
+
minWidth?: string | number;
|
|
572
|
+
maxWidth?: string | number;
|
|
573
|
+
width?: string | number;
|
|
574
|
+
};
|
|
575
|
+
/** Represents the instance of the current selection. */
|
|
576
|
+
selection?: NodeSelection;
|
|
577
|
+
}
|
|
578
|
+
/**
|
|
579
|
+
* @deprecated
|
|
580
|
+
*/
|
|
581
|
+
export interface IFormatPainterArgs {
|
|
582
|
+
/**
|
|
583
|
+
* Defines the action to be performed.
|
|
584
|
+
* Allowed values are 'format-copy', 'format-paste', 'escape'.
|
|
585
|
+
*/
|
|
586
|
+
formatPainterAction: string;
|
|
587
|
+
}
|
|
588
|
+
export interface IEmojiIcons {
|
|
589
|
+
/** Specifies the description of the emoji icon. */
|
|
590
|
+
desc: string;
|
|
591
|
+
/** Specifies the Unicode representation of the emoji icon. */
|
|
592
|
+
code: string;
|
|
593
|
+
}
|
|
594
|
+
export interface EmojiIconsSet {
|
|
595
|
+
/** Specifies the name of the category for the Unicode. */
|
|
596
|
+
name: string;
|
|
597
|
+
/** Specifies the Unicode representation of the icon displayed in the emoji picker toolbar item. */
|
|
598
|
+
code: string;
|
|
599
|
+
/** Specifies the CSS class for styling the emoji icon. */
|
|
600
|
+
iconCss?: string;
|
|
601
|
+
/** Specifies the collection of emoji icons. */
|
|
602
|
+
icons: IEmojiIcons[];
|
|
603
|
+
}
|
|
604
|
+
/**
|
|
605
|
+
* @deprecated
|
|
606
|
+
*/
|
|
607
|
+
export interface ITableArgs {
|
|
608
|
+
rows?: number;
|
|
609
|
+
columns?: number;
|
|
610
|
+
width?: {
|
|
611
|
+
minWidth?: string | number;
|
|
612
|
+
maxWidth?: string | number;
|
|
613
|
+
width?: string | number;
|
|
614
|
+
};
|
|
615
|
+
selection?: NodeSelection;
|
|
616
|
+
selectNode?: Node[];
|
|
617
|
+
selectParent?: Node[];
|
|
618
|
+
subCommand?: string;
|
|
619
|
+
}
|
|
620
|
+
/**
|
|
621
|
+
* @deprecated
|
|
622
|
+
*/
|
|
623
|
+
export interface ITableNotifyArgs {
|
|
624
|
+
module?: string;
|
|
625
|
+
args?: ClickEventArgs | MouseEvent | KeyboardEventArgs | TouchEvent;
|
|
626
|
+
selection?: NodeSelection;
|
|
627
|
+
selectNode?: Node[];
|
|
628
|
+
selectParent?: Node[];
|
|
629
|
+
cancel?: boolean;
|
|
630
|
+
requestType?: string;
|
|
631
|
+
enable?: boolean;
|
|
632
|
+
properties?: object;
|
|
633
|
+
self?: Table;
|
|
634
|
+
}
|
|
635
|
+
/**
|
|
636
|
+
* Provides information about a EditorModel.
|
|
637
|
+
*/
|
|
638
|
+
export interface IEditorModel {
|
|
639
|
+
currentDocument?: Document;
|
|
640
|
+
execCommand?: Function;
|
|
641
|
+
observer?: Observer;
|
|
642
|
+
markdownSelection?: MarkdownSelection;
|
|
643
|
+
undoRedoManager?: UndoRedoManager | UndoRedoCommands;
|
|
644
|
+
nodeSelection?: NodeSelection;
|
|
645
|
+
mdSelectionFormats?: MDSelectionFormats;
|
|
646
|
+
domNode?: DOMNode;
|
|
647
|
+
nodeCutter?: NodeCutter;
|
|
648
|
+
formatPainterEditor?: IFormatPainterEditor;
|
|
649
|
+
destroy?(): void;
|
|
650
|
+
beforeSlashMenuApplyFormat?(): void;
|
|
651
|
+
}
|
|
652
|
+
/**
|
|
653
|
+
* Provides information about a ToolbarItems.
|
|
654
|
+
*/
|
|
655
|
+
export interface IToolbarItems {
|
|
656
|
+
template?: string;
|
|
657
|
+
tooltipText?: string;
|
|
658
|
+
command?: string;
|
|
659
|
+
subCommand?: string;
|
|
660
|
+
undo?: boolean;
|
|
661
|
+
click?: EmitType<ClickEventArgs>;
|
|
662
|
+
}
|
|
663
|
+
/**
|
|
664
|
+
* @hidden
|
|
665
|
+
* @deprecated
|
|
666
|
+
*/
|
|
667
|
+
export interface IToolbarItemModel extends ItemModel {
|
|
668
|
+
command?: string;
|
|
669
|
+
subCommand?: string;
|
|
670
|
+
}
|
|
671
|
+
/**
|
|
672
|
+
* @deprecated
|
|
673
|
+
*/
|
|
674
|
+
export interface IToolbarOptions {
|
|
675
|
+
enableRtl: boolean;
|
|
676
|
+
target: HTMLElement;
|
|
677
|
+
items?: ItemModel[];
|
|
678
|
+
rteToolbarObj: BaseToolbar;
|
|
679
|
+
enablePersistence: boolean;
|
|
680
|
+
overflowMode?: OverflowMode;
|
|
681
|
+
cssClass?: string;
|
|
682
|
+
type?: string;
|
|
683
|
+
}
|
|
684
|
+
/**
|
|
685
|
+
* @deprecated
|
|
686
|
+
*/
|
|
687
|
+
export interface IToolbarSettings {
|
|
688
|
+
enable?: boolean;
|
|
689
|
+
items?: (string | IToolbarItems)[];
|
|
690
|
+
target?: HTMLElement;
|
|
691
|
+
type?: ToolbarType;
|
|
692
|
+
}
|
|
693
|
+
/**
|
|
694
|
+
* @deprecated
|
|
695
|
+
*/
|
|
696
|
+
export interface IToolbarRenderOptions {
|
|
697
|
+
target: HTMLElement;
|
|
698
|
+
items?: (string | IToolbarItems)[];
|
|
699
|
+
mode?: OverflowMode;
|
|
700
|
+
container?: string;
|
|
701
|
+
cssClass?: string;
|
|
702
|
+
}
|
|
703
|
+
/**
|
|
704
|
+
* @deprecated
|
|
705
|
+
*/
|
|
706
|
+
export interface IDropDownModel {
|
|
707
|
+
content?: string;
|
|
708
|
+
items: IDropDownItemModel[];
|
|
709
|
+
iconCss?: string;
|
|
710
|
+
itemName: string;
|
|
711
|
+
cssClass: string;
|
|
712
|
+
element: HTMLElement;
|
|
713
|
+
activeElement?: HTMLElement;
|
|
714
|
+
}
|
|
715
|
+
/**
|
|
716
|
+
* @deprecated
|
|
717
|
+
*/
|
|
718
|
+
export interface IToolsItems {
|
|
719
|
+
id: string;
|
|
720
|
+
icon?: string;
|
|
721
|
+
tooltip?: string;
|
|
722
|
+
command?: string;
|
|
723
|
+
subCommand?: string;
|
|
724
|
+
value?: string;
|
|
725
|
+
}
|
|
726
|
+
/**
|
|
727
|
+
* Provides information about a ToolbarItemConfig.
|
|
728
|
+
*/
|
|
729
|
+
export interface IToolsItemConfigs {
|
|
730
|
+
icon?: string;
|
|
731
|
+
tooltip?: string;
|
|
732
|
+
command?: string;
|
|
733
|
+
subCommand?: string;
|
|
734
|
+
value?: string;
|
|
735
|
+
}
|
|
736
|
+
/**
|
|
737
|
+
* @hidden
|
|
738
|
+
* @deprecated
|
|
739
|
+
*/
|
|
740
|
+
export interface IListDropDownModel extends DropDownItemModel {
|
|
741
|
+
cssClass?: string;
|
|
742
|
+
command?: string;
|
|
743
|
+
subCommand?: string;
|
|
744
|
+
value?: string;
|
|
745
|
+
text?: string;
|
|
746
|
+
listStyle?: string;
|
|
747
|
+
listImage?: string;
|
|
748
|
+
}
|
|
749
|
+
/**
|
|
750
|
+
* @hidden
|
|
751
|
+
* @deprecated
|
|
752
|
+
*/
|
|
753
|
+
export interface IDropDownItemModel extends DropDownItemModel {
|
|
754
|
+
cssClass?: string;
|
|
755
|
+
command?: string;
|
|
756
|
+
subCommand?: string;
|
|
757
|
+
value?: string;
|
|
758
|
+
text?: string;
|
|
759
|
+
}
|
|
760
|
+
/**
|
|
761
|
+
* Provides detailed information about an ActionComplete event.
|
|
762
|
+
*/
|
|
763
|
+
export interface ActionCompleteEventArgs {
|
|
764
|
+
/** Specifies the type of the current action. */
|
|
765
|
+
requestType?: string;
|
|
766
|
+
/** Specifies the name of the event. */
|
|
767
|
+
name?: string;
|
|
768
|
+
/** Specifies the current mode of the editor. */
|
|
769
|
+
editorMode?: string;
|
|
770
|
+
/**
|
|
771
|
+
* Defines the selected elements.
|
|
772
|
+
*
|
|
773
|
+
* @deprecated
|
|
774
|
+
*/
|
|
775
|
+
elements?: Node[];
|
|
776
|
+
/** Specifies the event associated with the action, such as a mouse or keyboard event. */
|
|
777
|
+
event?: MouseEvent | KeyboardEvent;
|
|
778
|
+
/**
|
|
779
|
+
* Defines the selected range.
|
|
780
|
+
*
|
|
781
|
+
* @deprecated
|
|
782
|
+
*/
|
|
783
|
+
range?: Range;
|
|
784
|
+
}
|
|
785
|
+
/**
|
|
786
|
+
* Provides detailed information about an actionBegin event.
|
|
787
|
+
*/
|
|
788
|
+
export interface ActionBeginEventArgs {
|
|
789
|
+
/** Specifies the type of the current action. */
|
|
790
|
+
requestType?: string;
|
|
791
|
+
/** Indicates whether to cancel the current action. */
|
|
792
|
+
cancel?: boolean;
|
|
793
|
+
/**
|
|
794
|
+
* Specifies the current toolbar or dropdown item involved in the action.
|
|
795
|
+
*
|
|
796
|
+
* @deprecated
|
|
797
|
+
*/
|
|
798
|
+
item?: IToolbarItemModel | IDropDownItemModel;
|
|
799
|
+
/** Specifies the event that initiated the action, such as mouse, keyboard, or drag events. */
|
|
800
|
+
originalEvent?: MouseEvent | KeyboardEvent | DragEvent;
|
|
801
|
+
/** Specifies the name of the event. */
|
|
802
|
+
name?: string;
|
|
803
|
+
/** Specifies whether the selection type is a dropdown. */
|
|
804
|
+
selectType?: string;
|
|
805
|
+
/**
|
|
806
|
+
* Provides details about URL actions.
|
|
807
|
+
*
|
|
808
|
+
* @deprecated
|
|
809
|
+
*/
|
|
810
|
+
itemCollection?: IItemCollectionArgs;
|
|
811
|
+
/**
|
|
812
|
+
* Defines the emoji picker details.
|
|
813
|
+
*
|
|
814
|
+
* @deprecated
|
|
815
|
+
*/
|
|
816
|
+
emojiPickerArgs?: IEmojiPickerArgs;
|
|
817
|
+
/**
|
|
818
|
+
* Defines the content to be exported.
|
|
819
|
+
*
|
|
820
|
+
* @deprecated
|
|
821
|
+
*/
|
|
822
|
+
exportValue?: string;
|
|
823
|
+
}
|
|
824
|
+
export interface IEmojiPickerArgs {
|
|
825
|
+
emojiSettings: EmojiSettingsModel;
|
|
826
|
+
}
|
|
827
|
+
/**
|
|
828
|
+
* Provides detailed information about a Print event in the Rich Text Editor (RTE).
|
|
829
|
+
*/
|
|
830
|
+
export interface PrintEventArgs extends ActionBeginEventArgs {
|
|
831
|
+
/** Defines the Rich Text Editor (RTE) element associated with the Print event. */
|
|
832
|
+
element?: Element;
|
|
833
|
+
}
|
|
834
|
+
/**
|
|
835
|
+
* @deprecated
|
|
836
|
+
*/
|
|
837
|
+
export interface IShowPopupArgs {
|
|
838
|
+
args?: MouseEvent | TouchEvent | KeyboardEvent;
|
|
839
|
+
type?: string;
|
|
840
|
+
isNotify: boolean;
|
|
841
|
+
elements?: Element | Element[];
|
|
842
|
+
}
|
|
843
|
+
/**
|
|
844
|
+
* @deprecated
|
|
845
|
+
*/
|
|
846
|
+
export interface IUpdateItemsModel {
|
|
847
|
+
targetItem: string;
|
|
848
|
+
updateItem: string;
|
|
849
|
+
baseToolbar: BaseToolbar;
|
|
850
|
+
}
|
|
851
|
+
/**
|
|
852
|
+
* @deprecated
|
|
853
|
+
*/
|
|
854
|
+
export interface IDropDownRenderArgs {
|
|
855
|
+
items?: string[];
|
|
856
|
+
containerType?: string;
|
|
857
|
+
container?: HTMLElement;
|
|
858
|
+
}
|
|
859
|
+
/**
|
|
860
|
+
* @deprecated
|
|
861
|
+
*/
|
|
862
|
+
export interface IShowQuickTBarOptions {
|
|
863
|
+
x: number;
|
|
864
|
+
y: number;
|
|
865
|
+
target: HTMLElement;
|
|
866
|
+
editTop: number;
|
|
867
|
+
editHeight: number;
|
|
868
|
+
popup: HTMLElement;
|
|
869
|
+
parentElement: HTMLElement;
|
|
870
|
+
tBarElementHeight: number;
|
|
871
|
+
parentData: ClientRect;
|
|
872
|
+
windowY: number;
|
|
873
|
+
windowHeight: number;
|
|
874
|
+
windowWidth: number;
|
|
875
|
+
popWidth: number;
|
|
876
|
+
popHeight: number;
|
|
877
|
+
bodyRightSpace: number;
|
|
878
|
+
}
|
|
879
|
+
/**
|
|
880
|
+
* @deprecated
|
|
881
|
+
*/
|
|
882
|
+
export interface IPositionChanged {
|
|
883
|
+
x: boolean;
|
|
884
|
+
y: boolean;
|
|
885
|
+
}
|
|
886
|
+
/**
|
|
887
|
+
* @deprecated
|
|
888
|
+
*/
|
|
889
|
+
export interface IQuickToolbarOptions {
|
|
890
|
+
popupType: string;
|
|
891
|
+
mode: OverflowMode;
|
|
892
|
+
renderType: RenderType;
|
|
893
|
+
toolbarItems: (string | IToolbarItems)[];
|
|
894
|
+
cssClass: string;
|
|
895
|
+
}
|
|
896
|
+
/**
|
|
897
|
+
* Provides detailed information about the beforeQuickToolbarOpen event in the editor.
|
|
898
|
+
*/
|
|
899
|
+
export interface BeforeQuickToolbarOpenArgs {
|
|
900
|
+
/**
|
|
901
|
+
* Defines the instance of the current popup element
|
|
902
|
+
*
|
|
903
|
+
* @deprecated
|
|
904
|
+
*/
|
|
905
|
+
popup?: Popup;
|
|
906
|
+
/** Determine whether the quick toolbar should be prevented from opening. */
|
|
907
|
+
cancel?: boolean;
|
|
908
|
+
/** Defines the target element on which the quick toolbar is triggered. */
|
|
909
|
+
targetElement?: Element;
|
|
910
|
+
/** Defines the X-coordinate position where the quick toolbar will appear. */
|
|
911
|
+
positionX?: number;
|
|
912
|
+
/** Defines the Y-coordinate position where the quick toolbar will appear. */
|
|
913
|
+
positionY?: number;
|
|
914
|
+
}
|
|
915
|
+
/**
|
|
916
|
+
* Provides detailed information about the AfterImageDeleteEvent event in the editor.
|
|
917
|
+
*/
|
|
918
|
+
export interface AfterImageDeleteEventArgs {
|
|
919
|
+
/** Defines the image DOM element that was deleted. */
|
|
920
|
+
element: Node;
|
|
921
|
+
/** Defines the 'src' attribute of the deleted image element. */
|
|
922
|
+
src: string;
|
|
923
|
+
}
|
|
924
|
+
/**
|
|
925
|
+
* Provides detailed information about the AfterMediaDeleteEvent event in the editor.
|
|
926
|
+
*/
|
|
927
|
+
export interface AfterMediaDeleteEventArgs {
|
|
928
|
+
/** Defines the audio/video DOM element that was deleted. */
|
|
929
|
+
element: Node;
|
|
930
|
+
/** Defines the 'src' attribute of the deleted audio/video element. */
|
|
931
|
+
src: string;
|
|
932
|
+
}
|
|
933
|
+
/**
|
|
934
|
+
* Provides detailed information about the QuickToolbar event in the editor.
|
|
935
|
+
*/
|
|
936
|
+
export interface QuickToolbarEventArgs {
|
|
937
|
+
/**
|
|
938
|
+
* Defines the instance of the current popup element
|
|
939
|
+
*
|
|
940
|
+
* @deprecated
|
|
941
|
+
*/
|
|
942
|
+
popup?: Popup;
|
|
943
|
+
/**
|
|
944
|
+
* Returns the HTMLElement associated with the dialog in the quick toolbar.
|
|
945
|
+
*/
|
|
946
|
+
element: HTMLElement;
|
|
947
|
+
/**
|
|
948
|
+
* Specify the name identifier of the event within the quick toolbar.
|
|
949
|
+
*/
|
|
950
|
+
name?: string;
|
|
951
|
+
}
|
|
952
|
+
/**
|
|
953
|
+
* @deprecated
|
|
954
|
+
*/
|
|
955
|
+
export interface IAdapterProcess {
|
|
956
|
+
text: string;
|
|
957
|
+
range: Range;
|
|
958
|
+
actionName: string;
|
|
959
|
+
}
|
|
960
|
+
/**
|
|
961
|
+
* Provides information about a Formatter.
|
|
962
|
+
*/
|
|
963
|
+
export interface IFormatter {
|
|
964
|
+
/** Configure the format tags, mapping tag names to their respective format. */
|
|
965
|
+
formatTags?: {
|
|
966
|
+
[key: string]: string;
|
|
967
|
+
};
|
|
968
|
+
/** Configure the list tags, mapping tag names to their respective list format. */
|
|
969
|
+
listTags?: {
|
|
970
|
+
[key: string]: string;
|
|
971
|
+
};
|
|
972
|
+
/** Configure the key settings with specific shortcut key configurations. */
|
|
973
|
+
keyConfig?: {
|
|
974
|
+
[key: string]: string;
|
|
975
|
+
};
|
|
976
|
+
process?: Function;
|
|
977
|
+
onKeyHandler?: Function;
|
|
978
|
+
editorManager?: IEditorModel;
|
|
979
|
+
/** Retrieves the undo and redo stack arrays for tracking changes. */
|
|
980
|
+
getUndoRedoStack?: Function;
|
|
981
|
+
onSuccess?: Function;
|
|
982
|
+
/** Saves the current state for undo and redo actions within the editor. */
|
|
983
|
+
saveData?: Function;
|
|
984
|
+
disableToolbarItem?(items: string | string[]): void;
|
|
985
|
+
/** Enables the undo functionality to revert changes. */
|
|
986
|
+
enableUndo?: Function;
|
|
987
|
+
setDocument?: Function;
|
|
988
|
+
getDocument?: Function;
|
|
989
|
+
setEditPanel?: Function;
|
|
990
|
+
getEditPanel?: Function;
|
|
991
|
+
updateFormatter?: Function;
|
|
992
|
+
initializePlugin?: Function;
|
|
993
|
+
isAppliedCommand?(e?: MouseEvent): string;
|
|
994
|
+
mdSelectionFormat?: MDSelectionFormats;
|
|
995
|
+
beforeSlashMenuApply(): void;
|
|
996
|
+
getCurrentStackIndex(): number;
|
|
997
|
+
}
|
|
998
|
+
/**
|
|
999
|
+
* @deprecated
|
|
1000
|
+
*/
|
|
1001
|
+
export interface IHtmlFormatterModel {
|
|
1002
|
+
currentDocument?: Document;
|
|
1003
|
+
element?: Element;
|
|
1004
|
+
keyConfig?: {
|
|
1005
|
+
[key: string]: string;
|
|
1006
|
+
};
|
|
1007
|
+
options?: {
|
|
1008
|
+
[key: string]: number;
|
|
1009
|
+
};
|
|
1010
|
+
formatPainterSettings?: FormatPainterSettingsModel;
|
|
1011
|
+
}
|
|
1012
|
+
/**
|
|
1013
|
+
* @deprecated
|
|
1014
|
+
*/
|
|
1015
|
+
export interface IMarkdownFormatterModel {
|
|
1016
|
+
element?: Element;
|
|
1017
|
+
formatTags?: {
|
|
1018
|
+
[key: string]: string;
|
|
1019
|
+
};
|
|
1020
|
+
listTags?: {
|
|
1021
|
+
[key: string]: string;
|
|
1022
|
+
};
|
|
1023
|
+
keyConfig?: {
|
|
1024
|
+
[key: string]: string;
|
|
1025
|
+
};
|
|
1026
|
+
options?: {
|
|
1027
|
+
[key: string]: number;
|
|
1028
|
+
};
|
|
1029
|
+
selectionTags?: {
|
|
1030
|
+
[key: string]: string;
|
|
1031
|
+
};
|
|
1032
|
+
}
|
|
1033
|
+
/**
|
|
1034
|
+
* @deprecated
|
|
1035
|
+
*/
|
|
1036
|
+
export interface IFontProperties {
|
|
1037
|
+
default?: string;
|
|
1038
|
+
items?: IDropDownItemModel[];
|
|
1039
|
+
width?: string;
|
|
1040
|
+
}
|
|
1041
|
+
/**
|
|
1042
|
+
* @deprecated
|
|
1043
|
+
*/
|
|
1044
|
+
export interface IBulletFormatListPropertiesProperties {
|
|
1045
|
+
types?: IListDropDownModel[];
|
|
1046
|
+
}
|
|
1047
|
+
/**
|
|
1048
|
+
* @deprecated
|
|
1049
|
+
*/
|
|
1050
|
+
export interface INumberFormatListPropertiesProperties {
|
|
1051
|
+
types?: IListDropDownModel[];
|
|
1052
|
+
}
|
|
1053
|
+
/**
|
|
1054
|
+
* @deprecated
|
|
1055
|
+
*/
|
|
1056
|
+
export interface IFormatProperties {
|
|
1057
|
+
default?: string;
|
|
1058
|
+
types?: IDropDownItemModel[];
|
|
1059
|
+
width?: string;
|
|
1060
|
+
}
|
|
1061
|
+
/**
|
|
1062
|
+
* @deprecated
|
|
1063
|
+
*/
|
|
1064
|
+
export interface OffsetPosition {
|
|
1065
|
+
left: number;
|
|
1066
|
+
top: number;
|
|
1067
|
+
}
|
|
1068
|
+
/**
|
|
1069
|
+
* Provides information about a Resize event.
|
|
1070
|
+
*/
|
|
1071
|
+
export interface ResizeArgs {
|
|
1072
|
+
/** Specifies the resize event arguments. */
|
|
1073
|
+
event?: MouseEvent | TouchEvent;
|
|
1074
|
+
/** Describes the type of request. */
|
|
1075
|
+
requestType?: string;
|
|
1076
|
+
/** Indicates whether the action should be canceled. */
|
|
1077
|
+
cancel?: boolean;
|
|
1078
|
+
}
|
|
1079
|
+
/**
|
|
1080
|
+
* Provides information about a BeforeSanitizeHtml event.
|
|
1081
|
+
*/
|
|
1082
|
+
export interface BeforeSanitizeHtmlArgs {
|
|
1083
|
+
/** Indicates whether the current action needs to be prevented. */
|
|
1084
|
+
cancel?: boolean;
|
|
1085
|
+
/** A callback function executed before the inbuilt action, which should return HTML as a string.
|
|
1086
|
+
*
|
|
1087
|
+
* @function
|
|
1088
|
+
* @param {string} value - The input value.
|
|
1089
|
+
* @returns {string} - The HTML string.
|
|
1090
|
+
*/
|
|
1091
|
+
helper?: Function;
|
|
1092
|
+
/** Returns the selectors object containing both tags and attribute selectors to block cross-site scripting attacks.
|
|
1093
|
+
* It is also possible to modify the block list within this event.
|
|
1094
|
+
*/
|
|
1095
|
+
selectors?: SanitizeSelectors;
|
|
1096
|
+
}
|
|
1097
|
+
/**
|
|
1098
|
+
* Provides information about SanitizeSelectors.
|
|
1099
|
+
*/
|
|
1100
|
+
export interface SanitizeSelectors {
|
|
1101
|
+
/** Returns the list of tags. */
|
|
1102
|
+
tags?: string[];
|
|
1103
|
+
/** Returns the list of attributes to be removed. */
|
|
1104
|
+
attributes?: SanitizeRemoveAttrs[];
|
|
1105
|
+
}
|
|
1106
|
+
/**
|
|
1107
|
+
* Provides information about a ExecuteCommandOption.
|
|
1108
|
+
*/
|
|
1109
|
+
export interface ExecuteCommandOption {
|
|
1110
|
+
undo?: boolean;
|
|
1111
|
+
}
|
|
1112
|
+
/**
|
|
1113
|
+
* Provides information about a SanitizeRemoveAttributes.
|
|
1114
|
+
*/
|
|
1115
|
+
export interface SanitizeRemoveAttrs {
|
|
1116
|
+
/** Defines the attribute name to sanitize. */
|
|
1117
|
+
attribute?: string;
|
|
1118
|
+
/** Defines the selector that sanitizes the specified attributes within the selector. */
|
|
1119
|
+
selector?: string;
|
|
1120
|
+
}
|
|
1121
|
+
/**
|
|
1122
|
+
* @deprecated
|
|
1123
|
+
*/
|
|
1124
|
+
export interface ISetToolbarStatusArgs {
|
|
1125
|
+
args: IToolbarStatus;
|
|
1126
|
+
parent: IRichTextEditor;
|
|
1127
|
+
tbElements: HTMLElement[];
|
|
1128
|
+
tbItems: IToolbarItemModel[];
|
|
1129
|
+
dropDownModule: DropDownButtons;
|
|
1130
|
+
}
|
|
1131
|
+
/**
|
|
1132
|
+
* Provides detailed information about a change event in the RichTextEditor.
|
|
1133
|
+
*/
|
|
1134
|
+
export interface ChangeEventArgs {
|
|
1135
|
+
/**
|
|
1136
|
+
* Returns the current value/content of the RichTextEditor.
|
|
1137
|
+
*/
|
|
1138
|
+
value: string;
|
|
1139
|
+
/** Defines the name of the event. */
|
|
1140
|
+
name?: string;
|
|
1141
|
+
/** Specifies if the request should be saved automatically or triggered by user interaction (focus out). */
|
|
1142
|
+
isInteracted: boolean;
|
|
1143
|
+
}
|
|
1144
|
+
/**
|
|
1145
|
+
* Provides information regarding a DialogOpen event in the RichTextEditor.
|
|
1146
|
+
*/
|
|
1147
|
+
export interface DialogOpenEventArgs {
|
|
1148
|
+
/**
|
|
1149
|
+
* Defines if the current dialog action can be prevented.
|
|
1150
|
+
*/
|
|
1151
|
+
target: HTMLElement | string;
|
|
1152
|
+
/**
|
|
1153
|
+
* Returns the root container element of the dialog being opened.
|
|
1154
|
+
*/
|
|
1155
|
+
container: HTMLElement;
|
|
1156
|
+
/**
|
|
1157
|
+
* Returns the element reference of the dialog.
|
|
1158
|
+
*/
|
|
1159
|
+
element: Element;
|
|
1160
|
+
/**
|
|
1161
|
+
* Name of the event if specified.
|
|
1162
|
+
*/
|
|
1163
|
+
name?: string;
|
|
1164
|
+
}
|
|
1165
|
+
/**
|
|
1166
|
+
* Provides information related to a DialogClose event in the RichTextEditor.
|
|
1167
|
+
*/
|
|
1168
|
+
export interface DialogCloseEventArgs {
|
|
1169
|
+
/**
|
|
1170
|
+
* Identifies if the current action can be canceled.
|
|
1171
|
+
*/
|
|
1172
|
+
cancel: boolean;
|
|
1173
|
+
/**
|
|
1174
|
+
* Returns the root container element of the dialog being closed.
|
|
1175
|
+
*/
|
|
1176
|
+
container: HTMLElement;
|
|
1177
|
+
/**
|
|
1178
|
+
* Provides reference to the dialog element being closed.
|
|
1179
|
+
*/
|
|
1180
|
+
element: Element;
|
|
1181
|
+
/**
|
|
1182
|
+
* Returns the original event arguments, if any.
|
|
1183
|
+
*/
|
|
1184
|
+
event: Event;
|
|
1185
|
+
/**
|
|
1186
|
+
* Determines if the dialog close event is triggered by user interaction.
|
|
1187
|
+
*/
|
|
1188
|
+
isInteracted: boolean;
|
|
1189
|
+
/**
|
|
1190
|
+
* DEPRECATED-Determines whether the event is triggered by interaction.
|
|
1191
|
+
*/
|
|
1192
|
+
isInteraction: boolean;
|
|
1193
|
+
/**
|
|
1194
|
+
* Specifies the event name, if available.
|
|
1195
|
+
*/
|
|
1196
|
+
name?: String;
|
|
1197
|
+
/**
|
|
1198
|
+
* Determines if action can be prevented; target details.
|
|
1199
|
+
*/
|
|
1200
|
+
target: HTMLElement | String;
|
|
1201
|
+
}
|
|
1202
|
+
/**
|
|
1203
|
+
* Provides specific details about a successful Image upload event in the RichTextEditor.
|
|
1204
|
+
*/
|
|
1205
|
+
export interface ImageSuccessEventArgs {
|
|
1206
|
+
/**
|
|
1207
|
+
* Returns the original event arguments.
|
|
1208
|
+
*/
|
|
1209
|
+
e?: object;
|
|
1210
|
+
/**
|
|
1211
|
+
* Details about the file that was successfully uploaded.
|
|
1212
|
+
*/
|
|
1213
|
+
file: FileInfo;
|
|
1214
|
+
/**
|
|
1215
|
+
* Provides the status text describing the image upload.
|
|
1216
|
+
*/
|
|
1217
|
+
statusText?: string;
|
|
1218
|
+
/**
|
|
1219
|
+
* Describes the operation performed during the upload event.
|
|
1220
|
+
*/
|
|
1221
|
+
operation: string;
|
|
1222
|
+
/**
|
|
1223
|
+
* Returns the response details of the upload event, if any.
|
|
1224
|
+
*/
|
|
1225
|
+
response?: ResponseEventArgs;
|
|
1226
|
+
/**
|
|
1227
|
+
* Specifies the name of the event.
|
|
1228
|
+
*/
|
|
1229
|
+
name?: string;
|
|
1230
|
+
/**
|
|
1231
|
+
* Specifies the HTML element related to the event.
|
|
1232
|
+
*/
|
|
1233
|
+
element?: HTMLElement;
|
|
1234
|
+
/**
|
|
1235
|
+
* Provides the detected image source related to the event.
|
|
1236
|
+
*/
|
|
1237
|
+
detectImageSource?: ImageInputSource;
|
|
1238
|
+
}
|
|
1239
|
+
/**
|
|
1240
|
+
* Provides detailed information about a failed Image upload event in the RichTextEditor.
|
|
1241
|
+
*/
|
|
1242
|
+
export interface ImageFailedEventArgs {
|
|
1243
|
+
/**
|
|
1244
|
+
* Returns the original event arguments.
|
|
1245
|
+
*/
|
|
1246
|
+
e?: object;
|
|
1247
|
+
/**
|
|
1248
|
+
* Details about the file that failed to upload.
|
|
1249
|
+
*/
|
|
1250
|
+
file: FileInfo;
|
|
1251
|
+
/**
|
|
1252
|
+
* Provides status text describing the failed upload.
|
|
1253
|
+
*/
|
|
1254
|
+
statusText?: string;
|
|
1255
|
+
/**
|
|
1256
|
+
* Describes the operation performed during the failed upload attempt.
|
|
1257
|
+
*/
|
|
1258
|
+
operation: string;
|
|
1259
|
+
/**
|
|
1260
|
+
* Returns the response details of the failed upload event.
|
|
1261
|
+
*/
|
|
1262
|
+
response?: ResponseEventArgs;
|
|
1263
|
+
/**
|
|
1264
|
+
* Specifies the event name.
|
|
1265
|
+
*/
|
|
1266
|
+
name?: string;
|
|
1267
|
+
}
|
|
1268
|
+
/**
|
|
1269
|
+
* Provides information about a response received after an Image upload event in the RichTextEditor.
|
|
1270
|
+
*/
|
|
1271
|
+
export interface ResponseEventArgs {
|
|
1272
|
+
/**
|
|
1273
|
+
* Returns upload image headers information, if available.
|
|
1274
|
+
*/
|
|
1275
|
+
headers?: string;
|
|
1276
|
+
/**
|
|
1277
|
+
* Returns readyState information of the upload process.
|
|
1278
|
+
*/
|
|
1279
|
+
readyState?: object;
|
|
1280
|
+
/**
|
|
1281
|
+
* Provides the status code returned for the uploaded image.
|
|
1282
|
+
*/
|
|
1283
|
+
statusCode?: object;
|
|
1284
|
+
/**
|
|
1285
|
+
* Returns the status text of the uploaded image.
|
|
1286
|
+
*/
|
|
1287
|
+
statusText?: string;
|
|
1288
|
+
/**
|
|
1289
|
+
* Indicates if the upload was performed with credentials.
|
|
1290
|
+
*/
|
|
1291
|
+
withCredentials?: boolean;
|
|
1292
|
+
}
|
|
1293
|
+
/**
|
|
1294
|
+
* Provides specific details about a Destroyed event in the RichTextEditor.
|
|
1295
|
+
*/
|
|
1296
|
+
export interface DestroyedEventArgs {
|
|
1297
|
+
/**
|
|
1298
|
+
* Specifies the name of the event.
|
|
1299
|
+
*/
|
|
1300
|
+
name?: string;
|
|
1301
|
+
/**
|
|
1302
|
+
* Determines if the current action of destruction can be prevented.
|
|
1303
|
+
*/
|
|
1304
|
+
cancel: boolean;
|
|
1305
|
+
}
|
|
1306
|
+
/**
|
|
1307
|
+
* Provides information regarding content pasted in the RichTextEditor for cleanup operations.
|
|
1308
|
+
*/
|
|
1309
|
+
export interface PasteCleanupArgs {
|
|
1310
|
+
/**
|
|
1311
|
+
* Returns the content data present in the ClipboardEvent arguments.
|
|
1312
|
+
*/
|
|
1313
|
+
value: string;
|
|
1314
|
+
/**
|
|
1315
|
+
* Returns a list of image file data that was pasted into the editor.
|
|
1316
|
+
*/
|
|
1317
|
+
filesData: FileInfo[];
|
|
1318
|
+
}
|
|
1319
|
+
/**
|
|
1320
|
+
* Provides specific information about a Blur event in the RichTextEditor.
|
|
1321
|
+
*/
|
|
1322
|
+
export interface BlurEventArgs {
|
|
1323
|
+
/**
|
|
1324
|
+
* Contains the original event arguments related to the blur event.
|
|
1325
|
+
*/
|
|
1326
|
+
event: Event;
|
|
1327
|
+
/**
|
|
1328
|
+
* Indicates if the blur event was caused by user interaction.
|
|
1329
|
+
*/
|
|
1330
|
+
isInteracted: boolean;
|
|
1331
|
+
/**
|
|
1332
|
+
* Specifies the name of the blur event.
|
|
1333
|
+
*/
|
|
1334
|
+
name?: string;
|
|
1335
|
+
}
|
|
1336
|
+
/**
|
|
1337
|
+
* Provides information about a ToolbarClick event in the RichTextEditor.
|
|
1338
|
+
*/
|
|
1339
|
+
export interface ToolbarClickEventArgs {
|
|
1340
|
+
/**
|
|
1341
|
+
* Determines if the current toolbar click action can be canceled.
|
|
1342
|
+
*/
|
|
1343
|
+
cancel: boolean;
|
|
1344
|
+
/**
|
|
1345
|
+
* Defines the current Toolbar Item Object being clicked.
|
|
1346
|
+
*/
|
|
1347
|
+
item: ItemModel;
|
|
1348
|
+
/**
|
|
1349
|
+
* Contains the original mouse event arguments related to the toolbar click.
|
|
1350
|
+
*/
|
|
1351
|
+
originalEvent: MouseEvent;
|
|
1352
|
+
/**
|
|
1353
|
+
* Specifies the request type associated with the toolbar click event.
|
|
1354
|
+
*/
|
|
1355
|
+
requestType: string;
|
|
1356
|
+
/**
|
|
1357
|
+
* Specifies the name of the event.
|
|
1358
|
+
*/
|
|
1359
|
+
name?: string;
|
|
1360
|
+
}
|
|
1361
|
+
/**
|
|
1362
|
+
* Provides details about a Focus event in the RichTextEditor.
|
|
1363
|
+
*/
|
|
1364
|
+
export interface FocusEventArgs {
|
|
1365
|
+
/**
|
|
1366
|
+
* Contains the original event arguments associated with the focus event.
|
|
1367
|
+
*/
|
|
1368
|
+
event: FocusEvent;
|
|
1369
|
+
/**
|
|
1370
|
+
* Indicates if the focus event was triggered by user interaction.
|
|
1371
|
+
*/
|
|
1372
|
+
isInteracted: boolean;
|
|
1373
|
+
/**
|
|
1374
|
+
* Specifies the name of the focus event.
|
|
1375
|
+
*/
|
|
1376
|
+
name?: string;
|
|
1377
|
+
}
|
|
1378
|
+
/**
|
|
1379
|
+
* Defines types to be used as colorMode for color selection in the RichTextEditor.
|
|
1380
|
+
*/
|
|
1381
|
+
export declare type ColorModeType = 'Picker' | 'Palette';
|
|
1382
|
+
/**
|
|
1383
|
+
* @deprecated
|
|
1384
|
+
*/
|
|
1385
|
+
export interface IColorProperties {
|
|
1386
|
+
default?: string;
|
|
1387
|
+
mode?: ColorModeType;
|
|
1388
|
+
columns?: number;
|
|
1389
|
+
colorCode?: {
|
|
1390
|
+
[key: string]: string[];
|
|
1391
|
+
};
|
|
1392
|
+
modeSwitcher?: boolean;
|
|
1393
|
+
}
|
|
1394
|
+
/**
|
|
1395
|
+
* @deprecated
|
|
1396
|
+
*/
|
|
1397
|
+
export interface IExecutionGroup {
|
|
1398
|
+
command: string;
|
|
1399
|
+
subCommand?: string;
|
|
1400
|
+
value?: string;
|
|
1401
|
+
}
|
|
1402
|
+
/**
|
|
1403
|
+
* Provides detailed information about an image uploading event.
|
|
1404
|
+
*/
|
|
1405
|
+
export interface ImageUploadingEventArgs {
|
|
1406
|
+
/**
|
|
1407
|
+
* Defines whether the current image upload action can be prevented.
|
|
1408
|
+
*/
|
|
1409
|
+
cancel: boolean;
|
|
1410
|
+
/**
|
|
1411
|
+
* Defines the additional data in a key and value pair format that will be submitted with the upload action.
|
|
1412
|
+
*/
|
|
1413
|
+
customFormData: {
|
|
1414
|
+
[key: string]: Object;
|
|
1415
|
+
}[];
|
|
1416
|
+
/**
|
|
1417
|
+
* Returns the XMLHttpRequest instance that is associated with the current upload action.
|
|
1418
|
+
*/
|
|
1419
|
+
currentRequest?: {
|
|
1420
|
+
[key: string]: string;
|
|
1421
|
+
}[];
|
|
1422
|
+
/**
|
|
1423
|
+
* Returns the list of files that are scheduled to be uploaded.
|
|
1424
|
+
*/
|
|
1425
|
+
filesData: FileInfo[];
|
|
1426
|
+
}
|
|
1427
|
+
/**
|
|
1428
|
+
* @hidden
|
|
1429
|
+
* @deprecated
|
|
1430
|
+
*/
|
|
1431
|
+
export declare const executeGroup: {
|
|
1432
|
+
[key: string]: IExecutionGroup;
|
|
1433
|
+
};
|
|
1434
|
+
/**
|
|
1435
|
+
* Defines types to be used as CommandName.
|
|
1436
|
+
*
|
|
1437
|
+
* The `CommandName` type encompasses various commands that can be applied within the rich text editor.
|
|
1438
|
+
* Each command represents a specific formatting or editing action, such as applying text styles,
|
|
1439
|
+
* inserting multimedia content, and handling text alignment or structure.
|
|
1440
|
+
*
|
|
1441
|
+
*/
|
|
1442
|
+
export declare type CommandName = 'bold' | 'italic' | 'underline' | 'strikeThrough' | 'superscript' | 'subscript' | 'uppercase' | 'lowercase' | 'fontColor' | 'fontName' | 'fontSize' | 'backColor' | 'justifyCenter' | 'justifyFull' | 'justifyLeft' | 'justifyRight' | 'undo' | 'createLink' | 'formatBlock' | 'heading' | 'indent' | 'insertHTML' | 'insertOrderedList' | 'insertUnorderedList' | 'insertParagraph' | 'outdent' | 'redo' | 'removeFormat' | 'insertText' | 'insertImage' | 'insertAudio' | 'insertVideo' | 'insertHorizontalRule' | 'insertBrOnReturn' | 'insertCode' | 'insertTable' | 'editImage' | 'editLink' | 'applyFormatPainter' | 'copyFormatPainter' | 'escapeFormatPainter' | 'emojiPicker' | 'InlineCode' | 'importWord';
|
|
1443
|
+
/**
|
|
1444
|
+
* @hidden
|
|
1445
|
+
* @deprecated
|
|
1446
|
+
*/
|
|
1447
|
+
export interface StatusArgs {
|
|
1448
|
+
html: Object;
|
|
1449
|
+
markdown: Object;
|
|
1450
|
+
}
|
|
1451
|
+
/**
|
|
1452
|
+
* Provides detailed information about the updatedToolbarStatus event in the Rich Text Editor.
|
|
1453
|
+
*/
|
|
1454
|
+
export interface ToolbarStatusEventArgs {
|
|
1455
|
+
/** Defines the name of the event. */
|
|
1456
|
+
name?: string;
|
|
1457
|
+
/** Defines the undo state argument, indicating whether an undo action can be performed. */
|
|
1458
|
+
undo: boolean;
|
|
1459
|
+
/** Defines the redo state argument, indicating whether a redo action can be performed. */
|
|
1460
|
+
redo: boolean;
|
|
1461
|
+
/** Defines the HTML toolbar status arguments, providing the current status of the HTML toolbar. */
|
|
1462
|
+
html?: object;
|
|
1463
|
+
/** Defines the markdown toolbar status arguments, providing the current status of the Markdown toolbar. */
|
|
1464
|
+
markdown?: object;
|
|
1465
|
+
}
|
|
1466
|
+
/**
|
|
1467
|
+
* @hidden
|
|
1468
|
+
* @deprecated
|
|
1469
|
+
*/
|
|
1470
|
+
export interface CleanupResizeElemArgs {
|
|
1471
|
+
name?: string;
|
|
1472
|
+
value: string;
|
|
1473
|
+
callBack(value: string): void;
|
|
1474
|
+
}
|
|
1475
|
+
/**
|
|
1476
|
+
* @hidden
|
|
1477
|
+
* @private
|
|
1478
|
+
*/
|
|
1479
|
+
export interface IBaseQuickToolbar {
|
|
1480
|
+
/**
|
|
1481
|
+
* Instance of the Quick Toolabr Popup.
|
|
1482
|
+
*/
|
|
1483
|
+
popupObj: Popup;
|
|
1484
|
+
/**
|
|
1485
|
+
* Parent Element of the Quick Toolbar.
|
|
1486
|
+
*/
|
|
1487
|
+
element: HTMLElement;
|
|
1488
|
+
/**
|
|
1489
|
+
* Boolean to check whether the quick toolbar is rendered in the DOM.
|
|
1490
|
+
*/
|
|
1491
|
+
isRendered: boolean;
|
|
1492
|
+
/**
|
|
1493
|
+
* Instance of the Toolbar rendered inside the Popup.
|
|
1494
|
+
*/
|
|
1495
|
+
quickTBarObj: BaseToolbar;
|
|
1496
|
+
/**
|
|
1497
|
+
* Element of the Toolbar rendered inside the Popup.
|
|
1498
|
+
*/
|
|
1499
|
+
toolbarElement: HTMLElement;
|
|
1500
|
+
}
|
|
1501
|
+
/**
|
|
1502
|
+
* @hidden
|
|
1503
|
+
* @private
|
|
1504
|
+
*/
|
|
1505
|
+
export interface MetaTag {
|
|
1506
|
+
/**
|
|
1507
|
+
* The name attribute of the meta tag.
|
|
1508
|
+
*/
|
|
1509
|
+
name?: string;
|
|
1510
|
+
/**
|
|
1511
|
+
* The content attribute of the meta tag.
|
|
1512
|
+
*/
|
|
1513
|
+
content?: string;
|
|
1514
|
+
/**
|
|
1515
|
+
* The charset attribute of the meta tag.
|
|
1516
|
+
*/
|
|
1517
|
+
charset?: string;
|
|
1518
|
+
/**
|
|
1519
|
+
* The http-equiv attribute of the meta tag.
|
|
1520
|
+
*/
|
|
1521
|
+
httpEquiv?: string;
|
|
1522
|
+
/**
|
|
1523
|
+
* The property attribute of the meta tag.
|
|
1524
|
+
*/
|
|
1525
|
+
property?: string;
|
|
1526
|
+
}
|
|
1527
|
+
/**
|
|
1528
|
+
* Specifies the custom slash menu item configuration.
|
|
1529
|
+
*
|
|
1530
|
+
*/
|
|
1531
|
+
export interface ISlashMenuItem {
|
|
1532
|
+
/**
|
|
1533
|
+
* Specifies the text to be displayed in the slash menu item.
|
|
1534
|
+
*/
|
|
1535
|
+
text: string;
|
|
1536
|
+
/**
|
|
1537
|
+
* Specifies the command to be executed when the slash menu item is clicked.
|
|
1538
|
+
*/
|
|
1539
|
+
command: string;
|
|
1540
|
+
/**
|
|
1541
|
+
* Specifies the icon class to be added in the slash menu item for visual representation.
|
|
1542
|
+
*/
|
|
1543
|
+
iconCss: string;
|
|
1544
|
+
/**
|
|
1545
|
+
* Specifies the description to be displayed in the slash menu item.
|
|
1546
|
+
*/
|
|
1547
|
+
description?: string;
|
|
1548
|
+
/**
|
|
1549
|
+
* Specifies the type of the slash menu item. Grouping will be done based on the type.
|
|
1550
|
+
*/
|
|
1551
|
+
type: string;
|
|
1552
|
+
}
|
|
1553
|
+
/**
|
|
1554
|
+
* Provides detailed information about a SlashMenuItemSelect event.
|
|
1555
|
+
*/
|
|
1556
|
+
export interface SlashMenuItemSelectArgs {
|
|
1557
|
+
/**
|
|
1558
|
+
* If the event is triggered by user interaction, it returns true. Otherwise, it returns false.
|
|
1559
|
+
*/
|
|
1560
|
+
isInteracted: boolean;
|
|
1561
|
+
/**
|
|
1562
|
+
* Returns the selected list item of the slash menu list as an HTMLLIElement.
|
|
1563
|
+
*/
|
|
1564
|
+
item: HTMLLIElement;
|
|
1565
|
+
/**
|
|
1566
|
+
* Returns the selected slash menu item data corresponding to the interface.
|
|
1567
|
+
*/
|
|
1568
|
+
itemData: ISlashMenuItem;
|
|
1569
|
+
/**
|
|
1570
|
+
* Specifies the original event arguments such as MouseEvent, KeyboardEvent, or TouchEvent.
|
|
1571
|
+
*/
|
|
1572
|
+
originalEvent: MouseEvent | KeyboardEvent | TouchEvent;
|
|
1573
|
+
/**
|
|
1574
|
+
* Specifies the boolean value to cancel the default action if set to true.
|
|
1575
|
+
*/
|
|
1576
|
+
cancel?: boolean;
|
|
1577
|
+
}
|