@syncfusion/ej2-richtexteditor 25.1.40 → 25.1.41-85815
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +259 -259
- package/CHANGELOG.md +2067 -1973
- 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 +760 -307
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +861 -405
- package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
- package/ej2-richtexteditor-component.sln +30 -0
- package/helpers/e2e/index.js +3 -3
- package/helpers/e2e/rte-helper.js +13 -13
- package/license +9 -9
- package/package.json +74 -74
- package/src/common/interface.d.ts +22 -8
- package/src/common/util.d.ts +8 -0
- package/src/common/util.js +56 -1
- package/src/editor-manager/base/classes.d.ts +1 -1
- package/src/editor-manager/base/classes.js +1 -1
- package/src/editor-manager/base/editor-manager.d.ts +3 -3
- package/src/editor-manager/base/editor-manager.js +8 -6
- package/src/editor-manager/base/enum.d.ts +2 -2
- package/src/editor-manager/base/interface.d.ts +9 -9
- package/src/editor-manager/base/types.d.ts +1 -1
- package/src/editor-manager/plugin/alignments.d.ts +2 -2
- package/src/editor-manager/plugin/alignments.js +5 -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 +54 -34
- package/src/editor-manager/plugin/dom-node.js +139 -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 +3 -3
- 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 +5 -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 +13 -4
- 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 +84 -61
- package/src/editor-manager/plugin/ms-word-clean-up.d.ts +1 -1
- package/src/editor-manager/plugin/ms-word-clean-up.js +4 -4
- package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
- package/src/editor-manager/plugin/nodecutter.js +8 -8
- package/src/editor-manager/plugin/selection-commands.d.ts +1 -1
- package/src/editor-manager/plugin/selection-commands.js +1 -1
- package/src/editor-manager/plugin/selection-exec.d.ts +2 -2
- package/src/editor-manager/plugin/selection-exec.js +2 -2
- package/src/editor-manager/plugin/table.d.ts +2 -2
- package/src/editor-manager/plugin/table.js +2 -2
- package/src/editor-manager/plugin/toolbar-status.d.ts +2 -2
- package/src/editor-manager/plugin/toolbar-status.js +2 -2
- package/src/editor-manager/plugin/undo.d.ts +6 -6
- package/src/editor-manager/plugin/undo.js +9 -7
- package/src/editor-manager/plugin/video.d.ts +3 -3
- package/src/editor-manager/plugin/video.js +3 -3
- package/src/markdown-parser/base/interface.d.ts +10 -10
- package/src/markdown-parser/base/markdown-parser.d.ts +3 -3
- package/src/markdown-parser/base/markdown-parser.js +3 -3
- package/src/markdown-parser/base/types.d.ts +1 -1
- package/src/markdown-parser/plugin/clearformat.d.ts +2 -2
- package/src/markdown-parser/plugin/clearformat.js +2 -2
- package/src/markdown-parser/plugin/formats.d.ts +2 -2
- package/src/markdown-parser/plugin/formats.js +2 -2
- package/src/markdown-parser/plugin/insert-text.d.ts +2 -2
- package/src/markdown-parser/plugin/insert-text.js +2 -2
- package/src/markdown-parser/plugin/link.d.ts +2 -2
- package/src/markdown-parser/plugin/link.js +2 -2
- package/src/markdown-parser/plugin/markdown-selection.d.ts +14 -14
- package/src/markdown-parser/plugin/markdown-selection.js +14 -14
- package/src/markdown-parser/plugin/md-selection-formats.d.ts +1 -1
- package/src/markdown-parser/plugin/md-selection-formats.js +1 -1
- package/src/markdown-parser/plugin/table.d.ts +3 -3
- package/src/markdown-parser/plugin/table.js +3 -3
- package/src/markdown-parser/plugin/undo.d.ts +6 -6
- package/src/markdown-parser/plugin/undo.js +6 -6
- package/src/rich-text-editor/actions/base-quick-toolbar.d.ts +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 +2 -2
- package/src/rich-text-editor/actions/enter-key.d.ts +5 -0
- package/src/rich-text-editor/actions/enter-key.js +107 -13
- package/src/rich-text-editor/actions/full-screen.d.ts +3 -3
- package/src/rich-text-editor/actions/full-screen.js +3 -9
- package/src/rich-text-editor/actions/html-editor.d.ts +5 -3
- package/src/rich-text-editor/actions/html-editor.js +106 -26
- 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 +2 -1
- package/src/rich-text-editor/actions/paste-clean-up.js +57 -16
- 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/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 +121 -121
- package/src/rich-text-editor/base/classes.js +121 -121
- 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 +5 -5
- package/src/rich-text-editor/base/enum.js +10 -10
- package/src/rich-text-editor/base/interface.d.ts +53 -53
- 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 +63 -61
- package/src/rich-text-editor/base/rich-text-editor.js +89 -67
- 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/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 +7 -2
- package/src/rich-text-editor/renderer/content-renderer.d.ts +6 -6
- package/src/rich-text-editor/renderer/content-renderer.js +6 -6
- package/src/rich-text-editor/renderer/dialog-renderer.d.ts +2 -2
- package/src/rich-text-editor/renderer/dialog-renderer.js +2 -2
- package/src/rich-text-editor/renderer/iframe-content-renderer.d.ts +4 -4
- package/src/rich-text-editor/renderer/iframe-content-renderer.js +18 -18
- package/src/rich-text-editor/renderer/image-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/image-module.js +13 -8
- package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/link-module.js +4 -1
- package/src/rich-text-editor/renderer/markdown-renderer.d.ts +6 -6
- package/src/rich-text-editor/renderer/markdown-renderer.js +6 -6
- package/src/rich-text-editor/renderer/popup-renderer.d.ts +5 -5
- package/src/rich-text-editor/renderer/popup-renderer.js +5 -5
- package/src/rich-text-editor/renderer/render.d.ts +2 -2
- package/src/rich-text-editor/renderer/render.js +2 -2
- package/src/rich-text-editor/renderer/table-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/table-module.js +6 -2
- package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +11 -9
- package/src/rich-text-editor/renderer/toolbar-renderer.js +23 -19
- package/src/rich-text-editor/renderer/video-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/video-module.js +7 -2
- 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 +1 -1
- package/styles/bootstrap-dark.css +739 -801
- package/styles/bootstrap-dark.scss +4 -1
- package/styles/bootstrap.css +723 -801
- package/styles/bootstrap.scss +4 -1
- package/styles/bootstrap4.css +726 -803
- package/styles/bootstrap4.scss +4 -1
- package/styles/bootstrap5-dark.css +750 -840
- package/styles/bootstrap5-dark.scss +4 -1
- package/styles/bootstrap5.css +749 -839
- package/styles/bootstrap5.scss +4 -1
- package/styles/fabric-dark.css +724 -797
- package/styles/fabric-dark.scss +4 -1
- package/styles/fabric.css +720 -797
- package/styles/fabric.scss +4 -1
- package/styles/fluent-dark.css +727 -820
- package/styles/fluent-dark.scss +4 -1
- package/styles/fluent.css +726 -819
- package/styles/fluent.scss +4 -1
- package/styles/fluent2.css +4255 -0
- package/styles/fluent2.scss +4 -0
- package/styles/highcontrast-light.css +695 -795
- package/styles/highcontrast-light.scss +4 -1
- package/styles/highcontrast.css +717 -797
- package/styles/highcontrast.scss +4 -1
- package/styles/material-dark.css +716 -798
- package/styles/material-dark.scss +4 -1
- package/styles/material.css +713 -800
- package/styles/material.scss +4 -1
- package/styles/material3-dark.css +751 -857
- package/styles/material3-dark.scss +4 -1
- package/styles/material3.css +751 -857
- package/styles/material3.scss +4 -1
- package/styles/rich-text-editor/_all.scss +2 -2
- package/styles/rich-text-editor/_bds-definition.scss +290 -285
- package/styles/rich-text-editor/_bigger.scss +610 -0
- package/styles/rich-text-editor/_bootstrap-dark-definition.scss +291 -287
- package/styles/rich-text-editor/_bootstrap-definition.scss +349 -343
- package/styles/rich-text-editor/_bootstrap4-definition.scss +476 -470
- package/styles/rich-text-editor/_bootstrap5-definition.scss +278 -272
- package/styles/rich-text-editor/_bootstrap5.3-definition.scss +278 -0
- package/styles/rich-text-editor/_fabric-dark-definition.scss +275 -269
- package/styles/rich-text-editor/_fabric-definition.scss +273 -267
- package/styles/rich-text-editor/_fluent-definition.scss +279 -273
- package/styles/rich-text-editor/_fluent2-definition.scss +287 -0
- package/styles/rich-text-editor/_fusionnew-definition.scss +276 -271
- package/styles/rich-text-editor/_highcontrast-definition.scss +274 -267
- package/styles/rich-text-editor/_highcontrast-light-definition.scss +273 -267
- package/styles/rich-text-editor/_layout.scss +2175 -2268
- package/styles/rich-text-editor/_material-dark-definition.scss +278 -272
- package/styles/rich-text-editor/_material-definition.scss +276 -270
- package/styles/rich-text-editor/_material3-definition.scss +278 -272
- package/styles/rich-text-editor/_tailwind-definition.scss +273 -267
- package/styles/rich-text-editor/_tailwind4-definition.scss +278 -0
- package/styles/rich-text-editor/_theme.scss +844 -927
- package/styles/rich-text-editor/bootstrap-dark.css +739 -801
- package/styles/rich-text-editor/bootstrap.css +723 -801
- package/styles/rich-text-editor/bootstrap4.css +726 -803
- package/styles/rich-text-editor/bootstrap5-dark.css +750 -840
- package/styles/rich-text-editor/bootstrap5.css +749 -839
- package/styles/rich-text-editor/fabric-dark.css +724 -797
- package/styles/rich-text-editor/fabric.css +720 -797
- package/styles/rich-text-editor/fluent-dark.css +727 -820
- package/styles/rich-text-editor/fluent.css +726 -819
- package/styles/rich-text-editor/fluent2.css +4255 -0
- package/styles/rich-text-editor/fluent2.scss +4 -0
- package/styles/rich-text-editor/highcontrast-light.css +695 -795
- package/styles/rich-text-editor/highcontrast.css +717 -797
- package/styles/rich-text-editor/icons/_bds.scss +372 -351
- package/styles/rich-text-editor/icons/_bootstrap-dark.scss +373 -352
- package/styles/rich-text-editor/icons/_bootstrap.scss +373 -352
- package/styles/rich-text-editor/icons/_bootstrap4.scss +373 -352
- package/styles/rich-text-editor/icons/_bootstrap5.3.scss +372 -0
- package/styles/rich-text-editor/icons/_bootstrap5.scss +372 -351
- package/styles/rich-text-editor/icons/_fabric-dark.scss +373 -352
- package/styles/rich-text-editor/icons/_fabric.scss +373 -352
- package/styles/rich-text-editor/icons/_fluent.scss +372 -351
- package/styles/rich-text-editor/icons/_fluent2.scss +369 -0
- package/styles/rich-text-editor/icons/_fusionnew.scss +357 -348
- package/styles/rich-text-editor/icons/_highcontrast-light.scss +361 -352
- package/styles/rich-text-editor/icons/_highcontrast.scss +373 -352
- package/styles/rich-text-editor/icons/_material-dark.scss +373 -352
- package/styles/rich-text-editor/icons/_material.scss +373 -352
- package/styles/rich-text-editor/icons/_material3.scss +372 -351
- package/styles/rich-text-editor/icons/_tailwind.scss +372 -351
- package/styles/rich-text-editor/icons/_tailwind4.scss +372 -0
- package/styles/rich-text-editor/material-dark.css +716 -798
- package/styles/rich-text-editor/material.css +713 -800
- package/styles/rich-text-editor/material3-dark.css +751 -857
- package/styles/rich-text-editor/material3-dark.scss +1 -1
- package/styles/rich-text-editor/material3.css +751 -857
- package/styles/rich-text-editor/material3.scss +1 -1
- package/styles/rich-text-editor/tailwind-dark.css +740 -829
- package/styles/rich-text-editor/tailwind.css +740 -829
- package/styles/tailwind-dark.css +740 -829
- package/styles/tailwind-dark.scss +4 -1
- package/styles/tailwind.css +740 -829
- package/styles/tailwind.scss +4 -1
- package/dist/ej2-richtexteditor.min.js +0 -10
- package/dist/global/ej2-richtexteditor.min.js +0 -11
- package/dist/global/ej2-richtexteditor.min.js.map +0 -1
- package/dist/global/index.d.ts +0 -14
- package/tslint.json +0 -111
|
@@ -1,33 +1,33 @@
|
|
|
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 __assign = (this && this.__assign) || function () {
|
|
15
|
-
__assign = Object.assign || function(t) {
|
|
16
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
17
|
-
s = arguments[i];
|
|
18
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
19
|
-
t[p] = s[p];
|
|
20
|
-
}
|
|
21
|
-
return t;
|
|
22
|
-
};
|
|
23
|
-
return __assign.apply(this, arguments);
|
|
24
|
-
};
|
|
25
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
26
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
27
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
28
|
-
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;
|
|
29
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
30
|
-
};
|
|
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 __assign = (this && this.__assign) || function () {
|
|
15
|
+
__assign = Object.assign || function(t) {
|
|
16
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
17
|
+
s = arguments[i];
|
|
18
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
19
|
+
t[p] = s[p];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
return __assign.apply(this, arguments);
|
|
24
|
+
};
|
|
25
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
26
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
27
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
28
|
+
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;
|
|
29
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
30
|
+
};
|
|
31
31
|
import { Component, EventHandler, Complex, Browser, addClass, detach } from '@syncfusion/ej2-base';
|
|
32
32
|
import { Property, NotifyPropertyChanges, formatUnit, L10n, closest } from '@syncfusion/ej2-base';
|
|
33
33
|
import { setStyleAttribute, Event, removeClass, print as printWindow, attributes } from '@syncfusion/ej2-base';
|
|
@@ -79,7 +79,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
79
79
|
*
|
|
80
80
|
* @returns {ModuleDeclaration[]} - specifies the declaration.
|
|
81
81
|
* @hidden
|
|
82
|
-
|
|
82
|
+
* @deprecated
|
|
83
83
|
*/
|
|
84
84
|
RichTextEditor.prototype.requiredModules = function () {
|
|
85
85
|
var modules = [];
|
|
@@ -162,7 +162,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
162
162
|
*
|
|
163
163
|
* @returns {void}
|
|
164
164
|
* @hidden
|
|
165
|
-
|
|
165
|
+
* @deprecated
|
|
166
166
|
*/
|
|
167
167
|
RichTextEditor.prototype.setEnable = function () {
|
|
168
168
|
this.updateEnable();
|
|
@@ -196,6 +196,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
196
196
|
this.persistData();
|
|
197
197
|
setStyleAttribute(this.element, { 'width': formatUnit(this.width) });
|
|
198
198
|
attributes(this.element, { role: 'application', 'aria-label': 'Rich Text Editor' });
|
|
199
|
+
this.beforeRenderClassValue = this.element.getAttribute('class');
|
|
199
200
|
};
|
|
200
201
|
RichTextEditor.prototype.persistData = function () {
|
|
201
202
|
if (this.enablePersistence && this.originalElement.tagName === 'TEXTAREA') {
|
|
@@ -260,7 +261,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
260
261
|
*
|
|
261
262
|
* @returns {void}
|
|
262
263
|
* @hidden
|
|
263
|
-
|
|
264
|
+
* @deprecated
|
|
264
265
|
*/
|
|
265
266
|
RichTextEditor.prototype.getPersistData = function () {
|
|
266
267
|
return this.addOnPersist(['value']);
|
|
@@ -548,7 +549,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
548
549
|
*
|
|
549
550
|
* @returns {void}
|
|
550
551
|
* @private
|
|
551
|
-
|
|
552
|
+
* @deprecated
|
|
552
553
|
*/
|
|
553
554
|
RichTextEditor.prototype.render = function () {
|
|
554
555
|
this.value = (!(this.editorMode === 'Markdown') && !isNOU(this.value)) ? this.addAnchorAriaLabel(this.value) : this.value;
|
|
@@ -586,7 +587,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
586
587
|
*
|
|
587
588
|
* @returns {void}
|
|
588
589
|
* @hidden
|
|
589
|
-
|
|
590
|
+
* @deprecated
|
|
590
591
|
*/
|
|
591
592
|
RichTextEditor.prototype.addAudioVideoWrapper = function () {
|
|
592
593
|
var _this = this;
|
|
@@ -648,7 +649,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
648
649
|
*
|
|
649
650
|
* @returns {void}
|
|
650
651
|
* @private
|
|
651
|
-
|
|
652
|
+
* @deprecated
|
|
652
653
|
* @hidden
|
|
653
654
|
*/
|
|
654
655
|
RichTextEditor.prototype.eventInitializer = function () {
|
|
@@ -699,7 +700,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
699
700
|
* @param {KeyboardEvent} e - specifies the event.
|
|
700
701
|
* @returns {void}
|
|
701
702
|
* @private
|
|
702
|
-
|
|
703
|
+
* @deprecated
|
|
703
704
|
* @hidden
|
|
704
705
|
*/
|
|
705
706
|
RichTextEditor.prototype.keyDown = function (e) {
|
|
@@ -858,7 +859,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
858
859
|
* @param {string} value - specifies the value.
|
|
859
860
|
* @returns {void}
|
|
860
861
|
* @hidden
|
|
861
|
-
|
|
862
|
+
* @deprecated
|
|
862
863
|
*/
|
|
863
864
|
RichTextEditor.prototype.serializeValue = function (value) {
|
|
864
865
|
if (this.editorMode === 'HTML' && !isNOU(value)) {
|
|
@@ -889,7 +890,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
889
890
|
* @param {string} value - specifies the string value.
|
|
890
891
|
* @returns {void}
|
|
891
892
|
* @hidden
|
|
892
|
-
|
|
893
|
+
* @deprecated
|
|
893
894
|
*/
|
|
894
895
|
RichTextEditor.prototype.updateValue = function (value) {
|
|
895
896
|
if (isNOU(value)) {
|
|
@@ -945,7 +946,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
945
946
|
* @param {Function} module - specifies the module function.
|
|
946
947
|
* @returns {void}
|
|
947
948
|
* @hidden
|
|
948
|
-
|
|
949
|
+
* @deprecated
|
|
949
950
|
*/
|
|
950
951
|
RichTextEditor.prototype.ensureModuleInjected = function (module) {
|
|
951
952
|
return this.getInjectedModules().indexOf(module) >= 0;
|
|
@@ -953,7 +954,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
953
954
|
/**
|
|
954
955
|
* @returns {void}
|
|
955
956
|
* @hidden
|
|
956
|
-
|
|
957
|
+
* @deprecated
|
|
957
958
|
*/
|
|
958
959
|
RichTextEditor.prototype.onCopy = function () {
|
|
959
960
|
this.contentModule.getDocument().execCommand('copy', false, null);
|
|
@@ -961,7 +962,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
961
962
|
/**
|
|
962
963
|
* @returns {void}
|
|
963
964
|
* @hidden
|
|
964
|
-
|
|
965
|
+
* @deprecated
|
|
965
966
|
*/
|
|
966
967
|
RichTextEditor.prototype.onCut = function () {
|
|
967
968
|
this.contentModule.getDocument().execCommand('cut', false, null);
|
|
@@ -970,7 +971,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
970
971
|
* @param {KeyboardEvent} e - specifies the keyboard event.
|
|
971
972
|
* @returns {void}
|
|
972
973
|
* @hidden
|
|
973
|
-
|
|
974
|
+
* @deprecated
|
|
974
975
|
*/
|
|
975
976
|
RichTextEditor.prototype.onPaste = function (e) {
|
|
976
977
|
var _this = this;
|
|
@@ -1034,7 +1035,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1034
1035
|
* @param {MouseEvent} event - specifies the event.
|
|
1035
1036
|
* @returns {void}
|
|
1036
1037
|
* @hidden
|
|
1037
|
-
|
|
1038
|
+
* @deprecated
|
|
1038
1039
|
*/
|
|
1039
1040
|
RichTextEditor.prototype.clipboardAction = function (action, event) {
|
|
1040
1041
|
switch (action.toLowerCase()) {
|
|
@@ -1068,10 +1069,21 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1068
1069
|
if (this.isDestroyed || !this.isRendered) {
|
|
1069
1070
|
return;
|
|
1070
1071
|
}
|
|
1072
|
+
this.element.className = this.beforeRenderClassValue;
|
|
1073
|
+
this.removeHtmlAttributes();
|
|
1074
|
+
this.removeAttributes();
|
|
1075
|
+
this.beforeRenderClassValue = null;
|
|
1071
1076
|
if (!isNOU(this.timeInterval)) {
|
|
1072
1077
|
clearInterval(this.timeInterval);
|
|
1073
1078
|
this.timeInterval = null;
|
|
1074
1079
|
}
|
|
1080
|
+
var tooltipElements = document.querySelectorAll('[data-rte-id="' + this.getID() + '"]');
|
|
1081
|
+
for (var i = 0; i < tooltipElements.length; i++) {
|
|
1082
|
+
var tooltipEle = tooltipElements[i];
|
|
1083
|
+
if (this.getID() === tooltipEle.getAttribute('data-rte-id')) {
|
|
1084
|
+
detach(tooltipEle);
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1075
1087
|
if (this.element.offsetParent === null) {
|
|
1076
1088
|
if (!isNOU(this.toolbarModule)) {
|
|
1077
1089
|
this.toolbarModule.destroy();
|
|
@@ -1128,8 +1140,6 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1128
1140
|
}
|
|
1129
1141
|
}
|
|
1130
1142
|
}
|
|
1131
|
-
this.removeHtmlAttributes();
|
|
1132
|
-
this.removeAttributes();
|
|
1133
1143
|
_super.prototype.destroy.call(this);
|
|
1134
1144
|
this.isRendered = false;
|
|
1135
1145
|
};
|
|
@@ -1160,6 +1170,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1160
1170
|
this.element.removeAttribute('aria-disabled');
|
|
1161
1171
|
this.element.removeAttribute('role');
|
|
1162
1172
|
this.element.removeAttribute('tabindex');
|
|
1173
|
+
this.element.removeAttribute('aria-label');
|
|
1163
1174
|
};
|
|
1164
1175
|
RichTextEditor.prototype.destroyDependentModules = function () {
|
|
1165
1176
|
/* destroy dependent modules */
|
|
@@ -1227,7 +1238,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1227
1238
|
*
|
|
1228
1239
|
* @returns {void}
|
|
1229
1240
|
* @private
|
|
1230
|
-
|
|
1241
|
+
* @deprecated
|
|
1231
1242
|
*/
|
|
1232
1243
|
RichTextEditor.prototype.getModuleName = function () {
|
|
1233
1244
|
return 'richtexteditor';
|
|
@@ -1239,7 +1250,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1239
1250
|
* @param {RichTextEditorModel} oldProp - specifies the old property.
|
|
1240
1251
|
* @returns {void}
|
|
1241
1252
|
* @hidden
|
|
1242
|
-
|
|
1253
|
+
* @deprecated
|
|
1243
1254
|
*/
|
|
1244
1255
|
/* eslint-disable */
|
|
1245
1256
|
RichTextEditor.prototype.onPropertyChanged = function (newProp, oldProp) {
|
|
@@ -1394,7 +1405,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1394
1405
|
/**
|
|
1395
1406
|
* @hidden
|
|
1396
1407
|
* @returns {void}
|
|
1397
|
-
|
|
1408
|
+
* @deprecated
|
|
1398
1409
|
*/
|
|
1399
1410
|
RichTextEditor.prototype.updateValueData = function () {
|
|
1400
1411
|
if (this.enableHtmlEncode) {
|
|
@@ -1414,7 +1425,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1414
1425
|
}
|
|
1415
1426
|
};
|
|
1416
1427
|
RichTextEditor.prototype.updatePanelValue = function () {
|
|
1417
|
-
var value = this.value;
|
|
1428
|
+
var value = this.listOrderCorrection(this.value);
|
|
1418
1429
|
value = (this.enableHtmlEncode && this.value) ? decode(value) : value;
|
|
1419
1430
|
var getTextArea = this.element.querySelector('.' + classes.CLS_RTE_SOURCE_CODE_TXTAREA);
|
|
1420
1431
|
if (value) {
|
|
@@ -1458,6 +1469,17 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1458
1469
|
this.countModule.refresh();
|
|
1459
1470
|
}
|
|
1460
1471
|
};
|
|
1472
|
+
RichTextEditor.prototype.listOrderCorrection = function (value) {
|
|
1473
|
+
var valueElementWrapper = this.createElement('div');
|
|
1474
|
+
valueElementWrapper.innerHTML = value;
|
|
1475
|
+
var listElements = valueElementWrapper.querySelectorAll('UL, OL');
|
|
1476
|
+
for (var i = 0; i < listElements.length; i++) {
|
|
1477
|
+
if (!isNOU(listElements[i]) && !isNOU(listElements[i].parentElement) && !isNOU(listElements[i].previousElementSibling) && (listElements[i].parentElement.nodeName === 'UL' || listElements[i].parentElement.nodeName === 'OL')) {
|
|
1478
|
+
listElements[i].previousElementSibling.appendChild(listElements[i]);
|
|
1479
|
+
}
|
|
1480
|
+
}
|
|
1481
|
+
return valueElementWrapper.innerHTML;
|
|
1482
|
+
};
|
|
1461
1483
|
RichTextEditor.prototype.setHeight = function (height) {
|
|
1462
1484
|
if (height !== 'auto') {
|
|
1463
1485
|
this.element.style.height = formatUnit(height);
|
|
@@ -1478,7 +1500,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1478
1500
|
*
|
|
1479
1501
|
* @returns {void}
|
|
1480
1502
|
* @hidden
|
|
1481
|
-
|
|
1503
|
+
* @deprecated
|
|
1482
1504
|
*/
|
|
1483
1505
|
RichTextEditor.prototype.setPlaceHolder = function () {
|
|
1484
1506
|
if (this.inputElement && this.placeholder && this.iframeSettings.enable !== true) {
|
|
@@ -1556,7 +1578,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1556
1578
|
* @param {boolean} initial - specifies the boolean value
|
|
1557
1579
|
* @returns {void}
|
|
1558
1580
|
* @hidden
|
|
1559
|
-
|
|
1581
|
+
* @deprecated
|
|
1560
1582
|
*/
|
|
1561
1583
|
RichTextEditor.prototype.setReadOnly = function (initial) {
|
|
1562
1584
|
this.updateReadOnly();
|
|
@@ -1657,7 +1679,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1657
1679
|
*
|
|
1658
1680
|
* @returns {void}
|
|
1659
1681
|
* @public
|
|
1660
|
-
|
|
1682
|
+
* @deprecated
|
|
1661
1683
|
*/
|
|
1662
1684
|
RichTextEditor.prototype.getRange = function () {
|
|
1663
1685
|
return this.formatter.editorManager.nodeSelection.getRange(this.contentModule.getDocument());
|
|
@@ -1802,7 +1824,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1802
1824
|
*
|
|
1803
1825
|
* @returns {void}
|
|
1804
1826
|
* @hidden
|
|
1805
|
-
|
|
1827
|
+
* @deprecated
|
|
1806
1828
|
*/
|
|
1807
1829
|
RichTextEditor.prototype.getInsertImgMaxWidth = function () {
|
|
1808
1830
|
var maxWidth = this.insertImageSettings.maxWidth;
|
|
@@ -1828,7 +1850,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1828
1850
|
*
|
|
1829
1851
|
* @returns {void}
|
|
1830
1852
|
* @hidden
|
|
1831
|
-
|
|
1853
|
+
* @deprecated
|
|
1832
1854
|
*/
|
|
1833
1855
|
RichTextEditor.prototype.getInsertVidMaxWidth = function () {
|
|
1834
1856
|
var maxWidth = this.insertVideoSettings.maxWidth;
|
|
@@ -1849,7 +1871,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1849
1871
|
* @param {boolean} isExpand - specifies the bollean value.
|
|
1850
1872
|
* @returns {void}
|
|
1851
1873
|
* @hidden
|
|
1852
|
-
|
|
1874
|
+
* @deprecated
|
|
1853
1875
|
*/
|
|
1854
1876
|
RichTextEditor.prototype.setContentHeight = function (target, isExpand) {
|
|
1855
1877
|
var heightValue;
|
|
@@ -2007,7 +2029,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2007
2029
|
/**
|
|
2008
2030
|
* @returns {void}
|
|
2009
2031
|
* @hidden
|
|
2010
|
-
|
|
2032
|
+
* @deprecated
|
|
2011
2033
|
*/
|
|
2012
2034
|
RichTextEditor.prototype.getBaseToolbarObject = function () {
|
|
2013
2035
|
var tbObj;
|
|
@@ -2022,7 +2044,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2022
2044
|
/**
|
|
2023
2045
|
* @returns {void}
|
|
2024
2046
|
* @hidden
|
|
2025
|
-
|
|
2047
|
+
* @deprecated
|
|
2026
2048
|
*/
|
|
2027
2049
|
RichTextEditor.prototype.getToolbar = function () {
|
|
2028
2050
|
return this.toolbarModule ? this.toolbarModule.getToolbarElement() : null;
|
|
@@ -2030,7 +2052,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2030
2052
|
/**
|
|
2031
2053
|
* @returns {void}
|
|
2032
2054
|
* @hidden
|
|
2033
|
-
|
|
2055
|
+
* @deprecated
|
|
2034
2056
|
*/
|
|
2035
2057
|
RichTextEditor.prototype.getToolbarElement = function () {
|
|
2036
2058
|
return this.toolbarModule && this.toolbarModule.getToolbarElement();
|
|
@@ -2040,7 +2062,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2040
2062
|
* getID method
|
|
2041
2063
|
*
|
|
2042
2064
|
* @hidden
|
|
2043
|
-
|
|
2065
|
+
* @deprecated
|
|
2044
2066
|
*/
|
|
2045
2067
|
RichTextEditor.prototype.getID = function () {
|
|
2046
2068
|
return (this.originalElement.tagName === 'TEXTAREA' ? this.valueContainer.id : this.element.id);
|
|
@@ -2050,7 +2072,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2050
2072
|
* getCssClass method
|
|
2051
2073
|
*
|
|
2052
2074
|
* @hidden
|
|
2053
|
-
|
|
2075
|
+
* @deprecated
|
|
2054
2076
|
*/
|
|
2055
2077
|
RichTextEditor.prototype.getCssClass = function (isSpace) {
|
|
2056
2078
|
return (isNOU(this.cssClass) ? '' : isSpace ? ' ' + this.cssClass : this.cssClass);
|
|
@@ -2074,7 +2096,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2074
2096
|
* @param {FocusEvent} e - specifies the event.
|
|
2075
2097
|
* @returns {void}
|
|
2076
2098
|
* @hidden
|
|
2077
|
-
|
|
2099
|
+
* @deprecated
|
|
2078
2100
|
*/
|
|
2079
2101
|
// eslint-disable-next-line
|
|
2080
2102
|
RichTextEditor.prototype.preventDefaultResize = function (e) {
|
|
@@ -2310,7 +2332,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2310
2332
|
*
|
|
2311
2333
|
* @returns {void}
|
|
2312
2334
|
* @hidden
|
|
2313
|
-
|
|
2335
|
+
* @deprecated
|
|
2314
2336
|
*/
|
|
2315
2337
|
RichTextEditor.prototype.contentChanged = function () {
|
|
2316
2338
|
if (this.autoSaveOnIdle) {
|
|
@@ -2325,7 +2347,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2325
2347
|
*
|
|
2326
2348
|
* @returns {void}
|
|
2327
2349
|
* @hidden
|
|
2328
|
-
|
|
2350
|
+
* @deprecated
|
|
2329
2351
|
*/
|
|
2330
2352
|
RichTextEditor.prototype.invokeChangeEvent = function () {
|
|
2331
2353
|
var currentValue;
|
|
@@ -2347,7 +2369,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2347
2369
|
/**
|
|
2348
2370
|
* @returns {void}
|
|
2349
2371
|
* @hidden
|
|
2350
|
-
|
|
2372
|
+
* @deprecated
|
|
2351
2373
|
*/
|
|
2352
2374
|
RichTextEditor.prototype.wireScrollElementsEvents = function () {
|
|
2353
2375
|
this.scrollParentElements = getScrollableParent(this.element);
|
|
@@ -2377,7 +2399,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2377
2399
|
/**
|
|
2378
2400
|
* @returns {void}
|
|
2379
2401
|
* @hidden
|
|
2380
|
-
|
|
2402
|
+
* @deprecated
|
|
2381
2403
|
*/
|
|
2382
2404
|
RichTextEditor.prototype.unWireScrollElementsEvents = function () {
|
|
2383
2405
|
this.scrollParentElements = getScrollableParent(this.element);
|
|
@@ -2409,7 +2431,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2409
2431
|
/**
|
|
2410
2432
|
* @returns {void}
|
|
2411
2433
|
* @hidden
|
|
2412
|
-
|
|
2434
|
+
* @deprecated
|
|
2413
2435
|
*/
|
|
2414
2436
|
RichTextEditor.prototype.autoResize = function () {
|
|
2415
2437
|
if (this.height === 'auto') {
|
|
@@ -88,7 +88,7 @@ export declare function updateUndoRedoStatus(baseToolbar: BaseToolbar, undoRedoS
|
|
|
88
88
|
* @param {string} type - specifies the string type.
|
|
89
89
|
* @returns {void}
|
|
90
90
|
* @hidden
|
|
91
|
-
|
|
91
|
+
* @deprecated
|
|
92
92
|
*/
|
|
93
93
|
export declare function dispatchEvent(element: Element | HTMLDocument, type: string): void;
|
|
94
94
|
/**
|
|
@@ -326,7 +326,7 @@ export function updateUndoRedoStatus(baseToolbar, undoRedoStatus) {
|
|
|
326
326
|
* @param {string} type - specifies the string type.
|
|
327
327
|
* @returns {void}
|
|
328
328
|
* @hidden
|
|
329
|
-
|
|
329
|
+
* @deprecated
|
|
330
330
|
*/
|
|
331
331
|
export function dispatchEvent(element, type) {
|
|
332
332
|
var evt = document.createEvent('HTMLEvents');
|
|
@@ -7,7 +7,7 @@ import { IHtmlUndoRedoData } from '../../editor-manager/base/interface';
|
|
|
7
7
|
* Formatter
|
|
8
8
|
*
|
|
9
9
|
* @hidden
|
|
10
|
-
|
|
10
|
+
* @deprecated
|
|
11
11
|
*/
|
|
12
12
|
export declare class Formatter {
|
|
13
13
|
editorManager: IEditorModel;
|
|
@@ -21,7 +21,7 @@ export declare class Formatter {
|
|
|
21
21
|
* @param {IItemCollectionArgs} value - specifies the collection arguments
|
|
22
22
|
* @returns {void}
|
|
23
23
|
* @hidden
|
|
24
|
-
|
|
24
|
+
* @deprecated
|
|
25
25
|
*/
|
|
26
26
|
process(self: IRichTextEditor, args: ActionBeginEventArgs, event: MouseEvent | KeyboardEvent, value: IItemCollectionArgs): void;
|
|
27
27
|
private getAncestorNode;
|
|
@@ -32,7 +32,7 @@ export declare class Formatter {
|
|
|
32
32
|
* @param {KeyboardEvent} e - specifies the keyboard event.
|
|
33
33
|
* @returns {void}
|
|
34
34
|
* @hidden
|
|
35
|
-
|
|
35
|
+
* @deprecated
|
|
36
36
|
*/
|
|
37
37
|
onKeyHandler(self: IRichTextEditor, e: KeyboardEvent): void;
|
|
38
38
|
/**
|
|
@@ -42,7 +42,7 @@ export declare class Formatter {
|
|
|
42
42
|
* @param {IMarkdownFormatterCallBack} events - specifies the event call back
|
|
43
43
|
* @returns {void}
|
|
44
44
|
* @hidden
|
|
45
|
-
|
|
45
|
+
* @deprecated
|
|
46
46
|
*/
|
|
47
47
|
onSuccess(self: IRichTextEditor, events: IMarkdownFormatterCallBack | IHtmlFormatterCallBack): void;
|
|
48
48
|
/**
|
|
@@ -51,7 +51,7 @@ export declare class Formatter {
|
|
|
51
51
|
* @param {KeyboardEvent} e - specifies the keyboard event.
|
|
52
52
|
* @returns {void}
|
|
53
53
|
* @hidden
|
|
54
|
-
|
|
54
|
+
* @deprecated
|
|
55
55
|
*/
|
|
56
56
|
saveData(e?: KeyboardEvent | MouseEvent | IUndoCallBack): void;
|
|
57
57
|
/**
|
|
@@ -59,7 +59,7 @@ export declare class Formatter {
|
|
|
59
59
|
*
|
|
60
60
|
* @returns {void}
|
|
61
61
|
* @hidden
|
|
62
|
-
|
|
62
|
+
* @deprecated
|
|
63
63
|
*/
|
|
64
64
|
getUndoStatus(): {
|
|
65
65
|
[key: string]: boolean;
|
|
@@ -70,7 +70,7 @@ export declare class Formatter {
|
|
|
70
70
|
* @param {IHtmlUndoRedoData} - specifies the redo data.
|
|
71
71
|
* @returns {void}
|
|
72
72
|
* @hidden
|
|
73
|
-
|
|
73
|
+
* @deprecated
|
|
74
74
|
*/
|
|
75
75
|
getUndoRedoStack(): IHtmlUndoRedoData[] | MarkdownUndoRedoData[];
|
|
76
76
|
/**
|
|
@@ -79,7 +79,7 @@ export declare class Formatter {
|
|
|
79
79
|
* @param {IRichTextEditor} self - specifies the self element.
|
|
80
80
|
* @returns {void}
|
|
81
81
|
* @hidden
|
|
82
|
-
|
|
82
|
+
* @deprecated
|
|
83
83
|
*/
|
|
84
84
|
enableUndo(self: IRichTextEditor): void;
|
|
85
85
|
}
|
|
@@ -6,7 +6,7 @@ import { KEY_DOWN, KEY_UP } from './../../common/constant';
|
|
|
6
6
|
* Formatter
|
|
7
7
|
*
|
|
8
8
|
* @hidden
|
|
9
|
-
|
|
9
|
+
* @deprecated
|
|
10
10
|
*/
|
|
11
11
|
var Formatter = /** @class */ (function () {
|
|
12
12
|
function Formatter() {
|
|
@@ -20,7 +20,7 @@ var Formatter = /** @class */ (function () {
|
|
|
20
20
|
* @param {IItemCollectionArgs} value - specifies the collection arguments
|
|
21
21
|
* @returns {void}
|
|
22
22
|
* @hidden
|
|
23
|
-
|
|
23
|
+
* @deprecated
|
|
24
24
|
*/
|
|
25
25
|
Formatter.prototype.process = function (self, args, event, value) {
|
|
26
26
|
var _this = this;
|
|
@@ -169,7 +169,7 @@ var Formatter = /** @class */ (function () {
|
|
|
169
169
|
* @param {KeyboardEvent} e - specifies the keyboard event.
|
|
170
170
|
* @returns {void}
|
|
171
171
|
* @hidden
|
|
172
|
-
|
|
172
|
+
* @deprecated
|
|
173
173
|
*/
|
|
174
174
|
Formatter.prototype.onKeyHandler = function (self, e) {
|
|
175
175
|
var _this = this;
|
|
@@ -188,7 +188,7 @@ var Formatter = /** @class */ (function () {
|
|
|
188
188
|
* @param {IMarkdownFormatterCallBack} events - specifies the event call back
|
|
189
189
|
* @returns {void}
|
|
190
190
|
* @hidden
|
|
191
|
-
|
|
191
|
+
* @deprecated
|
|
192
192
|
*/
|
|
193
193
|
Formatter.prototype.onSuccess = function (self, events) {
|
|
194
194
|
self.notify(CONSTANT.contentChanged, {});
|
|
@@ -222,7 +222,7 @@ var Formatter = /** @class */ (function () {
|
|
|
222
222
|
* @param {KeyboardEvent} e - specifies the keyboard event.
|
|
223
223
|
* @returns {void}
|
|
224
224
|
* @hidden
|
|
225
|
-
|
|
225
|
+
* @deprecated
|
|
226
226
|
*/
|
|
227
227
|
Formatter.prototype.saveData = function (e) {
|
|
228
228
|
this.editorManager.undoRedoManager.saveData(e);
|
|
@@ -232,7 +232,7 @@ var Formatter = /** @class */ (function () {
|
|
|
232
232
|
*
|
|
233
233
|
* @returns {void}
|
|
234
234
|
* @hidden
|
|
235
|
-
|
|
235
|
+
* @deprecated
|
|
236
236
|
*/
|
|
237
237
|
Formatter.prototype.getUndoStatus = function () {
|
|
238
238
|
return this.editorManager.undoRedoManager.getUndoStatus();
|
|
@@ -244,7 +244,7 @@ var Formatter = /** @class */ (function () {
|
|
|
244
244
|
* @param {IHtmlUndoRedoData} - specifies the redo data.
|
|
245
245
|
* @returns {void}
|
|
246
246
|
* @hidden
|
|
247
|
-
|
|
247
|
+
* @deprecated
|
|
248
248
|
*/
|
|
249
249
|
/* eslint-enable */
|
|
250
250
|
Formatter.prototype.getUndoRedoStack = function () {
|
|
@@ -256,7 +256,7 @@ var Formatter = /** @class */ (function () {
|
|
|
256
256
|
* @param {IRichTextEditor} self - specifies the self element.
|
|
257
257
|
* @returns {void}
|
|
258
258
|
* @hidden
|
|
259
|
-
|
|
259
|
+
* @deprecated
|
|
260
260
|
*/
|
|
261
261
|
Formatter.prototype.enableUndo = function (self) {
|
|
262
262
|
var status = this.getUndoStatus();
|
|
@@ -5,7 +5,7 @@ import { FormatPainterSettingsModel } from '../models';
|
|
|
5
5
|
* HTML adapter
|
|
6
6
|
*
|
|
7
7
|
* @hidden
|
|
8
|
-
|
|
8
|
+
* @deprecated
|
|
9
9
|
*/
|
|
10
10
|
export declare class HTMLFormatter extends Formatter {
|
|
11
11
|
keyConfig: {
|
|
@@ -26,7 +26,7 @@ export declare class HTMLFormatter extends Formatter {
|
|
|
26
26
|
* @param {FormatPainterSettingsModel} formatPainterSettings - specifies the format painter settings
|
|
27
27
|
* @returns {void}
|
|
28
28
|
* @hidden
|
|
29
|
-
|
|
29
|
+
* @deprecated
|
|
30
30
|
*/
|
|
31
31
|
updateFormatter(editElement: Element, doc?: Document, options?: {
|
|
32
32
|
[key: string]: number;
|
|
@@ -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 { Formatter } from './formatter';
|
|
15
15
|
import { EditorManager } from './../../editor-manager/base/editor-manager';
|
|
16
16
|
import { extend } from '@syncfusion/ej2-base';
|
|
@@ -19,7 +19,7 @@ import { htmlKeyConfig } from './../../common/config';
|
|
|
19
19
|
* HTML adapter
|
|
20
20
|
*
|
|
21
21
|
* @hidden
|
|
22
|
-
|
|
22
|
+
* @deprecated
|
|
23
23
|
*/
|
|
24
24
|
var HTMLFormatter = /** @class */ (function (_super) {
|
|
25
25
|
__extends(HTMLFormatter, _super);
|
|
@@ -44,7 +44,7 @@ var HTMLFormatter = /** @class */ (function (_super) {
|
|
|
44
44
|
* @param {FormatPainterSettingsModel} formatPainterSettings - specifies the format painter settings
|
|
45
45
|
* @returns {void}
|
|
46
46
|
* @hidden
|
|
47
|
-
|
|
47
|
+
* @deprecated
|
|
48
48
|
*/
|
|
49
49
|
HTMLFormatter.prototype.updateFormatter = function (editElement, doc, options, formatPainterSettings) {
|
|
50
50
|
if (editElement && doc) {
|
|
@@ -4,7 +4,7 @@ import { IEditorModel, IMarkdownFormatterModel } from './../base/interface';
|
|
|
4
4
|
* Markdown adapter
|
|
5
5
|
*
|
|
6
6
|
* @hidden
|
|
7
|
-
|
|
7
|
+
* @deprecated
|
|
8
8
|
*/
|
|
9
9
|
export declare class MarkdownFormatter extends Formatter {
|
|
10
10
|
keyConfig: {
|
|
@@ -31,7 +31,7 @@ export declare class MarkdownFormatter extends Formatter {
|
|
|
31
31
|
* @param {number} options - specifies the options
|
|
32
32
|
* @returns {void}
|
|
33
33
|
* @hidden
|
|
34
|
-
|
|
34
|
+
* @deprecated
|
|
35
35
|
*/
|
|
36
36
|
updateFormatter(editElement: Element, doc?: Document, options?: {
|
|
37
37
|
[key: string]: number;
|