@syncfusion/ej2-richtexteditor 29.2.4-760237 → 29.2.4-771571
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 +260 -262
- 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 +22 -2
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +23 -2
- package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
- package/package.json +1 -1
- package/src/common/util.js +21 -1
- package/src/editor-manager/plugin/inserthtml.js +2 -1
- package/styles/bds-lite.css +278 -29
- package/styles/bds.css +289 -30
- package/styles/bootstrap-dark-lite.css +276 -27
- package/styles/bootstrap-dark.css +288 -29
- package/styles/bootstrap-lite.css +278 -29
- package/styles/bootstrap.css +290 -31
- package/styles/bootstrap4-lite.css +276 -27
- package/styles/bootstrap4.css +287 -28
- package/styles/bootstrap5-dark-lite.css +278 -29
- package/styles/bootstrap5-dark.css +289 -30
- package/styles/bootstrap5-lite.css +278 -29
- package/styles/bootstrap5.3-lite.css +276 -27
- package/styles/bootstrap5.3.css +288 -29
- package/styles/bootstrap5.css +289 -30
- package/styles/fabric-dark-lite.css +276 -27
- package/styles/fabric-dark.css +287 -28
- package/styles/fabric-lite.css +276 -27
- package/styles/fabric.css +287 -28
- package/styles/fluent-dark-lite.css +278 -29
- package/styles/fluent-dark.css +289 -31
- package/styles/fluent-lite.css +278 -29
- package/styles/fluent.css +289 -31
- package/styles/fluent2-lite.css +280 -31
- package/styles/fluent2.css +292 -33
- package/styles/highcontrast-light-lite.css +276 -27
- package/styles/highcontrast-light.css +287 -28
- package/styles/highcontrast-lite.css +276 -27
- package/styles/highcontrast.css +287 -28
- package/styles/material-dark-lite.css +276 -27
- package/styles/material-dark.css +287 -28
- package/styles/material-lite.css +276 -27
- package/styles/material.css +287 -28
- package/styles/material3-dark-lite.css +278 -27
- package/styles/material3-dark.css +289 -28
- package/styles/material3-lite.css +278 -27
- package/styles/material3.css +289 -28
- package/styles/rich-text-editor/_bds-definition.scss +9 -1
- package/styles/rich-text-editor/_bigger.scss +16 -3
- package/styles/rich-text-editor/_bootstrap-dark-definition.scss +9 -1
- package/styles/rich-text-editor/_bootstrap-definition.scss +10 -2
- package/styles/rich-text-editor/_bootstrap4-definition.scss +9 -1
- package/styles/rich-text-editor/_bootstrap5-definition.scss +10 -2
- package/styles/rich-text-editor/_bootstrap5.3-definition.scss +9 -1
- package/styles/rich-text-editor/_fabric-dark-definition.scss +9 -1
- package/styles/rich-text-editor/_fabric-definition.scss +9 -1
- package/styles/rich-text-editor/_fluent-definition.scss +9 -2
- package/styles/rich-text-editor/_fluent2-definition.scss +10 -2
- package/styles/rich-text-editor/_fusionnew-definition.scss +8 -1
- package/styles/rich-text-editor/_highcontrast-definition.scss +9 -1
- package/styles/rich-text-editor/_highcontrast-light-definition.scss +9 -1
- package/styles/rich-text-editor/_layout.scss +208 -25
- package/styles/rich-text-editor/_material-dark-definition.scss +9 -1
- package/styles/rich-text-editor/_material-definition.scss +9 -1
- package/styles/rich-text-editor/_material3-definition.scss +9 -1
- package/styles/rich-text-editor/_tailwind-definition.scss +9 -1
- package/styles/rich-text-editor/_tailwind3-definition.scss +11 -3
- package/styles/rich-text-editor/_theme.scss +3 -0
- package/styles/rich-text-editor/bds.css +289 -30
- package/styles/rich-text-editor/bootstrap-dark.css +288 -29
- package/styles/rich-text-editor/bootstrap.css +290 -31
- package/styles/rich-text-editor/bootstrap4.css +287 -28
- package/styles/rich-text-editor/bootstrap5-dark.css +289 -30
- package/styles/rich-text-editor/bootstrap5.3.css +288 -29
- package/styles/rich-text-editor/bootstrap5.css +289 -30
- package/styles/rich-text-editor/fabric-dark.css +287 -28
- package/styles/rich-text-editor/fabric.css +287 -28
- package/styles/rich-text-editor/fluent-dark.css +289 -31
- package/styles/rich-text-editor/fluent.css +289 -31
- package/styles/rich-text-editor/fluent2.css +292 -33
- package/styles/rich-text-editor/highcontrast-light.css +287 -28
- package/styles/rich-text-editor/highcontrast.css +287 -28
- package/styles/rich-text-editor/icons/_bds.scss +4 -1
- package/styles/rich-text-editor/icons/_bootstrap-dark.scss +4 -1
- package/styles/rich-text-editor/icons/_bootstrap.scss +4 -2
- package/styles/rich-text-editor/icons/_bootstrap4.scss +4 -2
- package/styles/rich-text-editor/icons/_bootstrap5.3.scss +4 -2
- package/styles/rich-text-editor/icons/_bootstrap5.scss +4 -2
- package/styles/rich-text-editor/icons/_fabric-dark.scss +4 -2
- package/styles/rich-text-editor/icons/_fabric.scss +4 -2
- package/styles/rich-text-editor/icons/_fluent.scss +5 -1
- package/styles/rich-text-editor/icons/_fluent2.scss +4 -2
- package/styles/rich-text-editor/icons/_fusionnew.scss +4 -2
- package/styles/rich-text-editor/icons/_highcontrast-light.scss +5 -1
- package/styles/rich-text-editor/icons/_highcontrast.scss +5 -1
- package/styles/rich-text-editor/icons/_material-dark.scss +5 -1
- package/styles/rich-text-editor/icons/_material.scss +5 -1
- package/styles/rich-text-editor/icons/_material3.scss +5 -1
- package/styles/rich-text-editor/icons/_tailwind.scss +5 -1
- package/styles/rich-text-editor/icons/_tailwind3.scss +5 -1
- package/styles/rich-text-editor/material-dark.css +287 -28
- package/styles/rich-text-editor/material.css +287 -28
- package/styles/rich-text-editor/material3-dark.css +289 -28
- package/styles/rich-text-editor/material3.css +289 -28
- package/styles/rich-text-editor/tailwind-dark.css +289 -30
- package/styles/rich-text-editor/tailwind.css +289 -30
- package/styles/rich-text-editor/tailwind3.css +291 -32
- package/styles/tailwind-dark-lite.css +278 -29
- package/styles/tailwind-dark.css +289 -30
- package/styles/tailwind-lite.css +278 -29
- package/styles/tailwind.css +289 -30
- package/styles/tailwind3-lite.css +280 -31
- package/styles/tailwind3.css +291 -32
- package/aceconfig.js +0 -17
- package/blazorGlobalSrc/common/config.d.ts +0 -63
- package/blazorGlobalSrc/common/config.js +0 -123
- package/blazorGlobalSrc/common/constant.d.ts +0 -117
- package/blazorGlobalSrc/common/constant.js +0 -23
- package/blazorGlobalSrc/common/editor-styles.d.ts +0 -1
- package/blazorGlobalSrc/common/editor-styles.js +0 -5
- package/blazorGlobalSrc/common/index.d.ts +0 -7
- package/blazorGlobalSrc/common/index.js +0 -9
- package/blazorGlobalSrc/common/interface.d.ts +0 -119
- package/blazorGlobalSrc/common/interface.js +0 -4
- package/blazorGlobalSrc/common/types.d.ts +0 -25
- package/blazorGlobalSrc/common/types.js +0 -4
- package/blazorGlobalSrc/common/user-agent.d.ts +0 -41
- package/blazorGlobalSrc/common/user-agent.js +0 -71
- package/blazorGlobalSrc/common/util.d.ts +0 -70
- package/blazorGlobalSrc/common/util.js +0 -222
- package/blazorGlobalSrc/components.d.ts +0 -8
- package/blazorGlobalSrc/components.js +0 -12
- package/blazorGlobalSrc/editor-manager/base/classes.d.ts +0 -31
- package/blazorGlobalSrc/editor-manager/base/classes.js +0 -28
- package/blazorGlobalSrc/editor-manager/base/constant.d.ts +0 -97
- package/blazorGlobalSrc/editor-manager/base/constant.js +0 -41
- package/blazorGlobalSrc/editor-manager/base/editor-manager.d.ts +0 -95
- package/blazorGlobalSrc/editor-manager/base/editor-manager.js +0 -339
- package/blazorGlobalSrc/editor-manager/base/enum.d.ts +0 -17
- package/blazorGlobalSrc/editor-manager/base/enum.js +0 -4
- package/blazorGlobalSrc/editor-manager/base/interface.d.ts +0 -263
- package/blazorGlobalSrc/editor-manager/base/interface.js +0 -4
- package/blazorGlobalSrc/editor-manager/base/types.d.ts +0 -7
- package/blazorGlobalSrc/editor-manager/base/types.js +0 -4
- package/blazorGlobalSrc/editor-manager/base.d.ts +0 -8
- package/blazorGlobalSrc/editor-manager/base.js +0 -10
- package/blazorGlobalSrc/editor-manager/index.d.ts +0 -5
- package/blazorGlobalSrc/editor-manager/index.js +0 -9
- package/blazorGlobalSrc/editor-manager/plugin/alignments.d.ts +0 -26
- package/blazorGlobalSrc/editor-manager/plugin/alignments.js +0 -105
- package/blazorGlobalSrc/editor-manager/plugin/audio.d.ts +0 -34
- package/blazorGlobalSrc/editor-manager/plugin/audio.js +0 -145
- package/blazorGlobalSrc/editor-manager/plugin/clearformat-exec.d.ts +0 -24
- package/blazorGlobalSrc/editor-manager/plugin/clearformat-exec.js +0 -47
- package/blazorGlobalSrc/editor-manager/plugin/clearformat.d.ts +0 -29
- package/blazorGlobalSrc/editor-manager/plugin/clearformat.js +0 -249
- package/blazorGlobalSrc/editor-manager/plugin/dom-node.d.ts +0 -351
- package/blazorGlobalSrc/editor-manager/plugin/dom-node.js +0 -737
- package/blazorGlobalSrc/editor-manager/plugin/dom-tree.d.ts +0 -84
- package/blazorGlobalSrc/editor-manager/plugin/dom-tree.js +0 -164
- package/blazorGlobalSrc/editor-manager/plugin/emoji-picker-action.d.ts +0 -10
- package/blazorGlobalSrc/editor-manager/plugin/emoji-picker-action.js +0 -86
- package/blazorGlobalSrc/editor-manager/plugin/format-painter-actions.d.ts +0 -47
- package/blazorGlobalSrc/editor-manager/plugin/format-painter-actions.js +0 -622
- package/blazorGlobalSrc/editor-manager/plugin/formats.d.ts +0 -43
- package/blazorGlobalSrc/editor-manager/plugin/formats.js +0 -597
- package/blazorGlobalSrc/editor-manager/plugin/image.d.ts +0 -48
- package/blazorGlobalSrc/editor-manager/plugin/image.js +0 -399
- package/blazorGlobalSrc/editor-manager/plugin/indents.d.ts +0 -24
- package/blazorGlobalSrc/editor-manager/plugin/indents.js +0 -106
- package/blazorGlobalSrc/editor-manager/plugin/insert-methods.d.ts +0 -48
- package/blazorGlobalSrc/editor-manager/plugin/insert-methods.js +0 -37
- package/blazorGlobalSrc/editor-manager/plugin/insert-text.d.ts +0 -22
- package/blazorGlobalSrc/editor-manager/plugin/insert-text.js +0 -36
- package/blazorGlobalSrc/editor-manager/plugin/inserthtml-exec.d.ts +0 -22
- package/blazorGlobalSrc/editor-manager/plugin/inserthtml-exec.js +0 -49
- package/blazorGlobalSrc/editor-manager/plugin/inserthtml.d.ts +0 -51
- package/blazorGlobalSrc/editor-manager/plugin/inserthtml.js +0 -985
- package/blazorGlobalSrc/editor-manager/plugin/isformatted.d.ts +0 -89
- package/blazorGlobalSrc/editor-manager/plugin/isformatted.js +0 -199
- package/blazorGlobalSrc/editor-manager/plugin/link.d.ts +0 -41
- package/blazorGlobalSrc/editor-manager/plugin/link.js +0 -550
- package/blazorGlobalSrc/editor-manager/plugin/lists.d.ts +0 -74
- package/blazorGlobalSrc/editor-manager/plugin/lists.js +0 -1503
- package/blazorGlobalSrc/editor-manager/plugin/ms-word-clean-up.d.ts +0 -61
- package/blazorGlobalSrc/editor-manager/plugin/ms-word-clean-up.js +0 -1136
- package/blazorGlobalSrc/editor-manager/plugin/nodecutter.d.ts +0 -64
- package/blazorGlobalSrc/editor-manager/plugin/nodecutter.js +0 -167
- package/blazorGlobalSrc/editor-manager/plugin/selection-commands.d.ts +0 -41
- package/blazorGlobalSrc/editor-manager/plugin/selection-commands.js +0 -1069
- package/blazorGlobalSrc/editor-manager/plugin/selection-exec.d.ts +0 -24
- package/blazorGlobalSrc/editor-manager/plugin/selection-exec.js +0 -49
- package/blazorGlobalSrc/editor-manager/plugin/table-selection.d.ts +0 -26
- package/blazorGlobalSrc/editor-manager/plugin/table-selection.js +0 -210
- package/blazorGlobalSrc/editor-manager/plugin/table.d.ts +0 -56
- package/blazorGlobalSrc/editor-manager/plugin/table.js +0 -1100
- package/blazorGlobalSrc/editor-manager/plugin/toolbar-status.d.ts +0 -39
- package/blazorGlobalSrc/editor-manager/plugin/toolbar-status.js +0 -384
- package/blazorGlobalSrc/editor-manager/plugin/undo.d.ts +0 -85
- package/blazorGlobalSrc/editor-manager/plugin/undo.js +0 -216
- package/blazorGlobalSrc/editor-manager/plugin/video.d.ts +0 -38
- package/blazorGlobalSrc/editor-manager/plugin/video.js +0 -311
- package/blazorGlobalSrc/editor-manager/plugin.d.ts +0 -27
- package/blazorGlobalSrc/editor-manager/plugin.js +0 -31
- package/blazorGlobalSrc/global.d.ts +0 -1
- package/blazorGlobalSrc/global.js +0 -3
- package/blazorGlobalSrc/index.d.ts +0 -8
- package/blazorGlobalSrc/index.js +0 -12
- package/blazorGlobalSrc/markdown-parser/base/constant.d.ts +0 -39
- package/blazorGlobalSrc/markdown-parser/base/constant.js +0 -10
- package/blazorGlobalSrc/markdown-parser/base/interface.d.ts +0 -169
- package/blazorGlobalSrc/markdown-parser/base/interface.js +0 -4
- package/blazorGlobalSrc/markdown-parser/base/markdown-parser.d.ts +0 -69
- package/blazorGlobalSrc/markdown-parser/base/markdown-parser.js +0 -87
- package/blazorGlobalSrc/markdown-parser/base/types.d.ts +0 -7
- package/blazorGlobalSrc/markdown-parser/base/types.js +0 -4
- package/blazorGlobalSrc/markdown-parser/base.d.ts +0 -7
- package/blazorGlobalSrc/markdown-parser/base.js +0 -9
- package/blazorGlobalSrc/markdown-parser/index.d.ts +0 -5
- package/blazorGlobalSrc/markdown-parser/index.js +0 -9
- package/blazorGlobalSrc/markdown-parser/plugin/clearformat.d.ts +0 -28
- package/blazorGlobalSrc/markdown-parser/plugin/clearformat.js +0 -110
- package/blazorGlobalSrc/markdown-parser/plugin/formats.d.ts +0 -32
- package/blazorGlobalSrc/markdown-parser/plugin/formats.js +0 -225
- package/blazorGlobalSrc/markdown-parser/plugin/insert-text.d.ts +0 -24
- package/blazorGlobalSrc/markdown-parser/plugin/insert-text.js +0 -49
- package/blazorGlobalSrc/markdown-parser/plugin/link.d.ts +0 -24
- package/blazorGlobalSrc/markdown-parser/plugin/link.js +0 -50
- package/blazorGlobalSrc/markdown-parser/plugin/lists.d.ts +0 -39
- package/blazorGlobalSrc/markdown-parser/plugin/lists.js +0 -462
- package/blazorGlobalSrc/markdown-parser/plugin/markdown-selection.d.ts +0 -140
- package/blazorGlobalSrc/markdown-parser/plugin/markdown-selection.js +0 -104
- package/blazorGlobalSrc/markdown-parser/plugin/md-selection-formats.d.ts +0 -31
- package/blazorGlobalSrc/markdown-parser/plugin/md-selection-formats.js +0 -335
- package/blazorGlobalSrc/markdown-parser/plugin/table.d.ts +0 -52
- package/blazorGlobalSrc/markdown-parser/plugin/table.js +0 -216
- package/blazorGlobalSrc/markdown-parser/plugin/undo.d.ts +0 -83
- package/blazorGlobalSrc/markdown-parser/plugin/undo.js +0 -147
- package/blazorGlobalSrc/markdown-parser/plugin.d.ts +0 -11
- package/blazorGlobalSrc/markdown-parser/plugin.js +0 -15
- package/blazorGlobalSrc/rich-text-editor/actions/base-quick-toolbar.d.ts +0 -114
- package/blazorGlobalSrc/rich-text-editor/actions/base-quick-toolbar.js +0 -465
- package/blazorGlobalSrc/rich-text-editor/actions/base-toolbar.d.ts +0 -58
- package/blazorGlobalSrc/rich-text-editor/actions/base-toolbar.js +0 -216
- package/blazorGlobalSrc/rich-text-editor/actions/color-picker.d.ts +0 -52
- package/blazorGlobalSrc/rich-text-editor/actions/color-picker.js +0 -241
- package/blazorGlobalSrc/rich-text-editor/actions/count.d.ts +0 -55
- package/blazorGlobalSrc/rich-text-editor/actions/count.js +0 -117
- package/blazorGlobalSrc/rich-text-editor/actions/dropdown-buttons.d.ts +0 -72
- package/blazorGlobalSrc/rich-text-editor/actions/dropdown-buttons.js +0 -552
- package/blazorGlobalSrc/rich-text-editor/actions/emoji-picker.d.ts +0 -51
- package/blazorGlobalSrc/rich-text-editor/actions/emoji-picker.js +0 -853
- package/blazorGlobalSrc/rich-text-editor/actions/enter-key.d.ts +0 -28
- package/blazorGlobalSrc/rich-text-editor/actions/enter-key.js +0 -821
- package/blazorGlobalSrc/rich-text-editor/actions/execute-command-callback.d.ts +0 -11
- package/blazorGlobalSrc/rich-text-editor/actions/execute-command-callback.js +0 -28
- package/blazorGlobalSrc/rich-text-editor/actions/file-manager.d.ts +0 -45
- package/blazorGlobalSrc/rich-text-editor/actions/file-manager.js +0 -249
- package/blazorGlobalSrc/rich-text-editor/actions/format-painter.d.ts +0 -25
- package/blazorGlobalSrc/rich-text-editor/actions/format-painter.js +0 -156
- package/blazorGlobalSrc/rich-text-editor/actions/full-screen.d.ts +0 -40
- package/blazorGlobalSrc/rich-text-editor/actions/full-screen.js +0 -148
- package/blazorGlobalSrc/rich-text-editor/actions/html-attributes.d.ts +0 -15
- package/blazorGlobalSrc/rich-text-editor/actions/html-attributes.js +0 -50
- package/blazorGlobalSrc/rich-text-editor/actions/html-editor.d.ts +0 -120
- package/blazorGlobalSrc/rich-text-editor/actions/html-editor.js +0 -1244
- package/blazorGlobalSrc/rich-text-editor/actions/html-toolbar-status.d.ts +0 -14
- package/blazorGlobalSrc/rich-text-editor/actions/html-toolbar-status.js +0 -47
- package/blazorGlobalSrc/rich-text-editor/actions/import-export.d.ts +0 -21
- package/blazorGlobalSrc/rich-text-editor/actions/import-export.js +0 -117
- package/blazorGlobalSrc/rich-text-editor/actions/keyboard-model.d.ts +0 -30
- package/blazorGlobalSrc/rich-text-editor/actions/keyboard.d.ts +0 -110
- package/blazorGlobalSrc/rich-text-editor/actions/keyboard.js +0 -163
- package/blazorGlobalSrc/rich-text-editor/actions/markdown-editor.d.ts +0 -66
- package/blazorGlobalSrc/rich-text-editor/actions/markdown-editor.js +0 -142
- package/blazorGlobalSrc/rich-text-editor/actions/markdown-toolbar-status.d.ts +0 -23
- package/blazorGlobalSrc/rich-text-editor/actions/markdown-toolbar-status.js +0 -124
- package/blazorGlobalSrc/rich-text-editor/actions/paste-clean-up.d.ts +0 -86
- package/blazorGlobalSrc/rich-text-editor/actions/paste-clean-up.js +0 -1071
- package/blazorGlobalSrc/rich-text-editor/actions/quick-toolbar.d.ts +0 -151
- package/blazorGlobalSrc/rich-text-editor/actions/quick-toolbar.js +0 -548
- package/blazorGlobalSrc/rich-text-editor/actions/resize.d.ts +0 -37
- package/blazorGlobalSrc/rich-text-editor/actions/resize.js +0 -188
- package/blazorGlobalSrc/rich-text-editor/actions/sanitize-helper.d.ts +0 -11
- package/blazorGlobalSrc/rich-text-editor/actions/sanitize-helper.js +0 -168
- package/blazorGlobalSrc/rich-text-editor/actions/toolbar-action.d.ts +0 -18
- package/blazorGlobalSrc/rich-text-editor/actions/toolbar-action.js +0 -76
- package/blazorGlobalSrc/rich-text-editor/actions/toolbar.d.ts +0 -185
- package/blazorGlobalSrc/rich-text-editor/actions/toolbar.js +0 -512
- package/blazorGlobalSrc/rich-text-editor/actions/xhtml-validation.d.ts +0 -25
- package/blazorGlobalSrc/rich-text-editor/actions/xhtml-validation.js +0 -166
- package/blazorGlobalSrc/rich-text-editor/actions.d.ts +0 -26
- package/blazorGlobalSrc/rich-text-editor/actions.js +0 -30
- package/blazorGlobalSrc/rich-text-editor/audio.d.ts +0 -4
- package/blazorGlobalSrc/rich-text-editor/audio.js +0 -8
- package/blazorGlobalSrc/rich-text-editor/base/classes.d.ts +0 -628
- package/blazorGlobalSrc/rich-text-editor/base/classes.js +0 -129
- package/blazorGlobalSrc/rich-text-editor/base/constant.d.ts +0 -808
- package/blazorGlobalSrc/rich-text-editor/base/constant.js +0 -334
- package/blazorGlobalSrc/rich-text-editor/base/enum.d.ts +0 -81
- package/blazorGlobalSrc/rich-text-editor/base/enum.js +0 -37
- package/blazorGlobalSrc/rich-text-editor/base/interface.d.ts +0 -1577
- package/blazorGlobalSrc/rich-text-editor/base/interface.js +0 -194
- package/blazorGlobalSrc/rich-text-editor/base/rich-text-editor-model.d.ts +0 -1032
- package/blazorGlobalSrc/rich-text-editor/base/rich-text-editor.d.ts +0 -1699
- package/blazorGlobalSrc/rich-text-editor/base/rich-text-editor.js +0 -2645
- package/blazorGlobalSrc/rich-text-editor/base/util.d.ts +0 -212
- package/blazorGlobalSrc/rich-text-editor/base/util.js +0 -610
- package/blazorGlobalSrc/rich-text-editor/base.d.ts +0 -10
- package/blazorGlobalSrc/rich-text-editor/base.js +0 -13
- package/blazorGlobalSrc/rich-text-editor/formatter/formatter.d.ts +0 -87
- package/blazorGlobalSrc/rich-text-editor/formatter/formatter.js +0 -223
- package/blazorGlobalSrc/rich-text-editor/formatter/html-formatter.d.ts +0 -34
- package/blazorGlobalSrc/rich-text-editor/formatter/html-formatter.js +0 -44
- package/blazorGlobalSrc/rich-text-editor/formatter/markdown-formatter.d.ts +0 -39
- package/blazorGlobalSrc/rich-text-editor/formatter/markdown-formatter.js +0 -48
- package/blazorGlobalSrc/rich-text-editor/formatter.d.ts +0 -6
- package/blazorGlobalSrc/rich-text-editor/formatter.js +0 -10
- package/blazorGlobalSrc/rich-text-editor/html-editor.d.ts +0 -4
- package/blazorGlobalSrc/rich-text-editor/html-editor.js +0 -8
- package/blazorGlobalSrc/rich-text-editor/image.d.ts +0 -4
- package/blazorGlobalSrc/rich-text-editor/image.js +0 -8
- package/blazorGlobalSrc/rich-text-editor/index.d.ts +0 -9
- package/blazorGlobalSrc/rich-text-editor/index.js +0 -12
- package/blazorGlobalSrc/rich-text-editor/link.d.ts +0 -4
- package/blazorGlobalSrc/rich-text-editor/link.js +0 -8
- package/blazorGlobalSrc/rich-text-editor/markdown-editor.d.ts +0 -4
- package/blazorGlobalSrc/rich-text-editor/markdown-editor.js +0 -8
- package/blazorGlobalSrc/rich-text-editor/models/default-locale.d.ts +0 -25
- package/blazorGlobalSrc/rich-text-editor/models/default-locale.js +0 -391
- package/blazorGlobalSrc/rich-text-editor/models/iframe-settings-model.d.ts +0 -68
- package/blazorGlobalSrc/rich-text-editor/models/iframe-settings.d.ts +0 -61
- package/blazorGlobalSrc/rich-text-editor/models/iframe-settings.js +0 -60
- package/blazorGlobalSrc/rich-text-editor/models/inline-mode-model.d.ts +0 -24
- package/blazorGlobalSrc/rich-text-editor/models/inline-mode.d.ts +0 -20
- package/blazorGlobalSrc/rich-text-editor/models/inline-mode.js +0 -37
- package/blazorGlobalSrc/rich-text-editor/models/items.d.ts +0 -36
- package/blazorGlobalSrc/rich-text-editor/models/items.js +0 -1011
- package/blazorGlobalSrc/rich-text-editor/models/models.d.ts +0 -7
- package/blazorGlobalSrc/rich-text-editor/models/models.js +0 -4
- package/blazorGlobalSrc/rich-text-editor/models/slash-menu-settings-model.d.ts +0 -40
- package/blazorGlobalSrc/rich-text-editor/models/slash-menu-settings.d.ts +0 -50
- package/blazorGlobalSrc/rich-text-editor/models/slash-menu-settings.js +0 -143
- package/blazorGlobalSrc/rich-text-editor/models/toolbar-settings-model.d.ts +0 -1130
- package/blazorGlobalSrc/rich-text-editor/models/toolbar-settings.d.ts +0 -992
- package/blazorGlobalSrc/rich-text-editor/models/toolbar-settings.js +0 -510
- package/blazorGlobalSrc/rich-text-editor/models.d.ts +0 -4
- package/blazorGlobalSrc/rich-text-editor/models.js +0 -4
- package/blazorGlobalSrc/rich-text-editor/quick-toolbar.d.ts +0 -4
- package/blazorGlobalSrc/rich-text-editor/quick-toolbar.js +0 -8
- package/blazorGlobalSrc/rich-text-editor/renderer/audio-module.d.ts +0 -82
- package/blazorGlobalSrc/rich-text-editor/renderer/audio-module.js +0 -886
- package/blazorGlobalSrc/rich-text-editor/renderer/content-renderer.d.ts +0 -65
- package/blazorGlobalSrc/rich-text-editor/renderer/content-renderer.js +0 -49
- package/blazorGlobalSrc/rich-text-editor/renderer/dialog-renderer.d.ts +0 -39
- package/blazorGlobalSrc/rich-text-editor/renderer/dialog-renderer.js +0 -111
- package/blazorGlobalSrc/rich-text-editor/renderer/iframe-content-renderer.d.ts +0 -33
- package/blazorGlobalSrc/rich-text-editor/renderer/iframe-content-renderer.js +0 -101
- package/blazorGlobalSrc/rich-text-editor/renderer/image-module.d.ts +0 -199
- package/blazorGlobalSrc/rich-text-editor/renderer/image-module.js +0 -2494
- package/blazorGlobalSrc/rich-text-editor/renderer/link-module.d.ts +0 -63
- package/blazorGlobalSrc/rich-text-editor/renderer/link-module.js +0 -596
- package/blazorGlobalSrc/rich-text-editor/renderer/markdown-renderer.d.ts +0 -65
- package/blazorGlobalSrc/rich-text-editor/renderer/markdown-renderer.js +0 -38
- package/blazorGlobalSrc/rich-text-editor/renderer/popup-renderer.d.ts +0 -54
- package/blazorGlobalSrc/rich-text-editor/renderer/popup-renderer.js +0 -35
- package/blazorGlobalSrc/rich-text-editor/renderer/render.d.ts +0 -46
- package/blazorGlobalSrc/rich-text-editor/renderer/render.js +0 -70
- package/blazorGlobalSrc/rich-text-editor/renderer/slash-menu.d.ts +0 -20
- package/blazorGlobalSrc/rich-text-editor/renderer/slash-menu.js +0 -224
- package/blazorGlobalSrc/rich-text-editor/renderer/table-module.d.ts +0 -155
- package/blazorGlobalSrc/rich-text-editor/renderer/table-module.js +0 -2206
- package/blazorGlobalSrc/rich-text-editor/renderer/toolbar-renderer.d.ts +0 -131
- package/blazorGlobalSrc/rich-text-editor/renderer/toolbar-renderer.js +0 -747
- package/blazorGlobalSrc/rich-text-editor/renderer/video-module.d.ts +0 -120
- package/blazorGlobalSrc/rich-text-editor/renderer/video-module.js +0 -1507
- package/blazorGlobalSrc/rich-text-editor/renderer/view-source.d.ts +0 -74
- package/blazorGlobalSrc/rich-text-editor/renderer/view-source.js +0 -225
- package/blazorGlobalSrc/rich-text-editor/renderer.d.ts +0 -17
- package/blazorGlobalSrc/rich-text-editor/renderer.js +0 -21
- package/blazorGlobalSrc/rich-text-editor/services/renderer-factory.d.ts +0 -33
- package/blazorGlobalSrc/rich-text-editor/services/renderer-factory.js +0 -29
- package/blazorGlobalSrc/rich-text-editor/services/service-locator.d.ts +0 -29
- package/blazorGlobalSrc/rich-text-editor/services/service-locator.js +0 -25
- package/blazorGlobalSrc/rich-text-editor/services.d.ts +0 -5
- package/blazorGlobalSrc/rich-text-editor/services.js +0 -9
- package/blazorGlobalSrc/rich-text-editor/toolbar.d.ts +0 -4
- package/blazorGlobalSrc/rich-text-editor/toolbar.js +0 -8
- package/blazorGlobalSrc/rich-text-editor/video.d.ts +0 -4
- package/blazorGlobalSrc/rich-text-editor/video.js +0 -8
- package/blazorGlobalSrc/rich-text-editor.d.ts +0 -4
- package/blazorGlobalSrc/rich-text-editor.js +0 -8
- package/blazorGlobalSrc/selection/index.d.ts +0 -4
- package/blazorGlobalSrc/selection/index.js +0 -8
- package/blazorGlobalSrc/selection/selection.d.ts +0 -244
- package/blazorGlobalSrc/selection/selection.js +0 -309
- package/helpers/e2e/index.d.ts +0 -1
- package/helpers/e2e/index.js +0 -8
- package/helpers/e2e/rte-helper.d.ts +0 -79
- package/helpers/e2e/rte-helper.js +0 -81
- package/src/global.d.ts +0 -1
- package/tslint.json +0 -111
|
@@ -1,11 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,45 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,249 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,156 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,40 +0,0 @@
|
|
|
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
|
-
}
|