@syncfusion/ej2-richtexteditor 23.2.7-52849 → 24.1.41
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 -0
- package/.github/PULL_REQUEST_TEMPLATE/Bug.md +40 -40
- package/.github/PULL_REQUEST_TEMPLATE/Feature.md +27 -27
- package/CHANGELOG.md +1775 -1751
- package/README.md +76 -76
- package/dist/ej2-richtexteditor.min.js +10 -0
- package/dist/ej2-richtexteditor.umd.min.js +10 -1
- package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es2015.js +682 -434
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +791 -543
- package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
- package/dist/global/ej2-richtexteditor.min.js +11 -0
- package/dist/global/ej2-richtexteditor.min.js.map +1 -0
- package/dist/global/index.d.ts +14 -0
- 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.js +1 -1
- package/src/common/interface.d.ts +7 -7
- package/src/editor-manager/base/classes.d.ts +1 -1
- package/src/editor-manager/base/classes.js +1 -1
- package/src/editor-manager/base/editor-manager.d.ts +3 -3
- package/src/editor-manager/base/editor-manager.js +3 -3
- package/src/editor-manager/base/enum.d.ts +2 -2
- package/src/editor-manager/base/interface.d.ts +9 -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 +34 -34
- package/src/editor-manager/plugin/dom-node.js +35 -48
- package/src/editor-manager/plugin/format-painter-actions.d.ts +1 -1
- package/src/editor-manager/plugin/format-painter-actions.js +1 -1
- package/src/editor-manager/plugin/formats.d.ts +2 -2
- package/src/editor-manager/plugin/formats.js +2 -2
- package/src/editor-manager/plugin/image.d.ts +3 -3
- package/src/editor-manager/plugin/image.js +33 -6
- package/src/editor-manager/plugin/indents.d.ts +2 -2
- package/src/editor-manager/plugin/indents.js +2 -2
- 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 +2 -2
- package/src/editor-manager/plugin/inserthtml.js +7 -4
- 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 +2 -2
- package/src/editor-manager/plugin/lists.d.ts +2 -2
- package/src/editor-manager/plugin/lists.js +2 -2
- package/src/editor-manager/plugin/ms-word-clean-up.d.ts +1 -1
- package/src/editor-manager/plugin/ms-word-clean-up.js +5 -2
- package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
- package/src/editor-manager/plugin/nodecutter.js +7 -7
- package/src/editor-manager/plugin/selection-commands.d.ts +1 -1
- package/src/editor-manager/plugin/selection-commands.js +40 -1
- 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 +2 -2
- package/src/editor-manager/plugin/table.js +2 -2
- package/src/editor-manager/plugin/toolbar-status.d.ts +2 -2
- package/src/editor-manager/plugin/toolbar-status.js +2 -2
- package/src/editor-manager/plugin/undo.d.ts +6 -6
- package/src/editor-manager/plugin/undo.js +6 -6
- package/src/editor-manager/plugin/video.d.ts +3 -3
- package/src/editor-manager/plugin/video.js +3 -3
- 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 +9 -9
- package/src/rich-text-editor/actions/base-quick-toolbar.js +27 -13
- package/src/rich-text-editor/actions/base-toolbar.d.ts +3 -3
- package/src/rich-text-editor/actions/base-toolbar.js +3 -3
- package/src/rich-text-editor/actions/color-picker.d.ts +2 -2
- package/src/rich-text-editor/actions/color-picker.js +5 -5
- package/src/rich-text-editor/actions/count.d.ts +3 -3
- package/src/rich-text-editor/actions/count.js +3 -3
- package/src/rich-text-editor/actions/dropdown-buttons.d.ts +2 -2
- package/src/rich-text-editor/actions/dropdown-buttons.js +6 -4
- package/src/rich-text-editor/actions/emoji-picker.d.ts +1 -1
- package/src/rich-text-editor/actions/emoji-picker.js +13 -4
- package/src/rich-text-editor/actions/enter-key.js +2 -1
- package/src/rich-text-editor/actions/file-manager.js +1 -1
- package/src/rich-text-editor/actions/format-painter.js +1 -1
- package/src/rich-text-editor/actions/full-screen.d.ts +3 -3
- package/src/rich-text-editor/actions/full-screen.js +5 -5
- package/src/rich-text-editor/actions/html-editor.d.ts +5 -3
- package/src/rich-text-editor/actions/html-editor.js +32 -6
- 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 +20 -20
- package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
- package/src/rich-text-editor/actions/markdown-editor.js +2 -2
- package/src/rich-text-editor/actions/paste-clean-up.d.ts +3 -1
- package/src/rich-text-editor/actions/paste-clean-up.js +73 -20
- package/src/rich-text-editor/actions/quick-toolbar.d.ts +9 -9
- package/src/rich-text-editor/actions/quick-toolbar.js +33 -14
- package/src/rich-text-editor/actions/toolbar.d.ts +14 -13
- package/src/rich-text-editor/actions/toolbar.js +31 -23
- 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 +126 -121
- package/src/rich-text-editor/base/classes.js +126 -121
- package/src/rich-text-editor/base/constant.d.ts +155 -150
- package/src/rich-text-editor/base/constant.js +155 -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 +59 -49
- 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 +69 -60
- package/src/rich-text-editor/base/rich-text-editor.js +143 -80
- package/src/rich-text-editor/base/util.d.ts +1 -1
- package/src/rich-text-editor/base/util.js +12 -3
- package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
- package/src/rich-text-editor/formatter/formatter.js +9 -9
- 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 +2 -0
- 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 +1 -1
- package/src/rich-text-editor/models/toolbar-settings-model.d.ts +760 -760
- package/src/rich-text-editor/models/toolbar-settings.js +19 -19
- package/src/rich-text-editor/renderer/audio-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/audio-module.js +1 -1
- 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 +2 -2
- package/src/rich-text-editor/renderer/dialog-renderer.js +12 -3
- package/src/rich-text-editor/renderer/iframe-content-renderer.d.ts +4 -4
- package/src/rich-text-editor/renderer/iframe-content-renderer.js +17 -17
- package/src/rich-text-editor/renderer/image-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/image-module.js +53 -53
- package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/link-module.js +44 -24
- 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 +3 -1
- package/src/rich-text-editor/renderer/table-module.js +44 -31
- package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +9 -15
- package/src/rich-text-editor/renderer/toolbar-renderer.js +22 -102
- package/src/rich-text-editor/renderer/video-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/video-module.js +1 -1
- package/src/rich-text-editor/renderer/view-source.d.ts +6 -6
- package/src/rich-text-editor/renderer/view-source.js +9 -7
- 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 +22 -22
- package/styles/_all.scss +1 -1
- package/styles/bootstrap-dark.css +194 -52
- package/styles/bootstrap.css +197 -53
- package/styles/bootstrap4.css +194 -52
- package/styles/bootstrap5-dark.css +195 -53
- package/styles/bootstrap5.css +195 -53
- package/styles/fabric-dark.css +194 -52
- package/styles/fabric.css +194 -52
- package/styles/fluent-dark.css +197 -53
- package/styles/fluent.css +197 -53
- package/styles/highcontrast-light.css +194 -52
- package/styles/highcontrast.css +194 -52
- package/styles/material-dark.css +196 -53
- package/styles/material.css +196 -53
- package/styles/material3-dark.css +194 -52
- package/styles/material3-dark.scss +1 -1
- package/styles/material3.css +194 -52
- package/styles/material3.scss +1 -1
- package/styles/rich-text-editor/_all.scss +2 -2
- package/styles/rich-text-editor/_bootstrap-dark-definition.scss +277 -277
- package/styles/rich-text-editor/_bootstrap-definition.scss +334 -334
- package/styles/rich-text-editor/_bootstrap4-definition.scss +460 -460
- package/styles/rich-text-editor/_bootstrap5-definition.scss +262 -262
- package/styles/rich-text-editor/_fabric-dark-definition.scss +259 -259
- package/styles/rich-text-editor/_fabric-definition.scss +257 -257
- package/styles/rich-text-editor/_fluent-definition.scss +263 -263
- package/styles/rich-text-editor/_fusionnew-definition.scss +261 -261
- package/styles/rich-text-editor/_highcontrast-definition.scss +257 -257
- package/styles/rich-text-editor/_highcontrast-light-definition.scss +257 -257
- package/styles/rich-text-editor/_layout.scss +2147 -2072
- package/styles/rich-text-editor/_material-dark-definition.scss +262 -262
- package/styles/rich-text-editor/_material-definition.scss +260 -260
- package/styles/rich-text-editor/_material3-definition.scss +262 -262
- package/styles/rich-text-editor/_tailwind-definition.scss +257 -257
- package/styles/rich-text-editor/_theme.scss +837 -837
- package/styles/rich-text-editor/bootstrap-dark.css +194 -52
- package/styles/rich-text-editor/bootstrap.css +197 -53
- package/styles/rich-text-editor/bootstrap4.css +194 -52
- package/styles/rich-text-editor/bootstrap5-dark.css +195 -53
- package/styles/rich-text-editor/bootstrap5.css +195 -53
- package/styles/rich-text-editor/fabric-dark.css +194 -52
- package/styles/rich-text-editor/fabric.css +194 -52
- package/styles/rich-text-editor/fluent-dark.css +197 -53
- package/styles/rich-text-editor/fluent.css +197 -53
- package/styles/rich-text-editor/highcontrast-light.css +194 -52
- package/styles/rich-text-editor/highcontrast.css +194 -52
- 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 +196 -53
- package/styles/rich-text-editor/material.css +196 -53
- package/styles/rich-text-editor/material3-dark.css +194 -52
- package/styles/rich-text-editor/material3-dark.scss +1 -1
- package/styles/rich-text-editor/material3.css +194 -52
- package/styles/rich-text-editor/material3.scss +1 -1
- package/styles/rich-text-editor/tailwind-dark.css +194 -52
- package/styles/rich-text-editor/tailwind.css +194 -52
- package/styles/tailwind-dark.css +194 -52
- package/styles/tailwind.css +194 -52
- package/tslint.json +111 -0
- package/src/global.d.ts +0 -1
|
@@ -32,7 +32,7 @@ export declare class BaseToolbar {
|
|
|
32
32
|
* @param {string} container - specifies the value of string
|
|
33
33
|
* @returns {IToolbarItemModel} - returns the model element
|
|
34
34
|
* @hidden
|
|
35
|
-
|
|
35
|
+
|
|
36
36
|
*/
|
|
37
37
|
getObject(item: string, container: string): IToolbarItemModel;
|
|
38
38
|
/**
|
|
@@ -40,7 +40,7 @@ export declare class BaseToolbar {
|
|
|
40
40
|
* @param {string} container - specifies the container value
|
|
41
41
|
* @returns {ItemModel} - retunrs the model element
|
|
42
42
|
* @hidden
|
|
43
|
-
|
|
43
|
+
|
|
44
44
|
*/
|
|
45
45
|
getItems(tbItems: (string | IToolbarItems)[], container: string): ItemModel[];
|
|
46
46
|
private getToolbarOptions;
|
|
@@ -50,7 +50,7 @@ export declare class BaseToolbar {
|
|
|
50
50
|
* @param {IToolbarRenderOptions} args - specifies the toolbar options
|
|
51
51
|
* @returns {void}
|
|
52
52
|
* @hidden
|
|
53
|
-
|
|
53
|
+
|
|
54
54
|
*/
|
|
55
55
|
render(args: IToolbarRenderOptions): void;
|
|
56
56
|
}
|
|
@@ -93,7 +93,7 @@ var BaseToolbar = /** @class */ (function () {
|
|
|
93
93
|
* @param {string} container - specifies the value of string
|
|
94
94
|
* @returns {IToolbarItemModel} - returns the model element
|
|
95
95
|
* @hidden
|
|
96
|
-
|
|
96
|
+
|
|
97
97
|
*/
|
|
98
98
|
BaseToolbar.prototype.getObject = function (item, container) {
|
|
99
99
|
var itemStr = item.toLowerCase();
|
|
@@ -132,7 +132,7 @@ var BaseToolbar = /** @class */ (function () {
|
|
|
132
132
|
* @param {string} container - specifies the container value
|
|
133
133
|
* @returns {ItemModel} - retunrs the model element
|
|
134
134
|
* @hidden
|
|
135
|
-
|
|
135
|
+
|
|
136
136
|
*/
|
|
137
137
|
BaseToolbar.prototype.getItems = function (tbItems, container) {
|
|
138
138
|
var _this = this;
|
|
@@ -204,7 +204,7 @@ var BaseToolbar = /** @class */ (function () {
|
|
|
204
204
|
* @param {IToolbarRenderOptions} args - specifies the toolbar options
|
|
205
205
|
* @returns {void}
|
|
206
206
|
* @hidden
|
|
207
|
-
|
|
207
|
+
|
|
208
208
|
*/
|
|
209
209
|
BaseToolbar.prototype.render = function (args) {
|
|
210
210
|
this.toolbarRenderer = this.renderFactory.getRenderer(RenderType.Toolbar);
|
|
@@ -23,7 +23,7 @@ export declare class ColorPickerInput {
|
|
|
23
23
|
* @param {IColorPickerRenderArgs} args - specify the arguments.
|
|
24
24
|
* @returns {void}
|
|
25
25
|
* @hidden
|
|
26
|
-
|
|
26
|
+
|
|
27
27
|
*/
|
|
28
28
|
renderColorPickerInput(args: IColorPickerRenderArgs): void;
|
|
29
29
|
private destroy;
|
|
@@ -32,7 +32,7 @@ export declare class ColorPickerInput {
|
|
|
32
32
|
*
|
|
33
33
|
* @returns {void}
|
|
34
34
|
* @hidden
|
|
35
|
-
|
|
35
|
+
|
|
36
36
|
*/
|
|
37
37
|
destroyColorPicker(): void;
|
|
38
38
|
private setRtl;
|
|
@@ -30,7 +30,7 @@ var ColorPickerInput = /** @class */ (function () {
|
|
|
30
30
|
* @param {IColorPickerRenderArgs} args - specify the arguments.
|
|
31
31
|
* @returns {void}
|
|
32
32
|
* @hidden
|
|
33
|
-
|
|
33
|
+
|
|
34
34
|
*/
|
|
35
35
|
ColorPickerInput.prototype.renderColorPickerInput = function (args) {
|
|
36
36
|
var _this = this;
|
|
@@ -58,7 +58,7 @@ var ColorPickerInput = /** @class */ (function () {
|
|
|
58
58
|
document.body.appendChild(fontNode);
|
|
59
59
|
options = {
|
|
60
60
|
cssClass: _this.tools[item.toLocaleLowerCase()].icon
|
|
61
|
-
+ ' ' + classes.CLS_RTE_ELEMENTS + ' ' + classes.CLS_ICONS +
|
|
61
|
+
+ ' ' + classes.CLS_RTE_ELEMENTS + ' ' + classes.CLS_ICONS + _this.parent.getCssClass(true),
|
|
62
62
|
value: _this.tools[item.toLocaleLowerCase()].value,
|
|
63
63
|
command: _this.tools[item.toLocaleLowerCase()].command,
|
|
64
64
|
subCommand: _this.tools[item.toLocaleLowerCase()].subCommand,
|
|
@@ -85,7 +85,7 @@ var ColorPickerInput = /** @class */ (function () {
|
|
|
85
85
|
document.body.appendChild(backNode);
|
|
86
86
|
options = {
|
|
87
87
|
cssClass: _this.tools[item.toLocaleLowerCase()].icon
|
|
88
|
-
+ ' ' + classes.CLS_RTE_ELEMENTS + ' ' + classes.CLS_ICONS +
|
|
88
|
+
+ ' ' + classes.CLS_RTE_ELEMENTS + ' ' + classes.CLS_ICONS + _this.parent.getCssClass(true),
|
|
89
89
|
value: _this.tools[item.toLocaleLowerCase()].value,
|
|
90
90
|
command: _this.tools[item.toLocaleLowerCase()].command,
|
|
91
91
|
subCommand: _this.tools[item.toLocaleLowerCase()].subCommand,
|
|
@@ -100,7 +100,7 @@ var ColorPickerInput = /** @class */ (function () {
|
|
|
100
100
|
}
|
|
101
101
|
});
|
|
102
102
|
if (this.parent.inlineMode.enable) {
|
|
103
|
-
this.setCssClass({ cssClass: this.parent.
|
|
103
|
+
this.setCssClass({ cssClass: this.parent.getCssClass() });
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
106
|
ColorPickerInput.prototype.destroy = function () {
|
|
@@ -112,7 +112,7 @@ var ColorPickerInput = /** @class */ (function () {
|
|
|
112
112
|
*
|
|
113
113
|
* @returns {void}
|
|
114
114
|
* @hidden
|
|
115
|
-
|
|
115
|
+
|
|
116
116
|
*/
|
|
117
117
|
ColorPickerInput.prototype.destroyColorPicker = function () {
|
|
118
118
|
if (this.fontColorPicker && !this.fontColorPicker.isDestroyed) {
|
|
@@ -22,7 +22,7 @@ export declare class Count {
|
|
|
22
22
|
*
|
|
23
23
|
* @returns {void}
|
|
24
24
|
* @hidden
|
|
25
|
-
|
|
25
|
+
|
|
26
26
|
*/
|
|
27
27
|
renderCount(): void;
|
|
28
28
|
private appendCount;
|
|
@@ -30,7 +30,7 @@ export declare class Count {
|
|
|
30
30
|
/**
|
|
31
31
|
* @returns {void}
|
|
32
32
|
* @hidden
|
|
33
|
-
|
|
33
|
+
|
|
34
34
|
*/
|
|
35
35
|
refresh(): void;
|
|
36
36
|
/**
|
|
@@ -39,7 +39,7 @@ export declare class Count {
|
|
|
39
39
|
* @function destroy
|
|
40
40
|
* @returns {void}
|
|
41
41
|
* @hidden
|
|
42
|
-
|
|
42
|
+
|
|
43
43
|
*/
|
|
44
44
|
destroy(): void;
|
|
45
45
|
private toggle;
|
|
@@ -22,7 +22,7 @@ var Count = /** @class */ (function () {
|
|
|
22
22
|
*
|
|
23
23
|
* @returns {void}
|
|
24
24
|
* @hidden
|
|
25
|
-
|
|
25
|
+
|
|
26
26
|
*/
|
|
27
27
|
Count.prototype.renderCount = function () {
|
|
28
28
|
this.initializeInstance();
|
|
@@ -63,7 +63,7 @@ var Count = /** @class */ (function () {
|
|
|
63
63
|
/**
|
|
64
64
|
* @returns {void}
|
|
65
65
|
* @hidden
|
|
66
|
-
|
|
66
|
+
|
|
67
67
|
*/
|
|
68
68
|
Count.prototype.refresh = function () {
|
|
69
69
|
if (!isNullOrUndefined(this.editPanel)) {
|
|
@@ -79,7 +79,7 @@ var Count = /** @class */ (function () {
|
|
|
79
79
|
* @function destroy
|
|
80
80
|
* @returns {void}
|
|
81
81
|
* @hidden
|
|
82
|
-
|
|
82
|
+
|
|
83
83
|
*/
|
|
84
84
|
Count.prototype.destroy = function () {
|
|
85
85
|
if (this.element && !isNullOrUndefined(this.parent.element.querySelector('.' + CLS_COUNT))) {
|
|
@@ -36,7 +36,7 @@ export declare class DropDownButtons {
|
|
|
36
36
|
* @param {IDropDownRenderArgs} args - specifies the arguments
|
|
37
37
|
* @returns {void}
|
|
38
38
|
* @hidden
|
|
39
|
-
|
|
39
|
+
|
|
40
40
|
*/
|
|
41
41
|
renderDropDowns(args: IDropDownRenderArgs): void;
|
|
42
42
|
private getUpdateItems;
|
|
@@ -55,7 +55,7 @@ export declare class DropDownButtons {
|
|
|
55
55
|
*
|
|
56
56
|
* @returns {void}
|
|
57
57
|
* @hidden
|
|
58
|
-
|
|
58
|
+
|
|
59
59
|
*/
|
|
60
60
|
destroyDropDowns(): void;
|
|
61
61
|
private setRtl;
|
|
@@ -39,7 +39,7 @@ var DropDownButtons = /** @class */ (function () {
|
|
|
39
39
|
* @param {IDropDownRenderArgs} args - specifies the arguments
|
|
40
40
|
* @returns {void}
|
|
41
41
|
* @hidden
|
|
42
|
-
|
|
42
|
+
|
|
43
43
|
*/
|
|
44
44
|
DropDownButtons.prototype.renderDropDowns = function (args) {
|
|
45
45
|
var _this = this;
|
|
@@ -191,7 +191,7 @@ var DropDownButtons = /** @class */ (function () {
|
|
|
191
191
|
}
|
|
192
192
|
});
|
|
193
193
|
if (this.parent.inlineMode.enable) {
|
|
194
|
-
this.setCssClass({ cssClass: this.parent.
|
|
194
|
+
this.setCssClass({ cssClass: this.parent.getCssClass() });
|
|
195
195
|
}
|
|
196
196
|
};
|
|
197
197
|
DropDownButtons.prototype.getUpdateItems = function (items, value) {
|
|
@@ -406,7 +406,7 @@ var DropDownButtons = /** @class */ (function () {
|
|
|
406
406
|
*
|
|
407
407
|
* @returns {void}
|
|
408
408
|
* @hidden
|
|
409
|
-
|
|
409
|
+
|
|
410
410
|
*/
|
|
411
411
|
DropDownButtons.prototype.destroyDropDowns = function () {
|
|
412
412
|
if (this.formatDropDown) {
|
|
@@ -512,7 +512,9 @@ var DropDownButtons = /** @class */ (function () {
|
|
|
512
512
|
this.parent.on(events.bindCssClass, this.setCssClass, this);
|
|
513
513
|
};
|
|
514
514
|
DropDownButtons.prototype.onIframeMouseDown = function () {
|
|
515
|
-
|
|
515
|
+
if (this.parent.getToolbarElement().querySelectorAll('.e-rte-dropdown-btn[aria-expanded="true"]').length > 0) {
|
|
516
|
+
dispatchEvent(document, 'mousedown');
|
|
517
|
+
}
|
|
516
518
|
};
|
|
517
519
|
DropDownButtons.prototype.removeEventListener = function () {
|
|
518
520
|
if (this.parent.isDestroyed) {
|
|
@@ -19,7 +19,7 @@ var EmojiPicker = /** @class */ (function () {
|
|
|
19
19
|
* @function destroy
|
|
20
20
|
* @returns {void}
|
|
21
21
|
* @hidden
|
|
22
|
-
|
|
22
|
+
|
|
23
23
|
*/
|
|
24
24
|
EmojiPicker.prototype.destroy = function () {
|
|
25
25
|
this.removeEventListener();
|
|
@@ -44,6 +44,9 @@ var EmojiPicker = /** @class */ (function () {
|
|
|
44
44
|
spanElement = this.parent.element.ownerDocument.querySelector('.e-emoji');
|
|
45
45
|
}
|
|
46
46
|
this.divElement = spanElement.closest('div');
|
|
47
|
+
if (!(this.parent.inputElement.contains(this.parent.formatter.editorManager.nodeSelection.getRange(this.parent.contentModule.getDocument()).startContainer))) {
|
|
48
|
+
this.parent.contentModule.getEditPanel().focus();
|
|
49
|
+
}
|
|
47
50
|
var range = this.parent.formatter.editorManager.nodeSelection.getRange(this.parent.contentModule.getDocument());
|
|
48
51
|
this.save = this.parent.formatter.editorManager.nodeSelection.save(range, this.parent.contentModule.getDocument());
|
|
49
52
|
this.clickEvent = args.args;
|
|
@@ -683,7 +686,8 @@ var EmojiPicker = /** @class */ (function () {
|
|
|
683
686
|
};
|
|
684
687
|
EmojiPicker.prototype.onkeyPress = function (e) {
|
|
685
688
|
var originalEvent = e.args;
|
|
686
|
-
var selection = this.parent.contentModule.
|
|
689
|
+
var selection = (this.parent.iframeSettings.enable) ? this.parent.contentModule.getPanel().contentWindow.getSelection() :
|
|
690
|
+
this.parent.contentModule.getDocument().getSelection();
|
|
687
691
|
if (selection.rangeCount <= 0) {
|
|
688
692
|
return;
|
|
689
693
|
}
|
|
@@ -703,6 +707,10 @@ var EmojiPicker = /** @class */ (function () {
|
|
|
703
707
|
}
|
|
704
708
|
if (originalEvent.keyCode === 32 && isPrevColon && this.popupObj) {
|
|
705
709
|
removeClass([this.divElement], 'e-active');
|
|
710
|
+
var currentDocument = this.parent.iframeSettings.enable ? this.parent.contentModule.getPanel().ownerDocument : this.parent.contentModule.getDocument();
|
|
711
|
+
if (this.parent.showTooltip && !isNOU(currentDocument.querySelector('.e-tooltip-wrap'))) {
|
|
712
|
+
this.parent.notify(events.destroyTooltip, { args: event });
|
|
713
|
+
}
|
|
706
714
|
this.popupObj.hide();
|
|
707
715
|
}
|
|
708
716
|
if (this.popupObj && (originalEvent.keyCode === 37 || originalEvent.keyCode === 38 || originalEvent.keyCode === 39
|
|
@@ -713,7 +721,8 @@ var EmojiPicker = /** @class */ (function () {
|
|
|
713
721
|
};
|
|
714
722
|
EmojiPicker.prototype.onkeyUp = function (e) {
|
|
715
723
|
var originalEvent = e.args;
|
|
716
|
-
var selection = this.parent.contentModule.
|
|
724
|
+
var selection = (this.parent.iframeSettings.enable) ? this.parent.contentModule.getPanel().contentWindow.getSelection() :
|
|
725
|
+
this.parent.contentModule.getDocument().getSelection();
|
|
717
726
|
if (selection.rangeCount <= 0) {
|
|
718
727
|
return;
|
|
719
728
|
}
|
|
@@ -739,7 +748,7 @@ var EmojiPicker = /** @class */ (function () {
|
|
|
739
748
|
};
|
|
740
749
|
EmojiPicker.prototype.getCoordinates = function () {
|
|
741
750
|
var coordinates;
|
|
742
|
-
var selection = this.parent.contentModule.
|
|
751
|
+
var selection = (this.parent.iframeSettings.enable) ? this.parent.contentModule.getPanel().contentWindow.getSelection() : window.getSelection();
|
|
743
752
|
var range = selection.getRangeAt(0);
|
|
744
753
|
var firstChild;
|
|
745
754
|
if (range.startContainer.nodeName === 'P' || range.startContainer.nodeName === 'DIV') {
|
|
@@ -236,7 +236,8 @@ var EnterKeyAction = /** @class */ (function () {
|
|
|
236
236
|
}
|
|
237
237
|
_this.parent.formatter.editorManager.nodeSelection.setCursorPoint(_this.parent.contentModule.getDocument(), insertElem.nextElementSibling, 0);
|
|
238
238
|
}
|
|
239
|
-
else if (nearBlockNode.textContent.length === 0 && !(!isNOU(nearBlockNode.childNodes[0]) && nearBlockNode.childNodes[0].nodeName === 'IMG'
|
|
239
|
+
else if (nearBlockNode.textContent.length === 0 && !(!isNOU(nearBlockNode.childNodes[0]) && nearBlockNode.childNodes[0].nodeName === 'IMG' ||
|
|
240
|
+
(nearBlockNode.querySelectorAll('video').length > 0) || (nearBlockNode.querySelectorAll('audio').length > 0) || (nearBlockNode.querySelectorAll('img').length > 0))) {
|
|
240
241
|
if (!isNOU(nearBlockNode.children[0]) && nearBlockNode.children[0].tagName !== 'BR') {
|
|
241
242
|
var newElem = _this.parent.formatter.editorManager.nodeCutter.SplitNode(_this.range, nearBlockNode, false).cloneNode(true);
|
|
242
243
|
_this.parent.formatter.editorManager.domNode.insertAfter(newElem, nearBlockNode);
|
|
@@ -78,7 +78,7 @@ var FileManager = /** @class */ (function () {
|
|
|
78
78
|
this.dialogObj.createElement = this.parent.createElement;
|
|
79
79
|
this.dialogObj.appendTo(dlgTarget);
|
|
80
80
|
this.dialogObj.show(Browser.isDevice ? true : false);
|
|
81
|
-
this.setCssClass({ cssClass: this.parent.
|
|
81
|
+
this.setCssClass({ cssClass: this.parent.getCssClass() });
|
|
82
82
|
};
|
|
83
83
|
// eslint-disable-next-line @typescript-eslint/tslint/config
|
|
84
84
|
FileManager.prototype.setCssClass = function (e) {
|
|
@@ -38,7 +38,7 @@ var FormatPainter = /** @class */ (function () {
|
|
|
38
38
|
};
|
|
39
39
|
FormatPainter.prototype.onKeyDown = function (event) {
|
|
40
40
|
var originalEvent = event.args;
|
|
41
|
-
if ((originalEvent
|
|
41
|
+
if (!isNOU(originalEvent) && !isNOU(originalEvent.action) && (originalEvent.action === 'format-copy' || originalEvent.action === 'format-paste')
|
|
42
42
|
|| (originalEvent.action === 'escape' && (this.previousAction === 'format-copy' || this.previousAction === 'format-paste'))) {
|
|
43
43
|
if ((originalEvent.action === 'format-copy' || originalEvent.action === 'format-paste')) {
|
|
44
44
|
originalEvent.stopPropagation();
|
|
@@ -13,7 +13,7 @@ export declare class FullScreen {
|
|
|
13
13
|
* @param {MouseEvent} event - specifies the mouse event
|
|
14
14
|
* @returns {void}
|
|
15
15
|
* @hidden
|
|
16
|
-
|
|
16
|
+
|
|
17
17
|
*/
|
|
18
18
|
showFullScreen(event?: MouseEvent | KeyboardEventArgs): void;
|
|
19
19
|
/**
|
|
@@ -22,7 +22,7 @@ export declare class FullScreen {
|
|
|
22
22
|
* @param {MouseEvent} event - specifies the mouse event
|
|
23
23
|
* @returns {void}
|
|
24
24
|
* @hidden
|
|
25
|
-
|
|
25
|
+
|
|
26
26
|
*/
|
|
27
27
|
hideFullScreen(event?: MouseEvent | KeyboardEventArgs): void;
|
|
28
28
|
private toggleParentOverflow;
|
|
@@ -34,7 +34,7 @@ export declare class FullScreen {
|
|
|
34
34
|
*
|
|
35
35
|
* @returns {void}
|
|
36
36
|
* @hidden
|
|
37
|
-
|
|
37
|
+
|
|
38
38
|
*/
|
|
39
39
|
destroy(): void;
|
|
40
40
|
private moduleDestroy;
|
|
@@ -17,7 +17,7 @@ var FullScreen = /** @class */ (function () {
|
|
|
17
17
|
* @param {MouseEvent} event - specifies the mouse event
|
|
18
18
|
* @returns {void}
|
|
19
19
|
* @hidden
|
|
20
|
-
|
|
20
|
+
|
|
21
21
|
*/
|
|
22
22
|
FullScreen.prototype.showFullScreen = function (event) {
|
|
23
23
|
var _this = this;
|
|
@@ -26,7 +26,7 @@ var FullScreen = /** @class */ (function () {
|
|
|
26
26
|
this.parent.quickToolbarModule.hideQuickToolbars();
|
|
27
27
|
}
|
|
28
28
|
if (this.parent.showTooltip && !isNOU(document.querySelector('.e-tooltip-wrap'))) {
|
|
29
|
-
this.parent.notify(events.
|
|
29
|
+
this.parent.notify(events.destroyTooltip, { args: event });
|
|
30
30
|
}
|
|
31
31
|
this.scrollableParent = getScrollableParent(this.parent.element);
|
|
32
32
|
if (!this.parent.element.classList.contains(classes.CLS_FULL_SCREEN)) {
|
|
@@ -72,7 +72,7 @@ var FullScreen = /** @class */ (function () {
|
|
|
72
72
|
* @param {MouseEvent} event - specifies the mouse event
|
|
73
73
|
* @returns {void}
|
|
74
74
|
* @hidden
|
|
75
|
-
|
|
75
|
+
|
|
76
76
|
*/
|
|
77
77
|
FullScreen.prototype.hideFullScreen = function (event) {
|
|
78
78
|
var _this = this;
|
|
@@ -81,7 +81,7 @@ var FullScreen = /** @class */ (function () {
|
|
|
81
81
|
this.parent.quickToolbarModule.hideQuickToolbars();
|
|
82
82
|
}
|
|
83
83
|
if (this.parent.showTooltip && !isNOU(document.querySelector('.e-tooltip-wrap'))) {
|
|
84
|
-
this.parent.notify(events.
|
|
84
|
+
this.parent.notify(events.destroyTooltip, { args: event });
|
|
85
85
|
}
|
|
86
86
|
if (this.parent.element.classList.contains(classes.CLS_FULL_SCREEN)) {
|
|
87
87
|
var evenArgs = {
|
|
@@ -161,7 +161,7 @@ var FullScreen = /** @class */ (function () {
|
|
|
161
161
|
*
|
|
162
162
|
* @returns {void}
|
|
163
163
|
* @hidden
|
|
164
|
-
|
|
164
|
+
|
|
165
165
|
*/
|
|
166
166
|
FullScreen.prototype.destroy = function () {
|
|
167
167
|
if (isNOU(this.parent)) {
|
|
@@ -22,6 +22,7 @@ export declare class HtmlEditor {
|
|
|
22
22
|
private saveSelection;
|
|
23
23
|
xhtmlValidation: XhtmlValidation;
|
|
24
24
|
private clickTimeout;
|
|
25
|
+
private tooltipTargetEle;
|
|
25
26
|
constructor(parent?: IRichTextEditor, serviceLocator?: ServiceLocator);
|
|
26
27
|
/**
|
|
27
28
|
* Destroys the Markdown.
|
|
@@ -29,14 +30,14 @@ export declare class HtmlEditor {
|
|
|
29
30
|
* @function destroy
|
|
30
31
|
* @returns {void}
|
|
31
32
|
* @hidden
|
|
32
|
-
|
|
33
|
+
|
|
33
34
|
*/
|
|
34
35
|
destroy(): void;
|
|
35
36
|
/**
|
|
36
37
|
* @param {string} value - specifies the string value
|
|
37
38
|
* @returns {void}
|
|
38
39
|
* @hidden
|
|
39
|
-
|
|
40
|
+
|
|
40
41
|
*/
|
|
41
42
|
sanitizeHelper(value: string): string;
|
|
42
43
|
private addEventListener;
|
|
@@ -56,6 +57,7 @@ export declare class HtmlEditor {
|
|
|
56
57
|
private getRangeLiNode;
|
|
57
58
|
private onPaste;
|
|
58
59
|
private spaceLink;
|
|
60
|
+
private mouseOutHandler;
|
|
59
61
|
private onToolbarClick;
|
|
60
62
|
private renderColorPicker;
|
|
61
63
|
private instantiateRenderer;
|
|
@@ -67,7 +69,7 @@ export declare class HtmlEditor {
|
|
|
67
69
|
* @param {RichTextEditorModel} e - specifies the editor model
|
|
68
70
|
* @returns {void}
|
|
69
71
|
* @hidden
|
|
70
|
-
|
|
72
|
+
|
|
71
73
|
*/
|
|
72
74
|
protected onPropertyChanged(e: {
|
|
73
75
|
[key: string]: RichTextEditorModel;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as events from '../base/constant';
|
|
2
|
-
import { isNullOrUndefined, closest, attributes, removeClass, addClass, Browser, detach } from '@syncfusion/ej2-base';
|
|
2
|
+
import { isNullOrUndefined, closest, attributes, removeClass, addClass, Browser, detach, EventHandler } from '@syncfusion/ej2-base';
|
|
3
3
|
import { isNullOrUndefined as isNOU } from '@syncfusion/ej2-base';
|
|
4
4
|
import { HTMLFormatter } from '../formatter/html-formatter';
|
|
5
5
|
import { RenderType } from '../base/enum';
|
|
@@ -33,7 +33,7 @@ var HtmlEditor = /** @class */ (function () {
|
|
|
33
33
|
* @function destroy
|
|
34
34
|
* @returns {void}
|
|
35
35
|
* @hidden
|
|
36
|
-
|
|
36
|
+
|
|
37
37
|
*/
|
|
38
38
|
HtmlEditor.prototype.destroy = function () {
|
|
39
39
|
this.removeEventListener();
|
|
@@ -42,7 +42,7 @@ var HtmlEditor = /** @class */ (function () {
|
|
|
42
42
|
* @param {string} value - specifies the string value
|
|
43
43
|
* @returns {void}
|
|
44
44
|
* @hidden
|
|
45
|
-
|
|
45
|
+
|
|
46
46
|
*/
|
|
47
47
|
HtmlEditor.prototype.sanitizeHelper = function (value) {
|
|
48
48
|
value = sanitizeHelper(value, this.parent);
|
|
@@ -222,7 +222,7 @@ var HtmlEditor = /** @class */ (function () {
|
|
|
222
222
|
e.args.keyCode === 13) {
|
|
223
223
|
this.spaceLink(e.args);
|
|
224
224
|
if (this.parent.editorMode === 'HTML' && !this.parent.readonly) {
|
|
225
|
-
var currentLength = this.parent.getText().trim().length;
|
|
225
|
+
var currentLength = this.parent.getText().trim().replace(/(\r\n|\n|\r)/gm, '').replace(/\u200B/g, '').length;
|
|
226
226
|
var selectionLength = this.parent.getSelection().length;
|
|
227
227
|
var totalLength = (currentLength - selectionLength) + 1;
|
|
228
228
|
if (!(this.parent.maxLength === -1 || totalLength <= this.parent.maxLength) &&
|
|
@@ -232,6 +232,10 @@ var HtmlEditor = /** @class */ (function () {
|
|
|
232
232
|
}
|
|
233
233
|
else {
|
|
234
234
|
this.parent.notify(events.enterHandler, { args: e.args });
|
|
235
|
+
var newRange = this.parent.getRange();
|
|
236
|
+
if (!isNOU(newRange.startContainer) && newRange.startContainer === this.parent.inputElement.lastChild && newRange.startContainer.nodeName !== '#text') {
|
|
237
|
+
newRange.startContainer.scrollIntoView({ block: "end", inline: "nearest" });
|
|
238
|
+
}
|
|
235
239
|
}
|
|
236
240
|
}
|
|
237
241
|
}
|
|
@@ -380,7 +384,7 @@ var HtmlEditor = /** @class */ (function () {
|
|
|
380
384
|
var liElement;
|
|
381
385
|
var rootElement;
|
|
382
386
|
if (e.args.code === 'Delete' && e.args.keyCode === 46 &&
|
|
383
|
-
this.parent.contentModule.getText().trim().length !== 0 && this.parent.getSelection().length === 0 && currentRange.startContainer.parentElement.tagName !== 'TD' &&
|
|
387
|
+
this.parent.contentModule.getText().trim().replace(/(\r\n|\n|\r)/gm, '').replace(/\u200B/g, '').length !== 0 && this.parent.getSelection().length === 0 && currentRange.startContainer.parentElement.tagName !== 'TD' &&
|
|
384
388
|
currentRange.startContainer.parentElement.tagName !== 'TH') {
|
|
385
389
|
this.deleteRangeElement = rootElement = this.getRootBlockNode(currentRange.startContainer);
|
|
386
390
|
if (this.deleteRangeElement.tagName === 'OL' || this.deleteRangeElement.tagName === 'UL') {
|
|
@@ -595,6 +599,19 @@ var HtmlEditor = /** @class */ (function () {
|
|
|
595
599
|
}, e, value);
|
|
596
600
|
}
|
|
597
601
|
};
|
|
602
|
+
HtmlEditor.prototype.mouseOutHandler = function () {
|
|
603
|
+
if (!isNOU(this.tooltipTargetEle)) {
|
|
604
|
+
this.tooltipTargetEle.setAttribute('title', this.tooltipTargetEle.getAttribute('data-title'));
|
|
605
|
+
}
|
|
606
|
+
else {
|
|
607
|
+
var currentDocument = this.parent.iframeSettings.enable ? this.parent.contentModule.getPanel().ownerDocument :
|
|
608
|
+
this.parent.contentModule.getDocument();
|
|
609
|
+
this.tooltipTargetEle = currentDocument.querySelector('[data-title]');
|
|
610
|
+
this.tooltipTargetEle.setAttribute('title', this.tooltipTargetEle.getAttribute('data-title'));
|
|
611
|
+
}
|
|
612
|
+
this.tooltipTargetEle.removeAttribute('data-title');
|
|
613
|
+
EventHandler.remove(this.tooltipTargetEle, 'mouseout', this.mouseOutHandler);
|
|
614
|
+
};
|
|
598
615
|
HtmlEditor.prototype.onToolbarClick = function (args) {
|
|
599
616
|
var _this = this;
|
|
600
617
|
var save;
|
|
@@ -602,6 +619,15 @@ var HtmlEditor = /** @class */ (function () {
|
|
|
602
619
|
var selectParentEle;
|
|
603
620
|
var item = args.item;
|
|
604
621
|
var closestElement = closest(args.originalEvent.target, '.e-rte-quick-popup');
|
|
622
|
+
var currentDocument = this.parent.iframeSettings.enable ? this.parent.contentModule.getPanel().ownerDocument :
|
|
623
|
+
this.parent.contentModule.getDocument();
|
|
624
|
+
this.tooltipTargetEle = closest(args.originalEvent.target, '[data-tooltip-id]');
|
|
625
|
+
if (!isNOU(this.tooltipTargetEle) && this.parent.showTooltip && !isNOU(currentDocument.querySelector('.e-tooltip-wrap'))) {
|
|
626
|
+
this.parent.notify(events.destroyTooltip, { args: event });
|
|
627
|
+
this.tooltipTargetEle.setAttribute('data-title', this.tooltipTargetEle.getAttribute('title'));
|
|
628
|
+
this.tooltipTargetEle.removeAttribute('title');
|
|
629
|
+
EventHandler.add(this.tooltipTargetEle, 'mouseout', this.mouseOutHandler, this);
|
|
630
|
+
}
|
|
605
631
|
if (item.command !== 'FormatPainter') {
|
|
606
632
|
if (closestElement && !closestElement.classList.contains('e-rte-inline-popup') && !closestElement.classList.contains('e-rte-text-popup')) {
|
|
607
633
|
if (!(item.subCommand === 'SourceCode' || item.subCommand === 'Preview' ||
|
|
@@ -801,7 +827,7 @@ var HtmlEditor = /** @class */ (function () {
|
|
|
801
827
|
* @param {RichTextEditorModel} e - specifies the editor model
|
|
802
828
|
* @returns {void}
|
|
803
829
|
* @hidden
|
|
804
|
-
|
|
830
|
+
|
|
805
831
|
*/
|
|
806
832
|
HtmlEditor.prototype.onPropertyChanged = function (e) {
|
|
807
833
|
// On property code change here
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Property, NotifyPropertyChanges, INotifyPropertyChanged, Event } from '@syncfusion/ej2-base';
|
|
1
|
+
import { Property, NotifyPropertyChanges, INotifyPropertyChanged, Event } from '@syncfusion/ej2-base';import { Base, EmitType } from '@syncfusion/ej2-base';import { KeyboardEventsModel } from '@syncfusion/ej2-base';
|
|
2
2
|
import {KeyboardEventArgs} from "./keyboard";
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -7,24 +7,24 @@ import {KeyboardEventArgs} from "./keyboard";
|
|
|
7
7
|
export interface KeyboardEventsModel {
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* Specifies key combination and it respective action name.
|
|
11
|
-
*
|
|
12
|
-
* @default null
|
|
13
|
-
*/
|
|
14
|
-
keyConfigs?: { [key: string]: string };
|
|
10
|
+
* Specifies key combination and it respective action name.
|
|
11
|
+
*
|
|
12
|
+
* @default null
|
|
13
|
+
*/
|
|
14
|
+
keyConfigs?: { [key: string]: string };
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* Specifies on which event keyboardEvents class should listen for key press. For ex., `keyup`, `keydown` or `keypress`
|
|
18
|
-
*
|
|
19
|
-
* @default 'keyup'
|
|
20
|
-
*/
|
|
21
|
-
eventName?: string;
|
|
17
|
+
* Specifies on which event keyboardEvents class should listen for key press. For ex., `keyup`, `keydown` or `keypress`
|
|
18
|
+
*
|
|
19
|
+
* @default 'keyup'
|
|
20
|
+
*/
|
|
21
|
+
eventName?: string;
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
-
* Specifies the listener when keyboard actions is performed.
|
|
25
|
-
*
|
|
26
|
-
* @event 'keyAction'
|
|
27
|
-
*/
|
|
28
|
-
keyAction?: EmitType<KeyboardEventArgs>;
|
|
24
|
+
* Specifies the listener when keyboard actions is performed.
|
|
25
|
+
*
|
|
26
|
+
* @event 'keyAction'
|
|
27
|
+
*/
|
|
28
|
+
keyAction?: EmitType<KeyboardEventArgs>;
|
|
29
29
|
|
|
30
30
|
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
14
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
-
};
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
};
|
|
20
20
|
import { Property, NotifyPropertyChanges, Event } from '@syncfusion/ej2-base';
|
|
21
21
|
import { Base } from '@syncfusion/ej2-base';
|
|
22
22
|
var keyCode = {
|
|
@@ -84,7 +84,7 @@ var keyCode = {
|
|
|
84
84
|
* ```
|
|
85
85
|
*
|
|
86
86
|
* @hidden
|
|
87
|
-
|
|
87
|
+
|
|
88
88
|
*/
|
|
89
89
|
var KeyboardEvents = /** @class */ (function (_super) {
|
|
90
90
|
__extends(KeyboardEvents, _super);
|