@syncfusion/ej2-richtexteditor 19.3.43 → 19.3.47-6125
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/CHANGELOG.md +999 -955
- package/README.md +67 -67
- 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 +323 -204
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +428 -313
- package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
- package/helpers/e2e/index.js +3 -3
- package/license +9 -9
- package/package.json +55 -74
- package/src/common/constant.d.ts +8 -8
- package/src/common/constant.js +8 -8
- 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 +4 -4
- package/src/editor-manager/base/interface.d.ts +7 -7
- 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/clearformat-exec.d.ts +2 -2
- package/src/editor-manager/plugin/clearformat-exec.js +2 -2
- package/src/editor-manager/plugin/clearformat.d.ts +2 -1
- package/src/editor-manager/plugin/clearformat.js +2 -1
- package/src/editor-manager/plugin/dom-node.d.ts +34 -34
- package/src/editor-manager/plugin/dom-node.js +34 -34
- 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 +15 -20
- 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 +18 -8
- 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 -3
- package/src/editor-manager/plugin/ms-word-clean-up.d.ts +1 -1
- package/src/editor-manager/plugin/ms-word-clean-up.js +2 -1
- package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
- package/src/editor-manager/plugin/nodecutter.js +6 -6
- package/src/editor-manager/plugin/selection-commands.d.ts +2 -1
- package/src/editor-manager/plugin/selection-commands.js +53 -3
- 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 +5 -5
- package/src/editor-manager/plugin/toolbar-status.d.ts +2 -2
- package/src/editor-manager/plugin/toolbar-status.js +5 -5
- package/src/editor-manager/plugin/undo.d.ts +6 -6
- package/src/editor-manager/plugin/undo.js +6 -6
- package/src/global.d.ts +1 -0
- package/src/markdown-parser/base/interface.d.ts +10 -10
- package/src/markdown-parser/base/markdown-parser.d.ts +3 -3
- package/src/markdown-parser/base/markdown-parser.js +3 -3
- package/src/markdown-parser/base/types.d.ts +1 -1
- package/src/markdown-parser/plugin/clearformat.d.ts +2 -2
- package/src/markdown-parser/plugin/clearformat.js +2 -2
- package/src/markdown-parser/plugin/formats.d.ts +2 -2
- package/src/markdown-parser/plugin/formats.js +2 -2
- package/src/markdown-parser/plugin/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/enter-key.js +5 -16
- 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 +4 -3
- package/src/rich-text-editor/actions/html-editor.js +34 -4
- 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 +1 -1
- package/src/rich-text-editor/actions/quick-toolbar.d.ts +9 -9
- package/src/rich-text-editor/actions/quick-toolbar.js +14 -11
- 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 +2 -1
- package/src/rich-text-editor/actions/xhtml-validation.js +6 -4
- package/src/rich-text-editor/base/classes.d.ts +107 -107
- package/src/rich-text-editor/base/classes.js +107 -107
- package/src/rich-text-editor/base/constant.d.ts +120 -120
- package/src/rich-text-editor/base/constant.js +120 -120
- 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 +45 -45
- package/src/rich-text-editor/base/interface.js +1 -1
- package/src/rich-text-editor/base/rich-text-editor-model.d.ts +851 -851
- package/src/rich-text-editor/base/rich-text-editor.d.ts +53 -53
- package/src/rich-text-editor/base/rich-text-editor.js +65 -66
- package/src/rich-text-editor/base/util.d.ts +2 -1
- package/src/rich-text-editor/base/util.js +2 -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/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/toolbar-settings-model.d.ts +439 -439
- package/src/rich-text-editor/models/toolbar-settings.d.ts +1 -1
- package/src/rich-text-editor/models/toolbar-settings.js +19 -19
- 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 +3 -1
- package/src/rich-text-editor/renderer/image-module.js +40 -13
- package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/link-module.js +6 -4
- 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 +1 -1
- package/src/rich-text-editor/renderer/table-module.js +11 -4
- package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +9 -10
- package/src/rich-text-editor/renderer/toolbar-renderer.js +10 -10
- package/src/rich-text-editor/renderer/view-source.d.ts +6 -6
- package/src/rich-text-editor/renderer/view-source.js +6 -6
- 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 +2 -2
- package/styles/bootstrap-dark.css +1 -1
- package/styles/bootstrap.css +1 -1
- package/styles/bootstrap4.css +1 -1
- package/styles/bootstrap5-dark.css +1 -1
- package/styles/bootstrap5.css +1 -1
- package/styles/fabric-dark.css +1 -1
- package/styles/fabric.css +1 -1
- package/styles/highcontrast-light.css +1 -1
- package/styles/highcontrast.css +1 -1
- package/styles/material-dark.css +1 -1
- package/styles/material.css +1 -1
- package/styles/rich-text-editor/_all.scss +2 -2
- package/styles/rich-text-editor/_bootstrap-dark-definition.scss +187 -187
- package/styles/rich-text-editor/_bootstrap-definition.scss +244 -244
- package/styles/rich-text-editor/_bootstrap4-definition.scss +370 -370
- package/styles/rich-text-editor/_bootstrap5-definition.scss +168 -168
- package/styles/rich-text-editor/_fabric-dark-definition.scss +168 -168
- package/styles/rich-text-editor/_fabric-definition.scss +167 -167
- package/styles/rich-text-editor/_highcontrast-definition.scss +167 -167
- package/styles/rich-text-editor/_highcontrast-light-definition.scss +167 -167
- package/styles/rich-text-editor/_layout.scss +1635 -1635
- package/styles/rich-text-editor/_material-dark-definition.scss +172 -172
- package/styles/rich-text-editor/_material-definition.scss +169 -169
- package/styles/rich-text-editor/_tailwind-definition.scss +167 -167
- package/styles/rich-text-editor/_theme.scss +626 -626
- package/styles/rich-text-editor/bootstrap-dark.css +1 -1
- package/styles/rich-text-editor/bootstrap.css +1 -1
- package/styles/rich-text-editor/bootstrap4.css +1 -1
- package/styles/rich-text-editor/bootstrap5-dark.css +1 -1
- package/styles/rich-text-editor/bootstrap5.css +1 -1
- package/styles/rich-text-editor/fabric-dark.css +1 -1
- package/styles/rich-text-editor/fabric.css +1 -1
- package/styles/rich-text-editor/highcontrast-light.css +1 -1
- package/styles/rich-text-editor/highcontrast.css +1 -1
- package/styles/rich-text-editor/icons/_bootstrap-dark.scss +304 -304
- package/styles/rich-text-editor/icons/_bootstrap.scss +304 -304
- package/styles/rich-text-editor/icons/_bootstrap4.scss +304 -304
- package/styles/rich-text-editor/icons/_bootstrap5.scss +303 -303
- package/styles/rich-text-editor/icons/_fabric-dark.scss +304 -304
- package/styles/rich-text-editor/icons/_fabric.scss +304 -304
- package/styles/rich-text-editor/icons/_highcontrast-light.scss +304 -304
- package/styles/rich-text-editor/icons/_highcontrast.scss +304 -304
- package/styles/rich-text-editor/icons/_material-dark.scss +304 -304
- package/styles/rich-text-editor/icons/_material.scss +304 -304
- package/styles/rich-text-editor/icons/_tailwind.scss +304 -304
- package/styles/rich-text-editor/material-dark.css +1 -1
- package/styles/rich-text-editor/material.css +1 -1
- package/styles/rich-text-editor/tailwind-dark.css +1 -1
- package/styles/rich-text-editor/tailwind.css +1 -1
- package/styles/tailwind-dark.css +1 -1
- package/styles/tailwind.css +1 -1
- package/.eslintrc.json +0 -244
- 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
|
@@ -345,7 +345,7 @@ export declare class QuickToolbarSettings extends ChildProperty<QuickToolbarSett
|
|
|
345
345
|
* Specifies the items to render in quick toolbar, when text selected.
|
|
346
346
|
*
|
|
347
347
|
* @default ['Cut', 'Copy', 'Paste']
|
|
348
|
-
|
|
348
|
+
* @deprecated
|
|
349
349
|
*/
|
|
350
350
|
text: (string | IToolbarItems)[];
|
|
351
351
|
/**
|
|
@@ -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, ChildProperty, Complex } from '@syncfusion/ej2-base';
|
|
21
21
|
import { AjaxSettings, ContextMenuSettings } from '@syncfusion/ej2-filemanager';
|
|
22
22
|
import { DetailsViewSettings, NavigationPaneSettings } from '@syncfusion/ej2-filemanager';
|
|
@@ -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 ContentRender implements IRenderer {
|
|
10
10
|
protected contentPanel: Element;
|
|
@@ -24,7 +24,7 @@ export declare class ContentRender implements IRenderer {
|
|
|
24
24
|
*
|
|
25
25
|
* @returns {void}
|
|
26
26
|
* @hidden
|
|
27
|
-
|
|
27
|
+
* @deprecated
|
|
28
28
|
*/
|
|
29
29
|
renderPanel(): void;
|
|
30
30
|
/**
|
|
@@ -32,7 +32,7 @@ export declare class ContentRender implements IRenderer {
|
|
|
32
32
|
*
|
|
33
33
|
* @returns {Element} - specifies the element.
|
|
34
34
|
* @hidden
|
|
35
|
-
|
|
35
|
+
* @deprecated
|
|
36
36
|
*/
|
|
37
37
|
getPanel(): Element;
|
|
38
38
|
/**
|
|
@@ -40,7 +40,7 @@ export declare class ContentRender implements IRenderer {
|
|
|
40
40
|
*
|
|
41
41
|
* @returns {Element} - specifies the return element.
|
|
42
42
|
* @hidden
|
|
43
|
-
|
|
43
|
+
* @deprecated
|
|
44
44
|
*/
|
|
45
45
|
getEditPanel(): Element;
|
|
46
46
|
/**
|
|
@@ -55,7 +55,7 @@ export declare class ContentRender implements IRenderer {
|
|
|
55
55
|
* @param {Element} panel - specifies the panel element.
|
|
56
56
|
* @returns {void}
|
|
57
57
|
* @hidden
|
|
58
|
-
|
|
58
|
+
* @deprecated
|
|
59
59
|
*/
|
|
60
60
|
setPanel(panel: Element): void;
|
|
61
61
|
/**
|
|
@@ -63,7 +63,7 @@ export declare class ContentRender implements IRenderer {
|
|
|
63
63
|
*
|
|
64
64
|
* @returns {Document} - specifies the document.
|
|
65
65
|
* @hidden
|
|
66
|
-
|
|
66
|
+
* @deprecated
|
|
67
67
|
*/
|
|
68
68
|
getDocument(): Document;
|
|
69
69
|
}
|
|
@@ -3,7 +3,7 @@ import { getEditValue } from '../base/util';
|
|
|
3
3
|
* Content module is used to render Rich Text Editor content
|
|
4
4
|
*
|
|
5
5
|
* @hidden
|
|
6
|
-
|
|
6
|
+
* @deprecated
|
|
7
7
|
*/
|
|
8
8
|
var ContentRender = /** @class */ (function () {
|
|
9
9
|
/**
|
|
@@ -22,7 +22,7 @@ var ContentRender = /** @class */ (function () {
|
|
|
22
22
|
*
|
|
23
23
|
* @returns {void}
|
|
24
24
|
* @hidden
|
|
25
|
-
|
|
25
|
+
* @deprecated
|
|
26
26
|
*/
|
|
27
27
|
ContentRender.prototype.renderPanel = function () {
|
|
28
28
|
var rteObj = this.parent;
|
|
@@ -45,7 +45,7 @@ var ContentRender = /** @class */ (function () {
|
|
|
45
45
|
*
|
|
46
46
|
* @returns {Element} - specifies the element.
|
|
47
47
|
* @hidden
|
|
48
|
-
|
|
48
|
+
* @deprecated
|
|
49
49
|
*/
|
|
50
50
|
ContentRender.prototype.getPanel = function () {
|
|
51
51
|
return this.contentPanel;
|
|
@@ -55,7 +55,7 @@ var ContentRender = /** @class */ (function () {
|
|
|
55
55
|
*
|
|
56
56
|
* @returns {Element} - specifies the return element.
|
|
57
57
|
* @hidden
|
|
58
|
-
|
|
58
|
+
* @deprecated
|
|
59
59
|
*/
|
|
60
60
|
ContentRender.prototype.getEditPanel = function () {
|
|
61
61
|
return this.editableElement;
|
|
@@ -74,7 +74,7 @@ var ContentRender = /** @class */ (function () {
|
|
|
74
74
|
* @param {Element} panel - specifies the panel element.
|
|
75
75
|
* @returns {void}
|
|
76
76
|
* @hidden
|
|
77
|
-
|
|
77
|
+
* @deprecated
|
|
78
78
|
*/
|
|
79
79
|
ContentRender.prototype.setPanel = function (panel) {
|
|
80
80
|
this.contentPanel = panel;
|
|
@@ -84,7 +84,7 @@ var ContentRender = /** @class */ (function () {
|
|
|
84
84
|
*
|
|
85
85
|
* @returns {Document} - specifies the document.
|
|
86
86
|
* @hidden
|
|
87
|
-
|
|
87
|
+
* @deprecated
|
|
88
88
|
*/
|
|
89
89
|
ContentRender.prototype.getDocument = function () {
|
|
90
90
|
return this.getEditPanel().ownerDocument;
|
|
@@ -13,7 +13,7 @@ export declare class DialogRenderer {
|
|
|
13
13
|
* @param {DialogModel} e - specifies the dialog model.
|
|
14
14
|
* @returns {void}
|
|
15
15
|
* @hidden
|
|
16
|
-
|
|
16
|
+
* @deprecated
|
|
17
17
|
*/
|
|
18
18
|
render(e: DialogModel): Dialog;
|
|
19
19
|
private beforeOpen;
|
|
@@ -26,7 +26,7 @@ export declare class DialogRenderer {
|
|
|
26
26
|
* @param {Object} args - specifies the arguments.
|
|
27
27
|
* @returns {void}
|
|
28
28
|
* @hidden
|
|
29
|
-
|
|
29
|
+
* @deprecated
|
|
30
30
|
*/
|
|
31
31
|
close(args: Object): void;
|
|
32
32
|
}
|
|
@@ -14,7 +14,7 @@ var DialogRenderer = /** @class */ (function () {
|
|
|
14
14
|
* @param {DialogModel} e - specifies the dialog model.
|
|
15
15
|
* @returns {void}
|
|
16
16
|
* @hidden
|
|
17
|
-
|
|
17
|
+
* @deprecated
|
|
18
18
|
*/
|
|
19
19
|
DialogRenderer.prototype.render = function (e) {
|
|
20
20
|
var dlgObj;
|
|
@@ -55,7 +55,7 @@ var DialogRenderer = /** @class */ (function () {
|
|
|
55
55
|
* @param {Object} args - specifies the arguments.
|
|
56
56
|
* @returns {void}
|
|
57
57
|
* @hidden
|
|
58
|
-
|
|
58
|
+
* @deprecated
|
|
59
59
|
*/
|
|
60
60
|
DialogRenderer.prototype.close = function (args) {
|
|
61
61
|
this.parent.trigger(events.dialogClose, args);
|
|
@@ -3,14 +3,14 @@ import { ContentRender } from '../renderer/content-renderer';
|
|
|
3
3
|
* Content module is used to render Rich Text Editor content
|
|
4
4
|
*
|
|
5
5
|
* @hidden
|
|
6
|
-
|
|
6
|
+
* @deprecated
|
|
7
7
|
*/
|
|
8
8
|
export declare class IframeContentRender extends ContentRender {
|
|
9
9
|
/**
|
|
10
10
|
* The function is used to render Rich Text Editor iframe
|
|
11
11
|
*
|
|
12
12
|
* @hidden
|
|
13
|
-
|
|
13
|
+
* @deprecated
|
|
14
14
|
*/
|
|
15
15
|
renderPanel(): void;
|
|
16
16
|
private setThemeColor;
|
|
@@ -19,7 +19,7 @@ export declare class IframeContentRender extends ContentRender {
|
|
|
19
19
|
*
|
|
20
20
|
* @returns {Element} - specifies the element.
|
|
21
21
|
* @hidden
|
|
22
|
-
|
|
22
|
+
* @deprecated
|
|
23
23
|
*/
|
|
24
24
|
getEditPanel(): Element;
|
|
25
25
|
/**
|
|
@@ -27,7 +27,7 @@ export declare class IframeContentRender extends ContentRender {
|
|
|
27
27
|
*
|
|
28
28
|
* @returns {void}
|
|
29
29
|
* @hidden
|
|
30
|
-
|
|
30
|
+
* @deprecated
|
|
31
31
|
*/
|
|
32
32
|
getDocument(): Document;
|
|
33
33
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
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
|
-
})();
|
|
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
14
|
import { ContentRender } from '../renderer/content-renderer';
|
|
15
15
|
import { isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
16
16
|
import { getEditValue } from '../base/util';
|
|
@@ -19,7 +19,7 @@ var IFRAMEHEADER = "\n<!DOCTYPE html> \n <html>\n <head>\n
|
|
|
19
19
|
* Content module is used to render Rich Text Editor content
|
|
20
20
|
*
|
|
21
21
|
* @hidden
|
|
22
|
-
|
|
22
|
+
* @deprecated
|
|
23
23
|
*/
|
|
24
24
|
var IframeContentRender = /** @class */ (function (_super) {
|
|
25
25
|
__extends(IframeContentRender, _super);
|
|
@@ -30,7 +30,7 @@ var IframeContentRender = /** @class */ (function (_super) {
|
|
|
30
30
|
* The function is used to render Rich Text Editor iframe
|
|
31
31
|
*
|
|
32
32
|
* @hidden
|
|
33
|
-
|
|
33
|
+
* @deprecated
|
|
34
34
|
*/
|
|
35
35
|
IframeContentRender.prototype.renderPanel = function () {
|
|
36
36
|
var rteObj = this.parent;
|
|
@@ -65,7 +65,7 @@ var IframeContentRender = /** @class */ (function (_super) {
|
|
|
65
65
|
*
|
|
66
66
|
* @returns {Element} - specifies the element.
|
|
67
67
|
* @hidden
|
|
68
|
-
|
|
68
|
+
* @deprecated
|
|
69
69
|
*/
|
|
70
70
|
IframeContentRender.prototype.getEditPanel = function () {
|
|
71
71
|
var editNode;
|
|
@@ -82,7 +82,7 @@ var IframeContentRender = /** @class */ (function (_super) {
|
|
|
82
82
|
*
|
|
83
83
|
* @returns {void}
|
|
84
84
|
* @hidden
|
|
85
|
-
|
|
85
|
+
* @deprecated
|
|
86
86
|
*/
|
|
87
87
|
IframeContentRender.prototype.getDocument = function () {
|
|
88
88
|
return this.getEditPanel().ownerDocument;
|
|
@@ -33,6 +33,7 @@ export declare class Image {
|
|
|
33
33
|
private changedHeightValue;
|
|
34
34
|
private inputWidthValue;
|
|
35
35
|
private inputHeightValue;
|
|
36
|
+
private removingImgName;
|
|
36
37
|
private constructor();
|
|
37
38
|
protected addEventListener(): void;
|
|
38
39
|
protected removeEventListener(): void;
|
|
@@ -78,6 +79,7 @@ export declare class Image {
|
|
|
78
79
|
private isUrl;
|
|
79
80
|
private deleteImg;
|
|
80
81
|
private imageRemovePost;
|
|
82
|
+
private triggerPost;
|
|
81
83
|
private caption;
|
|
82
84
|
private imageSize;
|
|
83
85
|
private break;
|
|
@@ -154,7 +156,7 @@ export declare class Image {
|
|
|
154
156
|
* @method destroy
|
|
155
157
|
* @returns {void}
|
|
156
158
|
* @hidden
|
|
157
|
-
|
|
159
|
+
* @deprecated
|
|
158
160
|
*/
|
|
159
161
|
destroy(): void;
|
|
160
162
|
/**
|
|
@@ -314,7 +314,7 @@ var Image = /** @class */ (function () {
|
|
|
314
314
|
if (width > height) {
|
|
315
315
|
img.style.minWidth = '20px';
|
|
316
316
|
if (this.parent.insertImageSettings.resizeByPercent) {
|
|
317
|
-
if (parseInt('' + img.getBoundingClientRect().width + '') !== 0 && parseInt('' + width + '') !== 0) {
|
|
317
|
+
if (parseInt('' + img.getBoundingClientRect().width + '', 10) !== 0 && parseInt('' + width + '', 10) !== 0) {
|
|
318
318
|
var percentageValue = this.pixToPerc((width / height * expectedY), (img.previousElementSibling || img.parentElement));
|
|
319
319
|
img.style.width = Math.min(Math.round((percentageValue / img.getBoundingClientRect().width) * expectedX * 100) / 100, 100) + '%';
|
|
320
320
|
}
|
|
@@ -340,7 +340,7 @@ var Image = /** @class */ (function () {
|
|
|
340
340
|
}
|
|
341
341
|
else if (height > width) {
|
|
342
342
|
if (this.parent.insertImageSettings.resizeByPercent) {
|
|
343
|
-
if (parseInt('' + img.getBoundingClientRect().width + '') !== 0 && parseInt('' + width + '') !== 0) {
|
|
343
|
+
if (parseInt('' + img.getBoundingClientRect().width + '', 10) !== 0 && parseInt('' + width + '', 10) !== 0) {
|
|
344
344
|
img.style.width = Math.min(Math.round((width / img.getBoundingClientRect().width) * expectedX * 100) / 100, 100) + '%';
|
|
345
345
|
}
|
|
346
346
|
else {
|
|
@@ -813,7 +813,7 @@ var Image = /** @class */ (function () {
|
|
|
813
813
|
var target = args.target;
|
|
814
814
|
this.contentModule = this.rendererFactory.getRenderer(RenderType.Content);
|
|
815
815
|
var isPopupOpen = this.quickToolObj.imageQTBar.element.classList.contains('e-rte-pop');
|
|
816
|
-
if (target.nodeName === 'IMG' && this.parent.quickToolbarModule) {
|
|
816
|
+
if (target.nodeName === 'IMG' && this.parent.quickToolbarModule && this.parent.getRange().startOffset === this.parent.getRange().endOffset) {
|
|
817
817
|
if (isPopupOpen) {
|
|
818
818
|
return;
|
|
819
819
|
}
|
|
@@ -1052,13 +1052,34 @@ var Image = /** @class */ (function () {
|
|
|
1052
1052
|
}
|
|
1053
1053
|
};
|
|
1054
1054
|
Image.prototype.imageRemovePost = function (src) {
|
|
1055
|
+
var proxy = this;
|
|
1056
|
+
var absoluteUrl = '';
|
|
1057
|
+
if (src.indexOf('http://') > -1 || src.indexOf('https://') > -1) {
|
|
1058
|
+
absoluteUrl = src;
|
|
1059
|
+
}
|
|
1060
|
+
else {
|
|
1061
|
+
absoluteUrl = new URL(src, document.baseURI).href;
|
|
1062
|
+
}
|
|
1063
|
+
this.removingImgName = absoluteUrl.replace(/^.*[\\\/]/, '');
|
|
1064
|
+
var xhr = new XMLHttpRequest();
|
|
1065
|
+
xhr.addEventListener("readystatechange", function () {
|
|
1066
|
+
if (this.readyState == 4 && this.status == 200) {
|
|
1067
|
+
proxy.triggerPost(this.response);
|
|
1068
|
+
}
|
|
1069
|
+
});
|
|
1070
|
+
xhr.open('GET', absoluteUrl);
|
|
1071
|
+
xhr.responseType = 'blob';
|
|
1072
|
+
xhr.send();
|
|
1073
|
+
};
|
|
1074
|
+
Image.prototype.triggerPost = function (response) {
|
|
1055
1075
|
var removeUrl = this.parent.insertImageSettings.removeUrl;
|
|
1056
1076
|
if (isNOU(removeUrl) || removeUrl === '') {
|
|
1057
1077
|
return;
|
|
1058
1078
|
}
|
|
1079
|
+
var file = new File([response], this.removingImgName);
|
|
1059
1080
|
var ajax = new Ajax(removeUrl, 'POST', true, null);
|
|
1060
1081
|
var formData = new FormData();
|
|
1061
|
-
formData.append(
|
|
1082
|
+
formData.append('UploadFiles', file);
|
|
1062
1083
|
ajax.send(formData);
|
|
1063
1084
|
};
|
|
1064
1085
|
Image.prototype.caption = function (e) {
|
|
@@ -1298,9 +1319,15 @@ var Image = /** @class */ (function () {
|
|
|
1298
1319
|
(this.parent.getToolbarElement() && this.parent.getToolbarElement().contains(e.target) &&
|
|
1299
1320
|
!closest(target, '#' + this.parent.getID() + '_toolbar_Image') &&
|
|
1300
1321
|
!target.querySelector('#' + this.parent.getID() + '_toolbar_Image')))) {
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1322
|
+
/* eslint-disable */
|
|
1323
|
+
if (e.offsetX > e.target.clientWidth || e.offsetY > e.target.clientHeight) {
|
|
1324
|
+
}
|
|
1325
|
+
else {
|
|
1326
|
+
this.dialogObj.hide({ returnValue: true });
|
|
1327
|
+
this.parent.isBlur = true;
|
|
1328
|
+
dispatchEvent(this.parent.element, 'focusout');
|
|
1329
|
+
}
|
|
1330
|
+
/* eslint-enable */
|
|
1304
1331
|
}
|
|
1305
1332
|
if (e.target.tagName !== 'IMG' && this.imgResizeDiv && !(this.quickToolObj &&
|
|
1306
1333
|
this.quickToolObj.imageQTBar && this.quickToolObj.imageQTBar.element.contains(e.target)) &&
|
|
@@ -1404,11 +1431,11 @@ var Image = /** @class */ (function () {
|
|
|
1404
1431
|
var imgWidth = this.i10n.getConstant('imageWidth');
|
|
1405
1432
|
var imgSizeWrap = this.parent.createElement('div', { className: 'e-img-sizewrap' });
|
|
1406
1433
|
var widthVal = isNullOrUndefined(this.changedWidthValue) && (selectNode.style.width.toString() === 'auto' ||
|
|
1407
|
-
selectNode.style.width !==
|
|
1408
|
-
this.changedWidthValue : (parseInt(selectNode.getClientRects()[0].width.toString())).toString();
|
|
1434
|
+
selectNode.style.width !== '') ? selectNode.style.width : !isNullOrUndefined(this.changedWidthValue) ?
|
|
1435
|
+
this.changedWidthValue : (parseInt(selectNode.getClientRects()[0].width.toString(), 10)).toString();
|
|
1409
1436
|
var heightVal = isNullOrUndefined(this.changedHeightValue) && (selectNode.style.height.toString() === 'auto' ||
|
|
1410
|
-
selectNode.style.height !==
|
|
1411
|
-
this.changedHeightValue : (parseInt(selectNode.getClientRects()[0].height.toString())).toString();
|
|
1437
|
+
selectNode.style.height !== '') ? selectNode.style.height : !isNullOrUndefined(this.changedHeightValue) ?
|
|
1438
|
+
this.changedHeightValue : (parseInt(selectNode.getClientRects()[0].height.toString(), 10)).toString();
|
|
1412
1439
|
this.changedWidthValue = null;
|
|
1413
1440
|
this.changedHeightValue = null;
|
|
1414
1441
|
var content = '<div class="e-rte-label"><label>' + imgWidth +
|
|
@@ -1447,7 +1474,7 @@ var Image = /** @class */ (function () {
|
|
|
1447
1474
|
return value;
|
|
1448
1475
|
}
|
|
1449
1476
|
else {
|
|
1450
|
-
return
|
|
1477
|
+
return 'auto';
|
|
1451
1478
|
}
|
|
1452
1479
|
};
|
|
1453
1480
|
Image.prototype.insertSize = function (e) {
|
|
@@ -2140,7 +2167,7 @@ var Image = /** @class */ (function () {
|
|
|
2140
2167
|
* @method destroy
|
|
2141
2168
|
* @returns {void}
|
|
2142
2169
|
* @hidden
|
|
2143
|
-
|
|
2170
|
+
* @deprecated
|
|
2144
2171
|
*/
|
|
2145
2172
|
/* eslint-enable */
|
|
2146
2173
|
Image.prototype.destroy = function () {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventHandler, detach, isNullOrUndefined, select, extend } from '@syncfusion/ej2-base';
|
|
1
|
+
import { EventHandler, detach, isNullOrUndefined, select, extend, isNullOrUndefined as isNOU } from '@syncfusion/ej2-base';
|
|
2
2
|
import { closest, addClass, removeClass, Browser } from '@syncfusion/ej2-base';
|
|
3
3
|
import * as events from '../base/constant';
|
|
4
4
|
import { CLS_RTE_ELEMENTS } from '../base/classes';
|
|
@@ -136,7 +136,8 @@ var Link = /** @class */ (function () {
|
|
|
136
136
|
this.contentModule = this.rendererFactory.getRenderer(RenderType.Content);
|
|
137
137
|
var isPopupOpen = this.quickToolObj.linkQTBar.element.classList.contains('e-rte-pop');
|
|
138
138
|
if (target.nodeName === 'A' && (target.childNodes.length > 0 && target.childNodes[0].nodeName !== 'IMG') &&
|
|
139
|
-
e.args.target.nodeName !== 'IMG'
|
|
139
|
+
e.args.target.nodeName !== 'IMG' &&
|
|
140
|
+
!isNOU(closest(this.parent.getRange().startContainer.parentElement, 'A')) && !isNOU(closest(this.parent.getRange().endContainer.parentElement, 'A'))) {
|
|
140
141
|
if (isPopupOpen) {
|
|
141
142
|
return;
|
|
142
143
|
}
|
|
@@ -397,7 +398,8 @@ var Link = /** @class */ (function () {
|
|
|
397
398
|
else {
|
|
398
399
|
argsValue = this.args;
|
|
399
400
|
}
|
|
400
|
-
this.selfLink.parent.formatter.process(this.selfLink.parent, argsValue, (!isNullOrUndefined(this.args) &&
|
|
401
|
+
this.selfLink.parent.formatter.process(this.selfLink.parent, argsValue, (!isNullOrUndefined(this.args) &&
|
|
402
|
+
this.args.originalEvent), value);
|
|
401
403
|
this.selfLink.parent.contentModule.getEditPanel().focus();
|
|
402
404
|
};
|
|
403
405
|
Link.prototype.isUrl = function (url) {
|
|
@@ -494,7 +496,7 @@ var Link = /** @class */ (function () {
|
|
|
494
496
|
* @function destroy
|
|
495
497
|
* @returns {void}
|
|
496
498
|
* @hidden
|
|
497
|
-
|
|
499
|
+
* @deprecated
|
|
498
500
|
*/
|
|
499
501
|
Link.prototype.destroy = function () {
|
|
500
502
|
this.removeEventListener();
|
|
@@ -3,7 +3,7 @@ import { IRenderer, IRichTextEditor } from '../base/interface';
|
|
|
3
3
|
* Markdown module is used to render Rich Text Editor as Markdown editor content
|
|
4
4
|
*
|
|
5
5
|
* @hidden
|
|
6
|
-
|
|
6
|
+
* @deprecated
|
|
7
7
|
*/
|
|
8
8
|
export declare class MarkdownRender implements IRenderer {
|
|
9
9
|
private contentPanel;
|
|
@@ -20,7 +20,7 @@ export declare class MarkdownRender implements IRenderer {
|
|
|
20
20
|
*
|
|
21
21
|
* @returns {void}
|
|
22
22
|
* @hidden
|
|
23
|
-
|
|
23
|
+
* @deprecated
|
|
24
24
|
*/
|
|
25
25
|
renderPanel(): void;
|
|
26
26
|
/**
|
|
@@ -28,7 +28,7 @@ export declare class MarkdownRender implements IRenderer {
|
|
|
28
28
|
*
|
|
29
29
|
* @returns {Element} - specifies the element
|
|
30
30
|
* @hidden
|
|
31
|
-
|
|
31
|
+
* @deprecated
|
|
32
32
|
*/
|
|
33
33
|
getPanel(): Element;
|
|
34
34
|
/**
|
|
@@ -36,7 +36,7 @@ export declare class MarkdownRender implements IRenderer {
|
|
|
36
36
|
*
|
|
37
37
|
* @returns {Element} - specifies the element
|
|
38
38
|
* @hidden
|
|
39
|
-
|
|
39
|
+
* @deprecated
|
|
40
40
|
*/
|
|
41
41
|
getEditPanel(): Element;
|
|
42
42
|
/**
|
|
@@ -51,7 +51,7 @@ export declare class MarkdownRender implements IRenderer {
|
|
|
51
51
|
* @param {Element} panel - specifies the element.
|
|
52
52
|
* @returns {void}
|
|
53
53
|
* @hidden
|
|
54
|
-
|
|
54
|
+
* @deprecated
|
|
55
55
|
*/
|
|
56
56
|
setPanel(panel: Element): void;
|
|
57
57
|
/**
|
|
@@ -59,7 +59,7 @@ export declare class MarkdownRender implements IRenderer {
|
|
|
59
59
|
*
|
|
60
60
|
* @returns {void}
|
|
61
61
|
* @hidden
|
|
62
|
-
|
|
62
|
+
* @deprecated
|
|
63
63
|
*/
|
|
64
64
|
getDocument(): Document;
|
|
65
65
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Markdown module is used to render Rich Text Editor as Markdown editor content
|
|
3
3
|
*
|
|
4
4
|
* @hidden
|
|
5
|
-
|
|
5
|
+
* @deprecated
|
|
6
6
|
*/
|
|
7
7
|
var MarkdownRender = /** @class */ (function () {
|
|
8
8
|
/**
|
|
@@ -18,7 +18,7 @@ var MarkdownRender = /** @class */ (function () {
|
|
|
18
18
|
*
|
|
19
19
|
* @returns {void}
|
|
20
20
|
* @hidden
|
|
21
|
-
|
|
21
|
+
* @deprecated
|
|
22
22
|
*/
|
|
23
23
|
MarkdownRender.prototype.renderPanel = function () {
|
|
24
24
|
var rteObj = this.parent;
|
|
@@ -36,7 +36,7 @@ var MarkdownRender = /** @class */ (function () {
|
|
|
36
36
|
*
|
|
37
37
|
* @returns {Element} - specifies the element
|
|
38
38
|
* @hidden
|
|
39
|
-
|
|
39
|
+
* @deprecated
|
|
40
40
|
*/
|
|
41
41
|
MarkdownRender.prototype.getPanel = function () {
|
|
42
42
|
return this.contentPanel;
|
|
@@ -46,7 +46,7 @@ var MarkdownRender = /** @class */ (function () {
|
|
|
46
46
|
*
|
|
47
47
|
* @returns {Element} - specifies the element
|
|
48
48
|
* @hidden
|
|
49
|
-
|
|
49
|
+
* @deprecated
|
|
50
50
|
*/
|
|
51
51
|
MarkdownRender.prototype.getEditPanel = function () {
|
|
52
52
|
return this.editableElement;
|
|
@@ -65,7 +65,7 @@ var MarkdownRender = /** @class */ (function () {
|
|
|
65
65
|
* @param {Element} panel - specifies the element.
|
|
66
66
|
* @returns {void}
|
|
67
67
|
* @hidden
|
|
68
|
-
|
|
68
|
+
* @deprecated
|
|
69
69
|
*/
|
|
70
70
|
MarkdownRender.prototype.setPanel = function (panel) {
|
|
71
71
|
this.contentPanel = panel;
|
|
@@ -75,7 +75,7 @@ var MarkdownRender = /** @class */ (function () {
|
|
|
75
75
|
*
|
|
76
76
|
* @returns {void}
|
|
77
77
|
* @hidden
|
|
78
|
-
|
|
78
|
+
* @deprecated
|
|
79
79
|
*/
|
|
80
80
|
MarkdownRender.prototype.getDocument = function () {
|
|
81
81
|
return this.getEditPanel().ownerDocument;
|
|
@@ -4,7 +4,7 @@ import { BaseQuickToolbar } from '../actions/base-quick-toolbar';
|
|
|
4
4
|
* `Popup renderer` module is used to render popup in RichTextEditor.
|
|
5
5
|
*
|
|
6
6
|
* @hidden
|
|
7
|
-
|
|
7
|
+
* @deprecated
|
|
8
8
|
*/
|
|
9
9
|
export declare class PopupRenderer implements IRenderer {
|
|
10
10
|
private popupObj;
|
|
@@ -23,7 +23,7 @@ export declare class PopupRenderer implements IRenderer {
|
|
|
23
23
|
* @param {BaseQuickToolbar} args - specifies the arguments.
|
|
24
24
|
* @returns {void}
|
|
25
25
|
* @hidden
|
|
26
|
-
|
|
26
|
+
* @deprecated
|
|
27
27
|
*/
|
|
28
28
|
renderPopup(args: BaseQuickToolbar): void;
|
|
29
29
|
/**
|
|
@@ -31,7 +31,7 @@ export declare class PopupRenderer implements IRenderer {
|
|
|
31
31
|
*
|
|
32
32
|
* @returns {void}
|
|
33
33
|
* @hidden
|
|
34
|
-
|
|
34
|
+
* @deprecated
|
|
35
35
|
*/
|
|
36
36
|
renderPanel(): void;
|
|
37
37
|
/**
|
|
@@ -39,7 +39,7 @@ export declare class PopupRenderer implements IRenderer {
|
|
|
39
39
|
*
|
|
40
40
|
* @returns {Element} - specifies the element
|
|
41
41
|
* @hidden
|
|
42
|
-
|
|
42
|
+
* @deprecated
|
|
43
43
|
*/
|
|
44
44
|
getPanel(): Element;
|
|
45
45
|
/**
|
|
@@ -48,7 +48,7 @@ export declare class PopupRenderer implements IRenderer {
|
|
|
48
48
|
* @returns {void}
|
|
49
49
|
* @param {Element} panel - specifies the element
|
|
50
50
|
* @hidden
|
|
51
|
-
|
|
51
|
+
* @deprecated
|
|
52
52
|
*/
|
|
53
53
|
setPanel(panel: Element): void;
|
|
54
54
|
}
|
|
@@ -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;
|