@syncfusion/ej2-richtexteditor 23.2.7 → 24.1.43-569781
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 +1927 -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 +3069 -1283
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +3173 -1386
- 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 +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 +3 -2
- package/src/editor-manager/plugin/inserthtml.js +69 -9
- 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 +6 -3
- package/src/editor-manager/plugin/lists.d.ts +2 -2
- package/src/editor-manager/plugin/lists.js +123 -67
- 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 +8 -8
- package/src/editor-manager/plugin/selection-commands.d.ts +2 -1
- package/src/editor-manager/plugin/selection-commands.js +166 -4
- 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 -3
- package/src/editor-manager/plugin/table.js +35 -32
- 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/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 +12 -12
- package/src/rich-text-editor/actions/base-quick-toolbar.js +75 -24
- package/src/rich-text-editor/actions/base-toolbar.d.ts +3 -3
- package/src/rich-text-editor/actions/base-toolbar.js +35 -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 +2 -2
- package/src/rich-text-editor/actions/dropdown-buttons.js +27 -6
- package/src/rich-text-editor/actions/emoji-picker.d.ts +1 -1
- package/src/rich-text-editor/actions/emoji-picker.js +16 -7
- package/src/rich-text-editor/actions/enter-key.js +6 -4
- 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 +8 -7
- package/src/rich-text-editor/actions/html-editor.d.ts +5 -3
- package/src/rich-text-editor/actions/html-editor.js +137 -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 +16 -9
- package/src/rich-text-editor/actions/quick-toolbar.js +54 -20
- 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 +259 -163
- package/src/rich-text-editor/base/util.d.ts +5 -1
- package/src/rich-text-editor/base/util.js +58 -6
- package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
- package/src/rich-text-editor/formatter/formatter.js +23 -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 +14 -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 +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 +261 -220
- 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 +331 -166
- package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +13 -15
- package/src/rich-text-editor/renderer/toolbar-renderer.js +114 -115
- package/src/rich-text-editor/renderer/video-module.d.ts +4 -1
- package/src/rich-text-editor/renderer/video-module.js +62 -35
- 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 +345 -99
- package/styles/bootstrap.css +353 -108
- package/styles/bootstrap4.css +337 -95
- package/styles/bootstrap5-dark.css +343 -96
- package/styles/bootstrap5.css +343 -96
- package/styles/fabric-dark.css +331 -89
- package/styles/fabric.css +332 -90
- package/styles/fluent-dark.css +342 -92
- package/styles/fluent.css +342 -92
- package/styles/highcontrast-light.css +331 -89
- package/styles/highcontrast.css +335 -90
- package/styles/material-dark.css +337 -90
- package/styles/material.css +337 -90
- package/styles/material3-dark.css +347 -99
- package/styles/material3-dark.scss +1 -1
- package/styles/material3.css +347 -99
- 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 +906 -837
- package/styles/rich-text-editor/bootstrap-dark.css +345 -99
- package/styles/rich-text-editor/bootstrap.css +353 -108
- package/styles/rich-text-editor/bootstrap4.css +337 -95
- package/styles/rich-text-editor/bootstrap5-dark.css +343 -96
- package/styles/rich-text-editor/bootstrap5.css +343 -96
- package/styles/rich-text-editor/fabric-dark.css +331 -89
- package/styles/rich-text-editor/fabric.css +332 -90
- package/styles/rich-text-editor/fluent-dark.css +342 -92
- package/styles/rich-text-editor/fluent.css +342 -92
- package/styles/rich-text-editor/highcontrast-light.css +331 -89
- package/styles/rich-text-editor/highcontrast.css +335 -90
- 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 +337 -90
- package/styles/rich-text-editor/material.css +337 -90
- package/styles/rich-text-editor/material3-dark.css +347 -99
- package/styles/rich-text-editor/material3-dark.scss +1 -1
- package/styles/rich-text-editor/material3.css +347 -99
- package/styles/rich-text-editor/material3.scss +1 -1
- package/styles/rich-text-editor/tailwind-dark.css +386 -116
- package/styles/rich-text-editor/tailwind.css +386 -116
- package/styles/tailwind-dark.css +386 -116
- package/styles/tailwind.css +386 -116
- 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
|
@@ -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
|
+
* @deprecated
|
|
27
27
|
*/
|
|
28
28
|
renderColorPickerInput(args: IColorPickerRenderArgs): void;
|
|
29
29
|
private destroy;
|
|
@@ -32,13 +32,14 @@ export declare class ColorPickerInput {
|
|
|
32
32
|
*
|
|
33
33
|
* @returns {void}
|
|
34
34
|
* @hidden
|
|
35
|
-
|
|
35
|
+
* @deprecated
|
|
36
36
|
*/
|
|
37
37
|
destroyColorPicker(): void;
|
|
38
38
|
private setRtl;
|
|
39
39
|
private setCssClass;
|
|
40
40
|
private updateCss;
|
|
41
41
|
protected addEventListener(): void;
|
|
42
|
+
private showColorPicker;
|
|
42
43
|
private onPropertyChanged;
|
|
43
44
|
protected removeEventListener(): void;
|
|
44
45
|
}
|
|
@@ -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
|
+
* @deprecated
|
|
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
|
+
* @deprecated
|
|
116
116
|
*/
|
|
117
117
|
ColorPickerInput.prototype.destroyColorPicker = function () {
|
|
118
118
|
if (this.fontColorPicker && !this.fontColorPicker.isDestroyed) {
|
|
@@ -170,6 +170,15 @@ var ColorPickerInput = /** @class */ (function () {
|
|
|
170
170
|
this.parent.on(events.destroyColorPicker, this.destroyColorPicker, this);
|
|
171
171
|
this.parent.on(events.modelChanged, this.onPropertyChanged, this);
|
|
172
172
|
this.parent.on(events.bindCssClass, this.setCssClass, this);
|
|
173
|
+
this.parent.on(events.showColorPicker, this.showColorPicker, this);
|
|
174
|
+
};
|
|
175
|
+
ColorPickerInput.prototype.showColorPicker = function (e) {
|
|
176
|
+
if (!isNullOrUndefined(this.fontColorPicker) && (e.toolbarClick === "fontcolor")) {
|
|
177
|
+
this.fontColorDropDown.toggle();
|
|
178
|
+
}
|
|
179
|
+
else if (!isNullOrUndefined(this.backgroundColorPicker) && (e.toolbarClick === "backgroundcolor")) {
|
|
180
|
+
this.backgroundColorDropDown.toggle();
|
|
181
|
+
}
|
|
173
182
|
};
|
|
174
183
|
ColorPickerInput.prototype.onPropertyChanged = function (model) {
|
|
175
184
|
var newProp = model.newProp;
|
|
@@ -243,6 +252,7 @@ var ColorPickerInput = /** @class */ (function () {
|
|
|
243
252
|
this.parent.off(events.destroyColorPicker, this.destroyColorPicker);
|
|
244
253
|
this.parent.off(events.modelChanged, this.onPropertyChanged);
|
|
245
254
|
this.parent.off(events.bindCssClass, this.setCssClass);
|
|
255
|
+
this.parent.off(events.showColorPicker, this.showColorPicker);
|
|
246
256
|
};
|
|
247
257
|
return ColorPickerInput;
|
|
248
258
|
}());
|
|
@@ -22,7 +22,7 @@ export declare class Count {
|
|
|
22
22
|
*
|
|
23
23
|
* @returns {void}
|
|
24
24
|
* @hidden
|
|
25
|
-
|
|
25
|
+
* @deprecated
|
|
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
|
+
* @deprecated
|
|
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
|
+
* @deprecated
|
|
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
|
+
* @deprecated
|
|
26
26
|
*/
|
|
27
27
|
Count.prototype.renderCount = function () {
|
|
28
28
|
this.initializeInstance();
|
|
@@ -35,7 +35,7 @@ var Count = /** @class */ (function () {
|
|
|
35
35
|
};
|
|
36
36
|
Count.prototype.appendCount = function () {
|
|
37
37
|
var htmlText = this.parent.editorMode === 'Markdown' ? this.editPanel.value :
|
|
38
|
-
this.
|
|
38
|
+
(this.parent.getText().replace(/(\r\n|\n|\r|\t)/gm, ''));
|
|
39
39
|
if (this.parent.editorMode !== 'Markdown' && htmlText.indexOf('\u200B') !== -1) {
|
|
40
40
|
this.htmlLength = htmlText.replace(/\u200B/g, '').length;
|
|
41
41
|
}
|
|
@@ -63,7 +63,7 @@ var Count = /** @class */ (function () {
|
|
|
63
63
|
/**
|
|
64
64
|
* @returns {void}
|
|
65
65
|
* @hidden
|
|
66
|
-
|
|
66
|
+
* @deprecated
|
|
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
|
+
* @deprecated
|
|
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
|
+
* @deprecated
|
|
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
|
+
* @deprecated
|
|
59
59
|
*/
|
|
60
60
|
destroyDropDowns(): void;
|
|
61
61
|
private setRtl;
|
|
@@ -3,7 +3,8 @@ import { RenderType } from '../base/enum';
|
|
|
3
3
|
import { getIndex } from '../base/util';
|
|
4
4
|
import * as events from '../base/constant';
|
|
5
5
|
import * as classes from '../base/classes';
|
|
6
|
-
import { getDropDownValue, getFormattedFontSize, getTooltipText } from '../base/util';
|
|
6
|
+
import { getDropDownValue, getFormattedFontSize, getTooltipText, getTooltipTextDropdownItems, getQuickToolbarTooltipText } from '../base/util';
|
|
7
|
+
import { fontNameLocale, formatsLocale, numberFormatListLocale, bulletFormatListLocale } from '../models/default-locale';
|
|
7
8
|
import * as model from '../models/items';
|
|
8
9
|
import { dispatchEvent } from '../base/util';
|
|
9
10
|
/**
|
|
@@ -24,10 +25,28 @@ var DropDownButtons = /** @class */ (function () {
|
|
|
24
25
|
if (item.cssClass) {
|
|
25
26
|
addClass([args.element], item.cssClass);
|
|
26
27
|
}
|
|
28
|
+
if (item.command === 'Images' || item.command === 'Videos' || item.command === 'Audios' || item.command === 'Table') {
|
|
29
|
+
args.element.setAttribute('title', getQuickToolbarTooltipText(item.text) !== '' ? getQuickToolbarTooltipText(item.text) : item.text);
|
|
30
|
+
}
|
|
27
31
|
if (item.command === 'Alignments' || item.subCommand === 'JustifyLeft'
|
|
28
32
|
|| item.subCommand === 'JustifyRight' || item.subCommand === 'JustifyCenter') {
|
|
29
33
|
args.element.setAttribute('title', getTooltipText(item.subCommand.toLocaleLowerCase(), this.locator));
|
|
30
34
|
}
|
|
35
|
+
if (item.command === 'Formats') {
|
|
36
|
+
args.element.setAttribute('title', getTooltipTextDropdownItems(item.subCommand.toLocaleLowerCase(), this.locator, formatsLocale));
|
|
37
|
+
}
|
|
38
|
+
if (item.command === 'Font') {
|
|
39
|
+
args.element.setAttribute('title', getTooltipTextDropdownItems(item.text.toLocaleLowerCase(), this.locator, fontNameLocale) !== '' ? getTooltipTextDropdownItems(item.text.toLocaleLowerCase(), this.locator, fontNameLocale) : item.text);
|
|
40
|
+
}
|
|
41
|
+
if (item.subCommand === 'BulletFormatList') {
|
|
42
|
+
args.element.setAttribute('title', getTooltipTextDropdownItems(item.text.toLocaleLowerCase(), this.locator, bulletFormatListLocale) !== '' ? getTooltipTextDropdownItems(item.text.toLocaleLowerCase(), this.locator, bulletFormatListLocale) : item.text);
|
|
43
|
+
}
|
|
44
|
+
if (item.subCommand === 'NumberFormatList') {
|
|
45
|
+
args.element.setAttribute('title', (getTooltipTextDropdownItems(item.text.toLocaleLowerCase(), this.locator, numberFormatListLocale)) !== '' ? getTooltipTextDropdownItems(item.text.toLocaleLowerCase(), this.locator, numberFormatListLocale) : item.text);
|
|
46
|
+
}
|
|
47
|
+
if (item.subCommand === 'FontSize') {
|
|
48
|
+
args.element.setAttribute('title', getTooltipTextDropdownItems(item.value.toLocaleLowerCase(), null, null, this.parent));
|
|
49
|
+
}
|
|
31
50
|
};
|
|
32
51
|
DropDownButtons.prototype.dropdownContent = function (width, type, content) {
|
|
33
52
|
return ('<span style="display: inline-flex;' + 'width:' + ((type === 'quick') ? 'auto' : width) + '" >' +
|
|
@@ -39,7 +58,7 @@ var DropDownButtons = /** @class */ (function () {
|
|
|
39
58
|
* @param {IDropDownRenderArgs} args - specifies the arguments
|
|
40
59
|
* @returns {void}
|
|
41
60
|
* @hidden
|
|
42
|
-
|
|
61
|
+
* @deprecated
|
|
43
62
|
*/
|
|
44
63
|
DropDownButtons.prototype.renderDropDowns = function (args) {
|
|
45
64
|
var _this = this;
|
|
@@ -134,7 +153,7 @@ var DropDownButtons = /** @class */ (function () {
|
|
|
134
153
|
if (isNullOrUndefined(targetElement) || targetElement.classList.contains(classes.CLS_DROPDOWN_BTN)) {
|
|
135
154
|
return;
|
|
136
155
|
}
|
|
137
|
-
var fontsize = _this.parent.fontSize.items.slice();
|
|
156
|
+
var fontsize = !isNullOrUndefined(_this.fontSizeDropDown) && !isNullOrUndefined(_this.fontSizeDropDown.items) && _this.fontSizeDropDown.items.length > 0 ? _this.fontSizeDropDown.items : JSON.parse(JSON.stringify(_this.parent.fontSize.items.slice()));
|
|
138
157
|
fontsize.forEach(function (item) {
|
|
139
158
|
Object.defineProperties(item, {
|
|
140
159
|
command: { value: 'Font', enumerable: true }, subCommand: { value: 'FontSize', enumerable: true }
|
|
@@ -191,7 +210,7 @@ var DropDownButtons = /** @class */ (function () {
|
|
|
191
210
|
}
|
|
192
211
|
});
|
|
193
212
|
if (this.parent.inlineMode.enable) {
|
|
194
|
-
this.setCssClass({ cssClass: this.parent.
|
|
213
|
+
this.setCssClass({ cssClass: this.parent.getCssClass() });
|
|
195
214
|
}
|
|
196
215
|
};
|
|
197
216
|
DropDownButtons.prototype.getUpdateItems = function (items, value) {
|
|
@@ -406,7 +425,7 @@ var DropDownButtons = /** @class */ (function () {
|
|
|
406
425
|
*
|
|
407
426
|
* @returns {void}
|
|
408
427
|
* @hidden
|
|
409
|
-
|
|
428
|
+
* @deprecated
|
|
410
429
|
*/
|
|
411
430
|
DropDownButtons.prototype.destroyDropDowns = function () {
|
|
412
431
|
if (this.formatDropDown) {
|
|
@@ -512,7 +531,9 @@ var DropDownButtons = /** @class */ (function () {
|
|
|
512
531
|
this.parent.on(events.bindCssClass, this.setCssClass, this);
|
|
513
532
|
};
|
|
514
533
|
DropDownButtons.prototype.onIframeMouseDown = function () {
|
|
515
|
-
|
|
534
|
+
if (this.parent.getToolbarElement().querySelectorAll('.e-rte-dropdown-btn[aria-expanded="true"]').length > 0) {
|
|
535
|
+
dispatchEvent(document, 'mousedown');
|
|
536
|
+
}
|
|
516
537
|
};
|
|
517
538
|
DropDownButtons.prototype.removeEventListener = function () {
|
|
518
539
|
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
|
+
* @deprecated
|
|
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;
|
|
@@ -58,10 +61,10 @@ var EmojiPicker = /** @class */ (function () {
|
|
|
58
61
|
}
|
|
59
62
|
this.popDiv = this.parent.createElement('div', { className: 'e-rte-emojipicker-popup', id: this.parent.getID() + '_emojiPicker' });
|
|
60
63
|
if (!isNOU(this.parent.getToolbar()) && !this.parent.inlineMode.enable) {
|
|
61
|
-
this.parent.getToolbar().appendChild(this.popDiv);
|
|
64
|
+
this.parent.getToolbar().parentElement.appendChild(this.popDiv);
|
|
62
65
|
}
|
|
63
66
|
else if (this.parent.inlineMode.enable) {
|
|
64
|
-
this.parent.
|
|
67
|
+
this.parent.element.appendChild(this.popDiv);
|
|
65
68
|
}
|
|
66
69
|
EventHandler.add(this.popDiv, 'keydown', this.onKeyDown, this);
|
|
67
70
|
EventHandler.add(this.popDiv, 'keyup', this.searchFilter, this);
|
|
@@ -640,7 +643,7 @@ var EmojiPicker = /** @class */ (function () {
|
|
|
640
643
|
noEmojiObj.style.margin = '55px';
|
|
641
644
|
emojipickerAll.appendChild(noEmojiObj);
|
|
642
645
|
}
|
|
643
|
-
else if (!noEMoji && this.parent.element.querySelector('.e-rte-emojiSearch-noEmoji') || (inputValue === '' && value === ':')) {
|
|
646
|
+
else if (!noEMoji && this.parent.element.querySelector('.e-rte-emojiSearch-noEmoji') || (inputValue === '' && value === ':') || (inputValue === '' && this.parent.element.querySelector('.e-rte-emojiSearch-noEmoji'))) {
|
|
644
647
|
emojipickerAll.removeChild(this.parent.element.querySelector('.e-rte-emojiSearch-noEmoji'));
|
|
645
648
|
}
|
|
646
649
|
emojipickerAll.appendChild(emojiBtnDiv);
|
|
@@ -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') {
|
|
@@ -50,7 +50,8 @@ var EnterKeyAction = /** @class */ (function () {
|
|
|
50
50
|
isTableEnter = blockElement.tagName === 'TD' || blockElement.tagName === 'TBODY' ? false : true;
|
|
51
51
|
}
|
|
52
52
|
if (e.args.which === 13 && !e.args.ctrlKey && (!Browser.isDevice ? e.args.code === 'Enter' : e.args.key === 'Enter')) {
|
|
53
|
-
if (isNOU(this.startNode.closest('LI, UL, OL')) && isNOU(this.endNode.closest('LI, UL, OL')) &&
|
|
53
|
+
if (isNOU(this.startNode.closest('LI, UL, OL')) && isNOU(this.endNode.closest('LI, UL, OL')) &&
|
|
54
|
+
isNOU(this.startNode.closest('.e-img-inner')) && isTableEnter &&
|
|
54
55
|
isNOU(this.startNode.closest('PRE')) && isNOU(this.endNode.closest('PRE'))) {
|
|
55
56
|
var shiftKey_1 = e.args.shiftKey;
|
|
56
57
|
var actionBeginArgs = {
|
|
@@ -236,7 +237,8 @@ var EnterKeyAction = /** @class */ (function () {
|
|
|
236
237
|
}
|
|
237
238
|
_this.parent.formatter.editorManager.nodeSelection.setCursorPoint(_this.parent.contentModule.getDocument(), insertElem.nextElementSibling, 0);
|
|
238
239
|
}
|
|
239
|
-
else if (nearBlockNode.textContent.length === 0 && !(!isNOU(nearBlockNode.childNodes[0]) && nearBlockNode.childNodes[0].nodeName === 'IMG'
|
|
240
|
+
else if (nearBlockNode.textContent.length === 0 && !(!isNOU(nearBlockNode.childNodes[0]) && nearBlockNode.childNodes[0].nodeName === 'IMG' ||
|
|
241
|
+
(nearBlockNode.querySelectorAll('video').length > 0) || (nearBlockNode.querySelectorAll('audio').length > 0) || (nearBlockNode.querySelectorAll('img').length > 0))) {
|
|
240
242
|
if (!isNOU(nearBlockNode.children[0]) && nearBlockNode.children[0].tagName !== 'BR') {
|
|
241
243
|
var newElem = _this.parent.formatter.editorManager.nodeCutter.SplitNode(_this.range, nearBlockNode, false).cloneNode(true);
|
|
242
244
|
_this.parent.formatter.editorManager.domNode.insertAfter(newElem, nearBlockNode);
|
|
@@ -484,10 +486,10 @@ var EnterKeyAction = /** @class */ (function () {
|
|
|
484
486
|
}
|
|
485
487
|
var previousBlockNode = this.parent.formatter.editorManager.domNode.blockNodes()[0].previousSibling;
|
|
486
488
|
var nextBlockNode = this.parent.formatter.editorManager.domNode.blockNodes()[0].nextSibling;
|
|
487
|
-
if (!isNOU(previousBlockNode) && previousBlockNode.hasAttribute('style')) {
|
|
489
|
+
if (!isNOU(previousBlockNode) && previousBlockNode.nodeName !== '#text' && previousBlockNode.hasAttribute('style') && previousBlockNode.nodeName !== 'TABLE') {
|
|
488
490
|
insertElem.setAttribute('style', previousBlockNode.getAttribute('style'));
|
|
489
491
|
}
|
|
490
|
-
if (isNOU(previousBlockNode) && !isNOU(nextBlockNode) && nextBlockNode.hasAttribute('style')) {
|
|
492
|
+
if (isNOU(previousBlockNode) && !isNOU(nextBlockNode) && nextBlockNode.nodeName !== '#text' && nextBlockNode.hasAttribute('style') && nextBlockNode.nodeName !== 'TABLE') {
|
|
491
493
|
insertElem.setAttribute('style', nextBlockNode.getAttribute('style'));
|
|
492
494
|
}
|
|
493
495
|
return insertElem;
|
|
@@ -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
|
+
* @deprecated
|
|
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
|
+
* @deprecated
|
|
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
|
+
* @deprecated
|
|
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
|
+
* @deprecated
|
|
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)) {
|
|
@@ -46,7 +46,7 @@ var FullScreen = /** @class */ (function () {
|
|
|
46
46
|
_this.parent.element.classList.add(classes.CLS_FULL_SCREEN);
|
|
47
47
|
_this.toggleParentOverflow(true);
|
|
48
48
|
var isExpand = _this.parent.element.querySelectorAll('.e-toolbar-extended.e-popup-open').length > 0 ? true : false;
|
|
49
|
-
_this.parent.setContentHeight(
|
|
49
|
+
_this.parent.setContentHeight('Maximize', isExpand);
|
|
50
50
|
if (_this.parent.toolbarModule) {
|
|
51
51
|
if (!_this.parent.getBaseToolbarObject().toolbarObj.items[0].properties) {
|
|
52
52
|
_this.parent.getBaseToolbarObject().toolbarObj.removeItems(0);
|
|
@@ -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
|
+
* @deprecated
|
|
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 = {
|
|
@@ -98,7 +98,7 @@ var FullScreen = /** @class */ (function () {
|
|
|
98
98
|
removeClass([elem[i]], ['e-rte-overflow']);
|
|
99
99
|
}
|
|
100
100
|
var isExpand = _this.parent.element.querySelectorAll('.e-toolbar-extended.e-popup-open').length > 0 ? true : false;
|
|
101
|
-
_this.parent.setContentHeight(
|
|
101
|
+
_this.parent.setContentHeight('Minimize', isExpand);
|
|
102
102
|
if (_this.parent.toolbarModule) {
|
|
103
103
|
if (!_this.parent.getBaseToolbarObject().toolbarObj.items[0].properties) {
|
|
104
104
|
_this.parent.getBaseToolbarObject().toolbarObj.removeItems(0);
|
|
@@ -112,6 +112,7 @@ var FullScreen = /** @class */ (function () {
|
|
|
112
112
|
_this.parent.toolbarModule.addFixedTBarClass();
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
+
_this.parent.refreshUI();
|
|
115
116
|
_this.parent.trigger(events.actionComplete, { requestType: 'Minimize', targetItem: 'Minimize', args: event });
|
|
116
117
|
}
|
|
117
118
|
});
|
|
@@ -161,7 +162,7 @@ var FullScreen = /** @class */ (function () {
|
|
|
161
162
|
*
|
|
162
163
|
* @returns {void}
|
|
163
164
|
* @hidden
|
|
164
|
-
|
|
165
|
+
* @deprecated
|
|
165
166
|
*/
|
|
166
167
|
FullScreen.prototype.destroy = function () {
|
|
167
168
|
if (isNOU(this.parent)) {
|
|
@@ -29,14 +29,14 @@ export declare class HtmlEditor {
|
|
|
29
29
|
* @function destroy
|
|
30
30
|
* @returns {void}
|
|
31
31
|
* @hidden
|
|
32
|
-
|
|
32
|
+
* @deprecated
|
|
33
33
|
*/
|
|
34
34
|
destroy(): void;
|
|
35
35
|
/**
|
|
36
36
|
* @param {string} value - specifies the string value
|
|
37
37
|
* @returns {void}
|
|
38
38
|
* @hidden
|
|
39
|
-
|
|
39
|
+
* @deprecated
|
|
40
40
|
*/
|
|
41
41
|
sanitizeHelper(value: string): string;
|
|
42
42
|
private addEventListener;
|
|
@@ -44,6 +44,8 @@ export declare class HtmlEditor {
|
|
|
44
44
|
private onSelectionSave;
|
|
45
45
|
private onSelectionRestore;
|
|
46
46
|
private isTableClassAdded;
|
|
47
|
+
private onHandleFontsizeChange;
|
|
48
|
+
private convertFontSize;
|
|
47
49
|
private onKeyUp;
|
|
48
50
|
private onKeyDown;
|
|
49
51
|
private isOrderedList;
|
|
@@ -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
|
+
* @deprecated
|
|
71
73
|
*/
|
|
72
74
|
protected onPropertyChanged(e: {
|
|
73
75
|
[key: string]: RichTextEditorModel;
|