@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,11 @@
|
|
|
1
|
+
import { IRichTextEditor } from '../base/interface';
|
|
2
|
+
/**
|
|
3
|
+
* `ExecCommandCallBack` module is used to run the editor manager command
|
|
4
|
+
*/
|
|
5
|
+
export declare class ExecCommandCallBack {
|
|
6
|
+
protected parent: IRichTextEditor;
|
|
7
|
+
constructor(parent?: IRichTextEditor);
|
|
8
|
+
private addEventListener;
|
|
9
|
+
private commandCallBack;
|
|
10
|
+
private removeEventListener;
|
|
11
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
define(["require", "exports", "../base/constant", "@syncfusion/ej2-base"], function (require, exports, events, ej2_base_1) {
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
var ExecCommandCallBack = (function () {
|
|
5
|
+
function ExecCommandCallBack(parent) {
|
|
6
|
+
this.parent = parent;
|
|
7
|
+
this.addEventListener();
|
|
8
|
+
}
|
|
9
|
+
ExecCommandCallBack.prototype.addEventListener = function () {
|
|
10
|
+
this.parent.on(events.execCommandCallBack, this.commandCallBack, this);
|
|
11
|
+
this.parent.on(events.destroy, this.removeEventListener, this);
|
|
12
|
+
};
|
|
13
|
+
ExecCommandCallBack.prototype.commandCallBack = function (args) {
|
|
14
|
+
var formatPainterCopy = !ej2_base_1.isNullOrUndefined(args.requestType) && args.requestType === 'FormatPainter' && args.action === 'format-copy';
|
|
15
|
+
if (!ej2_base_1.isNullOrUndefined(args) && !ej2_base_1.isNullOrUndefined(args.requestType) && args.requestType !== 'Undo' && args.requestType !== 'Redo' && !formatPainterCopy) {
|
|
16
|
+
this.parent.formatter.saveData();
|
|
17
|
+
}
|
|
18
|
+
this.parent.notify(events.toolbarRefresh, { args: args });
|
|
19
|
+
this.parent.notify(events.count, {});
|
|
20
|
+
};
|
|
21
|
+
ExecCommandCallBack.prototype.removeEventListener = function () {
|
|
22
|
+
this.parent.off(events.execCommandCallBack, this.commandCallBack);
|
|
23
|
+
this.parent.off(events.destroy, this.removeEventListener);
|
|
24
|
+
};
|
|
25
|
+
return ExecCommandCallBack;
|
|
26
|
+
}());
|
|
27
|
+
exports.ExecCommandCallBack = ExecCommandCallBack;
|
|
28
|
+
});
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Dialog } from '@syncfusion/ej2-popups';
|
|
2
|
+
import { IRichTextEditor } from '../base/interface';
|
|
3
|
+
/**
|
|
4
|
+
* `FileManager` module is used to display the directories and images inside the editor.
|
|
5
|
+
*/
|
|
6
|
+
export declare class FileManager {
|
|
7
|
+
private i10n;
|
|
8
|
+
dialogObj: Dialog;
|
|
9
|
+
private fileWrap;
|
|
10
|
+
private fileObj;
|
|
11
|
+
private contentModule;
|
|
12
|
+
protected parent: IRichTextEditor;
|
|
13
|
+
private inputUrl;
|
|
14
|
+
private selectObj;
|
|
15
|
+
private dlgButtons;
|
|
16
|
+
private dialogRenderObj;
|
|
17
|
+
private rendererFactory;
|
|
18
|
+
private isDestroyed;
|
|
19
|
+
private insertImageBoundFn;
|
|
20
|
+
private cancelDialogBoundFn;
|
|
21
|
+
private renderFileManagerBoundFn;
|
|
22
|
+
private dialogClosedBoundFn;
|
|
23
|
+
private onDocumentClickBoundFn;
|
|
24
|
+
private constructor();
|
|
25
|
+
private initialize;
|
|
26
|
+
private render;
|
|
27
|
+
private setCssClass;
|
|
28
|
+
private dialogClosed;
|
|
29
|
+
private renderFileManager;
|
|
30
|
+
private getInputUrlElement;
|
|
31
|
+
private insertImageUrl;
|
|
32
|
+
private cancelDialog;
|
|
33
|
+
private onDocumentClick;
|
|
34
|
+
private addEventListener;
|
|
35
|
+
private removeEventListener;
|
|
36
|
+
private destroyComponents;
|
|
37
|
+
private destroy;
|
|
38
|
+
/**
|
|
39
|
+
* For internal use only - Get the module name.
|
|
40
|
+
*
|
|
41
|
+
* @returns {string} - returns the string value
|
|
42
|
+
* @hidden
|
|
43
|
+
*/
|
|
44
|
+
private getModuleName;
|
|
45
|
+
}
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
define(["require", "exports", "@syncfusion/ej2-base", "@syncfusion/ej2-filemanager", "@syncfusion/ej2-filemanager", "../base/enum", "../base/constant", "../base/classes", "../base/util"], function (require, exports, ej2_base_1, ej2_filemanager_1, ej2_filemanager_2, enum_1, events, classes, util_1) {
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
var FileManager = (function () {
|
|
5
|
+
function FileManager(parent, locator) {
|
|
6
|
+
ej2_filemanager_1.FileManager.Inject(ej2_filemanager_1.ContextMenu, ej2_filemanager_1.DetailsView, ej2_filemanager_2.NavigationPane, ej2_filemanager_2.Toolbar);
|
|
7
|
+
this.parent = parent;
|
|
8
|
+
this.i10n = locator.getService('rteLocale');
|
|
9
|
+
this.dialogRenderObj = locator.getService('dialogRenderObject');
|
|
10
|
+
this.rendererFactory = locator.getService('rendererFactory');
|
|
11
|
+
this.addEventListener();
|
|
12
|
+
this.isDestroyed = false;
|
|
13
|
+
this.insertImageBoundFn = this.insertImageUrl.bind(this);
|
|
14
|
+
this.cancelDialogBoundFn = this.cancelDialog.bind(this);
|
|
15
|
+
this.renderFileManagerBoundFn = this.renderFileManager.bind(this);
|
|
16
|
+
this.dialogClosedBoundFn = this.dialogClosed.bind(this);
|
|
17
|
+
this.onDocumentClickBoundFn = this.onDocumentClick.bind(this);
|
|
18
|
+
}
|
|
19
|
+
FileManager.prototype.initialize = function () {
|
|
20
|
+
this.contentModule = this.rendererFactory.getRenderer(enum_1.RenderType.Content);
|
|
21
|
+
};
|
|
22
|
+
FileManager.prototype.render = function (e) {
|
|
23
|
+
var dlgInsert;
|
|
24
|
+
if (e.selectNode && e.selectNode[0].nodeName === 'IMG') {
|
|
25
|
+
dlgInsert = this.parent.localeObj.getConstant('dialogUpdate');
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
dlgInsert = this.i10n.getConstant('dialogInsert');
|
|
29
|
+
}
|
|
30
|
+
var dlgHeader = this.parent.localeObj.getConstant('fileDialogHeader');
|
|
31
|
+
var dlgCancel = this.i10n.getConstant('dialogCancel');
|
|
32
|
+
this.dlgButtons = [{
|
|
33
|
+
click: this.insertImageBoundFn,
|
|
34
|
+
buttonModel: { content: dlgInsert, cssClass: 'e-flat e-insertImage', isPrimary: true, disabled: true }
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
click: this.cancelDialogBoundFn,
|
|
38
|
+
buttonModel: { cssClass: 'e-flat e-cancel', content: dlgCancel }
|
|
39
|
+
}];
|
|
40
|
+
this.selectObj = { selection: e.selection, args: e.args, selectParent: e.selectParent };
|
|
41
|
+
var dlgTarget = this.parent.createElement('div', {
|
|
42
|
+
className: 'e-rte-file-manager-dialog', id: this.parent.getID() + '_file-manager-dialog',
|
|
43
|
+
attrs: { 'aria-owns': this.parent.getID() }
|
|
44
|
+
});
|
|
45
|
+
document.body.appendChild(dlgTarget);
|
|
46
|
+
this.fileWrap = this.parent.createElement('div', {
|
|
47
|
+
id: this.parent.getID() + '_rte-file-manager', className: 'e-img-file-wrap'
|
|
48
|
+
});
|
|
49
|
+
dlgTarget.appendChild(this.fileWrap);
|
|
50
|
+
dlgTarget.appendChild(this.getInputUrlElement());
|
|
51
|
+
var dialogModel = {
|
|
52
|
+
visible: false,
|
|
53
|
+
isModal: true, header: dlgHeader,
|
|
54
|
+
target: document.body, locale: this.parent.locale,
|
|
55
|
+
enableRtl: this.parent.enableRtl, cssClass: classes.CLS_RTE_ELEMENTS,
|
|
56
|
+
animationSettings: { effect: 'None' },
|
|
57
|
+
showCloseIcon: true, closeOnEscape: true, width: '720px', height: 'auto',
|
|
58
|
+
position: { X: 'center', Y: 'center' },
|
|
59
|
+
buttons: this.dlgButtons,
|
|
60
|
+
created: this.renderFileManagerBoundFn,
|
|
61
|
+
close: this.dialogClosedBoundFn
|
|
62
|
+
};
|
|
63
|
+
this.dialogObj = this.dialogRenderObj.render(dialogModel);
|
|
64
|
+
this.dialogObj.createElement = this.parent.createElement;
|
|
65
|
+
this.dialogObj.appendTo(dlgTarget);
|
|
66
|
+
this.dialogObj.show(ej2_base_1.Browser.isDevice ? true : false);
|
|
67
|
+
this.setCssClass({ cssClass: this.parent.getCssClass() });
|
|
68
|
+
};
|
|
69
|
+
FileManager.prototype.setCssClass = function (e) {
|
|
70
|
+
if (this.dialogObj && e.cssClass) {
|
|
71
|
+
if (ej2_base_1.isNullOrUndefined(e.oldCssClass)) {
|
|
72
|
+
this.dialogObj.setProperties({ cssClass: (this.dialogObj.cssClass + ' ' + e.cssClass).trim() });
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
this.dialogObj.setProperties({ cssClass: (this.dialogObj.cssClass.replace(e.oldCssClass, '').trim() + ' ' + e.cssClass).trim() });
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
FileManager.prototype.dialogClosed = function (e) {
|
|
80
|
+
this.parent.isBlur = false;
|
|
81
|
+
if (e && e.event.returnValue) {
|
|
82
|
+
this.selectObj.selection.restore();
|
|
83
|
+
}
|
|
84
|
+
this.destroyComponents();
|
|
85
|
+
this.parent.element.ownerDocument.removeEventListener('mousedown', this.onDocumentClickBoundFn);
|
|
86
|
+
this.dialogRenderObj.close(e);
|
|
87
|
+
};
|
|
88
|
+
FileManager.prototype.renderFileManager = function () {
|
|
89
|
+
var _this = this;
|
|
90
|
+
this.fileObj = new ej2_filemanager_1.FileManager({
|
|
91
|
+
allowMultiSelection: false,
|
|
92
|
+
locale: this.parent.locale,
|
|
93
|
+
enableRtl: this.parent.enableRtl,
|
|
94
|
+
path: this.parent.fileManagerSettings.path,
|
|
95
|
+
view: this.parent.fileManagerSettings.view,
|
|
96
|
+
enablePersistence: this.parent.enablePersistence,
|
|
97
|
+
cssClass: this.parent.fileManagerSettings.cssClass,
|
|
98
|
+
sortOrder: this.parent.fileManagerSettings.sortOrder,
|
|
99
|
+
ajaxSettings: this.parent.fileManagerSettings.ajaxSettings,
|
|
100
|
+
showThumbnail: this.parent.fileManagerSettings.showThumbnail,
|
|
101
|
+
rootAliasName: this.parent.fileManagerSettings.rootAliasName,
|
|
102
|
+
uploadSettings: this.parent.fileManagerSettings.uploadSettings,
|
|
103
|
+
searchSettings: this.parent.fileManagerSettings.searchSettings,
|
|
104
|
+
toolbarSettings: this.parent.fileManagerSettings.toolbarSettings,
|
|
105
|
+
showHiddenItems: this.parent.fileManagerSettings.showHiddenItems,
|
|
106
|
+
allowDragAndDrop: this.parent.fileManagerSettings.allowDragAndDrop,
|
|
107
|
+
showFileExtension: this.parent.fileManagerSettings.showFileExtension,
|
|
108
|
+
detailsViewSettings: this.parent.fileManagerSettings.detailsViewSettings,
|
|
109
|
+
contextMenuSettings: this.parent.fileManagerSettings.contextMenuSettings,
|
|
110
|
+
navigationPaneSettings: this.parent.fileManagerSettings.navigationPaneSettings,
|
|
111
|
+
beforeSend: this.parent.fileManagerSettings.beforeSend,
|
|
112
|
+
fileSelect: function (e) {
|
|
113
|
+
var selectedFile = e.fileDetails;
|
|
114
|
+
if (selectedFile.isFile && _this.parent.insertImageSettings.allowedTypes.indexOf(selectedFile.type) > -1) {
|
|
115
|
+
_this.inputUrl.value = _this.parent.fileManagerSettings.ajaxSettings.getImageUrl + '?path=' +
|
|
116
|
+
(selectedFile.filterPath && selectedFile.filterPath.replace(/\\/g, '/')) + selectedFile.name;
|
|
117
|
+
_this.dlgButtons[0].buttonModel.disabled = false;
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
_this.inputUrl.value = '';
|
|
121
|
+
_this.dlgButtons[0].buttonModel.disabled = true;
|
|
122
|
+
}
|
|
123
|
+
_this.dialogObj.setProperties({ buttons: _this.dlgButtons });
|
|
124
|
+
},
|
|
125
|
+
created: function () {
|
|
126
|
+
_this.inputUrl.removeAttribute('disabled');
|
|
127
|
+
},
|
|
128
|
+
success: function () {
|
|
129
|
+
_this.fileObj.refreshLayout();
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
if (ej2_base_1.Browser.isDevice) {
|
|
133
|
+
this.fileObj.height = '85%';
|
|
134
|
+
}
|
|
135
|
+
this.fileObj.appendTo(this.fileWrap);
|
|
136
|
+
this.parent.element.ownerDocument.addEventListener('mousedown', this.onDocumentClickBoundFn);
|
|
137
|
+
};
|
|
138
|
+
FileManager.prototype.getInputUrlElement = function () {
|
|
139
|
+
var imgUrl = this.parent.createElement('div', { className: 'imgUrl' });
|
|
140
|
+
var urlLabel = this.parent.createElement('div', { className: 'e-rte-label' });
|
|
141
|
+
urlLabel.innerHTML = '<label for="rteSample_img_url">' + this.i10n.getConstant('linkWebUrl') + '</label>';
|
|
142
|
+
imgUrl.appendChild(urlLabel);
|
|
143
|
+
var placeUrl = this.i10n.getConstant('imageUrl');
|
|
144
|
+
this.inputUrl = this.parent.createElement('input', {
|
|
145
|
+
className: 'e-input e-img-url',
|
|
146
|
+
attrs: { placeholder: placeUrl, spellcheck: 'false', disabled: 'true' }
|
|
147
|
+
});
|
|
148
|
+
imgUrl.appendChild(this.inputUrl);
|
|
149
|
+
return imgUrl;
|
|
150
|
+
};
|
|
151
|
+
FileManager.prototype.insertImageUrl = function (e) {
|
|
152
|
+
var url = this.inputUrl.value;
|
|
153
|
+
if (this.parent.formatter.getUndoRedoStack().length === 0) {
|
|
154
|
+
this.parent.formatter.saveData();
|
|
155
|
+
}
|
|
156
|
+
if (url !== '') {
|
|
157
|
+
if (this.parent.editorMode === 'HTML' &&
|
|
158
|
+
ej2_base_1.isNullOrUndefined(ej2_base_1.closest(this.selectObj.selection.range.startContainer.parentNode, '#' + this.contentModule.getPanel().id))) {
|
|
159
|
+
this.contentModule.getEditPanel().focus();
|
|
160
|
+
var range = this.parent.formatter.editorManager.nodeSelection.getRange(this.contentModule.getDocument());
|
|
161
|
+
this.selectObj.selection = this.parent.formatter.editorManager.nodeSelection.save(range, this.contentModule.getDocument());
|
|
162
|
+
this.selectObj.selectParent = this.parent.formatter.editorManager.nodeSelection.getParentNodeCollection(range);
|
|
163
|
+
}
|
|
164
|
+
var regex = /[\w-]+.(jpg|png|jpeg|gif)/g;
|
|
165
|
+
var matchUrl = (!ej2_base_1.isNullOrUndefined(url.match(regex)) && this.parent.editorMode === 'HTML') ? url.match(regex)[0] : '';
|
|
166
|
+
var value = {
|
|
167
|
+
cssClass: (this.parent.insertImageSettings.display === 'inline' ? classes.CLS_IMGINLINE : classes.CLS_IMGBREAK),
|
|
168
|
+
url: url, selection: this.selectObj.selection, altText: matchUrl, selectParent: this.selectObj.selectParent,
|
|
169
|
+
width: {
|
|
170
|
+
width: this.parent.insertImageSettings.width, minWidth: this.parent.insertImageSettings.minWidth,
|
|
171
|
+
maxWidth: this.parent.getInsertImgMaxWidth()
|
|
172
|
+
},
|
|
173
|
+
height: {
|
|
174
|
+
height: this.parent.insertImageSettings.height, minHeight: this.parent.insertImageSettings.minHeight,
|
|
175
|
+
maxHeight: this.parent.insertImageSettings.maxHeight
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
this.parent.formatter.process(this.parent, this.selectObj.args, this.selectObj.args.originalEvent, value);
|
|
179
|
+
this.dialogObj.hide({ returnValue: false });
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
FileManager.prototype.cancelDialog = function () {
|
|
183
|
+
this.parent.isBlur = false;
|
|
184
|
+
this.dialogObj.hide({ returnValue: true });
|
|
185
|
+
};
|
|
186
|
+
FileManager.prototype.onDocumentClick = function (e) {
|
|
187
|
+
var target = e.target;
|
|
188
|
+
var prevEle = target.nodeName !== '#document' && !ej2_base_1.isNullOrUndefined(target.previousElementSibling) && target.previousElementSibling;
|
|
189
|
+
if (!ej2_base_1.isNullOrUndefined(this.dialogObj) &&
|
|
190
|
+
(!ej2_base_1.closest(target, '#' + this.parent.getID() + '_file-manager-dialog') &&
|
|
191
|
+
!ej2_base_1.closest(target, '#' + this.parent.getID() + '_rte-file-manager_tb_sortby-popup') &&
|
|
192
|
+
!ej2_base_1.closest(target, '#' + this.parent.getID() + '_rte-file-manager_tb_view-popup') &&
|
|
193
|
+
!ej2_base_1.closest(target, '#' + this.parent.getID() + '_rte-file-manager_contextmenu') &&
|
|
194
|
+
(!(!ej2_base_1.isNullOrUndefined(ej2_base_1.closest(target, '.e-contextmenu-wrapper')) &&
|
|
195
|
+
ej2_base_1.closest(target, '.e-contextmenu-wrapper').querySelector('#' + this.parent.getID() + '_rte-file-manager_contextmenu'))) &&
|
|
196
|
+
(!ej2_base_1.isNullOrUndefined(prevEle) && !prevEle.classList.contains('e-rte-file-manager-dialog')) &&
|
|
197
|
+
(!ej2_base_1.isNullOrUndefined(prevEle) && prevEle.id !== this.parent.getID() + '_rte-file-manager_contextmenu'))) {
|
|
198
|
+
this.dialogObj.hide({ returnValue: true });
|
|
199
|
+
this.parent.isBlur = true;
|
|
200
|
+
util_1.dispatchEvent(this.parent.element, 'focusout');
|
|
201
|
+
}
|
|
202
|
+
else {
|
|
203
|
+
this.parent.isRTE = true;
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
FileManager.prototype.addEventListener = function () {
|
|
207
|
+
this.parent.on(events.initialEnd, this.initialize, this);
|
|
208
|
+
this.parent.on(events.renderFileManager, this.render, this);
|
|
209
|
+
this.parent.on(events.bindCssClass, this.setCssClass, this);
|
|
210
|
+
this.parent.on(events.destroy, this.destroy, this);
|
|
211
|
+
};
|
|
212
|
+
FileManager.prototype.removeEventListener = function () {
|
|
213
|
+
this.parent.element.ownerDocument.removeEventListener('mousedown', this.onDocumentClickBoundFn);
|
|
214
|
+
this.parent.off(events.initialEnd, this.initialize);
|
|
215
|
+
this.parent.off(events.renderFileManager, this.render);
|
|
216
|
+
this.parent.off(events.bindCssClass, this.setCssClass);
|
|
217
|
+
this.parent.off(events.destroy, this.destroy);
|
|
218
|
+
};
|
|
219
|
+
FileManager.prototype.destroyComponents = function () {
|
|
220
|
+
if (this.fileObj) {
|
|
221
|
+
this.fileObj.destroy();
|
|
222
|
+
this.fileObj = null;
|
|
223
|
+
}
|
|
224
|
+
if (this.dialogObj) {
|
|
225
|
+
this.dialogObj.destroy();
|
|
226
|
+
ej2_base_1.detach(this.dialogObj.element);
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
FileManager.prototype.destroy = function () {
|
|
230
|
+
if (this.isDestroyed) {
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
this.destroyComponents();
|
|
234
|
+
this.removeEventListener();
|
|
235
|
+
this.dlgButtons = null;
|
|
236
|
+
this.isDestroyed = true;
|
|
237
|
+
this.insertImageBoundFn = null;
|
|
238
|
+
this.cancelDialogBoundFn = null;
|
|
239
|
+
this.renderFileManagerBoundFn = null;
|
|
240
|
+
this.dialogClosedBoundFn = null;
|
|
241
|
+
this.onDocumentClickBoundFn = null;
|
|
242
|
+
};
|
|
243
|
+
FileManager.prototype.getModuleName = function () {
|
|
244
|
+
return 'fileManager';
|
|
245
|
+
};
|
|
246
|
+
return FileManager;
|
|
247
|
+
}());
|
|
248
|
+
exports.FileManager = FileManager;
|
|
249
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IFormatPainter, IRichTextEditor } from '../base/interface';
|
|
2
|
+
export declare class FormatPainter implements IFormatPainter {
|
|
3
|
+
private parent;
|
|
4
|
+
private isSticky;
|
|
5
|
+
private isActive;
|
|
6
|
+
previousAction: string;
|
|
7
|
+
private isDestroyed;
|
|
8
|
+
constructor(parent?: IRichTextEditor);
|
|
9
|
+
private addEventListener;
|
|
10
|
+
private toolbarClick;
|
|
11
|
+
private toolbarDoubleClick;
|
|
12
|
+
private onKeyDown;
|
|
13
|
+
private actionHandler;
|
|
14
|
+
private updateCursor;
|
|
15
|
+
private updateToolbarBtn;
|
|
16
|
+
private editAreaClick;
|
|
17
|
+
destroy(): void;
|
|
18
|
+
/**
|
|
19
|
+
* For internal use only - Get the module name.
|
|
20
|
+
*
|
|
21
|
+
* @returns {void}
|
|
22
|
+
* @hidden
|
|
23
|
+
*/
|
|
24
|
+
private getModuleName;
|
|
25
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
define(["require", "exports", "@syncfusion/ej2-base", "../base/constant"], function (require, exports, ej2_base_1, events) {
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
var FormatPainter = (function () {
|
|
5
|
+
function FormatPainter(parent) {
|
|
6
|
+
this.isSticky = false;
|
|
7
|
+
this.isActive = false;
|
|
8
|
+
this.parent = parent;
|
|
9
|
+
this.addEventListener();
|
|
10
|
+
this.isDestroyed = false;
|
|
11
|
+
}
|
|
12
|
+
FormatPainter.prototype.addEventListener = function () {
|
|
13
|
+
this.parent.on(events.formatPainterClick, this.toolbarClick, this);
|
|
14
|
+
this.parent.on(events.formatPainterDoubleClick, this.toolbarDoubleClick, this);
|
|
15
|
+
this.parent.on(events.editAreaClick, this.editAreaClick, this);
|
|
16
|
+
this.parent.on(events.keyDown, this.onKeyDown, this);
|
|
17
|
+
this.parent.on(events.destroy, this.destroy, this);
|
|
18
|
+
};
|
|
19
|
+
FormatPainter.prototype.toolbarClick = function (clickargs) {
|
|
20
|
+
this.parent.focusIn();
|
|
21
|
+
if (!this.isSticky) {
|
|
22
|
+
this.isActive = true;
|
|
23
|
+
this.actionHandler(clickargs, 'click');
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
clickargs.args.action = 'escape';
|
|
27
|
+
this.actionHandler(clickargs, 'keyBoard');
|
|
28
|
+
}
|
|
29
|
+
if (this.parent.quickToolbarModule && !ej2_base_1.isNullOrUndefined(this.parent.quickToolbarSettings.text) &&
|
|
30
|
+
this.parent.element.ownerDocument.contains(this.parent.quickToolbarModule.textQTBar.element)) {
|
|
31
|
+
this.parent.quickToolbarModule.textQTBar.hidePopup();
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
FormatPainter.prototype.toolbarDoubleClick = function (args) {
|
|
35
|
+
this.isActive = true;
|
|
36
|
+
this.isSticky = true;
|
|
37
|
+
this.parent.focusIn();
|
|
38
|
+
this.actionHandler(args, 'dbClick');
|
|
39
|
+
};
|
|
40
|
+
FormatPainter.prototype.onKeyDown = function (event) {
|
|
41
|
+
var originalEvent = event.args;
|
|
42
|
+
if (!ej2_base_1.isNullOrUndefined(originalEvent) && !ej2_base_1.isNullOrUndefined(originalEvent.action) && (originalEvent.action === 'format-copy' || originalEvent.action === 'format-paste')
|
|
43
|
+
|| (originalEvent.action === 'escape' && (this.previousAction === 'format-copy' || this.previousAction === 'format-paste'))) {
|
|
44
|
+
if ((originalEvent.action === 'format-copy' || originalEvent.action === 'format-paste')) {
|
|
45
|
+
originalEvent.stopPropagation();
|
|
46
|
+
}
|
|
47
|
+
if (this.parent.userAgentData.getBrowser() === 'Firefox' || this.parent.userAgentData.getBrowser() === 'Safari') {
|
|
48
|
+
originalEvent.preventDefault();
|
|
49
|
+
}
|
|
50
|
+
this.actionHandler(event, 'keyBoard');
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
FormatPainter.prototype.actionHandler = function (event, type) {
|
|
54
|
+
var action;
|
|
55
|
+
var isKeyboard = false;
|
|
56
|
+
var originalEvent;
|
|
57
|
+
var args;
|
|
58
|
+
var item;
|
|
59
|
+
switch (type) {
|
|
60
|
+
case 'dbClick':
|
|
61
|
+
args = event.args;
|
|
62
|
+
item = args.item;
|
|
63
|
+
originalEvent = event.args.originalEvent;
|
|
64
|
+
action = 'format-copy';
|
|
65
|
+
break;
|
|
66
|
+
case 'keyBoard':
|
|
67
|
+
args = null;
|
|
68
|
+
originalEvent = event.args;
|
|
69
|
+
isKeyboard = true;
|
|
70
|
+
action = event.args.action;
|
|
71
|
+
if (action === 'escape') {
|
|
72
|
+
this.isSticky = false;
|
|
73
|
+
this.isActive = false;
|
|
74
|
+
}
|
|
75
|
+
break;
|
|
76
|
+
case 'click':
|
|
77
|
+
args = event.args;
|
|
78
|
+
item = args.item;
|
|
79
|
+
originalEvent = event.args.originalEvent;
|
|
80
|
+
action = 'format-copy';
|
|
81
|
+
break;
|
|
82
|
+
case 'docClick':
|
|
83
|
+
originalEvent = event;
|
|
84
|
+
action = 'format-paste';
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
if (ej2_base_1.isNullOrUndefined(item)) {
|
|
88
|
+
item = {
|
|
89
|
+
command: 'FormatPainter',
|
|
90
|
+
subCommand: 'FormatPainter'
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
var actionBeginArgs = {
|
|
94
|
+
requestType: 'FormatPainter', originalEvent: originalEvent, name: action, item: item
|
|
95
|
+
};
|
|
96
|
+
var value = {
|
|
97
|
+
formatPainterAction: action
|
|
98
|
+
};
|
|
99
|
+
this.parent.formatter.process(this.parent, actionBeginArgs, originalEvent, value);
|
|
100
|
+
if (!actionBeginArgs.cancel) {
|
|
101
|
+
this.updateCursor(isKeyboard);
|
|
102
|
+
var enable = type === 'docClick' || action === 'escape' ? false : true;
|
|
103
|
+
this.updateToolbarBtn(enable);
|
|
104
|
+
}
|
|
105
|
+
this.previousAction = action;
|
|
106
|
+
};
|
|
107
|
+
FormatPainter.prototype.updateCursor = function (isKeyboard) {
|
|
108
|
+
if (!this.parent.inputElement.classList.contains('e-rte-cursor-brush') && !isKeyboard) {
|
|
109
|
+
ej2_base_1.addClass([this.parent.inputElement], 'e-rte-cursor-brush');
|
|
110
|
+
}
|
|
111
|
+
else if (!this.isSticky) {
|
|
112
|
+
ej2_base_1.removeClass([this.parent.inputElement], 'e-rte-cursor-brush');
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
FormatPainter.prototype.updateToolbarBtn = function (enable) {
|
|
116
|
+
if (!ej2_base_1.isNullOrUndefined(this.parent.element.querySelector('.e-rte-format-painter'))) {
|
|
117
|
+
var toolbarBtn = this.parent.element.querySelector('.e-rte-format-painter').parentElement.parentElement;
|
|
118
|
+
if (enable) {
|
|
119
|
+
ej2_base_1.addClass([toolbarBtn], 'e-active');
|
|
120
|
+
}
|
|
121
|
+
else if (!this.isSticky) {
|
|
122
|
+
ej2_base_1.removeClass([toolbarBtn], 'e-active');
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
FormatPainter.prototype.editAreaClick = function (args) {
|
|
127
|
+
if (this.isActive) {
|
|
128
|
+
if (!this.isSticky) {
|
|
129
|
+
this.isActive = false;
|
|
130
|
+
}
|
|
131
|
+
this.actionHandler(args, 'docClick');
|
|
132
|
+
this.updateToolbarBtn(false);
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
FormatPainter.prototype.destroy = function () {
|
|
136
|
+
if (this.isDestroyed) {
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
this.parent.off(events.formatPainterClick, this.toolbarClick);
|
|
140
|
+
this.parent.off(events.editAreaClick, this.editAreaClick);
|
|
141
|
+
this.parent.off(events.formatPainterDoubleClick, this.toolbarDoubleClick);
|
|
142
|
+
this.parent.off(events.keyDown, this.onKeyDown);
|
|
143
|
+
this.parent.off(events.destroy, this.destroy);
|
|
144
|
+
this.parent = null;
|
|
145
|
+
this.isSticky = null;
|
|
146
|
+
this.isActive = null;
|
|
147
|
+
this.previousAction = null;
|
|
148
|
+
this.isDestroyed = true;
|
|
149
|
+
};
|
|
150
|
+
FormatPainter.prototype.getModuleName = function () {
|
|
151
|
+
return 'formatPainter';
|
|
152
|
+
};
|
|
153
|
+
return FormatPainter;
|
|
154
|
+
}());
|
|
155
|
+
exports.FormatPainter = FormatPainter;
|
|
156
|
+
});
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { KeyboardEventArgs } from '@syncfusion/ej2-base';
|
|
2
|
+
import { IRichTextEditor } from '../base/interface';
|
|
3
|
+
/**
|
|
4
|
+
* `FullScreen` module is used to maximize and minimize screen
|
|
5
|
+
*/
|
|
6
|
+
export declare class FullScreen {
|
|
7
|
+
protected parent: IRichTextEditor;
|
|
8
|
+
private scrollableParent;
|
|
9
|
+
constructor(parent?: IRichTextEditor);
|
|
10
|
+
/**
|
|
11
|
+
* showFullScreen method
|
|
12
|
+
*
|
|
13
|
+
* @param {MouseEvent} event - specifies the mouse event
|
|
14
|
+
* @returns {void}
|
|
15
|
+
* @hidden
|
|
16
|
+
* @deprecated
|
|
17
|
+
*/
|
|
18
|
+
showFullScreen(event?: MouseEvent | KeyboardEventArgs): void;
|
|
19
|
+
/**
|
|
20
|
+
* hideFullScreen method
|
|
21
|
+
*
|
|
22
|
+
* @param {MouseEvent} event - specifies the mouse event
|
|
23
|
+
* @returns {void}
|
|
24
|
+
* @hidden
|
|
25
|
+
* @deprecated
|
|
26
|
+
*/
|
|
27
|
+
hideFullScreen(event?: MouseEvent | KeyboardEventArgs): void;
|
|
28
|
+
private toggleParentOverflow;
|
|
29
|
+
private onKeyDown;
|
|
30
|
+
protected addEventListener(): void;
|
|
31
|
+
protected removeEventListener(): void;
|
|
32
|
+
/**
|
|
33
|
+
* destroy method
|
|
34
|
+
*
|
|
35
|
+
* @returns {void}
|
|
36
|
+
* @hidden
|
|
37
|
+
* @deprecated
|
|
38
|
+
*/
|
|
39
|
+
destroy(): void;
|
|
40
|
+
}
|