@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,512 @@
|
|
|
1
|
+
define(["require", "exports", "@syncfusion/ej2-base", "@syncfusion/ej2-base", "@syncfusion/ej2-base", "../base/constant", "../base/classes", "../base/enum", "../base/util", "../base/util", "../models/items", "./base-toolbar", "./dropdown-buttons", "./toolbar-action", "./color-picker"], function (require, exports, ej2_base_1, ej2_base_2, ej2_base_3, events, classes, enum_1, util_1, util_2, model, base_toolbar_1, dropdown_buttons_1, toolbar_action_1, color_picker_1) {
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
var Toolbar = (function () {
|
|
5
|
+
function Toolbar(parent, serviceLocator) {
|
|
6
|
+
this.tools = {};
|
|
7
|
+
this.parent = parent;
|
|
8
|
+
this.isDestroyed = false;
|
|
9
|
+
this.isToolbar = false;
|
|
10
|
+
this.locator = serviceLocator;
|
|
11
|
+
this.isTransformChild = false;
|
|
12
|
+
this.renderFactory = this.locator.getService('rendererFactory');
|
|
13
|
+
model.updateDropDownLocale(this.parent);
|
|
14
|
+
util_2.updateDropDownFontFormatLocale(this.parent);
|
|
15
|
+
this.baseToolbar = new base_toolbar_1.BaseToolbar(this.parent, this.locator);
|
|
16
|
+
this.addEventListener();
|
|
17
|
+
if (this.parent.toolbarSettings && Object.keys(this.parent.toolbarSettings.itemConfigs).length > 0) {
|
|
18
|
+
ej2_base_3.extend(this.tools, model.tools, util_1.toObjectLowerCase(this.parent.toolbarSettings.itemConfigs), true);
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
this.tools = model.tools;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
Toolbar.prototype.initializeInstance = function () {
|
|
25
|
+
this.contentRenderer = this.renderFactory.getRenderer(enum_1.RenderType.Content);
|
|
26
|
+
this.editableElement = this.contentRenderer.getEditPanel();
|
|
27
|
+
this.editPanel = this.contentRenderer.getPanel();
|
|
28
|
+
};
|
|
29
|
+
Toolbar.prototype.toolbarBindEvent = function () {
|
|
30
|
+
if (!this.parent.inlineMode.enable) {
|
|
31
|
+
this.keyBoardModule = new ej2_base_1.KeyboardEvents(this.getToolbarElement(), {
|
|
32
|
+
keyAction: this.toolBarKeyDown.bind(this), keyConfigs: this.parent.formatter.keyConfig, eventName: 'keydown'
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
Toolbar.prototype.toolBarKeyDown = function (e) {
|
|
37
|
+
switch (e.action) {
|
|
38
|
+
case 'escape':
|
|
39
|
+
this.parent.contentModule.getEditPanel().focus();
|
|
40
|
+
break;
|
|
41
|
+
case 'enter':
|
|
42
|
+
if (!ej2_base_2.isNullOrUndefined(e.target) && (e.target.classList.contains('e-rte-fontcolor-dropdown') || e.target.classList.contains('e-rte-backgroundcolor-dropdown'))) {
|
|
43
|
+
this.parent.notify(events.showColorPicker, { toolbarClick: e.target.classList.contains('e-rte-fontcolor-dropdown') ? 'fontcolor' : 'backgroundcolor' });
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
Toolbar.prototype.createToolbarElement = function () {
|
|
48
|
+
this.tbElement = this.parent.createElement('div', { id: this.parent.getID() + '_toolbar' });
|
|
49
|
+
if (!ej2_base_1.Browser.isDevice && this.parent.inlineMode.enable && util_1.isIDevice()) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
if (!this.parent.inlineMode.enable) {
|
|
54
|
+
this.tbWrapper = this.parent.createElement('div', {
|
|
55
|
+
id: this.parent.getID() + '_toolbar_wrapper',
|
|
56
|
+
innerHTML: this.tbElement.outerHTML,
|
|
57
|
+
className: classes.CLS_TB_WRAP
|
|
58
|
+
});
|
|
59
|
+
this.tbElement = this.tbWrapper.firstElementChild;
|
|
60
|
+
this.parent.rootContainer.insertBefore(this.tbWrapper, this.editPanel);
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
this.parent.rootContainer.insertBefore(this.tbElement, this.editPanel);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
Toolbar.prototype.getToolbarMode = function () {
|
|
68
|
+
var tbMode;
|
|
69
|
+
switch (this.parent.toolbarSettings.type) {
|
|
70
|
+
case enum_1.ToolbarType.Expand:
|
|
71
|
+
tbMode = 'Extended';
|
|
72
|
+
break;
|
|
73
|
+
case enum_1.ToolbarType.Scrollable:
|
|
74
|
+
tbMode = 'Scrollable';
|
|
75
|
+
break;
|
|
76
|
+
default:
|
|
77
|
+
tbMode = 'MultiRow';
|
|
78
|
+
}
|
|
79
|
+
if (util_1.isIDevice() && this.parent.toolbarSettings.type === enum_1.ToolbarType.Expand) {
|
|
80
|
+
tbMode = enum_1.ToolbarType.Scrollable;
|
|
81
|
+
}
|
|
82
|
+
return tbMode;
|
|
83
|
+
};
|
|
84
|
+
Toolbar.prototype.checkToolbarResponsive = function (ele) {
|
|
85
|
+
if (!ej2_base_1.Browser.isDevice || util_1.isIDevice()) {
|
|
86
|
+
return false;
|
|
87
|
+
}
|
|
88
|
+
var tBarMode;
|
|
89
|
+
if (this.parent.toolbarSettings.type === enum_1.ToolbarType.Expand) {
|
|
90
|
+
tBarMode = enum_1.ToolbarType.MultiRow;
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
tBarMode = this.parent.toolbarSettings.type;
|
|
94
|
+
}
|
|
95
|
+
this.baseToolbar.render({
|
|
96
|
+
container: ((this.parent.inlineMode.enable) ? 'quick' : 'toolbar'),
|
|
97
|
+
items: this.parent.toolbarSettings.items,
|
|
98
|
+
mode: tBarMode,
|
|
99
|
+
target: ele,
|
|
100
|
+
cssClass: this.parent.getCssClass()
|
|
101
|
+
});
|
|
102
|
+
if (this.parent.toolbarSettings.type === enum_1.ToolbarType.Expand) {
|
|
103
|
+
ej2_base_1.addClass([ele], ['e-rte-tb-mobile']);
|
|
104
|
+
if (this.parent.inlineMode.enable) {
|
|
105
|
+
this.addFixedTBarClass();
|
|
106
|
+
}
|
|
107
|
+
else {
|
|
108
|
+
ej2_base_1.addClass([ele], [classes.CLS_TB_STATIC]);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
this.wireEvents();
|
|
112
|
+
this.dropDownModule.renderDropDowns({
|
|
113
|
+
container: ele,
|
|
114
|
+
containerType: ((this.parent.inlineMode.enable) ? 'quick' : 'toolbar'),
|
|
115
|
+
items: this.parent.toolbarSettings.items
|
|
116
|
+
});
|
|
117
|
+
this.renderColorPicker({ container: this.tbElement, containerType: ((this.parent.inlineMode.enable) ? 'quick' : 'toolbar'), items: this.parent.toolbarSettings.items });
|
|
118
|
+
return true;
|
|
119
|
+
};
|
|
120
|
+
Toolbar.prototype.checkIsTransformChild = function () {
|
|
121
|
+
this.isTransformChild = false;
|
|
122
|
+
var transformElements = ej2_base_1.selectAll('[style*="transform"]', document);
|
|
123
|
+
for (var i = 0; i < transformElements.length; i++) {
|
|
124
|
+
if (!ej2_base_2.isNullOrUndefined(transformElements[i].contains) && transformElements[i].contains(this.parent.element)) {
|
|
125
|
+
this.isTransformChild = true;
|
|
126
|
+
break;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
Toolbar.prototype.toggleFloatClass = function () {
|
|
131
|
+
var floatOffset = this.parent.floatingToolbarOffset;
|
|
132
|
+
if (this.parent.toolbarSettings.enableFloating) {
|
|
133
|
+
ej2_base_1.addClass([this.tbElement.parentElement], [classes.CLS_TB_FLOAT]);
|
|
134
|
+
ej2_base_3.setStyleAttribute(this.tbElement.parentElement, { top: (floatOffset) + 'px' });
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
ej2_base_1.removeClass([this.tbElement.parentElement], [classes.CLS_TB_FLOAT]);
|
|
138
|
+
ej2_base_3.setStyleAttribute(this.tbElement.parentElement, { top: '' });
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
Toolbar.prototype.renderToolbar = function () {
|
|
142
|
+
this.initializeInstance();
|
|
143
|
+
this.createToolbarElement();
|
|
144
|
+
if (this.checkToolbarResponsive(this.tbElement)) {
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
if (this.parent.inlineMode.enable) {
|
|
148
|
+
this.parent.notify(events.renderInlineToolbar, {});
|
|
149
|
+
}
|
|
150
|
+
else {
|
|
151
|
+
this.baseToolbar.render({
|
|
152
|
+
container: 'toolbar',
|
|
153
|
+
items: this.parent.toolbarSettings.items,
|
|
154
|
+
mode: this.getToolbarMode(),
|
|
155
|
+
target: this.tbElement,
|
|
156
|
+
cssClass: this.parent.getCssClass()
|
|
157
|
+
});
|
|
158
|
+
if (this.parent.element.classList.contains('e-rte-full-screen')) {
|
|
159
|
+
this.updateItem({
|
|
160
|
+
targetItem: 'Maximize',
|
|
161
|
+
updateItem: 'Minimize',
|
|
162
|
+
baseToolbar: this.parent.getBaseToolbarObject()
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
if (!this.parent.inlineMode.enable) {
|
|
166
|
+
if (this.parent.toolbarSettings.enableFloating) {
|
|
167
|
+
this.checkIsTransformChild();
|
|
168
|
+
this.toggleFloatClass();
|
|
169
|
+
}
|
|
170
|
+
ej2_base_1.addClass([this.parent.element], [classes.CLS_RTE_TB_ENABLED]);
|
|
171
|
+
if (this.parent.toolbarSettings.type === enum_1.ToolbarType.Expand) {
|
|
172
|
+
ej2_base_1.addClass([this.parent.element], [classes.CLS_RTE_EXPAND_TB]);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
this.wireEvents();
|
|
177
|
+
if (this.parent.inlineMode.enable && !util_1.isIDevice()) {
|
|
178
|
+
this.addFixedTBarClass();
|
|
179
|
+
}
|
|
180
|
+
if (!this.parent.inlineMode.enable) {
|
|
181
|
+
this.dropDownModule.renderDropDowns({
|
|
182
|
+
container: this.tbElement,
|
|
183
|
+
containerType: 'toolbar',
|
|
184
|
+
items: this.parent.toolbarSettings.items
|
|
185
|
+
});
|
|
186
|
+
this.renderColorPicker({ container: this.tbElement, containerType: 'toolbar', items: this.parent.toolbarSettings.items });
|
|
187
|
+
this.refreshToolbarOverflow();
|
|
188
|
+
}
|
|
189
|
+
if (this.parent.rootContainer && this.parent.rootContainer.classList.contains('e-source-code-enabled')) {
|
|
190
|
+
this.parent.notify(events.updateToolbarItem, {
|
|
191
|
+
targetItem: 'SourceCode', updateItem: 'Preview',
|
|
192
|
+
baseToolbar: this.parent.getBaseToolbarObject()
|
|
193
|
+
});
|
|
194
|
+
this.parent.disableToolbarItem(this.parent.toolbarSettings.items);
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
Toolbar.prototype.addFixedTBarClass = function () {
|
|
198
|
+
ej2_base_1.addClass([this.tbElement], [classes.CLS_TB_FIXED]);
|
|
199
|
+
};
|
|
200
|
+
Toolbar.prototype.removeFixedTBarClass = function () {
|
|
201
|
+
ej2_base_1.removeClass([this.tbElement], [classes.CLS_TB_FIXED]);
|
|
202
|
+
};
|
|
203
|
+
Toolbar.prototype.showFixedTBar = function () {
|
|
204
|
+
ej2_base_1.addClass([this.tbElement], [classes.CLS_SHOW]);
|
|
205
|
+
if (ej2_base_1.Browser.isIos) {
|
|
206
|
+
ej2_base_1.addClass([this.tbElement], [classes.CLS_TB_IOS_FIX]);
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
Toolbar.prototype.hideFixedTBar = function () {
|
|
210
|
+
(!this.isToolbar) ? ej2_base_1.removeClass([this.tbElement], [classes.CLS_SHOW, classes.CLS_TB_IOS_FIX]) : this.isToolbar = false;
|
|
211
|
+
};
|
|
212
|
+
Toolbar.prototype.updateItem = function (args) {
|
|
213
|
+
var item = this.tools[args.updateItem.toLocaleLowerCase()];
|
|
214
|
+
if ((util_1.getTooltipText(args.updateItem.toLocaleLowerCase(), this.locator) !== 'Code View' && util_1.getTooltipText(args.updateItem.toLocaleLowerCase(), this.locator) !== 'Preview') || this.parent.locale !== 'en-US') {
|
|
215
|
+
item.tooltip = util_1.getTooltipText(args.updateItem.toLocaleLowerCase(), this.locator);
|
|
216
|
+
}
|
|
217
|
+
var trgItem = this.tools[args.targetItem.toLocaleLowerCase()];
|
|
218
|
+
var index = util_1.getTBarItemsIndex(util_1.getCollection(trgItem.subCommand), args.baseToolbar.toolbarObj.items)[0];
|
|
219
|
+
if (!ej2_base_2.isNullOrUndefined(index)) {
|
|
220
|
+
var prefixId = this.parent.inlineMode.enable ? '_quick_' : '_toolbar_';
|
|
221
|
+
args.baseToolbar.toolbarObj.items[index].id = this.parent.getID() + prefixId + item.id;
|
|
222
|
+
args.baseToolbar.toolbarObj.items[index].prefixIcon = item.icon;
|
|
223
|
+
args.baseToolbar.toolbarObj.items[index].tooltipText = item.tooltip;
|
|
224
|
+
args.baseToolbar.toolbarObj.items[index].subCommand = item.subCommand;
|
|
225
|
+
args.baseToolbar.toolbarObj.dataBind();
|
|
226
|
+
args.baseToolbar.toolbarObj.refreshOverflow();
|
|
227
|
+
}
|
|
228
|
+
else {
|
|
229
|
+
this.addTBarItem(args, 0);
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
Toolbar.prototype.updateToolbarStatus = function (args) {
|
|
233
|
+
if (!this.tbElement || (this.parent.inlineMode.enable && (util_1.isIDevice() || !ej2_base_1.Browser.isDevice))) {
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
236
|
+
var options = {
|
|
237
|
+
args: args,
|
|
238
|
+
dropDownModule: this.dropDownModule,
|
|
239
|
+
parent: this.parent,
|
|
240
|
+
tbElements: ej2_base_1.selectAll('.' + classes.CLS_TB_ITEM, this.tbElement),
|
|
241
|
+
tbItems: this.baseToolbar.toolbarObj.items
|
|
242
|
+
};
|
|
243
|
+
util_1.setToolbarStatus(options, (this.parent.inlineMode.enable ? true : false), this.parent);
|
|
244
|
+
};
|
|
245
|
+
Toolbar.prototype.fullScreen = function (e) {
|
|
246
|
+
this.parent.fullScreenModule.showFullScreen(e);
|
|
247
|
+
};
|
|
248
|
+
Toolbar.prototype.hideScreen = function (e) {
|
|
249
|
+
this.parent.fullScreenModule.hideFullScreen(e);
|
|
250
|
+
};
|
|
251
|
+
Toolbar.prototype.getBaseToolbar = function () {
|
|
252
|
+
return this.baseToolbar;
|
|
253
|
+
};
|
|
254
|
+
Toolbar.prototype.addTBarItem = function (args, index) {
|
|
255
|
+
args.baseToolbar.toolbarObj.addItems([args.baseToolbar.getObject(args.updateItem, 'toolbar')], index);
|
|
256
|
+
};
|
|
257
|
+
Toolbar.prototype.enableTBarItems = function (baseToolbar, items, isEnable, muteToolbarUpdate) {
|
|
258
|
+
var trgItems = util_1.getTBarItemsIndex(util_1.getCollection(items), baseToolbar.toolbarObj.items);
|
|
259
|
+
this.tbItems = ej2_base_1.selectAll('.' + classes.CLS_TB_ITEM, baseToolbar.toolbarObj.element);
|
|
260
|
+
for (var i = 0; i < trgItems.length; i++) {
|
|
261
|
+
var item = this.tbItems[trgItems[i]];
|
|
262
|
+
if (item) {
|
|
263
|
+
baseToolbar.toolbarObj.enableItems(item, isEnable);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
if (!ej2_base_1.select('.' + classes.CLS_RTE_SOURCE_CODE_TXTAREA, this.parent.element) && !muteToolbarUpdate) {
|
|
267
|
+
util_1.updateUndoRedoStatus(baseToolbar, this.parent.formatter.editorManager.undoRedoManager.getUndoStatus());
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
Toolbar.prototype.removeTBarItems = function (items) {
|
|
271
|
+
if (ej2_base_2.isNullOrUndefined(this.baseToolbar.toolbarObj)) {
|
|
272
|
+
this.baseToolbar = this.parent.getBaseToolbarObject();
|
|
273
|
+
}
|
|
274
|
+
var trgItems = util_1.getTBarItemsIndex(util_1.getCollection(items), this.baseToolbar.toolbarObj.items);
|
|
275
|
+
this.tbItems = (this.parent.inlineMode.enable) ? ej2_base_1.selectAll('.' + classes.CLS_TB_ITEM, this.baseToolbar.toolbarObj.element)
|
|
276
|
+
: ej2_base_1.selectAll('.' + classes.CLS_TB_ITEM, this.parent.element);
|
|
277
|
+
for (var i = 0; i < trgItems.length; i++) {
|
|
278
|
+
this.baseToolbar.toolbarObj.removeItems(this.tbItems[trgItems[i]]);
|
|
279
|
+
}
|
|
280
|
+
};
|
|
281
|
+
Toolbar.prototype.getExpandTBarPopHeight = function () {
|
|
282
|
+
var popHeight = 0;
|
|
283
|
+
if (this.parent.toolbarSettings.type === enum_1.ToolbarType.Expand && this.tbElement.classList.contains('e-extended-toolbar')) {
|
|
284
|
+
var expandPopup = ej2_base_1.select('.e-toolbar-extended', this.tbElement);
|
|
285
|
+
if (expandPopup && this.tbElement.classList.contains('e-expand-open')
|
|
286
|
+
|| expandPopup && expandPopup.classList.contains('e-popup-open')) {
|
|
287
|
+
ej2_base_1.addClass([expandPopup], [classes.CLS_VISIBLE]);
|
|
288
|
+
popHeight = popHeight + expandPopup.offsetHeight;
|
|
289
|
+
ej2_base_1.removeClass([expandPopup], [classes.CLS_VISIBLE]);
|
|
290
|
+
}
|
|
291
|
+
else {
|
|
292
|
+
ej2_base_1.removeClass([this.tbElement], [classes.CLS_EXPAND_OPEN]);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
return popHeight;
|
|
296
|
+
};
|
|
297
|
+
Toolbar.prototype.getToolbarHeight = function () {
|
|
298
|
+
return this.tbElement.offsetHeight;
|
|
299
|
+
};
|
|
300
|
+
Toolbar.prototype.getToolbarElement = function () {
|
|
301
|
+
return this.parent && this.parent.element ? ej2_base_1.select('.' + classes.CLS_TOOLBAR, this.parent.element) : null;
|
|
302
|
+
};
|
|
303
|
+
Toolbar.prototype.refreshToolbarOverflow = function () {
|
|
304
|
+
this.parent.element.classList.remove(classes.CLS_RTL);
|
|
305
|
+
this.baseToolbar.toolbarObj.refreshOverflow();
|
|
306
|
+
if (this.parent.enableRtl) {
|
|
307
|
+
this.parent.element.classList.add(classes.CLS_RTL);
|
|
308
|
+
}
|
|
309
|
+
};
|
|
310
|
+
Toolbar.prototype.isToolbarDestroyed = function () {
|
|
311
|
+
return this.baseToolbar && this.baseToolbar.toolbarObj && this.baseToolbar.toolbarObj.isDestroyed ? true : false;
|
|
312
|
+
};
|
|
313
|
+
Toolbar.prototype.destroyToolbar = function () {
|
|
314
|
+
if (!this.isToolbarDestroyed()) {
|
|
315
|
+
this.parent.unWireScrollElementsEvents();
|
|
316
|
+
this.unWireEvents();
|
|
317
|
+
this.dropDownModule.destroy();
|
|
318
|
+
if (this.parent.emojiPickerModule && !this.parent.emojiPickerModule.isPopupDestroyed) {
|
|
319
|
+
this.parent.emojiPickerModule.childDestroy();
|
|
320
|
+
}
|
|
321
|
+
this.dropDownModule = null;
|
|
322
|
+
this.colorPickerModule.destroy();
|
|
323
|
+
this.colorPickerModule = null;
|
|
324
|
+
if (this.keyBoardModule) {
|
|
325
|
+
this.keyBoardModule.destroy();
|
|
326
|
+
this.keyBoardModule = null;
|
|
327
|
+
}
|
|
328
|
+
this.baseToolbar.destroy();
|
|
329
|
+
this.removeEventListener();
|
|
330
|
+
ej2_base_1.removeClass([this.parent.element], [classes.CLS_RTE_TB_ENABLED]);
|
|
331
|
+
ej2_base_1.removeClass([this.parent.element], [classes.CLS_RTE_EXPAND_TB]);
|
|
332
|
+
var tbWrapper = ej2_base_1.select('.' + classes.CLS_TB_WRAP, this.parent.element);
|
|
333
|
+
var tbElement = ej2_base_1.select('.' + classes.CLS_TOOLBAR, this.parent.element);
|
|
334
|
+
if (!ej2_base_2.isNullOrUndefined(tbWrapper)) {
|
|
335
|
+
ej2_base_1.detach(tbWrapper);
|
|
336
|
+
}
|
|
337
|
+
if (!ej2_base_2.isNullOrUndefined(tbElement)) {
|
|
338
|
+
ej2_base_1.detach(tbElement);
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
};
|
|
342
|
+
Toolbar.prototype.destroy = function () {
|
|
343
|
+
if (this.isDestroyed) {
|
|
344
|
+
return;
|
|
345
|
+
}
|
|
346
|
+
if (!this.isToolbarDestroyed()) {
|
|
347
|
+
this.destroyToolbar();
|
|
348
|
+
}
|
|
349
|
+
this.toolbarObj = null;
|
|
350
|
+
this.editPanel = null;
|
|
351
|
+
this.isToolbar = null;
|
|
352
|
+
this.editableElement = null;
|
|
353
|
+
this.tbItems = null;
|
|
354
|
+
this.baseToolbar = null;
|
|
355
|
+
this.tbElement = null;
|
|
356
|
+
this.tbWrapper = null;
|
|
357
|
+
this.isTransformChild = null;
|
|
358
|
+
this.contentRenderer = null;
|
|
359
|
+
this.dropDownModule = null;
|
|
360
|
+
this.colorPickerModule = null;
|
|
361
|
+
this.toolbarActionModule = null;
|
|
362
|
+
this.tools = null;
|
|
363
|
+
this.locator = null;
|
|
364
|
+
this.renderFactory = null;
|
|
365
|
+
this.isDestroyed = true;
|
|
366
|
+
};
|
|
367
|
+
Toolbar.prototype.mouseDownHandler = function () {
|
|
368
|
+
if (ej2_base_1.Browser.isDevice && this.parent.inlineMode.enable && !util_1.isIDevice()) {
|
|
369
|
+
this.showFixedTBar();
|
|
370
|
+
}
|
|
371
|
+
};
|
|
372
|
+
Toolbar.prototype.focusChangeHandler = function () {
|
|
373
|
+
if (ej2_base_1.Browser.isDevice && this.parent.inlineMode.enable && !util_1.isIDevice()) {
|
|
374
|
+
this.isToolbar = false;
|
|
375
|
+
this.hideFixedTBar();
|
|
376
|
+
}
|
|
377
|
+
};
|
|
378
|
+
Toolbar.prototype.dropDownBeforeOpenHandler = function () {
|
|
379
|
+
this.isToolbar = true;
|
|
380
|
+
};
|
|
381
|
+
Toolbar.prototype.tbFocusHandler = function (e) {
|
|
382
|
+
var activeElm = document.activeElement;
|
|
383
|
+
var isToolbaractive = ej2_base_2.closest(activeElm, '.e-rte-toolbar');
|
|
384
|
+
if (activeElm === this.parent.getToolbarElement() || isToolbaractive === this.parent.getToolbarElement()) {
|
|
385
|
+
var toolbarItem = this.parent.getToolbarElement().querySelectorAll('.e-expended-nav');
|
|
386
|
+
for (var i = 0; i < toolbarItem.length; i++) {
|
|
387
|
+
if (ej2_base_2.isNullOrUndefined(this.parent.getToolbarElement().querySelector('.e-insert-table-btn'))) {
|
|
388
|
+
toolbarItem[i].setAttribute('tabindex', '0');
|
|
389
|
+
}
|
|
390
|
+
else {
|
|
391
|
+
toolbarItem[i].setAttribute('tabindex', '1');
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
};
|
|
396
|
+
Toolbar.prototype.wireEvents = function () {
|
|
397
|
+
if (this.parent.inlineMode.enable && util_1.isIDevice()) {
|
|
398
|
+
return;
|
|
399
|
+
}
|
|
400
|
+
ej2_base_1.EventHandler.add(this.tbElement, 'focusin', this.tbFocusHandler, this);
|
|
401
|
+
};
|
|
402
|
+
Toolbar.prototype.unWireEvents = function () {
|
|
403
|
+
ej2_base_1.EventHandler.remove(this.tbElement, 'focusin', this.tbFocusHandler);
|
|
404
|
+
};
|
|
405
|
+
Toolbar.prototype.addEventListener = function () {
|
|
406
|
+
if (this.parent.isDestroyed) {
|
|
407
|
+
return;
|
|
408
|
+
}
|
|
409
|
+
this.dropDownModule = new dropdown_buttons_1.DropDownButtons(this.parent, this.locator);
|
|
410
|
+
this.toolbarActionModule = new toolbar_action_1.ToolbarAction(this.parent);
|
|
411
|
+
this.colorPickerModule = new color_picker_1.ColorPickerInput(this.parent, this.locator);
|
|
412
|
+
this.parent.on(events.initialEnd, this.renderToolbar, this);
|
|
413
|
+
this.parent.on(events.bindOnEnd, this.toolbarBindEvent, this);
|
|
414
|
+
this.parent.on(events.toolbarUpdated, this.updateToolbarStatus, this);
|
|
415
|
+
this.parent.on(events.modelChanged, this.onPropertyChanged, this);
|
|
416
|
+
this.parent.on(events.refreshBegin, this.onRefresh, this);
|
|
417
|
+
this.parent.on(events.destroy, this.destroy, this);
|
|
418
|
+
this.parent.on(events.enableFullScreen, this.fullScreen, this);
|
|
419
|
+
this.parent.on(events.disableFullScreen, this.hideScreen, this);
|
|
420
|
+
this.parent.on(events.updateToolbarItem, this.updateItem, this);
|
|
421
|
+
this.parent.on(events.beforeDropDownOpen, this.dropDownBeforeOpenHandler, this);
|
|
422
|
+
this.parent.on(events.focusChange, this.focusChangeHandler, this);
|
|
423
|
+
this.parent.on(events.mouseDown, this.mouseDownHandler, this);
|
|
424
|
+
this.parent.on(events.sourceCodeMouseDown, this.mouseDownHandler, this);
|
|
425
|
+
this.parent.on(events.bindCssClass, this.setCssClass, this);
|
|
426
|
+
};
|
|
427
|
+
Toolbar.prototype.removeEventListener = function () {
|
|
428
|
+
this.parent.off(events.initialEnd, this.renderToolbar);
|
|
429
|
+
this.parent.off(events.bindOnEnd, this.toolbarBindEvent);
|
|
430
|
+
this.parent.off(events.toolbarUpdated, this.updateToolbarStatus);
|
|
431
|
+
this.parent.off(events.modelChanged, this.onPropertyChanged);
|
|
432
|
+
this.parent.off(events.refreshBegin, this.onRefresh);
|
|
433
|
+
this.parent.off(events.destroy, this.destroy);
|
|
434
|
+
this.parent.off(events.enableFullScreen, this.parent.fullScreenModule.showFullScreen);
|
|
435
|
+
this.parent.off(events.disableFullScreen, this.parent.fullScreenModule.hideFullScreen);
|
|
436
|
+
this.parent.off(events.updateToolbarItem, this.updateItem);
|
|
437
|
+
this.parent.off(events.beforeDropDownOpen, this.dropDownBeforeOpenHandler);
|
|
438
|
+
this.parent.off(events.focusChange, this.focusChangeHandler);
|
|
439
|
+
this.parent.off(events.mouseDown, this.mouseDownHandler);
|
|
440
|
+
this.parent.off(events.sourceCodeMouseDown, this.mouseDownHandler);
|
|
441
|
+
this.parent.off(events.bindCssClass, this.setCssClass);
|
|
442
|
+
};
|
|
443
|
+
Toolbar.prototype.setCssClass = function (e) {
|
|
444
|
+
if (this.toolbarObj && e.cssClass) {
|
|
445
|
+
if (ej2_base_2.isNullOrUndefined(e.oldCssClass)) {
|
|
446
|
+
this.toolbarObj.setProperties({ cssClass: (this.toolbarObj.cssClass + ' ' + e.cssClass).trim() });
|
|
447
|
+
}
|
|
448
|
+
else {
|
|
449
|
+
this.toolbarObj.setProperties({ cssClass: (this.toolbarObj.cssClass.replace(e.oldCssClass, '').trim() + ' ' + e.cssClass).trim() });
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
};
|
|
453
|
+
Toolbar.prototype.onRefresh = function () {
|
|
454
|
+
if (!this.parent.inlineMode.enable) {
|
|
455
|
+
this.refreshToolbarOverflow();
|
|
456
|
+
}
|
|
457
|
+
this.parent.autoResize();
|
|
458
|
+
};
|
|
459
|
+
Toolbar.prototype.onPropertyChanged = function (e) {
|
|
460
|
+
if (!ej2_base_2.isNullOrUndefined(e.newProp.inlineMode)) {
|
|
461
|
+
for (var _i = 0, _a = Object.keys(e.newProp.inlineMode); _i < _a.length; _i++) {
|
|
462
|
+
var prop = _a[_i];
|
|
463
|
+
switch (prop) {
|
|
464
|
+
case 'enable':
|
|
465
|
+
this.refreshToolbar();
|
|
466
|
+
break;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
if (!ej2_base_2.isNullOrUndefined(e.newProp.toolbarSettings)) {
|
|
471
|
+
if (!ej2_base_2.isNullOrUndefined(e.newProp.toolbarSettings.enableFloating)) {
|
|
472
|
+
this.toggleFloatClass();
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
if (e.module !== this.getModuleName()) {
|
|
476
|
+
return;
|
|
477
|
+
}
|
|
478
|
+
this.refreshToolbar();
|
|
479
|
+
};
|
|
480
|
+
Toolbar.prototype.refreshToolbar = function () {
|
|
481
|
+
if (ej2_base_2.isNullOrUndefined(this.baseToolbar.toolbarObj)) {
|
|
482
|
+
this.baseToolbar = this.parent.getBaseToolbarObject();
|
|
483
|
+
}
|
|
484
|
+
var tbWrapper = ej2_base_1.select('.' + classes.CLS_TB_WRAP, this.parent.element);
|
|
485
|
+
var tbElement = ej2_base_1.select('.' + classes.CLS_TOOLBAR, this.parent.element);
|
|
486
|
+
if (tbElement || tbWrapper) {
|
|
487
|
+
this.destroyToolbar();
|
|
488
|
+
}
|
|
489
|
+
if (this.parent.toolbarSettings.enable) {
|
|
490
|
+
if (this.baseToolbar && this.baseToolbar.toolbarObj && !this.baseToolbar.toolbarObj.isDestroyed) {
|
|
491
|
+
this.baseToolbar.destroy();
|
|
492
|
+
}
|
|
493
|
+
this.baseToolbar = new base_toolbar_1.BaseToolbar(this.parent, this.locator);
|
|
494
|
+
this.addEventListener();
|
|
495
|
+
this.renderToolbar();
|
|
496
|
+
this.parent.wireScrollElementsEvents();
|
|
497
|
+
if (!ej2_base_1.select('.' + classes.CLS_RTE_SOURCE_CODE_TXTAREA, this.parent.element) && !this.parent.inlineMode.enable) {
|
|
498
|
+
util_1.updateUndoRedoStatus(this.baseToolbar, this.parent.formatter.editorManager.undoRedoManager.getUndoStatus());
|
|
499
|
+
}
|
|
500
|
+
this.parent.notify(events.dynamicModule, {});
|
|
501
|
+
}
|
|
502
|
+
};
|
|
503
|
+
Toolbar.prototype.getModuleName = function () {
|
|
504
|
+
return 'toolbar';
|
|
505
|
+
};
|
|
506
|
+
Toolbar.prototype.renderColorPicker = function (args) {
|
|
507
|
+
this.colorPickerModule.renderColorPickerInput(args);
|
|
508
|
+
};
|
|
509
|
+
return Toolbar;
|
|
510
|
+
}());
|
|
511
|
+
exports.Toolbar = Toolbar;
|
|
512
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IRichTextEditor } from '../base/interface';
|
|
2
|
+
/**
|
|
3
|
+
* XhtmlValidation module called when set enableXhtml as true
|
|
4
|
+
*/
|
|
5
|
+
export declare class XhtmlValidation {
|
|
6
|
+
private parent;
|
|
7
|
+
private currentElement;
|
|
8
|
+
constructor(parent?: IRichTextEditor);
|
|
9
|
+
private addEventListener;
|
|
10
|
+
private removeEventListener;
|
|
11
|
+
private enableXhtmlValidation;
|
|
12
|
+
/**
|
|
13
|
+
* @param {string} currentValue - specifies the string value.
|
|
14
|
+
* @param {number} valueLength - specifies the length of the current value.
|
|
15
|
+
* @returns {void}
|
|
16
|
+
* @deprecated
|
|
17
|
+
*/
|
|
18
|
+
selfEncloseValidation(currentValue: string, valueLength?: number): string;
|
|
19
|
+
private clean;
|
|
20
|
+
private ImageTags;
|
|
21
|
+
private removeTags;
|
|
22
|
+
private RemoveElementNode;
|
|
23
|
+
private RemoveUnsupported;
|
|
24
|
+
private RemoveAttributeByName;
|
|
25
|
+
}
|