@syncfusion/ej2-richtexteditor 28.1.37 → 28.1.38-680214
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/README.md +1 -1
- package/dist/ej2-richtexteditor.min.js +1 -10
- 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 +179 -136
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +179 -136
- package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
- package/dist/global/ej2-richtexteditor.min.js +1 -10
- package/dist/global/ej2-richtexteditor.min.js.map +1 -1
- package/dist/global/index.d.ts +0 -9
- package/package.json +59 -82
- package/src/common/interface.d.ts +8 -8
- package/src/common/util.d.ts +1 -2
- package/src/common/util.js +49 -95
- package/src/editor-manager/base/classes.d.ts +1 -1
- package/src/editor-manager/base/classes.js +1 -1
- package/src/editor-manager/base/editor-manager.d.ts +3 -3
- package/src/editor-manager/base/editor-manager.js +3 -3
- package/src/editor-manager/base/enum.d.ts +2 -2
- package/src/editor-manager/base/interface.d.ts +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 +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 +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 +3 -3
- 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 +5 -5
- 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 +3 -2
- package/src/editor-manager/plugin/lists.js +15 -3
- package/src/editor-manager/plugin/ms-word-clean-up.d.ts +1 -1
- package/src/editor-manager/plugin/ms-word-clean-up.js +1 -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 +1 -1
- package/src/editor-manager/plugin/selection-commands.js +2 -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 +34 -3
- 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 +26 -4
- package/src/rich-text-editor/actions/keyboard.d.ts +1 -1
- package/src/rich-text-editor/actions/keyboard.js +1 -1
- 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 +27 -11
- 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.d.ts +2 -0
- package/src/rich-text-editor/actions/resize.js +14 -2
- 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 +1 -1
- package/src/rich-text-editor/base/rich-text-editor.d.ts +62 -62
- package/src/rich-text-editor/base/rich-text-editor.js +34 -35
- 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 +2 -2
- package/src/rich-text-editor/formatter/markdown-formatter.d.ts +2 -2
- package/src/rich-text-editor/formatter/markdown-formatter.js +2 -2
- package/src/rich-text-editor/renderer/audio-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/audio-module.js +1 -1
- package/src/rich-text-editor/renderer/content-renderer.d.ts +6 -6
- package/src/rich-text-editor/renderer/content-renderer.js +6 -6
- package/src/rich-text-editor/renderer/dialog-renderer.d.ts +2 -2
- package/src/rich-text-editor/renderer/dialog-renderer.js +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 +4 -4
- package/src/rich-text-editor/renderer/image-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/image-module.js +1 -1
- package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/link-module.js +3 -3
- package/src/rich-text-editor/renderer/markdown-renderer.d.ts +6 -6
- package/src/rich-text-editor/renderer/markdown-renderer.js +6 -6
- package/src/rich-text-editor/renderer/popup-renderer.d.ts +5 -5
- package/src/rich-text-editor/renderer/popup-renderer.js +5 -5
- package/src/rich-text-editor/renderer/render.d.ts +2 -2
- package/src/rich-text-editor/renderer/render.js +2 -2
- package/src/rich-text-editor/renderer/table-module.d.ts +3 -2
- package/src/rich-text-editor/renderer/table-module.js +15 -18
- package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +9 -9
- package/src/rich-text-editor/renderer/toolbar-renderer.js +9 -10
- package/src/rich-text-editor/renderer/video-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/video-module.js +1 -1
- package/src/rich-text-editor/renderer/view-source.d.ts +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 +22 -22
- package/src/selection/selection.js +22 -22
- package/styles/material3-dark.scss +1 -1
- package/styles/material3.scss +1 -1
- package/styles/rich-text-editor/material3-dark.scss +1 -1
- package/styles/rich-text-editor/material3.scss +1 -1
|
@@ -29,7 +29,7 @@ var DialogRenderer = /** @class */ (function () {
|
|
|
29
29
|
* @param {DialogModel} e - specifies the dialog model.
|
|
30
30
|
* @returns {void}
|
|
31
31
|
* @hidden
|
|
32
|
-
|
|
32
|
+
* @deprecated
|
|
33
33
|
*/
|
|
34
34
|
DialogRenderer.prototype.render = function (e) {
|
|
35
35
|
var dlgObj;
|
|
@@ -114,7 +114,7 @@ var DialogRenderer = /** @class */ (function () {
|
|
|
114
114
|
* @param {Object} args - specifies the arguments.
|
|
115
115
|
* @returns {void}
|
|
116
116
|
* @hidden
|
|
117
|
-
|
|
117
|
+
* @deprecated
|
|
118
118
|
*/
|
|
119
119
|
DialogRenderer.prototype.close = function (args) {
|
|
120
120
|
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
|
}
|
|
@@ -21,7 +21,7 @@ var IFRAMEHEADER = "\n <!DOCTYPE html> \n <html>\n <head>\n
|
|
|
21
21
|
* Content module is used to render Rich Text Editor content
|
|
22
22
|
*
|
|
23
23
|
* @hidden
|
|
24
|
-
|
|
24
|
+
* @deprecated
|
|
25
25
|
*/
|
|
26
26
|
var IframeContentRender = /** @class */ (function (_super) {
|
|
27
27
|
__extends(IframeContentRender, _super);
|
|
@@ -32,7 +32,7 @@ var IframeContentRender = /** @class */ (function (_super) {
|
|
|
32
32
|
* The function is used to render Rich Text Editor iframe
|
|
33
33
|
*
|
|
34
34
|
* @hidden
|
|
35
|
-
|
|
35
|
+
* @deprecated
|
|
36
36
|
*/
|
|
37
37
|
IframeContentRender.prototype.renderPanel = function () {
|
|
38
38
|
var rteObj = this.parent;
|
|
@@ -100,7 +100,7 @@ var IframeContentRender = /** @class */ (function (_super) {
|
|
|
100
100
|
*
|
|
101
101
|
* @returns {Element} - specifies the element.
|
|
102
102
|
* @hidden
|
|
103
|
-
|
|
103
|
+
* @deprecated
|
|
104
104
|
*/
|
|
105
105
|
IframeContentRender.prototype.getEditPanel = function () {
|
|
106
106
|
var editNode;
|
|
@@ -117,7 +117,7 @@ var IframeContentRender = /** @class */ (function (_super) {
|
|
|
117
117
|
*
|
|
118
118
|
* @returns {void}
|
|
119
119
|
* @hidden
|
|
120
|
-
|
|
120
|
+
* @deprecated
|
|
121
121
|
*/
|
|
122
122
|
IframeContentRender.prototype.getDocument = function () {
|
|
123
123
|
return this.getEditPanel().ownerDocument;
|
|
@@ -397,10 +397,10 @@ var Link = /** @class */ (function () {
|
|
|
397
397
|
}
|
|
398
398
|
if (!this.selfLink.isUrl(linkUrl)) {
|
|
399
399
|
if (this.selfLink.parent.editorMode === 'Markdown') {
|
|
400
|
-
linkText = (linkText !== '') ? linkText : '';
|
|
400
|
+
linkText = (linkText.trim() !== '') ? linkText : '';
|
|
401
401
|
}
|
|
402
402
|
else {
|
|
403
|
-
linkText = (linkText === '') ? linkUrl : linkText;
|
|
403
|
+
linkText = (linkText.trim() === '') ? linkUrl : linkText;
|
|
404
404
|
}
|
|
405
405
|
if (!this.selfLink.parent.enableAutoUrl) {
|
|
406
406
|
linkUrl = linkUrl.indexOf('http') > -1 ? linkUrl : 'http://' + linkUrl;
|
|
@@ -564,7 +564,7 @@ var Link = /** @class */ (function () {
|
|
|
564
564
|
* @function destroy
|
|
565
565
|
* @returns {void}
|
|
566
566
|
* @hidden
|
|
567
|
-
|
|
567
|
+
* @deprecated
|
|
568
568
|
*/
|
|
569
569
|
Link.prototype.destroy = function () {
|
|
570
570
|
if (this.isDestroyed) {
|
|
@@ -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;
|
|
@@ -37,7 +37,7 @@ var MarkdownRender = /** @class */ (function () {
|
|
|
37
37
|
*
|
|
38
38
|
* @returns {Element} - specifies the element
|
|
39
39
|
* @hidden
|
|
40
|
-
|
|
40
|
+
* @deprecated
|
|
41
41
|
*/
|
|
42
42
|
MarkdownRender.prototype.getPanel = function () {
|
|
43
43
|
return this.contentPanel;
|
|
@@ -47,7 +47,7 @@ var MarkdownRender = /** @class */ (function () {
|
|
|
47
47
|
*
|
|
48
48
|
* @returns {Element} - specifies the element
|
|
49
49
|
* @hidden
|
|
50
|
-
|
|
50
|
+
* @deprecated
|
|
51
51
|
*/
|
|
52
52
|
MarkdownRender.prototype.getEditPanel = function () {
|
|
53
53
|
return this.editableElement;
|
|
@@ -66,7 +66,7 @@ var MarkdownRender = /** @class */ (function () {
|
|
|
66
66
|
* @param {Element} panel - specifies the element.
|
|
67
67
|
* @returns {void}
|
|
68
68
|
* @hidden
|
|
69
|
-
|
|
69
|
+
* @deprecated
|
|
70
70
|
*/
|
|
71
71
|
MarkdownRender.prototype.setPanel = function (panel) {
|
|
72
72
|
this.contentPanel = panel;
|
|
@@ -76,7 +76,7 @@ var MarkdownRender = /** @class */ (function () {
|
|
|
76
76
|
*
|
|
77
77
|
* @returns {void}
|
|
78
78
|
* @hidden
|
|
79
|
-
|
|
79
|
+
* @deprecated
|
|
80
80
|
*/
|
|
81
81
|
MarkdownRender.prototype.getDocument = function () {
|
|
82
82
|
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;
|
|
@@ -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
|
|
@@ -40,6 +40,7 @@ export declare class Table {
|
|
|
40
40
|
private resizeIconPositionTime;
|
|
41
41
|
private isResizeBind;
|
|
42
42
|
private isDestroyed;
|
|
43
|
+
private createTablePopupBoundFn;
|
|
43
44
|
private constructor();
|
|
44
45
|
protected addEventListener(): void;
|
|
45
46
|
protected removeEventListener(): void;
|
|
@@ -48,7 +49,6 @@ export declare class Table {
|
|
|
48
49
|
private afterRender;
|
|
49
50
|
private dropdownSelect;
|
|
50
51
|
private UpdateCells;
|
|
51
|
-
private keyUp;
|
|
52
52
|
private keyDown;
|
|
53
53
|
private tableCellsKeyboardSelection;
|
|
54
54
|
private resetTableSelection;
|
|
@@ -139,7 +139,7 @@ export declare class Table {
|
|
|
139
139
|
* @function destroy
|
|
140
140
|
* @returns {void}
|
|
141
141
|
* @hidden
|
|
142
|
-
|
|
142
|
+
* @deprecated
|
|
143
143
|
*/
|
|
144
144
|
destroy(): void;
|
|
145
145
|
/**
|
|
@@ -150,4 +150,5 @@ export declare class Table {
|
|
|
150
150
|
private getModuleName;
|
|
151
151
|
private afterKeyDown;
|
|
152
152
|
private updateResizeIconPosition;
|
|
153
|
+
private createTablePopupKeyDown;
|
|
153
154
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createElement, detach, closest, Browser, isNullOrUndefined as isNOU } from '@syncfusion/ej2-base';
|
|
1
|
+
import { createElement, detach, closest, Browser, isNullOrUndefined as isNOU, getComponent } from '@syncfusion/ej2-base';
|
|
2
2
|
import { isNullOrUndefined, EventHandler, addClass } from '@syncfusion/ej2-base';
|
|
3
3
|
import { Popup } from '@syncfusion/ej2-popups';
|
|
4
4
|
import { Button } from '@syncfusion/ej2-buttons';
|
|
@@ -45,7 +45,6 @@ var Table = /** @class */ (function () {
|
|
|
45
45
|
this.parent.on(events.tableToolbarAction, this.onToolbarAction, this);
|
|
46
46
|
this.parent.on(events.dropDownSelect, this.dropdownSelect, this);
|
|
47
47
|
this.parent.on(events.keyDown, this.keyDown, this);
|
|
48
|
-
this.parent.on(events.keyUp, this.keyUp, this);
|
|
49
48
|
this.parent.on(events.tableModulekeyUp, this.tableModulekeyUp, this);
|
|
50
49
|
this.parent.on(events.bindCssClass, this.setCssClass, this);
|
|
51
50
|
this.parent.on(events.destroy, this.destroy, this);
|
|
@@ -66,7 +65,6 @@ var Table = /** @class */ (function () {
|
|
|
66
65
|
this.parent.off(events.mouseDown, this.cellSelect);
|
|
67
66
|
this.parent.off(events.tableColorPickerChanged, this.setBGColor);
|
|
68
67
|
this.parent.off(events.keyDown, this.keyDown);
|
|
69
|
-
this.parent.off(events.keyUp, this.keyUp);
|
|
70
68
|
this.parent.off(events.tableModulekeyUp, this.tableModulekeyUp);
|
|
71
69
|
this.parent.off(events.bindCssClass, this.setCssClass);
|
|
72
70
|
this.parent.off(events.destroy, this.destroy);
|
|
@@ -163,20 +161,6 @@ var Table = /** @class */ (function () {
|
|
|
163
161
|
this.parent.formatter.process(this.parent, e, e, { selection: selectCell, subCommand: e.item.subCommand });
|
|
164
162
|
this.hideTableQuickToolbar();
|
|
165
163
|
};
|
|
166
|
-
Table.prototype.keyUp = function (e) {
|
|
167
|
-
var target = e.args.target;
|
|
168
|
-
if (e.args.key.toLocaleLowerCase() === 'escape' && target && target.classList && (this.popupObj && !closest(target, '[id=' + '\'' + this.popupObj.element.id + '\'' + ']')) && this.popupObj) {
|
|
169
|
-
var createTableToolbarBtn = this.popupObj.relateTo;
|
|
170
|
-
if (createTableToolbarBtn.nodeName !== 'BUTTON') {
|
|
171
|
-
createTableToolbarBtn = createTableToolbarBtn.querySelector('span.e-create-table');
|
|
172
|
-
createTableToolbarBtn = createTableToolbarBtn.parentElement;
|
|
173
|
-
}
|
|
174
|
-
this.popupObj.hide();
|
|
175
|
-
if (createTableToolbarBtn) {
|
|
176
|
-
createTableToolbarBtn.focus();
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
};
|
|
180
164
|
Table.prototype.keyDown = function (e) {
|
|
181
165
|
var event = e.args;
|
|
182
166
|
// eslint-disable-next-line
|
|
@@ -1755,6 +1739,8 @@ var Table = /** @class */ (function () {
|
|
|
1755
1739
|
var header = '1X1';
|
|
1756
1740
|
var insertbtn = this.l10n.getConstant('inserttablebtn');
|
|
1757
1741
|
this.dlgDiv = this.parent.createElement('div', { className: 'e-rte-table-popup' + this.parent.getCssClass(true), id: this.rteID + '_table' });
|
|
1742
|
+
this.createTablePopupBoundFn = this.createTablePopupKeyDown.bind(this);
|
|
1743
|
+
this.dlgDiv.addEventListener('keydown', this.createTablePopupBoundFn);
|
|
1758
1744
|
this.tblHeader = this.parent.createElement('div', { className: 'e-rte-popup-header' + this.parent.getCssClass(true) });
|
|
1759
1745
|
this.tblHeader.innerHTML = header;
|
|
1760
1746
|
this.dlgDiv.appendChild(this.tblHeader);
|
|
@@ -1792,6 +1778,7 @@ var Table = /** @class */ (function () {
|
|
|
1792
1778
|
// eslint-disable-next-line
|
|
1793
1779
|
close: function (event) {
|
|
1794
1780
|
EventHandler.remove(btnEle, 'click', _this.insertTableDialog);
|
|
1781
|
+
_this.dlgDiv.removeEventListener('keydown', _this.createTablePopupBoundFn);
|
|
1795
1782
|
detach(btnEle);
|
|
1796
1783
|
if (_this.createTableButton && !_this.createTableButton.isDestroyed) {
|
|
1797
1784
|
_this.createTableButton.destroy();
|
|
@@ -2136,7 +2123,7 @@ var Table = /** @class */ (function () {
|
|
|
2136
2123
|
* @function destroy
|
|
2137
2124
|
* @returns {void}
|
|
2138
2125
|
* @hidden
|
|
2139
|
-
|
|
2126
|
+
* @deprecated
|
|
2140
2127
|
*/
|
|
2141
2128
|
Table.prototype.destroy = function () {
|
|
2142
2129
|
if (this.isDestroyed) {
|
|
@@ -2175,6 +2162,7 @@ var Table = /** @class */ (function () {
|
|
|
2175
2162
|
this.createTableButton.destroy();
|
|
2176
2163
|
this.createTableButton = null;
|
|
2177
2164
|
}
|
|
2165
|
+
this.createTablePopupBoundFn = null;
|
|
2178
2166
|
this.isDestroyed = true;
|
|
2179
2167
|
};
|
|
2180
2168
|
/**
|
|
@@ -2201,6 +2189,15 @@ var Table = /** @class */ (function () {
|
|
|
2201
2189
|
'px; left:' + (tablePosition.left + parseInt(getComputedStyle(this.curTable).width, 10) - 4) + 'px;';
|
|
2202
2190
|
}
|
|
2203
2191
|
};
|
|
2192
|
+
Table.prototype.createTablePopupKeyDown = function (e) {
|
|
2193
|
+
if (e.key === 'Escape') {
|
|
2194
|
+
var popupRootElem = e.target.closest('.e-rte-table-popup');
|
|
2195
|
+
var popup = getComponent(popupRootElem, 'popup');
|
|
2196
|
+
var tableToolbarButton = popup.relateTo;
|
|
2197
|
+
popup.hide();
|
|
2198
|
+
tableToolbarButton.focus({ preventScroll: true });
|
|
2199
|
+
}
|
|
2200
|
+
};
|
|
2204
2201
|
return Table;
|
|
2205
2202
|
}());
|
|
2206
2203
|
export { Table };
|
|
@@ -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;
|
|
@@ -489,7 +489,7 @@ var ToolbarRenderer = /** @class */ (function () {
|
|
|
489
489
|
* @param {string} defaultColor -specifies the defaultColor.
|
|
490
490
|
* @returns {void}
|
|
491
491
|
* @hidden
|
|
492
|
-
|
|
492
|
+
* @deprecated
|
|
493
493
|
*/
|
|
494
494
|
ToolbarRenderer.prototype.renderColorPickerDropDown = function (args, item, colorPicker, defaultColor) {
|
|
495
495
|
var _this = this;
|
|
@@ -637,7 +637,7 @@ var ToolbarRenderer = /** @class */ (function () {
|
|
|
637
637
|
* @param {string} item - specifies the string values
|
|
638
638
|
* @returns {void}
|
|
639
639
|
* @hidden
|
|
640
|
-
|
|
640
|
+
* @deprecated
|
|
641
641
|
*/
|
|
642
642
|
ToolbarRenderer.prototype.renderColorPicker = function (args, item) {
|
|
643
643
|
var _this = this;
|
|
@@ -645,7 +645,6 @@ var ToolbarRenderer = /** @class */ (function () {
|
|
|
645
645
|
var proxy = this;
|
|
646
646
|
var value;
|
|
647
647
|
var colorPicker = new ColorPicker({
|
|
648
|
-
enablePersistence: this.parent.enablePersistence,
|
|
649
648
|
enableRtl: this.parent.enableRtl,
|
|
650
649
|
inline: true,
|
|
651
650
|
value: null,
|
|
@@ -715,7 +714,7 @@ var ToolbarRenderer = /** @class */ (function () {
|
|
|
715
714
|
*
|
|
716
715
|
* @returns {void}
|
|
717
716
|
* @hidden
|
|
718
|
-
|
|
717
|
+
* @deprecated
|
|
719
718
|
*/
|
|
720
719
|
ToolbarRenderer.prototype.renderPanel = function () {
|
|
721
720
|
this.getPanel().classList.add(CLS_TOOLBAR);
|
|
@@ -725,7 +724,7 @@ var ToolbarRenderer = /** @class */ (function () {
|
|
|
725
724
|
*
|
|
726
725
|
* @returns {Element} - specifies the element.
|
|
727
726
|
* @hidden
|
|
728
|
-
|
|
727
|
+
* @deprecated
|
|
729
728
|
*/
|
|
730
729
|
ToolbarRenderer.prototype.getPanel = function () {
|
|
731
730
|
return this.toolbarPanel;
|
|
@@ -736,7 +735,7 @@ var ToolbarRenderer = /** @class */ (function () {
|
|
|
736
735
|
* @returns {void}
|
|
737
736
|
* @param {Element} panel - specifies the element.
|
|
738
737
|
* @hidden
|
|
739
|
-
|
|
738
|
+
* @deprecated
|
|
740
739
|
*/
|
|
741
740
|
ToolbarRenderer.prototype.setPanel = function (panel) {
|
|
742
741
|
this.toolbarPanel = panel;
|