@syncfusion/ej2-richtexteditor 23.2.7 → 24.1.41-569421
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 +259 -259
- package/CHANGELOG.md +1953 -1749
- package/README.md +76 -76
- package/dist/ej2-richtexteditor.umd.min.js +1 -10
- package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es2015.js +9971 -8025
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +8445 -6498
- package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
- package/helpers/e2e/index.js +3 -3
- package/helpers/e2e/rte-helper.js +13 -13
- package/license +9 -9
- package/package.json +74 -74
- package/src/common/config.d.ts +7 -0
- package/src/common/config.js +12 -1
- package/src/common/constant.d.ts +6 -0
- package/src/common/constant.js +6 -0
- package/src/common/interface.d.ts +19 -7
- package/src/common/types.d.ts +6 -0
- package/src/common/util.d.ts +6 -0
- package/src/common/util.js +61 -20
- package/src/editor-manager/base/classes.d.ts +1 -1
- package/src/editor-manager/base/classes.js +1 -1
- package/src/editor-manager/base/constant.d.ts +6 -0
- package/src/editor-manager/base/constant.js +6 -0
- package/src/editor-manager/base/editor-manager.d.ts +8 -3
- package/src/editor-manager/base/editor-manager.js +62 -3
- package/src/editor-manager/base/enum.d.ts +2 -2
- package/src/editor-manager/base/interface.d.ts +17 -9
- package/src/editor-manager/base/types.d.ts +1 -1
- package/src/editor-manager/plugin/alignments.d.ts +2 -2
- package/src/editor-manager/plugin/alignments.js +2 -2
- package/src/editor-manager/plugin/audio.d.ts +3 -3
- package/src/editor-manager/plugin/audio.js +16 -6
- package/src/editor-manager/plugin/clearformat-exec.d.ts +2 -2
- package/src/editor-manager/plugin/clearformat-exec.js +2 -2
- package/src/editor-manager/plugin/clearformat.d.ts +1 -1
- package/src/editor-manager/plugin/clearformat.js +1 -1
- package/src/editor-manager/plugin/dom-node.d.ts +39 -35
- package/src/editor-manager/plugin/dom-node.js +203 -62
- package/src/editor-manager/plugin/format-painter-actions.d.ts +2 -1
- package/src/editor-manager/plugin/format-painter-actions.js +20 -2
- package/src/editor-manager/plugin/formats.d.ts +3 -2
- package/src/editor-manager/plugin/formats.js +40 -5
- package/src/editor-manager/plugin/image.d.ts +3 -3
- package/src/editor-manager/plugin/image.js +41 -18
- package/src/editor-manager/plugin/indents.d.ts +2 -2
- package/src/editor-manager/plugin/indents.js +3 -3
- package/src/editor-manager/plugin/insert-methods.d.ts +4 -4
- package/src/editor-manager/plugin/insert-methods.js +4 -4
- package/src/editor-manager/plugin/insert-text.d.ts +2 -2
- package/src/editor-manager/plugin/insert-text.js +2 -2
- package/src/editor-manager/plugin/inserthtml-exec.d.ts +2 -2
- package/src/editor-manager/plugin/inserthtml-exec.js +2 -2
- package/src/editor-manager/plugin/inserthtml.d.ts +3 -2
- package/src/editor-manager/plugin/inserthtml.js +85 -22
- package/src/editor-manager/plugin/isformatted.d.ts +8 -8
- package/src/editor-manager/plugin/isformatted.js +8 -8
- package/src/editor-manager/plugin/link.d.ts +2 -2
- package/src/editor-manager/plugin/link.js +10 -5
- package/src/editor-manager/plugin/lists.d.ts +2 -2
- package/src/editor-manager/plugin/lists.js +161 -72
- package/src/editor-manager/plugin/ms-word-clean-up.d.ts +4 -1
- package/src/editor-manager/plugin/ms-word-clean-up.js +216 -86
- package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
- package/src/editor-manager/plugin/nodecutter.js +11 -8
- package/src/editor-manager/plugin/selection-commands.d.ts +3 -1
- package/src/editor-manager/plugin/selection-commands.js +249 -5
- package/src/editor-manager/plugin/selection-exec.d.ts +2 -2
- package/src/editor-manager/plugin/selection-exec.js +2 -2
- package/src/editor-manager/plugin/table.d.ts +6 -3
- package/src/editor-manager/plugin/table.js +97 -51
- package/src/editor-manager/plugin/toolbar-status.d.ts +4 -4
- package/src/editor-manager/plugin/toolbar-status.js +22 -12
- package/src/editor-manager/plugin/undo.d.ts +7 -6
- package/src/editor-manager/plugin/undo.js +27 -7
- package/src/editor-manager/plugin/video.d.ts +3 -3
- package/src/editor-manager/plugin/video.js +3 -3
- package/src/global.d.ts +1 -0
- package/src/markdown-parser/base/interface.d.ts +10 -10
- package/src/markdown-parser/base/markdown-parser.d.ts +3 -3
- package/src/markdown-parser/base/markdown-parser.js +3 -3
- package/src/markdown-parser/base/types.d.ts +1 -1
- package/src/markdown-parser/plugin/clearformat.d.ts +2 -2
- package/src/markdown-parser/plugin/clearformat.js +2 -2
- package/src/markdown-parser/plugin/formats.d.ts +2 -2
- package/src/markdown-parser/plugin/formats.js +2 -2
- package/src/markdown-parser/plugin/insert-text.d.ts +2 -2
- package/src/markdown-parser/plugin/insert-text.js +2 -2
- package/src/markdown-parser/plugin/link.d.ts +2 -2
- package/src/markdown-parser/plugin/link.js +2 -2
- package/src/markdown-parser/plugin/markdown-selection.d.ts +14 -14
- package/src/markdown-parser/plugin/markdown-selection.js +14 -14
- package/src/markdown-parser/plugin/md-selection-formats.d.ts +1 -1
- package/src/markdown-parser/plugin/md-selection-formats.js +1 -1
- package/src/markdown-parser/plugin/table.d.ts +3 -3
- package/src/markdown-parser/plugin/table.js +3 -3
- package/src/markdown-parser/plugin/undo.d.ts +6 -6
- package/src/markdown-parser/plugin/undo.js +6 -6
- package/src/rich-text-editor/actions/base-quick-toolbar.d.ts +13 -12
- package/src/rich-text-editor/actions/base-quick-toolbar.js +70 -23
- package/src/rich-text-editor/actions/base-toolbar.d.ts +3 -3
- package/src/rich-text-editor/actions/base-toolbar.js +36 -37
- package/src/rich-text-editor/actions/color-picker.d.ts +3 -2
- package/src/rich-text-editor/actions/color-picker.js +15 -5
- package/src/rich-text-editor/actions/count.d.ts +3 -3
- package/src/rich-text-editor/actions/count.js +4 -4
- package/src/rich-text-editor/actions/dropdown-buttons.d.ts +3 -2
- package/src/rich-text-editor/actions/dropdown-buttons.js +13 -7
- package/src/rich-text-editor/actions/emoji-picker.d.ts +1 -1
- package/src/rich-text-editor/actions/emoji-picker.js +17 -8
- package/src/rich-text-editor/actions/enter-key.js +10 -5
- package/src/rich-text-editor/actions/file-manager.js +1 -1
- package/src/rich-text-editor/actions/format-painter.js +5 -2
- package/src/rich-text-editor/actions/full-screen.d.ts +3 -3
- package/src/rich-text-editor/actions/full-screen.js +8 -7
- package/src/rich-text-editor/actions/html-editor.d.ts +5 -3
- package/src/rich-text-editor/actions/html-editor.js +134 -22
- package/src/rich-text-editor/actions/keyboard-model.d.ts +16 -16
- package/src/rich-text-editor/actions/keyboard.d.ts +1 -1
- package/src/rich-text-editor/actions/keyboard.js +23 -21
- package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
- package/src/rich-text-editor/actions/markdown-editor.js +5 -3
- package/src/rich-text-editor/actions/paste-clean-up.d.ts +6 -1
- package/src/rich-text-editor/actions/paste-clean-up.js +157 -29
- package/src/rich-text-editor/actions/quick-toolbar.d.ts +17 -9
- package/src/rich-text-editor/actions/quick-toolbar.js +68 -21
- package/src/rich-text-editor/actions/resize.js +2 -1
- package/src/rich-text-editor/actions/toolbar-action.js +1 -1
- package/src/rich-text-editor/actions/toolbar.d.ts +16 -16
- package/src/rich-text-editor/actions/toolbar.js +48 -109
- package/src/rich-text-editor/actions/xhtml-validation.d.ts +1 -1
- package/src/rich-text-editor/actions/xhtml-validation.js +1 -1
- package/src/rich-text-editor/base/classes.d.ts +125 -125
- package/src/rich-text-editor/base/classes.js +125 -125
- package/src/rich-text-editor/base/constant.d.ts +195 -150
- package/src/rich-text-editor/base/constant.js +364 -150
- package/src/rich-text-editor/base/enum.d.ts +1 -1
- package/src/rich-text-editor/base/enum.js +1 -1
- package/src/rich-text-editor/base/interface.d.ts +96 -52
- package/src/rich-text-editor/base/interface.js +1 -1
- package/src/rich-text-editor/base/rich-text-editor-model.d.ts +891 -891
- package/src/rich-text-editor/base/rich-text-editor.d.ts +76 -64
- package/src/rich-text-editor/base/rich-text-editor.js +247 -160
- package/src/rich-text-editor/base/util.d.ts +1 -1
- package/src/rich-text-editor/base/util.js +23 -5
- package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
- package/src/rich-text-editor/formatter/formatter.js +24 -12
- package/src/rich-text-editor/formatter/html-formatter.d.ts +2 -2
- package/src/rich-text-editor/formatter/html-formatter.js +15 -15
- package/src/rich-text-editor/formatter/markdown-formatter.d.ts +2 -2
- package/src/rich-text-editor/formatter/markdown-formatter.js +15 -15
- package/src/rich-text-editor/models/default-locale.js +31 -25
- package/src/rich-text-editor/models/iframe-settings-model.d.ts +26 -26
- package/src/rich-text-editor/models/iframe-settings.js +19 -19
- package/src/rich-text-editor/models/inline-mode-model.d.ts +11 -11
- package/src/rich-text-editor/models/inline-mode.js +19 -19
- package/src/rich-text-editor/models/items.js +3 -3
- package/src/rich-text-editor/models/toolbar-settings-model.d.ts +760 -760
- package/src/rich-text-editor/models/toolbar-settings.d.ts +1 -1
- package/src/rich-text-editor/models/toolbar-settings.js +20 -20
- package/src/rich-text-editor/renderer/audio-module.d.ts +2 -1
- package/src/rich-text-editor/renderer/audio-module.js +23 -5
- package/src/rich-text-editor/renderer/content-renderer.d.ts +6 -6
- package/src/rich-text-editor/renderer/content-renderer.js +6 -6
- package/src/rich-text-editor/renderer/dialog-renderer.d.ts +4 -2
- package/src/rich-text-editor/renderer/dialog-renderer.js +24 -4
- package/src/rich-text-editor/renderer/iframe-content-renderer.d.ts +4 -4
- package/src/rich-text-editor/renderer/iframe-content-renderer.js +19 -18
- package/src/rich-text-editor/renderer/image-module.d.ts +10 -2
- package/src/rich-text-editor/renderer/image-module.js +265 -221
- package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/link-module.js +54 -25
- package/src/rich-text-editor/renderer/markdown-renderer.d.ts +6 -6
- package/src/rich-text-editor/renderer/markdown-renderer.js +6 -6
- package/src/rich-text-editor/renderer/popup-renderer.d.ts +5 -5
- package/src/rich-text-editor/renderer/popup-renderer.js +5 -5
- package/src/rich-text-editor/renderer/render.d.ts +2 -2
- package/src/rich-text-editor/renderer/render.js +2 -2
- package/src/rich-text-editor/renderer/table-module.d.ts +11 -2
- package/src/rich-text-editor/renderer/table-module.js +344 -169
- package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +12 -15
- package/src/rich-text-editor/renderer/toolbar-renderer.js +115 -110
- package/src/rich-text-editor/renderer/video-module.d.ts +4 -1
- package/src/rich-text-editor/renderer/video-module.js +83 -42
- package/src/rich-text-editor/renderer/view-source.d.ts +7 -6
- package/src/rich-text-editor/renderer/view-source.js +21 -11
- package/src/rich-text-editor/services/renderer-factory.d.ts +3 -3
- package/src/rich-text-editor/services/renderer-factory.js +3 -3
- package/src/rich-text-editor/services/service-locator.d.ts +3 -3
- package/src/rich-text-editor/services/service-locator.js +3 -3
- package/src/selection/selection.d.ts +22 -22
- package/src/selection/selection.js +25 -22
- package/styles/_all.scss +1 -1
- package/styles/bootstrap-dark.css +353 -103
- package/styles/bootstrap.css +357 -112
- package/styles/bootstrap4.css +338 -96
- package/styles/bootstrap5-dark.css +344 -97
- package/styles/bootstrap5.css +344 -97
- package/styles/fabric-dark.css +332 -90
- package/styles/fabric.css +333 -91
- package/styles/fluent-dark.css +360 -98
- package/styles/fluent.css +360 -98
- package/styles/highcontrast-light.css +332 -90
- package/styles/highcontrast.css +336 -91
- package/styles/material-dark.css +339 -92
- package/styles/material.css +339 -92
- package/styles/material3-dark.css +348 -100
- package/styles/material3-dark.scss +1 -1
- package/styles/material3.css +348 -100
- package/styles/material3.scss +1 -1
- package/styles/rich-text-editor/_all.scss +2 -2
- package/styles/rich-text-editor/_bds-definition.scss +279 -0
- package/styles/rich-text-editor/_bootstrap-dark-definition.scss +281 -277
- package/styles/rich-text-editor/_bootstrap-definition.scss +337 -334
- package/styles/rich-text-editor/_bootstrap4-definition.scss +464 -460
- package/styles/rich-text-editor/_bootstrap5-definition.scss +266 -262
- package/styles/rich-text-editor/_fabric-dark-definition.scss +263 -259
- package/styles/rich-text-editor/_fabric-definition.scss +261 -257
- package/styles/rich-text-editor/_fluent-definition.scss +267 -263
- package/styles/rich-text-editor/_fusionnew-definition.scss +265 -261
- package/styles/rich-text-editor/_highcontrast-definition.scss +261 -257
- package/styles/rich-text-editor/_highcontrast-light-definition.scss +261 -257
- package/styles/rich-text-editor/_layout.scss +2249 -2072
- package/styles/rich-text-editor/_material-dark-definition.scss +266 -262
- package/styles/rich-text-editor/_material-definition.scss +264 -260
- package/styles/rich-text-editor/_material3-definition.scss +266 -262
- package/styles/rich-text-editor/_tailwind-definition.scss +261 -257
- package/styles/rich-text-editor/_theme.scss +926 -837
- package/styles/rich-text-editor/bootstrap-dark.css +353 -103
- package/styles/rich-text-editor/bootstrap.css +357 -112
- package/styles/rich-text-editor/bootstrap4.css +338 -96
- package/styles/rich-text-editor/bootstrap5-dark.css +344 -97
- package/styles/rich-text-editor/bootstrap5.css +344 -97
- package/styles/rich-text-editor/fabric-dark.css +332 -90
- package/styles/rich-text-editor/fabric.css +333 -91
- package/styles/rich-text-editor/fluent-dark.css +360 -98
- package/styles/rich-text-editor/fluent.css +360 -98
- package/styles/rich-text-editor/highcontrast-light.css +332 -90
- package/styles/rich-text-editor/highcontrast.css +336 -91
- package/styles/rich-text-editor/icons/_bds.scss +348 -0
- package/styles/rich-text-editor/icons/_bootstrap-dark.scss +349 -349
- package/styles/rich-text-editor/icons/_bootstrap.scss +349 -349
- package/styles/rich-text-editor/icons/_bootstrap4.scss +349 -349
- package/styles/rich-text-editor/icons/_bootstrap5.scss +348 -348
- package/styles/rich-text-editor/icons/_fabric-dark.scss +349 -349
- package/styles/rich-text-editor/icons/_fabric.scss +349 -349
- package/styles/rich-text-editor/icons/_fluent.scss +348 -348
- package/styles/rich-text-editor/icons/_fusionnew.scss +348 -348
- package/styles/rich-text-editor/icons/_highcontrast-light.scss +349 -349
- package/styles/rich-text-editor/icons/_highcontrast.scss +349 -349
- package/styles/rich-text-editor/icons/_material-dark.scss +349 -349
- package/styles/rich-text-editor/icons/_material.scss +349 -349
- package/styles/rich-text-editor/icons/_material3.scss +348 -348
- package/styles/rich-text-editor/icons/_tailwind.scss +348 -348
- package/styles/rich-text-editor/material-dark.css +339 -92
- package/styles/rich-text-editor/material.css +339 -92
- package/styles/rich-text-editor/material3-dark.css +348 -100
- package/styles/rich-text-editor/material3-dark.scss +1 -1
- package/styles/rich-text-editor/material3.css +348 -100
- package/styles/rich-text-editor/material3.scss +1 -1
- package/styles/rich-text-editor/tailwind-dark.css +383 -113
- package/styles/rich-text-editor/tailwind.css +383 -113
- package/styles/tailwind-dark.css +383 -113
- package/styles/tailwind.css +383 -113
- package/.github/PULL_REQUEST_TEMPLATE/Bug.md +0 -41
- package/.github/PULL_REQUEST_TEMPLATE/Feature.md +0 -27
- package/dist/ej2-richtexteditor.min.js +0 -10
- package/dist/global/ej2-richtexteditor.min.js +0 -11
- package/dist/global/ej2-richtexteditor.min.js.map +0 -1
- package/dist/global/index.d.ts +0 -14
- package/tslint.json +0 -111
|
@@ -35,7 +35,7 @@ export declare class QuickToolbar {
|
|
|
35
35
|
* @param {RenderType} type - specifies the render type.
|
|
36
36
|
* @returns {BaseQuickToolbar} - specifies the quick toolbar
|
|
37
37
|
* @hidden
|
|
38
|
-
|
|
38
|
+
* @deprecated
|
|
39
39
|
*/
|
|
40
40
|
createQTBar(popupType: string, mode: string, items: (string | IToolbarItems)[], type: RenderType): BaseQuickToolbar;
|
|
41
41
|
private initializeQuickToolbars;
|
|
@@ -51,7 +51,7 @@ export declare class QuickToolbar {
|
|
|
51
51
|
* @param {HTMLElement} target - specifies the target element.
|
|
52
52
|
* @returns {void}
|
|
53
53
|
* @hidden
|
|
54
|
-
|
|
54
|
+
* @deprecated
|
|
55
55
|
*/
|
|
56
56
|
showInlineQTBar(x: number, y: number, target: HTMLElement): void;
|
|
57
57
|
/**
|
|
@@ -59,7 +59,7 @@ export declare class QuickToolbar {
|
|
|
59
59
|
*
|
|
60
60
|
* @returns {void}
|
|
61
61
|
* @hidden
|
|
62
|
-
|
|
62
|
+
* @deprecated
|
|
63
63
|
*/
|
|
64
64
|
hideInlineQTBar(): void;
|
|
65
65
|
/**
|
|
@@ -67,11 +67,12 @@ export declare class QuickToolbar {
|
|
|
67
67
|
*
|
|
68
68
|
* @returns {void}
|
|
69
69
|
* @hidden
|
|
70
|
-
|
|
70
|
+
* @deprecated
|
|
71
71
|
*/
|
|
72
72
|
hideQuickToolbars(): void;
|
|
73
73
|
private deBounce;
|
|
74
74
|
private mouseUpHandler;
|
|
75
|
+
private isEmbedVidElem;
|
|
75
76
|
private keyDownHandler;
|
|
76
77
|
private inlineQTBarMouseDownHandler;
|
|
77
78
|
private keyUpHandler;
|
|
@@ -82,7 +83,7 @@ export declare class QuickToolbar {
|
|
|
82
83
|
*
|
|
83
84
|
* @returns {void}
|
|
84
85
|
* @hidden
|
|
85
|
-
|
|
86
|
+
* @deprecated
|
|
86
87
|
*/
|
|
87
88
|
getInlineBaseToolbar(): BaseToolbar;
|
|
88
89
|
/**
|
|
@@ -91,7 +92,7 @@ export declare class QuickToolbar {
|
|
|
91
92
|
* @function destroy
|
|
92
93
|
* @returns {void}
|
|
93
94
|
* @hidden
|
|
94
|
-
|
|
95
|
+
* @deprecated
|
|
95
96
|
*/
|
|
96
97
|
destroy(): void;
|
|
97
98
|
private moduleDestroy;
|
|
@@ -103,7 +104,7 @@ export declare class QuickToolbar {
|
|
|
103
104
|
*
|
|
104
105
|
* @returns {void}
|
|
105
106
|
* @hidden
|
|
106
|
-
|
|
107
|
+
* @deprecated
|
|
107
108
|
*/
|
|
108
109
|
addEventListener(): void;
|
|
109
110
|
private onKeyDown;
|
|
@@ -116,7 +117,7 @@ export declare class QuickToolbar {
|
|
|
116
117
|
*
|
|
117
118
|
* @returns {void}
|
|
118
119
|
* @hidden
|
|
119
|
-
|
|
120
|
+
* @deprecated
|
|
120
121
|
*/
|
|
121
122
|
removeEventListener(): void;
|
|
122
123
|
/**
|
|
@@ -125,7 +126,7 @@ export declare class QuickToolbar {
|
|
|
125
126
|
* @param {RichTextEditorModel} e - specifies the element.
|
|
126
127
|
* @returns {void}
|
|
127
128
|
* @hidden
|
|
128
|
-
|
|
129
|
+
* @deprecated
|
|
129
130
|
*/
|
|
130
131
|
protected onPropertyChanged(e: {
|
|
131
132
|
[key: string]: RichTextEditorModel;
|
|
@@ -137,4 +138,11 @@ export declare class QuickToolbar {
|
|
|
137
138
|
* @hidden
|
|
138
139
|
*/
|
|
139
140
|
private getModuleName;
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @returns {BaseQuickToolbar[]} - specifies the quick toolbar instance.
|
|
144
|
+
* @hidden
|
|
145
|
+
* @private
|
|
146
|
+
*/
|
|
147
|
+
getQuickToolbarInstance(): BaseQuickToolbar[];
|
|
140
148
|
}
|
|
@@ -4,7 +4,7 @@ import * as events from '../base/constant';
|
|
|
4
4
|
import { pageYOffset, hasClass, isIDevice } from '../base/util';
|
|
5
5
|
import { BaseQuickToolbar } from './base-quick-toolbar';
|
|
6
6
|
import { PopupRenderer } from '../renderer/popup-renderer';
|
|
7
|
-
import { CLS_INLINE_POP, CLS_INLINE } from '../base/classes';
|
|
7
|
+
import { CLS_INLINE_POP, CLS_INLINE, CLS_VID_CLICK_ELEM } from '../base/classes';
|
|
8
8
|
/**
|
|
9
9
|
* `Quick toolbar` module is used to handle Quick toolbar actions.
|
|
10
10
|
*/
|
|
@@ -47,7 +47,7 @@ var QuickToolbar = /** @class */ (function () {
|
|
|
47
47
|
toolbarItems: items,
|
|
48
48
|
mode: mode,
|
|
49
49
|
renderType: type,
|
|
50
|
-
cssClass: this.parent.
|
|
50
|
+
cssClass: this.parent.getCssClass()
|
|
51
51
|
};
|
|
52
52
|
};
|
|
53
53
|
/**
|
|
@@ -59,7 +59,7 @@ var QuickToolbar = /** @class */ (function () {
|
|
|
59
59
|
* @param {RenderType} type - specifies the render type.
|
|
60
60
|
* @returns {BaseQuickToolbar} - specifies the quick toolbar
|
|
61
61
|
* @hidden
|
|
62
|
-
|
|
62
|
+
* @deprecated
|
|
63
63
|
*/
|
|
64
64
|
QuickToolbar.prototype.createQTBar = function (popupType, mode, items, type) {
|
|
65
65
|
if (items.length < 1) {
|
|
@@ -146,10 +146,10 @@ var QuickToolbar = /** @class */ (function () {
|
|
|
146
146
|
* @param {HTMLElement} target - specifies the target element.
|
|
147
147
|
* @returns {void}
|
|
148
148
|
* @hidden
|
|
149
|
-
|
|
149
|
+
* @deprecated
|
|
150
150
|
*/
|
|
151
151
|
QuickToolbar.prototype.showInlineQTBar = function (x, y, target) {
|
|
152
|
-
if (isNOU(this.parent) || this.parent.readonly || target.tagName.toLowerCase() === 'img') {
|
|
152
|
+
if (isNOU(this.parent) || this.parent.readonly || target.tagName.toLowerCase() === 'img' || this.inlineQTBar.element.querySelector('.e-rte-color-content')) {
|
|
153
153
|
return;
|
|
154
154
|
}
|
|
155
155
|
this.inlineQTBar.showPopup(x, y, target);
|
|
@@ -159,7 +159,7 @@ var QuickToolbar = /** @class */ (function () {
|
|
|
159
159
|
*
|
|
160
160
|
* @returns {void}
|
|
161
161
|
* @hidden
|
|
162
|
-
|
|
162
|
+
* @deprecated
|
|
163
163
|
*/
|
|
164
164
|
QuickToolbar.prototype.hideInlineQTBar = function () {
|
|
165
165
|
if (this.inlineQTBar && !hasClass(this.inlineQTBar.element, 'e-popup-close')) {
|
|
@@ -171,7 +171,7 @@ var QuickToolbar = /** @class */ (function () {
|
|
|
171
171
|
*
|
|
172
172
|
* @returns {void}
|
|
173
173
|
* @hidden
|
|
174
|
-
|
|
174
|
+
* @deprecated
|
|
175
175
|
*/
|
|
176
176
|
QuickToolbar.prototype.hideQuickToolbars = function () {
|
|
177
177
|
if (this.linkQTBar && !hasClass(this.linkQTBar.element, 'e-popup-close') && document.body.contains(this.linkQTBar.element)) {
|
|
@@ -238,6 +238,9 @@ var QuickToolbar = /** @class */ (function () {
|
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
240
|
if (!isNOU(this.textQTBar) && !isNOU(this.parent.quickToolbarSettings.text) && !this.parent.inlineMode.enable) {
|
|
241
|
+
if (!isNOU(e) && !isNOU(e.name) && e.name === 'sourceCodeMouseDown') {
|
|
242
|
+
return;
|
|
243
|
+
}
|
|
241
244
|
var args = e.args.touches ?
|
|
242
245
|
e.args.changedTouches[0] : e.args;
|
|
243
246
|
var target = e.args.target;
|
|
@@ -248,7 +251,7 @@ var QuickToolbar = /** @class */ (function () {
|
|
|
248
251
|
this.offsetY = pageYOffset(args, this.parent.element, this.parent.iframeSettings.enable);
|
|
249
252
|
var range = this.parent.getRange();
|
|
250
253
|
if ((range.endContainer.parentElement.tagName === range.startContainer.parentElement.tagName && (range.startContainer.parentElement.tagName === 'A' && range.endContainer.parentElement.tagName === 'A')) ||
|
|
251
|
-
(target.tagName === 'IMG') || (target.tagName === 'VIDEO') || (target.tagName === 'AUDIO') || (target.childNodes[0].nodeType === 1 && target.childNodes[0].classList.contains('e-rte-audio')) ||
|
|
254
|
+
(target.tagName === 'IMG') || (target.tagName === 'VIDEO' || this.isEmbedVidElem(target)) || (target.tagName === 'AUDIO') || (target.childNodes[0] && target.childNodes[0].nodeType === 1 && target.childNodes[0].classList.contains('e-rte-audio')) ||
|
|
252
255
|
(this.parent.getRange().startOffset === this.parent.getRange().endOffset)) {
|
|
253
256
|
return;
|
|
254
257
|
}
|
|
@@ -256,10 +259,29 @@ var QuickToolbar = /** @class */ (function () {
|
|
|
256
259
|
this.textQTBar.showPopup(this.offsetX, this.offsetY, target, 'text');
|
|
257
260
|
}
|
|
258
261
|
};
|
|
259
|
-
QuickToolbar.prototype.
|
|
260
|
-
if ((
|
|
261
|
-
&&
|
|
262
|
-
|
|
262
|
+
QuickToolbar.prototype.isEmbedVidElem = function (target) {
|
|
263
|
+
if ((target && target.nodeType !== 3 && target.nodeName !== 'BR' && (target.classList && target.classList.contains(CLS_VID_CLICK_ELEM))) ||
|
|
264
|
+
(target && target.nodeName === 'IFRAME')) {
|
|
265
|
+
return true;
|
|
266
|
+
}
|
|
267
|
+
else {
|
|
268
|
+
return false;
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
QuickToolbar.prototype.keyDownHandler = function (e) {
|
|
272
|
+
var preventHide = e.args.altKey;
|
|
273
|
+
if (this.parent.inlineMode.enable && e.args.metaKey && e.args.keyCode === 65) {
|
|
274
|
+
this.showInlineQTBar(this.offsetX, this.offsetY, e.args.target);
|
|
275
|
+
return;
|
|
276
|
+
}
|
|
277
|
+
if (!preventHide) {
|
|
278
|
+
if ((this.parent.inlineMode.enable && (!Browser.isDevice || isIDevice()))
|
|
279
|
+
&& !isNullOrUndefined(select('.' + CLS_INLINE_POP, document))) {
|
|
280
|
+
this.hideInlineQTBar();
|
|
281
|
+
}
|
|
282
|
+
if (this.textQTBar && !hasClass(this.textQTBar.element, 'e-popup-close')) {
|
|
283
|
+
this.textQTBar.hidePopup();
|
|
284
|
+
}
|
|
263
285
|
}
|
|
264
286
|
};
|
|
265
287
|
QuickToolbar.prototype.inlineQTBarMouseDownHandler = function () {
|
|
@@ -274,8 +296,8 @@ var QuickToolbar = /** @class */ (function () {
|
|
|
274
296
|
}
|
|
275
297
|
};
|
|
276
298
|
QuickToolbar.prototype.keyUpHandler = function (e) {
|
|
299
|
+
var args = e.args;
|
|
277
300
|
if (this.parent.inlineMode.enable && !Browser.isDevice) {
|
|
278
|
-
var args = e.args;
|
|
279
301
|
if (this.parent.inlineMode.onSelection) {
|
|
280
302
|
if (this.parent.getSelection().length > 0) {
|
|
281
303
|
if ((args.ctrlKey && args.keyCode === 65) || (args.shiftKey && (args.keyCode === 33 || args.keyCode === 34 ||
|
|
@@ -288,6 +310,13 @@ var QuickToolbar = /** @class */ (function () {
|
|
|
288
310
|
}
|
|
289
311
|
this.deBounce(this.offsetX, this.offsetY, args.target);
|
|
290
312
|
}
|
|
313
|
+
if (this.parent.quickToolbarSettings.text && !Browser.isDevice) {
|
|
314
|
+
if ((args.ctrlKey && args.keyCode === 65) || (args.shiftKey && (args.keyCode === 33 || args.keyCode === 34 ||
|
|
315
|
+
args.keyCode === 35 || args.keyCode === 36 || args.keyCode === 37 || args.keyCode === 38 ||
|
|
316
|
+
args.keyCode === 39 || args.keyCode === 40))) {
|
|
317
|
+
this.textQTBar.showPopup(this.offsetX, this.offsetY, args.target, 'text');
|
|
318
|
+
}
|
|
319
|
+
}
|
|
291
320
|
};
|
|
292
321
|
QuickToolbar.prototype.selectionChangeHandler = function (e) {
|
|
293
322
|
var _this = this;
|
|
@@ -310,7 +339,7 @@ var QuickToolbar = /** @class */ (function () {
|
|
|
310
339
|
*
|
|
311
340
|
* @returns {void}
|
|
312
341
|
* @hidden
|
|
313
|
-
|
|
342
|
+
* @deprecated
|
|
314
343
|
*/
|
|
315
344
|
QuickToolbar.prototype.getInlineBaseToolbar = function () {
|
|
316
345
|
return this.inlineQTBar && this.inlineQTBar.quickTBarObj;
|
|
@@ -321,7 +350,7 @@ var QuickToolbar = /** @class */ (function () {
|
|
|
321
350
|
* @function destroy
|
|
322
351
|
* @returns {void}
|
|
323
352
|
* @hidden
|
|
324
|
-
|
|
353
|
+
* @deprecated
|
|
325
354
|
*/
|
|
326
355
|
QuickToolbar.prototype.destroy = function () {
|
|
327
356
|
if (isNOU(this.parent)) {
|
|
@@ -411,7 +440,7 @@ var QuickToolbar = /** @class */ (function () {
|
|
|
411
440
|
*
|
|
412
441
|
* @returns {void}
|
|
413
442
|
* @hidden
|
|
414
|
-
|
|
443
|
+
* @deprecated
|
|
415
444
|
*/
|
|
416
445
|
QuickToolbar.prototype.addEventListener = function () {
|
|
417
446
|
if (this.parent.isDestroyed) {
|
|
@@ -447,6 +476,15 @@ var QuickToolbar = /** @class */ (function () {
|
|
|
447
476
|
if (this.videoQTBar && !hasClass(this.videoQTBar.element, 'e-popup-close')) {
|
|
448
477
|
this.videoQTBar.hidePopup();
|
|
449
478
|
}
|
|
479
|
+
if (this.tableQTBar && !hasClass(this.tableQTBar.element, 'e-popup-close')) {
|
|
480
|
+
this.tableQTBar.hidePopup();
|
|
481
|
+
}
|
|
482
|
+
if (this.linkQTBar && !hasClass(this.linkQTBar.element, 'e-popup-close')) {
|
|
483
|
+
this.linkQTBar.hidePopup();
|
|
484
|
+
}
|
|
485
|
+
if (this.textQTBar && !hasClass(this.textQTBar.element, 'e-popup-close')) {
|
|
486
|
+
this.textQTBar.hidePopup();
|
|
487
|
+
}
|
|
450
488
|
}
|
|
451
489
|
};
|
|
452
490
|
QuickToolbar.prototype.onIframeMouseDown = function () {
|
|
@@ -496,9 +534,12 @@ var QuickToolbar = /** @class */ (function () {
|
|
|
496
534
|
*
|
|
497
535
|
* @returns {void}
|
|
498
536
|
* @hidden
|
|
499
|
-
|
|
537
|
+
* @deprecated
|
|
500
538
|
*/
|
|
501
539
|
QuickToolbar.prototype.removeEventListener = function () {
|
|
540
|
+
if (this.deBouncer) {
|
|
541
|
+
clearTimeout(this.deBouncer);
|
|
542
|
+
}
|
|
502
543
|
if (this.parent.isDestroyed) {
|
|
503
544
|
return;
|
|
504
545
|
}
|
|
@@ -519,9 +560,6 @@ var QuickToolbar = /** @class */ (function () {
|
|
|
519
560
|
this.parent.off(events.rtlMode, this.setRtl);
|
|
520
561
|
this.parent.off(events.bindCssClass, this.setCssClass);
|
|
521
562
|
this.parent.off(events.hidePopup, this.hideQuickToolbars);
|
|
522
|
-
if (this.deBouncer) {
|
|
523
|
-
clearTimeout(this.deBouncer);
|
|
524
|
-
}
|
|
525
563
|
};
|
|
526
564
|
/**
|
|
527
565
|
* Called internally if any of the property value changed.
|
|
@@ -529,7 +567,7 @@ var QuickToolbar = /** @class */ (function () {
|
|
|
529
567
|
* @param {RichTextEditorModel} e - specifies the element.
|
|
530
568
|
* @returns {void}
|
|
531
569
|
* @hidden
|
|
532
|
-
|
|
570
|
+
* @deprecated
|
|
533
571
|
*/
|
|
534
572
|
QuickToolbar.prototype.onPropertyChanged = function (e) {
|
|
535
573
|
if (!isNullOrUndefined(e.newProp.quickToolbarSettings)) {
|
|
@@ -571,6 +609,15 @@ var QuickToolbar = /** @class */ (function () {
|
|
|
571
609
|
QuickToolbar.prototype.getModuleName = function () {
|
|
572
610
|
return 'quickToolbar';
|
|
573
611
|
};
|
|
612
|
+
/**
|
|
613
|
+
*
|
|
614
|
+
* @returns {BaseQuickToolbar[]} - specifies the quick toolbar instance.
|
|
615
|
+
* @hidden
|
|
616
|
+
* @private
|
|
617
|
+
*/
|
|
618
|
+
QuickToolbar.prototype.getQuickToolbarInstance = function () {
|
|
619
|
+
return [this.linkQTBar, this.imageQTBar, this.audioQTBar, this.videoQTBar, this.tableQTBar, this.textQTBar, this.inlineQTBar];
|
|
620
|
+
};
|
|
574
621
|
return QuickToolbar;
|
|
575
622
|
}());
|
|
576
623
|
export { QuickToolbar };
|
|
@@ -71,7 +71,8 @@ var Resize = /** @class */ (function () {
|
|
|
71
71
|
this.parent.element.style.width = (!this.parent.enableRtl) ? eventType.clientX - boundRect.left + 'px' : boundRect.right - eventType.clientX + 'px';
|
|
72
72
|
}
|
|
73
73
|
if (!this.parent.toolbarSettings.enable) {
|
|
74
|
-
this.parent.
|
|
74
|
+
var isExpand = this.parent.element.querySelectorAll('.e-toolbar-extended.e-popup-open').length > 0 ? true : false;
|
|
75
|
+
this.parent.setContentHeight('Resize', isExpand);
|
|
75
76
|
}
|
|
76
77
|
this.parent.refreshUI();
|
|
77
78
|
};
|
|
@@ -39,7 +39,7 @@ var ToolbarAction = /** @class */ (function () {
|
|
|
39
39
|
if (args.item.command === 'Lists') {
|
|
40
40
|
if (args.originalEvent.target.classList.contains('e-caret') &&
|
|
41
41
|
(args.originalEvent.target.parentElement.classList.contains('e-rte-bulletformatlist-dropdown') || args.originalEvent.target.parentElement.classList.contains('e-rte-numberformatlist-dropdown'))) {
|
|
42
|
-
|
|
42
|
+
return;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
this.parent.notify(events.htmlToolbarClick, args);
|
|
@@ -4,6 +4,7 @@ import { IUpdateItemsModel } from '../base/interface';
|
|
|
4
4
|
import { ServiceLocator } from '../services/service-locator';
|
|
5
5
|
import { RendererFactory } from '../services/renderer-factory';
|
|
6
6
|
import { BaseToolbar } from './base-toolbar';
|
|
7
|
+
import { DropDownButtons } from './dropdown-buttons';
|
|
7
8
|
import { RichTextEditorModel } from '../base/rich-text-editor-model';
|
|
8
9
|
/**
|
|
9
10
|
* `Toolbar` module is used to handle Toolbar actions.
|
|
@@ -22,7 +23,7 @@ export declare class Toolbar {
|
|
|
22
23
|
private isTransformChild;
|
|
23
24
|
private contentRenderer;
|
|
24
25
|
protected toolbarRenderer: IRenderer;
|
|
25
|
-
|
|
26
|
+
dropDownModule: DropDownButtons;
|
|
26
27
|
private toolbarActionModule;
|
|
27
28
|
protected renderFactory: RendererFactory;
|
|
28
29
|
private keyBoardModule;
|
|
@@ -42,7 +43,7 @@ export declare class Toolbar {
|
|
|
42
43
|
*
|
|
43
44
|
* @returns {void}
|
|
44
45
|
* @hidden
|
|
45
|
-
|
|
46
|
+
* @deprecated
|
|
46
47
|
*/
|
|
47
48
|
addFixedTBarClass(): void;
|
|
48
49
|
/**
|
|
@@ -50,7 +51,7 @@ export declare class Toolbar {
|
|
|
50
51
|
*
|
|
51
52
|
* @returns {void}
|
|
52
53
|
* @hidden
|
|
53
|
-
|
|
54
|
+
* @deprecated
|
|
54
55
|
*/
|
|
55
56
|
removeFixedTBarClass(): void;
|
|
56
57
|
private showFixedTBar;
|
|
@@ -61,7 +62,7 @@ export declare class Toolbar {
|
|
|
61
62
|
* @param {IUpdateItemsModel} args - specifies the arguments.
|
|
62
63
|
* @returns {void}
|
|
63
64
|
* @hidden
|
|
64
|
-
|
|
65
|
+
* @deprecated
|
|
65
66
|
*/
|
|
66
67
|
updateItem(args: IUpdateItemsModel): void;
|
|
67
68
|
private updateToolbarStatus;
|
|
@@ -72,7 +73,7 @@ export declare class Toolbar {
|
|
|
72
73
|
*
|
|
73
74
|
* @returns {void}
|
|
74
75
|
* @hidden
|
|
75
|
-
|
|
76
|
+
* @deprecated
|
|
76
77
|
*/
|
|
77
78
|
getBaseToolbar(): BaseToolbar;
|
|
78
79
|
/**
|
|
@@ -82,7 +83,7 @@ export declare class Toolbar {
|
|
|
82
83
|
* @param {number} index - specifies the index value.
|
|
83
84
|
* @returns {void}
|
|
84
85
|
* @hidden
|
|
85
|
-
|
|
86
|
+
* @deprecated
|
|
86
87
|
*/
|
|
87
88
|
addTBarItem(args: IUpdateItemsModel, index: number): void;
|
|
88
89
|
/**
|
|
@@ -94,7 +95,7 @@ export declare class Toolbar {
|
|
|
94
95
|
* @param {boolean} muteToolbarUpdate - specifies the toolbar.
|
|
95
96
|
* @returns {void}
|
|
96
97
|
* @hidden
|
|
97
|
-
|
|
98
|
+
* @deprecated
|
|
98
99
|
*/
|
|
99
100
|
enableTBarItems(baseToolbar: BaseToolbar, items: string | string[], isEnable: boolean, muteToolbarUpdate?: boolean): void;
|
|
100
101
|
/**
|
|
@@ -103,7 +104,7 @@ export declare class Toolbar {
|
|
|
103
104
|
* @param {string} items - specifies the string value.
|
|
104
105
|
* @returns {void}
|
|
105
106
|
* @hidden
|
|
106
|
-
|
|
107
|
+
* @deprecated
|
|
107
108
|
*/
|
|
108
109
|
removeTBarItems(items: string | string[]): void;
|
|
109
110
|
/**
|
|
@@ -111,7 +112,7 @@ export declare class Toolbar {
|
|
|
111
112
|
*
|
|
112
113
|
* @returns {void}
|
|
113
114
|
* @hidden
|
|
114
|
-
|
|
115
|
+
* @deprecated
|
|
115
116
|
*/
|
|
116
117
|
getExpandTBarPopHeight(): number;
|
|
117
118
|
/**
|
|
@@ -119,7 +120,7 @@ export declare class Toolbar {
|
|
|
119
120
|
*
|
|
120
121
|
* @returns {void}
|
|
121
122
|
* @hidden
|
|
122
|
-
|
|
123
|
+
* @deprecated
|
|
123
124
|
*/
|
|
124
125
|
getToolbarHeight(): number;
|
|
125
126
|
/**
|
|
@@ -127,7 +128,7 @@ export declare class Toolbar {
|
|
|
127
128
|
*
|
|
128
129
|
* @returns {void}
|
|
129
130
|
* @hidden
|
|
130
|
-
|
|
131
|
+
* @deprecated
|
|
131
132
|
*/
|
|
132
133
|
getToolbarElement(): Element;
|
|
133
134
|
/**
|
|
@@ -135,7 +136,7 @@ export declare class Toolbar {
|
|
|
135
136
|
*
|
|
136
137
|
* @returns {void}
|
|
137
138
|
* @hidden
|
|
138
|
-
|
|
139
|
+
* @deprecated
|
|
139
140
|
*/
|
|
140
141
|
refreshToolbarOverflow(): void;
|
|
141
142
|
private isToolbarDestroyed;
|
|
@@ -146,17 +147,16 @@ export declare class Toolbar {
|
|
|
146
147
|
* @function destroy
|
|
147
148
|
* @returns {void}
|
|
148
149
|
* @hidden
|
|
149
|
-
|
|
150
|
+
* @deprecated
|
|
150
151
|
*/
|
|
151
152
|
destroy(): void;
|
|
152
153
|
private moduleDestroy;
|
|
153
|
-
private scrollHandler;
|
|
154
|
-
private getDOMVisibility;
|
|
155
154
|
private mouseDownHandler;
|
|
156
155
|
private focusChangeHandler;
|
|
157
156
|
private dropDownBeforeOpenHandler;
|
|
158
157
|
private tbFocusHandler;
|
|
159
158
|
private toolbarClickHandler;
|
|
159
|
+
private adjustContentHeight;
|
|
160
160
|
protected wireEvents(): void;
|
|
161
161
|
protected unWireEvents(): void;
|
|
162
162
|
protected addEventListener(): void;
|
|
@@ -169,7 +169,7 @@ export declare class Toolbar {
|
|
|
169
169
|
* @param {RichTextEditorModel} e - specifies the string value
|
|
170
170
|
* @returns {void}
|
|
171
171
|
* @hidden
|
|
172
|
-
|
|
172
|
+
* @deprecated
|
|
173
173
|
*/
|
|
174
174
|
protected onPropertyChanged(e: {
|
|
175
175
|
[key: string]: RichTextEditorModel;
|