@syncfusion/ej2-richtexteditor 23.2.5 → 23.2.7-52849
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/.github/PULL_REQUEST_TEMPLATE/Bug.md +40 -40
- package/.github/PULL_REQUEST_TEMPLATE/Feature.md +27 -27
- package/CHANGELOG.md +1751 -1713
- 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 +349 -199
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +459 -309
- package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
- package/helpers/e2e/index.js +3 -3
- package/helpers/e2e/rte-helper.js +13 -13
- package/license +9 -9
- package/package.json +74 -74
- package/src/common/interface.d.ts +7 -7
- package/src/editor-manager/base/classes.d.ts +1 -1
- package/src/editor-manager/base/classes.js +1 -1
- package/src/editor-manager/base/editor-manager.d.ts +3 -3
- package/src/editor-manager/base/editor-manager.js +3 -3
- package/src/editor-manager/base/enum.d.ts +2 -2
- package/src/editor-manager/base/interface.d.ts +10 -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 +34 -34
- package/src/editor-manager/plugin/dom-node.js +34 -34
- 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 -3
- 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 +4 -2
- package/src/editor-manager/plugin/lists.d.ts +2 -2
- package/src/editor-manager/plugin/lists.js +2 -2
- package/src/editor-manager/plugin/ms-word-clean-up.d.ts +1 -1
- package/src/editor-manager/plugin/ms-word-clean-up.js +7 -3
- 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 +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/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/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 +1 -1
- 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 +13 -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 +6 -4
- package/src/rich-text-editor/actions/quick-toolbar.d.ts +9 -9
- package/src/rich-text-editor/actions/quick-toolbar.js +13 -10
- package/src/rich-text-editor/actions/toolbar.d.ts +13 -14
- package/src/rich-text-editor/actions/toolbar.js +13 -21
- 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 -120
- package/src/rich-text-editor/base/classes.js +125 -120
- package/src/rich-text-editor/base/constant.d.ts +149 -149
- package/src/rich-text-editor/base/constant.js +149 -149
- 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 +50 -49
- package/src/rich-text-editor/base/interface.js +1 -1
- package/src/rich-text-editor/base/rich-text-editor-model.d.ts +891 -891
- package/src/rich-text-editor/base/rich-text-editor.d.ts +72 -60
- package/src/rich-text-editor/base/rich-text-editor.js +112 -76
- 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 +1 -0
- package/src/rich-text-editor/models/iframe-settings-model.d.ts +26 -26
- package/src/rich-text-editor/models/iframe-settings.js +19 -19
- package/src/rich-text-editor/models/inline-mode-model.d.ts +11 -11
- package/src/rich-text-editor/models/inline-mode.js +19 -19
- package/src/rich-text-editor/models/toolbar-settings-model.d.ts +760 -760
- package/src/rich-text-editor/models/toolbar-settings.js +19 -19
- package/src/rich-text-editor/renderer/audio-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/audio-module.js +1 -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 +3 -2
- package/src/rich-text-editor/renderer/dialog-renderer.js +13 -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 +19 -12
- package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/link-module.js +3 -2
- 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 +2 -1
- package/src/rich-text-editor/renderer/table-module.js +10 -2
- package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +9 -9
- package/src/rich-text-editor/renderer/toolbar-renderer.js +88 -19
- package/src/rich-text-editor/renderer/video-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/video-module.js +2 -3
- package/src/rich-text-editor/renderer/view-source.d.ts +6 -6
- package/src/rich-text-editor/renderer/view-source.js +15 -14
- package/src/rich-text-editor/services/renderer-factory.d.ts +3 -3
- package/src/rich-text-editor/services/renderer-factory.js +3 -3
- package/src/rich-text-editor/services/service-locator.d.ts +3 -3
- package/src/rich-text-editor/services/service-locator.js +3 -3
- package/src/selection/selection.d.ts +22 -22
- package/src/selection/selection.js +22 -22
- package/styles/_all.scss +1 -1
- package/styles/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/_bootstrap-dark-definition.scss +277 -277
- package/styles/rich-text-editor/_bootstrap-definition.scss +334 -334
- package/styles/rich-text-editor/_bootstrap4-definition.scss +460 -460
- package/styles/rich-text-editor/_bootstrap5-definition.scss +262 -262
- package/styles/rich-text-editor/_fabric-dark-definition.scss +259 -259
- package/styles/rich-text-editor/_fabric-definition.scss +257 -257
- package/styles/rich-text-editor/_fluent-definition.scss +263 -263
- package/styles/rich-text-editor/_fusionnew-definition.scss +261 -261
- package/styles/rich-text-editor/_highcontrast-definition.scss +257 -257
- package/styles/rich-text-editor/_highcontrast-light-definition.scss +257 -257
- package/styles/rich-text-editor/_layout.scss +2072 -2072
- package/styles/rich-text-editor/_material-dark-definition.scss +262 -262
- package/styles/rich-text-editor/_material-definition.scss +260 -260
- package/styles/rich-text-editor/_material3-definition.scss +262 -262
- package/styles/rich-text-editor/_tailwind-definition.scss +257 -257
- package/styles/rich-text-editor/_theme.scss +837 -837
- package/styles/rich-text-editor/icons/_bootstrap-dark.scss +349 -349
- package/styles/rich-text-editor/icons/_bootstrap.scss +349 -349
- package/styles/rich-text-editor/icons/_bootstrap4.scss +349 -349
- package/styles/rich-text-editor/icons/_bootstrap5.scss +348 -348
- package/styles/rich-text-editor/icons/_fabric-dark.scss +349 -349
- package/styles/rich-text-editor/icons/_fabric.scss +349 -349
- package/styles/rich-text-editor/icons/_fluent.scss +348 -348
- package/styles/rich-text-editor/icons/_fusionnew.scss +348 -348
- package/styles/rich-text-editor/icons/_highcontrast-light.scss +349 -349
- package/styles/rich-text-editor/icons/_highcontrast.scss +349 -349
- package/styles/rich-text-editor/icons/_material-dark.scss +349 -349
- package/styles/rich-text-editor/icons/_material.scss +349 -349
- package/styles/rich-text-editor/icons/_material3.scss +348 -348
- package/styles/rich-text-editor/icons/_tailwind.scss +348 -348
- package/styles/rich-text-editor/material3-dark.scss +1 -1
- package/styles/rich-text-editor/material3.scss +1 -1
- package/.eslintrc.json +0 -260
- 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
|
@@ -13,7 +13,7 @@ export declare class FullScreen {
|
|
|
13
13
|
* @param {MouseEvent} event - specifies the mouse event
|
|
14
14
|
* @returns {void}
|
|
15
15
|
* @hidden
|
|
16
|
-
|
|
16
|
+
* @deprecated
|
|
17
17
|
*/
|
|
18
18
|
showFullScreen(event?: MouseEvent | KeyboardEventArgs): void;
|
|
19
19
|
/**
|
|
@@ -22,7 +22,7 @@ export declare class FullScreen {
|
|
|
22
22
|
* @param {MouseEvent} event - specifies the mouse event
|
|
23
23
|
* @returns {void}
|
|
24
24
|
* @hidden
|
|
25
|
-
|
|
25
|
+
* @deprecated
|
|
26
26
|
*/
|
|
27
27
|
hideFullScreen(event?: MouseEvent | KeyboardEventArgs): void;
|
|
28
28
|
private toggleParentOverflow;
|
|
@@ -34,7 +34,7 @@ export declare class FullScreen {
|
|
|
34
34
|
*
|
|
35
35
|
* @returns {void}
|
|
36
36
|
* @hidden
|
|
37
|
-
|
|
37
|
+
* @deprecated
|
|
38
38
|
*/
|
|
39
39
|
destroy(): void;
|
|
40
40
|
private moduleDestroy;
|
|
@@ -17,7 +17,7 @@ var FullScreen = /** @class */ (function () {
|
|
|
17
17
|
* @param {MouseEvent} event - specifies the mouse event
|
|
18
18
|
* @returns {void}
|
|
19
19
|
* @hidden
|
|
20
|
-
|
|
20
|
+
* @deprecated
|
|
21
21
|
*/
|
|
22
22
|
FullScreen.prototype.showFullScreen = function (event) {
|
|
23
23
|
var _this = this;
|
|
@@ -72,7 +72,7 @@ var FullScreen = /** @class */ (function () {
|
|
|
72
72
|
* @param {MouseEvent} event - specifies the mouse event
|
|
73
73
|
* @returns {void}
|
|
74
74
|
* @hidden
|
|
75
|
-
|
|
75
|
+
* @deprecated
|
|
76
76
|
*/
|
|
77
77
|
FullScreen.prototype.hideFullScreen = function (event) {
|
|
78
78
|
var _this = this;
|
|
@@ -161,7 +161,7 @@ var FullScreen = /** @class */ (function () {
|
|
|
161
161
|
*
|
|
162
162
|
* @returns {void}
|
|
163
163
|
* @hidden
|
|
164
|
-
|
|
164
|
+
* @deprecated
|
|
165
165
|
*/
|
|
166
166
|
FullScreen.prototype.destroy = function () {
|
|
167
167
|
if (isNOU(this.parent)) {
|
|
@@ -29,14 +29,14 @@ export declare class HtmlEditor {
|
|
|
29
29
|
* @function destroy
|
|
30
30
|
* @returns {void}
|
|
31
31
|
* @hidden
|
|
32
|
-
|
|
32
|
+
* @deprecated
|
|
33
33
|
*/
|
|
34
34
|
destroy(): void;
|
|
35
35
|
/**
|
|
36
36
|
* @param {string} value - specifies the string value
|
|
37
37
|
* @returns {void}
|
|
38
38
|
* @hidden
|
|
39
|
-
|
|
39
|
+
* @deprecated
|
|
40
40
|
*/
|
|
41
41
|
sanitizeHelper(value: string): string;
|
|
42
42
|
private addEventListener;
|
|
@@ -67,7 +67,7 @@ export declare class HtmlEditor {
|
|
|
67
67
|
* @param {RichTextEditorModel} e - specifies the editor model
|
|
68
68
|
* @returns {void}
|
|
69
69
|
* @hidden
|
|
70
|
-
|
|
70
|
+
* @deprecated
|
|
71
71
|
*/
|
|
72
72
|
protected onPropertyChanged(e: {
|
|
73
73
|
[key: string]: RichTextEditorModel;
|
|
@@ -33,7 +33,7 @@ var HtmlEditor = /** @class */ (function () {
|
|
|
33
33
|
* @function destroy
|
|
34
34
|
* @returns {void}
|
|
35
35
|
* @hidden
|
|
36
|
-
|
|
36
|
+
* @deprecated
|
|
37
37
|
*/
|
|
38
38
|
HtmlEditor.prototype.destroy = function () {
|
|
39
39
|
this.removeEventListener();
|
|
@@ -42,7 +42,7 @@ var HtmlEditor = /** @class */ (function () {
|
|
|
42
42
|
* @param {string} value - specifies the string value
|
|
43
43
|
* @returns {void}
|
|
44
44
|
* @hidden
|
|
45
|
-
|
|
45
|
+
* @deprecated
|
|
46
46
|
*/
|
|
47
47
|
HtmlEditor.prototype.sanitizeHelper = function (value) {
|
|
48
48
|
value = sanitizeHelper(value, this.parent);
|
|
@@ -428,8 +428,13 @@ var HtmlEditor = /** @class */ (function () {
|
|
|
428
428
|
this.parent.formatter.editorManager.nodeSelection.setCursorPoint(this.parent.contentModule.getDocument(), this.deleteRangeElement, this.deleteRangeElement.childNodes.length);
|
|
429
429
|
this.isImageDelete = false;
|
|
430
430
|
}
|
|
431
|
-
|
|
432
|
-
|
|
431
|
+
var brNode = this.deleteRangeElement.querySelector('BR');
|
|
432
|
+
if (brNode && brNode.classList.contains('e-rte-image-remove-focus')) {
|
|
433
|
+
removeClass([brNode], ['e-rte-image-focus']);
|
|
434
|
+
return;
|
|
435
|
+
}
|
|
436
|
+
else if (brNode) {
|
|
437
|
+
detach(brNode);
|
|
433
438
|
}
|
|
434
439
|
if (!isNullOrUndefined(this.deleteRangeElement) && (this.deleteOldRangeElement.tagName !== 'OL' && this.deleteOldRangeElement.tagName !== 'UL')
|
|
435
440
|
&& this.deleteOldRangeElement !== this.deleteRangeElement) {
|
|
@@ -796,10 +801,13 @@ var HtmlEditor = /** @class */ (function () {
|
|
|
796
801
|
* @param {RichTextEditorModel} e - specifies the editor model
|
|
797
802
|
* @returns {void}
|
|
798
803
|
* @hidden
|
|
799
|
-
|
|
804
|
+
* @deprecated
|
|
800
805
|
*/
|
|
801
806
|
HtmlEditor.prototype.onPropertyChanged = function (e) {
|
|
802
807
|
// On property code change here
|
|
808
|
+
if (!isNOU(e) && !isNOU(e.newProp.toolbarSettings) && !isNOU(e.newProp.toolbarSettings.enable)) {
|
|
809
|
+
this.toolbarUpdate = new HtmlToolbarStatus(this.parent);
|
|
810
|
+
}
|
|
803
811
|
if (!isNullOrUndefined(e.newProp.formatter)) {
|
|
804
812
|
var editElement = this.contentRenderer.getEditPanel();
|
|
805
813
|
var option = { undoRedoSteps: this.parent.undoRedoSteps,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Property, NotifyPropertyChanges, INotifyPropertyChanged, Event } from '@syncfusion/ej2-base';
|
|
1
|
+
import { Property, NotifyPropertyChanges, INotifyPropertyChanged, Event } from '@syncfusion/ej2-base';
|
|
2
2
|
import {KeyboardEventArgs} from "./keyboard";
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -7,24 +7,24 @@ import {KeyboardEventArgs} from "./keyboard";
|
|
|
7
7
|
export interface KeyboardEventsModel {
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* Specifies key combination and it respective action name.
|
|
11
|
-
*
|
|
12
|
-
* @default null
|
|
13
|
-
*/
|
|
14
|
-
keyConfigs?: { [key: string]: string };
|
|
10
|
+
* Specifies key combination and it respective action name.
|
|
11
|
+
*
|
|
12
|
+
* @default null
|
|
13
|
+
*/
|
|
14
|
+
keyConfigs?: { [key: string]: string };
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* Specifies on which event keyboardEvents class should listen for key press. For ex., `keyup`, `keydown` or `keypress`
|
|
18
|
-
*
|
|
19
|
-
* @default 'keyup'
|
|
20
|
-
*/
|
|
21
|
-
eventName?: string;
|
|
17
|
+
* Specifies on which event keyboardEvents class should listen for key press. For ex., `keyup`, `keydown` or `keypress`
|
|
18
|
+
*
|
|
19
|
+
* @default 'keyup'
|
|
20
|
+
*/
|
|
21
|
+
eventName?: string;
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
-
* Specifies the listener when keyboard actions is performed.
|
|
25
|
-
*
|
|
26
|
-
* @event 'keyAction'
|
|
27
|
-
*/
|
|
28
|
-
keyAction?: EmitType<KeyboardEventArgs>;
|
|
24
|
+
* Specifies the listener when keyboard actions is performed.
|
|
25
|
+
*
|
|
26
|
+
* @event 'keyAction'
|
|
27
|
+
*/
|
|
28
|
+
keyAction?: EmitType<KeyboardEventArgs>;
|
|
29
29
|
|
|
30
30
|
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
14
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
-
};
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
};
|
|
20
20
|
import { Property, NotifyPropertyChanges, Event } from '@syncfusion/ej2-base';
|
|
21
21
|
import { Base } from '@syncfusion/ej2-base';
|
|
22
22
|
var keyCode = {
|
|
@@ -84,7 +84,7 @@ var keyCode = {
|
|
|
84
84
|
* ```
|
|
85
85
|
*
|
|
86
86
|
* @hidden
|
|
87
|
-
|
|
87
|
+
* @deprecated
|
|
88
88
|
*/
|
|
89
89
|
var KeyboardEvents = /** @class */ (function (_super) {
|
|
90
90
|
__extends(KeyboardEvents, _super);
|
|
@@ -19,7 +19,7 @@ export declare class MarkdownEditor {
|
|
|
19
19
|
* @function destroy
|
|
20
20
|
* @returns {void}
|
|
21
21
|
* @hidden
|
|
22
|
-
|
|
22
|
+
* @deprecated
|
|
23
23
|
*/
|
|
24
24
|
destroy(): void;
|
|
25
25
|
private moduleDestroy;
|
|
@@ -37,7 +37,7 @@ export declare class MarkdownEditor {
|
|
|
37
37
|
* @param {RichTextEditorModel} e - specifies the editor model
|
|
38
38
|
* @returns {void}
|
|
39
39
|
* @hidden
|
|
40
|
-
|
|
40
|
+
* @deprecated
|
|
41
41
|
*/
|
|
42
42
|
protected onPropertyChanged(e: {
|
|
43
43
|
[key: string]: RichTextEditorModel;
|
|
@@ -22,7 +22,7 @@ var MarkdownEditor = /** @class */ (function () {
|
|
|
22
22
|
* @function destroy
|
|
23
23
|
* @returns {void}
|
|
24
24
|
* @hidden
|
|
25
|
-
|
|
25
|
+
* @deprecated
|
|
26
26
|
*/
|
|
27
27
|
MarkdownEditor.prototype.destroy = function () {
|
|
28
28
|
if (isNullOrUndefined(this.parent)) {
|
|
@@ -147,7 +147,7 @@ var MarkdownEditor = /** @class */ (function () {
|
|
|
147
147
|
* @param {RichTextEditorModel} e - specifies the editor model
|
|
148
148
|
* @returns {void}
|
|
149
149
|
* @hidden
|
|
150
|
-
|
|
150
|
+
* @deprecated
|
|
151
151
|
*/
|
|
152
152
|
MarkdownEditor.prototype.onPropertyChanged = function (e) {
|
|
153
153
|
// On property code change here
|
|
@@ -188,7 +188,7 @@ var PasteCleanup = /** @class */ (function () {
|
|
|
188
188
|
}
|
|
189
189
|
else {
|
|
190
190
|
var contentWithSpace = this.makeSpace(enterSplitText[i]);
|
|
191
|
-
contentInnerElem += '<p>' + contentWithSpace.trim() + '</p>';
|
|
191
|
+
contentInnerElem += (i === 0 ? '<span>' : '<p>') + contentWithSpace.trim() + (i === 0 ? '</span>' : '</p>');
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
return contentInnerElem;
|
|
@@ -269,7 +269,7 @@ var PasteCleanup = /** @class */ (function () {
|
|
|
269
269
|
var popupEle = this.parent.createElement('div');
|
|
270
270
|
this.parent.element.appendChild(popupEle);
|
|
271
271
|
var contentEle = this.parent.createElement('input', {
|
|
272
|
-
id: this.parent.
|
|
272
|
+
id: this.parent.getID() + '_upload', attrs: { type: 'File', name: 'UploadFiles' }
|
|
273
273
|
});
|
|
274
274
|
var offsetY = this.parent.iframeSettings.enable ? -50 : -90;
|
|
275
275
|
this.popupObj = new Popup(popupEle, {
|
|
@@ -443,7 +443,7 @@ var PasteCleanup = /** @class */ (function () {
|
|
|
443
443
|
* @param {Element []} imgElement - specifies the array elements.
|
|
444
444
|
* @returns {void}
|
|
445
445
|
* @hidden
|
|
446
|
-
|
|
446
|
+
* @deprecated
|
|
447
447
|
*/
|
|
448
448
|
PasteCleanup.prototype.imageFormatting = function (pasteArgs, imgElement) {
|
|
449
449
|
if (!isNOU(imgElement.elements[0].getAttribute('src'))) {
|
|
@@ -900,7 +900,9 @@ var PasteCleanup = /** @class */ (function () {
|
|
|
900
900
|
PasteCleanup.prototype.findDetachEmptyElem = function (element) {
|
|
901
901
|
var removableElement;
|
|
902
902
|
if (!isNOU(element.parentElement)) {
|
|
903
|
-
|
|
903
|
+
var hasNbsp = element.parentElement.textContent.length > 0 && element.parentElement.textContent.match(/\u00a0/g)
|
|
904
|
+
&& element.parentElement.textContent.match(/\u00a0/g).length > 0;
|
|
905
|
+
if (!hasNbsp && element.parentElement.textContent.trim() === '' &&
|
|
904
906
|
element.parentElement.getAttribute('class') !== 'pasteContent') {
|
|
905
907
|
removableElement = this.findDetachEmptyElem(element.parentElement);
|
|
906
908
|
}
|
|
@@ -35,7 +35,7 @@ export declare class QuickToolbar {
|
|
|
35
35
|
* @param {RenderType} type - specifies the render type.
|
|
36
36
|
* @returns {BaseQuickToolbar} - specifies the quick toolbar
|
|
37
37
|
* @hidden
|
|
38
|
-
|
|
38
|
+
* @deprecated
|
|
39
39
|
*/
|
|
40
40
|
createQTBar(popupType: string, mode: string, items: (string | IToolbarItems)[], type: RenderType): BaseQuickToolbar;
|
|
41
41
|
private initializeQuickToolbars;
|
|
@@ -51,7 +51,7 @@ export declare class QuickToolbar {
|
|
|
51
51
|
* @param {HTMLElement} target - specifies the target element.
|
|
52
52
|
* @returns {void}
|
|
53
53
|
* @hidden
|
|
54
|
-
|
|
54
|
+
* @deprecated
|
|
55
55
|
*/
|
|
56
56
|
showInlineQTBar(x: number, y: number, target: HTMLElement): void;
|
|
57
57
|
/**
|
|
@@ -59,7 +59,7 @@ export declare class QuickToolbar {
|
|
|
59
59
|
*
|
|
60
60
|
* @returns {void}
|
|
61
61
|
* @hidden
|
|
62
|
-
|
|
62
|
+
* @deprecated
|
|
63
63
|
*/
|
|
64
64
|
hideInlineQTBar(): void;
|
|
65
65
|
/**
|
|
@@ -67,7 +67,7 @@ export declare class QuickToolbar {
|
|
|
67
67
|
*
|
|
68
68
|
* @returns {void}
|
|
69
69
|
* @hidden
|
|
70
|
-
|
|
70
|
+
* @deprecated
|
|
71
71
|
*/
|
|
72
72
|
hideQuickToolbars(): void;
|
|
73
73
|
private deBounce;
|
|
@@ -82,7 +82,7 @@ export declare class QuickToolbar {
|
|
|
82
82
|
*
|
|
83
83
|
* @returns {void}
|
|
84
84
|
* @hidden
|
|
85
|
-
|
|
85
|
+
* @deprecated
|
|
86
86
|
*/
|
|
87
87
|
getInlineBaseToolbar(): BaseToolbar;
|
|
88
88
|
/**
|
|
@@ -91,7 +91,7 @@ export declare class QuickToolbar {
|
|
|
91
91
|
* @function destroy
|
|
92
92
|
* @returns {void}
|
|
93
93
|
* @hidden
|
|
94
|
-
|
|
94
|
+
* @deprecated
|
|
95
95
|
*/
|
|
96
96
|
destroy(): void;
|
|
97
97
|
private moduleDestroy;
|
|
@@ -103,7 +103,7 @@ export declare class QuickToolbar {
|
|
|
103
103
|
*
|
|
104
104
|
* @returns {void}
|
|
105
105
|
* @hidden
|
|
106
|
-
|
|
106
|
+
* @deprecated
|
|
107
107
|
*/
|
|
108
108
|
addEventListener(): void;
|
|
109
109
|
private onKeyDown;
|
|
@@ -116,7 +116,7 @@ export declare class QuickToolbar {
|
|
|
116
116
|
*
|
|
117
117
|
* @returns {void}
|
|
118
118
|
* @hidden
|
|
119
|
-
|
|
119
|
+
* @deprecated
|
|
120
120
|
*/
|
|
121
121
|
removeEventListener(): void;
|
|
122
122
|
/**
|
|
@@ -125,7 +125,7 @@ export declare class QuickToolbar {
|
|
|
125
125
|
* @param {RichTextEditorModel} e - specifies the element.
|
|
126
126
|
* @returns {void}
|
|
127
127
|
* @hidden
|
|
128
|
-
|
|
128
|
+
* @deprecated
|
|
129
129
|
*/
|
|
130
130
|
protected onPropertyChanged(e: {
|
|
131
131
|
[key: string]: RichTextEditorModel;
|
|
@@ -59,7 +59,7 @@ var QuickToolbar = /** @class */ (function () {
|
|
|
59
59
|
* @param {RenderType} type - specifies the render type.
|
|
60
60
|
* @returns {BaseQuickToolbar} - specifies the quick toolbar
|
|
61
61
|
* @hidden
|
|
62
|
-
|
|
62
|
+
* @deprecated
|
|
63
63
|
*/
|
|
64
64
|
QuickToolbar.prototype.createQTBar = function (popupType, mode, items, type) {
|
|
65
65
|
if (items.length < 1) {
|
|
@@ -146,10 +146,10 @@ var QuickToolbar = /** @class */ (function () {
|
|
|
146
146
|
* @param {HTMLElement} target - specifies the target element.
|
|
147
147
|
* @returns {void}
|
|
148
148
|
* @hidden
|
|
149
|
-
|
|
149
|
+
* @deprecated
|
|
150
150
|
*/
|
|
151
151
|
QuickToolbar.prototype.showInlineQTBar = function (x, y, target) {
|
|
152
|
-
if (this.parent.readonly || target.tagName.toLowerCase() === 'img') {
|
|
152
|
+
if (isNOU(this.parent) || this.parent.readonly || target.tagName.toLowerCase() === 'img') {
|
|
153
153
|
return;
|
|
154
154
|
}
|
|
155
155
|
this.inlineQTBar.showPopup(x, y, target);
|
|
@@ -159,7 +159,7 @@ var QuickToolbar = /** @class */ (function () {
|
|
|
159
159
|
*
|
|
160
160
|
* @returns {void}
|
|
161
161
|
* @hidden
|
|
162
|
-
|
|
162
|
+
* @deprecated
|
|
163
163
|
*/
|
|
164
164
|
QuickToolbar.prototype.hideInlineQTBar = function () {
|
|
165
165
|
if (this.inlineQTBar && !hasClass(this.inlineQTBar.element, 'e-popup-close')) {
|
|
@@ -171,7 +171,7 @@ var QuickToolbar = /** @class */ (function () {
|
|
|
171
171
|
*
|
|
172
172
|
* @returns {void}
|
|
173
173
|
* @hidden
|
|
174
|
-
|
|
174
|
+
* @deprecated
|
|
175
175
|
*/
|
|
176
176
|
QuickToolbar.prototype.hideQuickToolbars = function () {
|
|
177
177
|
if (this.linkQTBar && !hasClass(this.linkQTBar.element, 'e-popup-close') && document.body.contains(this.linkQTBar.element)) {
|
|
@@ -310,7 +310,7 @@ var QuickToolbar = /** @class */ (function () {
|
|
|
310
310
|
*
|
|
311
311
|
* @returns {void}
|
|
312
312
|
* @hidden
|
|
313
|
-
|
|
313
|
+
* @deprecated
|
|
314
314
|
*/
|
|
315
315
|
QuickToolbar.prototype.getInlineBaseToolbar = function () {
|
|
316
316
|
return this.inlineQTBar && this.inlineQTBar.quickTBarObj;
|
|
@@ -321,7 +321,7 @@ var QuickToolbar = /** @class */ (function () {
|
|
|
321
321
|
* @function destroy
|
|
322
322
|
* @returns {void}
|
|
323
323
|
* @hidden
|
|
324
|
-
|
|
324
|
+
* @deprecated
|
|
325
325
|
*/
|
|
326
326
|
QuickToolbar.prototype.destroy = function () {
|
|
327
327
|
if (isNOU(this.parent)) {
|
|
@@ -411,7 +411,7 @@ var QuickToolbar = /** @class */ (function () {
|
|
|
411
411
|
*
|
|
412
412
|
* @returns {void}
|
|
413
413
|
* @hidden
|
|
414
|
-
|
|
414
|
+
* @deprecated
|
|
415
415
|
*/
|
|
416
416
|
QuickToolbar.prototype.addEventListener = function () {
|
|
417
417
|
if (this.parent.isDestroyed) {
|
|
@@ -496,7 +496,7 @@ var QuickToolbar = /** @class */ (function () {
|
|
|
496
496
|
*
|
|
497
497
|
* @returns {void}
|
|
498
498
|
* @hidden
|
|
499
|
-
|
|
499
|
+
* @deprecated
|
|
500
500
|
*/
|
|
501
501
|
QuickToolbar.prototype.removeEventListener = function () {
|
|
502
502
|
if (this.parent.isDestroyed) {
|
|
@@ -519,6 +519,9 @@ var QuickToolbar = /** @class */ (function () {
|
|
|
519
519
|
this.parent.off(events.rtlMode, this.setRtl);
|
|
520
520
|
this.parent.off(events.bindCssClass, this.setCssClass);
|
|
521
521
|
this.parent.off(events.hidePopup, this.hideQuickToolbars);
|
|
522
|
+
if (this.deBouncer) {
|
|
523
|
+
clearTimeout(this.deBouncer);
|
|
524
|
+
}
|
|
522
525
|
};
|
|
523
526
|
/**
|
|
524
527
|
* Called internally if any of the property value changed.
|
|
@@ -526,7 +529,7 @@ var QuickToolbar = /** @class */ (function () {
|
|
|
526
529
|
* @param {RichTextEditorModel} e - specifies the element.
|
|
527
530
|
* @returns {void}
|
|
528
531
|
* @hidden
|
|
529
|
-
|
|
532
|
+
* @deprecated
|
|
530
533
|
*/
|
|
531
534
|
QuickToolbar.prototype.onPropertyChanged = function (e) {
|
|
532
535
|
if (!isNullOrUndefined(e.newProp.quickToolbarSettings)) {
|
|
@@ -42,7 +42,7 @@ export declare class Toolbar {
|
|
|
42
42
|
*
|
|
43
43
|
* @returns {void}
|
|
44
44
|
* @hidden
|
|
45
|
-
|
|
45
|
+
* @deprecated
|
|
46
46
|
*/
|
|
47
47
|
addFixedTBarClass(): void;
|
|
48
48
|
/**
|
|
@@ -50,7 +50,7 @@ export declare class Toolbar {
|
|
|
50
50
|
*
|
|
51
51
|
* @returns {void}
|
|
52
52
|
* @hidden
|
|
53
|
-
|
|
53
|
+
* @deprecated
|
|
54
54
|
*/
|
|
55
55
|
removeFixedTBarClass(): void;
|
|
56
56
|
private showFixedTBar;
|
|
@@ -61,7 +61,7 @@ export declare class Toolbar {
|
|
|
61
61
|
* @param {IUpdateItemsModel} args - specifies the arguments.
|
|
62
62
|
* @returns {void}
|
|
63
63
|
* @hidden
|
|
64
|
-
|
|
64
|
+
* @deprecated
|
|
65
65
|
*/
|
|
66
66
|
updateItem(args: IUpdateItemsModel): void;
|
|
67
67
|
private updateToolbarStatus;
|
|
@@ -72,7 +72,7 @@ export declare class Toolbar {
|
|
|
72
72
|
*
|
|
73
73
|
* @returns {void}
|
|
74
74
|
* @hidden
|
|
75
|
-
|
|
75
|
+
* @deprecated
|
|
76
76
|
*/
|
|
77
77
|
getBaseToolbar(): BaseToolbar;
|
|
78
78
|
/**
|
|
@@ -82,7 +82,7 @@ export declare class Toolbar {
|
|
|
82
82
|
* @param {number} index - specifies the index value.
|
|
83
83
|
* @returns {void}
|
|
84
84
|
* @hidden
|
|
85
|
-
|
|
85
|
+
* @deprecated
|
|
86
86
|
*/
|
|
87
87
|
addTBarItem(args: IUpdateItemsModel, index: number): void;
|
|
88
88
|
/**
|
|
@@ -94,7 +94,7 @@ export declare class Toolbar {
|
|
|
94
94
|
* @param {boolean} muteToolbarUpdate - specifies the toolbar.
|
|
95
95
|
* @returns {void}
|
|
96
96
|
* @hidden
|
|
97
|
-
|
|
97
|
+
* @deprecated
|
|
98
98
|
*/
|
|
99
99
|
enableTBarItems(baseToolbar: BaseToolbar, items: string | string[], isEnable: boolean, muteToolbarUpdate?: boolean): void;
|
|
100
100
|
/**
|
|
@@ -103,7 +103,7 @@ export declare class Toolbar {
|
|
|
103
103
|
* @param {string} items - specifies the string value.
|
|
104
104
|
* @returns {void}
|
|
105
105
|
* @hidden
|
|
106
|
-
|
|
106
|
+
* @deprecated
|
|
107
107
|
*/
|
|
108
108
|
removeTBarItems(items: string | string[]): void;
|
|
109
109
|
/**
|
|
@@ -111,7 +111,7 @@ export declare class Toolbar {
|
|
|
111
111
|
*
|
|
112
112
|
* @returns {void}
|
|
113
113
|
* @hidden
|
|
114
|
-
|
|
114
|
+
* @deprecated
|
|
115
115
|
*/
|
|
116
116
|
getExpandTBarPopHeight(): number;
|
|
117
117
|
/**
|
|
@@ -119,7 +119,7 @@ export declare class Toolbar {
|
|
|
119
119
|
*
|
|
120
120
|
* @returns {void}
|
|
121
121
|
* @hidden
|
|
122
|
-
|
|
122
|
+
* @deprecated
|
|
123
123
|
*/
|
|
124
124
|
getToolbarHeight(): number;
|
|
125
125
|
/**
|
|
@@ -127,7 +127,7 @@ export declare class Toolbar {
|
|
|
127
127
|
*
|
|
128
128
|
* @returns {void}
|
|
129
129
|
* @hidden
|
|
130
|
-
|
|
130
|
+
* @deprecated
|
|
131
131
|
*/
|
|
132
132
|
getToolbarElement(): Element;
|
|
133
133
|
/**
|
|
@@ -135,7 +135,7 @@ export declare class Toolbar {
|
|
|
135
135
|
*
|
|
136
136
|
* @returns {void}
|
|
137
137
|
* @hidden
|
|
138
|
-
|
|
138
|
+
* @deprecated
|
|
139
139
|
*/
|
|
140
140
|
refreshToolbarOverflow(): void;
|
|
141
141
|
private isToolbarDestroyed;
|
|
@@ -146,7 +146,7 @@ export declare class Toolbar {
|
|
|
146
146
|
* @function destroy
|
|
147
147
|
* @returns {void}
|
|
148
148
|
* @hidden
|
|
149
|
-
|
|
149
|
+
* @deprecated
|
|
150
150
|
*/
|
|
151
151
|
destroy(): void;
|
|
152
152
|
private moduleDestroy;
|
|
@@ -156,7 +156,6 @@ export declare class Toolbar {
|
|
|
156
156
|
private focusChangeHandler;
|
|
157
157
|
private dropDownBeforeOpenHandler;
|
|
158
158
|
private tbFocusHandler;
|
|
159
|
-
private tbKeydownHandler;
|
|
160
159
|
private toolbarClickHandler;
|
|
161
160
|
protected wireEvents(): void;
|
|
162
161
|
protected unWireEvents(): void;
|
|
@@ -170,7 +169,7 @@ export declare class Toolbar {
|
|
|
170
169
|
* @param {RichTextEditorModel} e - specifies the string value
|
|
171
170
|
* @returns {void}
|
|
172
171
|
* @hidden
|
|
173
|
-
|
|
172
|
+
* @deprecated
|
|
174
173
|
*/
|
|
175
174
|
protected onPropertyChanged(e: {
|
|
176
175
|
[key: string]: RichTextEditorModel;
|