@syncfusion/ej2-richtexteditor 27.1.55 → 27.1.57-637882
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/.eslintignore +4 -4
- package/.eslintrc.json +260 -260
- 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 +994 -749
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +622 -364
- package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
- package/ej2-richtexteditor-component.sln +30 -0
- package/helpers/e2e/index.js +3 -3
- package/helpers/e2e/rte-helper.js +13 -13
- package/license +9 -9
- package/package.json +85 -85
- package/src/common/editor-styles.js +1 -1
- package/src/common/interface.d.ts +10 -8
- package/src/common/util.js +2 -1
- 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 +4 -0
- package/src/editor-manager/base/constant.js +4 -0
- 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 +3 -3
- 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 +36 -36
- package/src/editor-manager/plugin/dom-node.js +36 -36
- 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 +3 -2
- package/src/editor-manager/plugin/formats.js +27 -2
- package/src/editor-manager/plugin/image.d.ts +3 -3
- package/src/editor-manager/plugin/image.js +11 -5
- 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 +4 -2
- package/src/editor-manager/plugin/inserthtml.js +98 -19
- package/src/editor-manager/plugin/isformatted.d.ts +9 -9
- package/src/editor-manager/plugin/isformatted.js +9 -9
- 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 +2 -1
- package/src/editor-manager/plugin/ms-word-clean-up.js +17 -1
- 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 +1 -1
- package/src/editor-manager/plugin/selection-commands.js +1 -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 +9 -9
- 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 +2 -2
- 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 +2 -2
- package/src/rich-text-editor/actions/emoji-picker.d.ts +1 -1
- package/src/rich-text-editor/actions/emoji-picker.js +1 -1
- package/src/rich-text-editor/actions/enter-key.js +10 -2
- package/src/rich-text-editor/actions/full-screen.d.ts +3 -3
- package/src/rich-text-editor/actions/full-screen.js +3 -3
- package/src/rich-text-editor/actions/html-editor.d.ts +3 -3
- package/src/rich-text-editor/actions/html-editor.js +21 -5
- 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 +1 -1
- package/src/rich-text-editor/actions/paste-clean-up.js +49 -22
- package/src/rich-text-editor/actions/quick-toolbar.d.ts +9 -9
- package/src/rich-text-editor/actions/quick-toolbar.js +9 -9
- package/src/rich-text-editor/actions/resize.js +4 -0
- package/src/rich-text-editor/actions/toolbar.d.ts +13 -13
- package/src/rich-text-editor/actions/toolbar.js +13 -13
- 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 +158 -158
- package/src/rich-text-editor/base/constant.js +158 -158
- 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 +51 -51
- package/src/rich-text-editor/base/interface.js +1 -1
- package/src/rich-text-editor/base/rich-text-editor-model.d.ts +958 -958
- package/src/rich-text-editor/base/rich-text-editor.d.ts +62 -62
- package/src/rich-text-editor/base/rich-text-editor.js +68 -65
- package/src/rich-text-editor/base/util.d.ts +1 -1
- package/src/rich-text-editor/base/util.js +1 -1
- package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
- package/src/rich-text-editor/formatter/formatter.js +8 -8
- 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 +5 -5
- package/src/rich-text-editor/models/iframe-settings-model.d.ts +38 -38
- 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/slash-menu-settings-model.d.ts +25 -25
- package/src/rich-text-editor/models/slash-menu-settings.js +19 -19
- package/src/rich-text-editor/models/toolbar-settings-model.d.ts +807 -807
- 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 +8 -2
- 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 +2 -2
- 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 +65 -23
- package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/link-module.js +4 -1
- 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/slash-menu.js +9 -0
- package/src/rich-text-editor/renderer/table-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/table-module.js +5 -4
- package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +9 -9
- package/src/rich-text-editor/renderer/toolbar-renderer.js +9 -9
- package/src/rich-text-editor/renderer/video-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/video-module.js +8 -2
- package/src/rich-text-editor/renderer/view-source.d.ts +5 -5
- package/src/rich-text-editor/renderer/view-source.js +5 -5
- 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 +24 -23
- package/src/selection/selection.js +37 -34
- package/styles/_all.scss +1 -1
- package/styles/material3-dark.scss +1 -1
- package/styles/material3.scss +1 -1
- package/styles/rich-text-editor/_all.scss +2 -2
- package/styles/rich-text-editor/_bds-definition.scss +290 -290
- package/styles/rich-text-editor/_bigger.scss +610 -610
- package/styles/rich-text-editor/_bootstrap-dark-definition.scss +291 -291
- package/styles/rich-text-editor/_bootstrap-definition.scss +349 -349
- package/styles/rich-text-editor/_bootstrap4-definition.scss +476 -476
- package/styles/rich-text-editor/_bootstrap5-definition.scss +278 -278
- package/styles/rich-text-editor/_bootstrap5.3-definition.scss +278 -278
- package/styles/rich-text-editor/_fabric-dark-definition.scss +275 -275
- package/styles/rich-text-editor/_fabric-definition.scss +273 -273
- package/styles/rich-text-editor/_fluent-definition.scss +279 -279
- package/styles/rich-text-editor/_fluent2-definition.scss +287 -287
- package/styles/rich-text-editor/_fusionnew-definition.scss +276 -276
- package/styles/rich-text-editor/_highcontrast-definition.scss +274 -274
- package/styles/rich-text-editor/_highcontrast-light-definition.scss +273 -273
- package/styles/rich-text-editor/_layout.scss +2180 -2180
- package/styles/rich-text-editor/_material-dark-definition.scss +278 -278
- package/styles/rich-text-editor/_material-definition.scss +276 -276
- package/styles/rich-text-editor/_material3-definition.scss +278 -278
- package/styles/rich-text-editor/_tailwind-definition.scss +273 -273
- package/styles/rich-text-editor/_theme.scss +844 -844
- package/styles/rich-text-editor/icons/_bds.scss +372 -372
- package/styles/rich-text-editor/icons/_bootstrap-dark.scss +373 -373
- package/styles/rich-text-editor/icons/_bootstrap.scss +373 -373
- package/styles/rich-text-editor/icons/_bootstrap4.scss +373 -373
- package/styles/rich-text-editor/icons/_bootstrap5.3.scss +372 -372
- package/styles/rich-text-editor/icons/_bootstrap5.scss +372 -372
- package/styles/rich-text-editor/icons/_fabric-dark.scss +373 -373
- package/styles/rich-text-editor/icons/_fabric.scss +373 -373
- package/styles/rich-text-editor/icons/_fluent.scss +372 -372
- package/styles/rich-text-editor/icons/_fluent2.scss +369 -369
- package/styles/rich-text-editor/icons/_fusionnew.scss +357 -357
- package/styles/rich-text-editor/icons/_highcontrast-light.scss +361 -361
- package/styles/rich-text-editor/icons/_highcontrast.scss +373 -373
- package/styles/rich-text-editor/icons/_material-dark.scss +373 -373
- package/styles/rich-text-editor/icons/_material.scss +373 -373
- package/styles/rich-text-editor/icons/_material3.scss +372 -372
- package/styles/rich-text-editor/icons/_tailwind.scss +372 -372
- package/styles/rich-text-editor/material3-dark.scss +1 -1
- package/styles/rich-text-editor/material3.scss +1 -1
- 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
|
@@ -5,7 +5,7 @@ import * as events from '../base/constant';
|
|
|
5
5
|
* `Popup renderer` module is used to render popup in RichTextEditor.
|
|
6
6
|
*
|
|
7
7
|
* @hidden
|
|
8
|
-
|
|
8
|
+
* @deprecated
|
|
9
9
|
*/
|
|
10
10
|
var PopupRenderer = /** @class */ (function () {
|
|
11
11
|
/**
|
|
@@ -26,7 +26,7 @@ var PopupRenderer = /** @class */ (function () {
|
|
|
26
26
|
* @param {BaseQuickToolbar} args - specifies the arguments.
|
|
27
27
|
* @returns {void}
|
|
28
28
|
* @hidden
|
|
29
|
-
|
|
29
|
+
* @deprecated
|
|
30
30
|
*/
|
|
31
31
|
PopupRenderer.prototype.renderPopup = function (args) {
|
|
32
32
|
this.setPanel(args.element);
|
|
@@ -44,7 +44,7 @@ var PopupRenderer = /** @class */ (function () {
|
|
|
44
44
|
*
|
|
45
45
|
* @returns {void}
|
|
46
46
|
* @hidden
|
|
47
|
-
|
|
47
|
+
* @deprecated
|
|
48
48
|
*/
|
|
49
49
|
PopupRenderer.prototype.renderPanel = function () {
|
|
50
50
|
this.getPanel().classList.add(CLS_QUICK_POP);
|
|
@@ -54,7 +54,7 @@ var PopupRenderer = /** @class */ (function () {
|
|
|
54
54
|
*
|
|
55
55
|
* @returns {Element} - specifies the element
|
|
56
56
|
* @hidden
|
|
57
|
-
|
|
57
|
+
* @deprecated
|
|
58
58
|
*/
|
|
59
59
|
PopupRenderer.prototype.getPanel = function () {
|
|
60
60
|
return this.popupPanel;
|
|
@@ -65,7 +65,7 @@ var PopupRenderer = /** @class */ (function () {
|
|
|
65
65
|
* @returns {void}
|
|
66
66
|
* @param {Element} panel - specifies the element
|
|
67
67
|
* @hidden
|
|
68
|
-
|
|
68
|
+
* @deprecated
|
|
69
69
|
*/
|
|
70
70
|
PopupRenderer.prototype.setPanel = function (panel) {
|
|
71
71
|
this.popupPanel = panel;
|
|
@@ -4,7 +4,7 @@ import { ServiceLocator } from '../services/service-locator';
|
|
|
4
4
|
* Content module is used to render Rich Text Editor content
|
|
5
5
|
*
|
|
6
6
|
* @hidden
|
|
7
|
-
|
|
7
|
+
* @deprecated
|
|
8
8
|
*/
|
|
9
9
|
export declare class Render {
|
|
10
10
|
private parent;
|
|
@@ -24,7 +24,7 @@ export declare class Render {
|
|
|
24
24
|
*
|
|
25
25
|
* @returns {void}
|
|
26
26
|
* @hidden
|
|
27
|
-
|
|
27
|
+
* @deprecated
|
|
28
28
|
*/
|
|
29
29
|
render(): void;
|
|
30
30
|
/**
|
|
@@ -5,7 +5,7 @@ import { isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
|
5
5
|
* Content module is used to render Rich Text Editor content
|
|
6
6
|
*
|
|
7
7
|
* @hidden
|
|
8
|
-
|
|
8
|
+
* @deprecated
|
|
9
9
|
*/
|
|
10
10
|
var Render = /** @class */ (function () {
|
|
11
11
|
/**
|
|
@@ -26,7 +26,7 @@ var Render = /** @class */ (function () {
|
|
|
26
26
|
*
|
|
27
27
|
* @returns {void}
|
|
28
28
|
* @hidden
|
|
29
|
-
|
|
29
|
+
* @deprecated
|
|
30
30
|
*/
|
|
31
31
|
Render.prototype.render = function () {
|
|
32
32
|
// eslint-disable-next-line
|
|
@@ -150,6 +150,15 @@ var SlashMenu = /** @class */ (function () {
|
|
|
150
150
|
break;
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
|
+
else {
|
|
154
|
+
if (_this.parent.inputElement.classList.contains('e-mention')) {
|
|
155
|
+
var slashMenuPopup = _this.parent.inputElement.ownerDocument.getElementById(_this.parent.inputElement.id + '_slash_menu_popup');
|
|
156
|
+
var isSlashMenuPopupOpen = slashMenuPopup && slashMenuPopup.classList.contains('e-popup-open');
|
|
157
|
+
if (isSlashMenuPopupOpen) {
|
|
158
|
+
_this.mention.hidePopup();
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
153
162
|
}
|
|
154
163
|
});
|
|
155
164
|
};
|
|
@@ -1068,7 +1068,7 @@ var Table = /** @class */ (function () {
|
|
|
1068
1068
|
return;
|
|
1069
1069
|
}
|
|
1070
1070
|
var target = e.target || e.targetTouches[0].target;
|
|
1071
|
-
var closestTable = closest(target, 'table.e-rte-table, table.e-rte-paste-table');
|
|
1071
|
+
var closestTable = closest(target, 'table.e-rte-table, table.e-rte-paste-table, table.e-rte-custom-table');
|
|
1072
1072
|
var isResizing = this.parent.contentModule.getEditPanel().querySelectorAll('.e-table-box.e-rbox-select, .e-table-rhelper.e-column-helper, .e-table-rhelper.e-row-helper').length > 0;
|
|
1073
1073
|
if (!isResizing && !isNOU(this.curTable) && !isNOU(closestTable) && closestTable !== this.curTable &&
|
|
1074
1074
|
this.parent.contentModule.getEditPanel().contains(closestTable)) {
|
|
@@ -1419,7 +1419,8 @@ var Table = /** @class */ (function () {
|
|
|
1419
1419
|
else {
|
|
1420
1420
|
var tableReBox = _this.contentModule.getEditPanel().querySelector('.e-table-box');
|
|
1421
1421
|
var tableWidth = parseInt(getComputedStyle(_this.curTable).width, 10);
|
|
1422
|
-
var tableHeight = parseInt(
|
|
1422
|
+
var tableHeight = !isNaN(parseInt(_this.curTable.style.height, 10)) ?
|
|
1423
|
+
parseInt(_this.curTable.style.height, 10) : parseInt(getComputedStyle(_this.curTable).height, 10);
|
|
1423
1424
|
var paddingSize = +getComputedStyle(_this.contentModule.getEditPanel()).paddingRight.match(/\d/g).join('');
|
|
1424
1425
|
var rteWidth = _this.contentModule.getEditPanel().offsetWidth -
|
|
1425
1426
|
(_this.contentModule.getEditPanel().offsetWidth -
|
|
@@ -1564,7 +1565,7 @@ var Table = /** @class */ (function () {
|
|
|
1564
1565
|
_this.curTable.style.height = tableHeight + mouseY + 'px';
|
|
1565
1566
|
if (!isNOU(tableReBox)) {
|
|
1566
1567
|
tableReBox.classList.add('e-rbox-select');
|
|
1567
|
-
tableReBox.style.cssText = 'top: ' + (_this.calcPos(_this.curTable).top +
|
|
1568
|
+
tableReBox.style.cssText = 'top: ' + (_this.calcPos(_this.curTable).top + parseInt(getComputedStyle(_this.curTable).height, 10) - 4) +
|
|
1568
1569
|
'px; left:' + (_this.calcPos(_this.curTable).left + tableWidth - 4) + 'px;';
|
|
1569
1570
|
}
|
|
1570
1571
|
if (_this.curTable.closest('li')) {
|
|
@@ -2133,7 +2134,7 @@ var Table = /** @class */ (function () {
|
|
|
2133
2134
|
* @function destroy
|
|
2134
2135
|
* @returns {void}
|
|
2135
2136
|
* @hidden
|
|
2136
|
-
|
|
2137
|
+
* @deprecated
|
|
2137
2138
|
*/
|
|
2138
2139
|
Table.prototype.destroy = function () {
|
|
2139
2140
|
if (this.isDestroyed) {
|
|
@@ -7,7 +7,7 @@ import { ServiceLocator } from '../services/service-locator';
|
|
|
7
7
|
* `Toolbar renderer` module is used to render toolbar in RichTextEditor.
|
|
8
8
|
*
|
|
9
9
|
* @hidden
|
|
10
|
-
|
|
10
|
+
* @deprecated
|
|
11
11
|
*/
|
|
12
12
|
export declare class ToolbarRenderer implements IRenderer {
|
|
13
13
|
private mode;
|
|
@@ -48,7 +48,7 @@ export declare class ToolbarRenderer implements IRenderer {
|
|
|
48
48
|
* @param {IToolbarOptions} args - specifies the arguments.
|
|
49
49
|
* @returns {void}
|
|
50
50
|
* @hidden
|
|
51
|
-
|
|
51
|
+
* @deprecated
|
|
52
52
|
*/
|
|
53
53
|
renderToolbar(args: IToolbarOptions): void;
|
|
54
54
|
tooltipBeforeOpen(args: TooltipEventArgs): void;
|
|
@@ -58,7 +58,7 @@ export declare class ToolbarRenderer implements IRenderer {
|
|
|
58
58
|
* @param {IDropDownModel} args - specifies the the arguments.
|
|
59
59
|
* @returns {void}
|
|
60
60
|
* @hidden
|
|
61
|
-
|
|
61
|
+
* @deprecated
|
|
62
62
|
*/
|
|
63
63
|
renderDropDownButton(args: IDropDownModel): DropDownButton;
|
|
64
64
|
private mouseOutHandler;
|
|
@@ -69,7 +69,7 @@ export declare class ToolbarRenderer implements IRenderer {
|
|
|
69
69
|
* @param {IDropDownModel} args - specifies the the arguments.
|
|
70
70
|
* @returns {void}
|
|
71
71
|
* @hidden
|
|
72
|
-
|
|
72
|
+
* @deprecated
|
|
73
73
|
*/
|
|
74
74
|
renderListDropDown(args: IDropDownModel): DropDownButton;
|
|
75
75
|
private paletteSelection;
|
|
@@ -82,7 +82,7 @@ export declare class ToolbarRenderer implements IRenderer {
|
|
|
82
82
|
* @param {string} defaultColor -specifies the defaultColor.
|
|
83
83
|
* @returns {void}
|
|
84
84
|
* @hidden
|
|
85
|
-
|
|
85
|
+
* @deprecated
|
|
86
86
|
*/
|
|
87
87
|
renderColorPickerDropDown(args: IColorPickerModel, item: string, colorPicker: ColorPicker, defaultColor: string): DropDownButton;
|
|
88
88
|
private pickerRefresh;
|
|
@@ -94,7 +94,7 @@ export declare class ToolbarRenderer implements IRenderer {
|
|
|
94
94
|
* @param {string} item - specifies the string values
|
|
95
95
|
* @returns {void}
|
|
96
96
|
* @hidden
|
|
97
|
-
|
|
97
|
+
* @deprecated
|
|
98
98
|
*/
|
|
99
99
|
renderColorPicker(args: IColorPickerModel, item: string): ColorPicker;
|
|
100
100
|
/**
|
|
@@ -102,7 +102,7 @@ export declare class ToolbarRenderer implements IRenderer {
|
|
|
102
102
|
*
|
|
103
103
|
* @returns {void}
|
|
104
104
|
* @hidden
|
|
105
|
-
|
|
105
|
+
* @deprecated
|
|
106
106
|
*/
|
|
107
107
|
renderPanel(): void;
|
|
108
108
|
/**
|
|
@@ -110,7 +110,7 @@ export declare class ToolbarRenderer implements IRenderer {
|
|
|
110
110
|
*
|
|
111
111
|
* @returns {Element} - specifies the element.
|
|
112
112
|
* @hidden
|
|
113
|
-
|
|
113
|
+
* @deprecated
|
|
114
114
|
*/
|
|
115
115
|
getPanel(): Element;
|
|
116
116
|
/**
|
|
@@ -119,7 +119,7 @@ export declare class ToolbarRenderer implements IRenderer {
|
|
|
119
119
|
* @returns {void}
|
|
120
120
|
* @param {Element} panel - specifies the element.
|
|
121
121
|
* @hidden
|
|
122
|
-
|
|
122
|
+
* @deprecated
|
|
123
123
|
*/
|
|
124
124
|
setPanel(panel: Element): void;
|
|
125
125
|
destroy(): void;
|
|
@@ -13,7 +13,7 @@ import { ToolbarStatus } from '../../editor-manager/plugin/toolbar-status';
|
|
|
13
13
|
* `Toolbar renderer` module is used to render toolbar in RichTextEditor.
|
|
14
14
|
*
|
|
15
15
|
* @hidden
|
|
16
|
-
|
|
16
|
+
* @deprecated
|
|
17
17
|
*/
|
|
18
18
|
var ToolbarRenderer = /** @class */ (function () {
|
|
19
19
|
/**
|
|
@@ -130,7 +130,7 @@ var ToolbarRenderer = /** @class */ (function () {
|
|
|
130
130
|
* @param {IToolbarOptions} args - specifies the arguments.
|
|
131
131
|
* @returns {void}
|
|
132
132
|
* @hidden
|
|
133
|
-
|
|
133
|
+
* @deprecated
|
|
134
134
|
*/
|
|
135
135
|
ToolbarRenderer.prototype.renderToolbar = function (args) {
|
|
136
136
|
this.setPanel(args.target);
|
|
@@ -176,7 +176,7 @@ var ToolbarRenderer = /** @class */ (function () {
|
|
|
176
176
|
* @param {IDropDownModel} args - specifies the the arguments.
|
|
177
177
|
* @returns {void}
|
|
178
178
|
* @hidden
|
|
179
|
-
|
|
179
|
+
* @deprecated
|
|
180
180
|
*/
|
|
181
181
|
ToolbarRenderer.prototype.renderDropDownButton = function (args) {
|
|
182
182
|
var _this = this;
|
|
@@ -374,7 +374,7 @@ var ToolbarRenderer = /** @class */ (function () {
|
|
|
374
374
|
* @param {IDropDownModel} args - specifies the the arguments.
|
|
375
375
|
* @returns {void}
|
|
376
376
|
* @hidden
|
|
377
|
-
|
|
377
|
+
* @deprecated
|
|
378
378
|
*/
|
|
379
379
|
ToolbarRenderer.prototype.renderListDropDown = function (args) {
|
|
380
380
|
var _this = this;
|
|
@@ -483,7 +483,7 @@ var ToolbarRenderer = /** @class */ (function () {
|
|
|
483
483
|
* @param {string} defaultColor -specifies the defaultColor.
|
|
484
484
|
* @returns {void}
|
|
485
485
|
* @hidden
|
|
486
|
-
|
|
486
|
+
* @deprecated
|
|
487
487
|
*/
|
|
488
488
|
ToolbarRenderer.prototype.renderColorPickerDropDown = function (args, item, colorPicker, defaultColor) {
|
|
489
489
|
var _this = this;
|
|
@@ -631,7 +631,7 @@ var ToolbarRenderer = /** @class */ (function () {
|
|
|
631
631
|
* @param {string} item - specifies the string values
|
|
632
632
|
* @returns {void}
|
|
633
633
|
* @hidden
|
|
634
|
-
|
|
634
|
+
* @deprecated
|
|
635
635
|
*/
|
|
636
636
|
ToolbarRenderer.prototype.renderColorPicker = function (args, item) {
|
|
637
637
|
var _this = this;
|
|
@@ -706,7 +706,7 @@ var ToolbarRenderer = /** @class */ (function () {
|
|
|
706
706
|
*
|
|
707
707
|
* @returns {void}
|
|
708
708
|
* @hidden
|
|
709
|
-
|
|
709
|
+
* @deprecated
|
|
710
710
|
*/
|
|
711
711
|
ToolbarRenderer.prototype.renderPanel = function () {
|
|
712
712
|
this.getPanel().classList.add(CLS_TOOLBAR);
|
|
@@ -716,7 +716,7 @@ var ToolbarRenderer = /** @class */ (function () {
|
|
|
716
716
|
*
|
|
717
717
|
* @returns {Element} - specifies the element.
|
|
718
718
|
* @hidden
|
|
719
|
-
|
|
719
|
+
* @deprecated
|
|
720
720
|
*/
|
|
721
721
|
ToolbarRenderer.prototype.getPanel = function () {
|
|
722
722
|
return this.toolbarPanel;
|
|
@@ -727,7 +727,7 @@ var ToolbarRenderer = /** @class */ (function () {
|
|
|
727
727
|
* @returns {void}
|
|
728
728
|
* @param {Element} panel - specifies the element.
|
|
729
729
|
* @hidden
|
|
730
|
-
|
|
730
|
+
* @deprecated
|
|
731
731
|
*/
|
|
732
732
|
ToolbarRenderer.prototype.setPanel = function (panel) {
|
|
733
733
|
this.toolbarPanel = panel;
|
|
@@ -1446,6 +1446,9 @@ var Video = /** @class */ (function () {
|
|
|
1446
1446
|
maxHeight: proxy.parent.insertVideoSettings.maxHeight
|
|
1447
1447
|
};
|
|
1448
1448
|
proxy.dialogObj.hide({ returnValue: false });
|
|
1449
|
+
if (proxy.dialogObj !== null) {
|
|
1450
|
+
return;
|
|
1451
|
+
}
|
|
1449
1452
|
proxy.parent.formatter.process(proxy.parent, this.args, this.args.originalEvent, proxy.uploadUrl);
|
|
1450
1453
|
proxy.uploadUrl.url = '';
|
|
1451
1454
|
}
|
|
@@ -1472,8 +1475,11 @@ var Video = /** @class */ (function () {
|
|
|
1472
1475
|
maxHeight: proxy.parent.insertVideoSettings.maxHeight
|
|
1473
1476
|
}
|
|
1474
1477
|
};
|
|
1475
|
-
proxy.parent.formatter.process(proxy.parent, this.args, this.args.originalEvent, value);
|
|
1476
1478
|
proxy.dialogObj.hide({ returnValue: false });
|
|
1479
|
+
if (proxy.dialogObj !== null) {
|
|
1480
|
+
return;
|
|
1481
|
+
}
|
|
1482
|
+
proxy.parent.formatter.process(proxy.parent, this.args, this.args.originalEvent, value);
|
|
1477
1483
|
}
|
|
1478
1484
|
};
|
|
1479
1485
|
/* eslint-disable */
|
|
@@ -1483,7 +1489,7 @@ var Video = /** @class */ (function () {
|
|
|
1483
1489
|
* @method destroy
|
|
1484
1490
|
* @returns {void}
|
|
1485
1491
|
* @hidden
|
|
1486
|
-
|
|
1492
|
+
* @deprecated
|
|
1487
1493
|
*/
|
|
1488
1494
|
/* eslint-enable */
|
|
1489
1495
|
Video.prototype.destroy = function () {
|
|
@@ -7,7 +7,7 @@ import { ClickEventArgs } from '@syncfusion/ej2-navigations';
|
|
|
7
7
|
* Content module is used to render Rich Text Editor content
|
|
8
8
|
*
|
|
9
9
|
* @hidden
|
|
10
|
-
|
|
10
|
+
* @deprecated
|
|
11
11
|
*/
|
|
12
12
|
export declare class ViewSource {
|
|
13
13
|
private parent;
|
|
@@ -41,7 +41,7 @@ export declare class ViewSource {
|
|
|
41
41
|
* @param {ClickEventArgs} args - specifies the click event.
|
|
42
42
|
* @returns {void}
|
|
43
43
|
* @hidden
|
|
44
|
-
|
|
44
|
+
* @deprecated
|
|
45
45
|
*/
|
|
46
46
|
sourceCode(args?: ClickEventArgs | IHtmlKeyboardEvent): void;
|
|
47
47
|
/**
|
|
@@ -50,7 +50,7 @@ export declare class ViewSource {
|
|
|
50
50
|
* @param {ClickEventArgs} args - specifies the click event.
|
|
51
51
|
* @returns {void}
|
|
52
52
|
* @hidden
|
|
53
|
-
|
|
53
|
+
* @deprecated
|
|
54
54
|
*/
|
|
55
55
|
updateSourceCode(args?: ClickEventArgs | KeyboardEventArgs): void;
|
|
56
56
|
private getTextAreaValue;
|
|
@@ -59,7 +59,7 @@ export declare class ViewSource {
|
|
|
59
59
|
*
|
|
60
60
|
* @returns {HTMLTextAreaElement} - Specifies the Souce codetext area element.
|
|
61
61
|
* @hidden
|
|
62
|
-
|
|
62
|
+
* @deprecated
|
|
63
63
|
*/
|
|
64
64
|
getPanel(): HTMLTextAreaElement;
|
|
65
65
|
/**
|
|
@@ -67,7 +67,7 @@ export declare class ViewSource {
|
|
|
67
67
|
*
|
|
68
68
|
* @returns {void}
|
|
69
69
|
* @hidden
|
|
70
|
-
|
|
70
|
+
* @deprecated
|
|
71
71
|
*/
|
|
72
72
|
destroy(): void;
|
|
73
73
|
}
|
|
@@ -8,7 +8,7 @@ import { KeyboardEvents } from '../actions/keyboard';
|
|
|
8
8
|
* Content module is used to render Rich Text Editor content
|
|
9
9
|
*
|
|
10
10
|
* @hidden
|
|
11
|
-
|
|
11
|
+
* @deprecated
|
|
12
12
|
*/
|
|
13
13
|
var ViewSource = /** @class */ (function () {
|
|
14
14
|
/**
|
|
@@ -103,7 +103,7 @@ var ViewSource = /** @class */ (function () {
|
|
|
103
103
|
* @param {ClickEventArgs} args - specifies the click event.
|
|
104
104
|
* @returns {void}
|
|
105
105
|
* @hidden
|
|
106
|
-
|
|
106
|
+
* @deprecated
|
|
107
107
|
*/
|
|
108
108
|
ViewSource.prototype.sourceCode = function (args) {
|
|
109
109
|
var _this = this;
|
|
@@ -162,7 +162,7 @@ var ViewSource = /** @class */ (function () {
|
|
|
162
162
|
* @param {ClickEventArgs} args - specifies the click event.
|
|
163
163
|
* @returns {void}
|
|
164
164
|
* @hidden
|
|
165
|
-
|
|
165
|
+
* @deprecated
|
|
166
166
|
*/
|
|
167
167
|
ViewSource.prototype.updateSourceCode = function (args) {
|
|
168
168
|
var _this = this;
|
|
@@ -225,7 +225,7 @@ var ViewSource = /** @class */ (function () {
|
|
|
225
225
|
*
|
|
226
226
|
* @returns {HTMLTextAreaElement} - Specifies the Souce codetext area element.
|
|
227
227
|
* @hidden
|
|
228
|
-
|
|
228
|
+
* @deprecated
|
|
229
229
|
*/
|
|
230
230
|
ViewSource.prototype.getPanel = function () {
|
|
231
231
|
return this.parent.element && this.parent.element.querySelector('.e-rte-srctextarea');
|
|
@@ -235,7 +235,7 @@ var ViewSource = /** @class */ (function () {
|
|
|
235
235
|
*
|
|
236
236
|
* @returns {void}
|
|
237
237
|
* @hidden
|
|
238
|
-
|
|
238
|
+
* @deprecated
|
|
239
239
|
*/
|
|
240
240
|
ViewSource.prototype.destroy = function () {
|
|
241
241
|
if (isNOU(this.parent)) {
|
|
@@ -4,7 +4,7 @@ import { RenderType } from '../base/enum';
|
|
|
4
4
|
* RendererFactory
|
|
5
5
|
*
|
|
6
6
|
* @hidden
|
|
7
|
-
|
|
7
|
+
* @deprecated
|
|
8
8
|
*/
|
|
9
9
|
export declare class RendererFactory {
|
|
10
10
|
rendererMap: {
|
|
@@ -17,7 +17,7 @@ export declare class RendererFactory {
|
|
|
17
17
|
* @param {IRenderer} type - specifies the renderer.
|
|
18
18
|
* @returns {void}
|
|
19
19
|
* @hidden
|
|
20
|
-
|
|
20
|
+
* @deprecated
|
|
21
21
|
*/
|
|
22
22
|
addRenderer(name: RenderType, type: IRenderer): void;
|
|
23
23
|
/**
|
|
@@ -26,7 +26,7 @@ export declare class RendererFactory {
|
|
|
26
26
|
* @param {RenderType} name - specifies the render type
|
|
27
27
|
* @returns {void}
|
|
28
28
|
* @hidden
|
|
29
|
-
|
|
29
|
+
* @deprecated
|
|
30
30
|
*/
|
|
31
31
|
getRenderer(name: RenderType): IRenderer;
|
|
32
32
|
destroy(): void;
|
|
@@ -4,7 +4,7 @@ import { RenderType } from '../base/enum';
|
|
|
4
4
|
* RendererFactory
|
|
5
5
|
*
|
|
6
6
|
* @hidden
|
|
7
|
-
|
|
7
|
+
* @deprecated
|
|
8
8
|
*/
|
|
9
9
|
var RendererFactory = /** @class */ (function () {
|
|
10
10
|
function RendererFactory() {
|
|
@@ -17,7 +17,7 @@ var RendererFactory = /** @class */ (function () {
|
|
|
17
17
|
* @param {IRenderer} type - specifies the renderer.
|
|
18
18
|
* @returns {void}
|
|
19
19
|
* @hidden
|
|
20
|
-
|
|
20
|
+
* @deprecated
|
|
21
21
|
*/
|
|
22
22
|
RendererFactory.prototype.addRenderer = function (name, type) {
|
|
23
23
|
var rName = getEnumValue(RenderType, name);
|
|
@@ -31,7 +31,7 @@ var RendererFactory = /** @class */ (function () {
|
|
|
31
31
|
* @param {RenderType} name - specifies the render type
|
|
32
32
|
* @returns {void}
|
|
33
33
|
* @hidden
|
|
34
|
-
|
|
34
|
+
* @deprecated
|
|
35
35
|
*/
|
|
36
36
|
RendererFactory.prototype.getRenderer = function (name) {
|
|
37
37
|
var rName = getEnumValue(RenderType, name);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* ServiceLocator
|
|
3
3
|
*
|
|
4
4
|
* @hidden
|
|
5
|
-
|
|
5
|
+
* @deprecated
|
|
6
6
|
*/
|
|
7
7
|
export declare class ServiceLocator {
|
|
8
8
|
private services;
|
|
@@ -13,7 +13,7 @@ export declare class ServiceLocator {
|
|
|
13
13
|
* @param {T} type - specifies the type.
|
|
14
14
|
* @returns {void}
|
|
15
15
|
* @hidden
|
|
16
|
-
|
|
16
|
+
* @deprecated
|
|
17
17
|
*/
|
|
18
18
|
register<T>(name: string, type: T): void;
|
|
19
19
|
/**
|
|
@@ -22,7 +22,7 @@ export declare class ServiceLocator {
|
|
|
22
22
|
* @param {string} name - specifies the name.
|
|
23
23
|
* @returns {void}
|
|
24
24
|
* @hidden
|
|
25
|
-
|
|
25
|
+
* @deprecated
|
|
26
26
|
*/
|
|
27
27
|
getService<T>(name: string): T;
|
|
28
28
|
destroy(): void;
|
|
@@ -3,7 +3,7 @@ import { isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
|
3
3
|
* ServiceLocator
|
|
4
4
|
*
|
|
5
5
|
* @hidden
|
|
6
|
-
|
|
6
|
+
* @deprecated
|
|
7
7
|
*/
|
|
8
8
|
var ServiceLocator = /** @class */ (function () {
|
|
9
9
|
function ServiceLocator() {
|
|
@@ -17,7 +17,7 @@ var ServiceLocator = /** @class */ (function () {
|
|
|
17
17
|
* @param {T} type - specifies the type.
|
|
18
18
|
* @returns {void}
|
|
19
19
|
* @hidden
|
|
20
|
-
|
|
20
|
+
* @deprecated
|
|
21
21
|
*/
|
|
22
22
|
/* eslint-enable */
|
|
23
23
|
ServiceLocator.prototype.register = function (name, type) {
|
|
@@ -31,7 +31,7 @@ var ServiceLocator = /** @class */ (function () {
|
|
|
31
31
|
* @param {string} name - specifies the name.
|
|
32
32
|
* @returns {void}
|
|
33
33
|
* @hidden
|
|
34
|
-
|
|
34
|
+
* @deprecated
|
|
35
35
|
*/
|
|
36
36
|
ServiceLocator.prototype.getService = function (name) {
|
|
37
37
|
if (isNullOrUndefined(this.services["" + name])) {
|