@syncfusion/ej2-richtexteditor 19.3.47 → 19.3.53-6125
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1019 -997
- package/README.md +67 -67
- package/dist/ej2-richtexteditor.umd.min.js +1 -10
- package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es2015.js +167 -130
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +276 -239
- package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
- package/helpers/e2e/index.js +3 -3
- package/license +9 -9
- package/package.json +75 -75
- 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/interface.d.ts +7 -7
- package/src/editor-manager/base/types.d.ts +1 -1
- package/src/editor-manager/plugin/alignments.d.ts +2 -2
- package/src/editor-manager/plugin/alignments.js +2 -2
- package/src/editor-manager/plugin/clearformat-exec.d.ts +2 -2
- package/src/editor-manager/plugin/clearformat-exec.js +2 -2
- package/src/editor-manager/plugin/clearformat.d.ts +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/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 +13 -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 +2 -2
- package/src/editor-manager/plugin/lists.d.ts +2 -2
- package/src/editor-manager/plugin/lists.js +2 -2
- package/src/editor-manager/plugin/ms-word-clean-up.d.ts +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 +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/markdown-parser/base/interface.d.ts +10 -10
- package/src/markdown-parser/base/markdown-parser.d.ts +3 -3
- package/src/markdown-parser/base/markdown-parser.js +3 -3
- package/src/markdown-parser/base/types.d.ts +1 -1
- package/src/markdown-parser/plugin/clearformat.d.ts +2 -2
- package/src/markdown-parser/plugin/clearformat.js +2 -2
- package/src/markdown-parser/plugin/formats.d.ts +2 -2
- package/src/markdown-parser/plugin/formats.js +2 -2
- package/src/markdown-parser/plugin/link.d.ts +2 -2
- package/src/markdown-parser/plugin/link.js +2 -2
- package/src/markdown-parser/plugin/markdown-selection.d.ts +14 -14
- package/src/markdown-parser/plugin/markdown-selection.js +14 -14
- package/src/markdown-parser/plugin/md-selection-formats.d.ts +1 -1
- package/src/markdown-parser/plugin/md-selection-formats.js +1 -1
- package/src/markdown-parser/plugin/table.d.ts +3 -3
- package/src/markdown-parser/plugin/table.js +3 -3
- package/src/markdown-parser/plugin/undo.d.ts +6 -6
- package/src/markdown-parser/plugin/undo.js +6 -6
- package/src/rich-text-editor/actions/base-quick-toolbar.d.ts +9 -9
- package/src/rich-text-editor/actions/base-quick-toolbar.js +9 -9
- package/src/rich-text-editor/actions/base-toolbar.d.ts +3 -3
- package/src/rich-text-editor/actions/base-toolbar.js +3 -3
- package/src/rich-text-editor/actions/color-picker.d.ts +2 -2
- package/src/rich-text-editor/actions/color-picker.js +2 -2
- package/src/rich-text-editor/actions/count.d.ts +3 -3
- package/src/rich-text-editor/actions/count.js +3 -3
- package/src/rich-text-editor/actions/dropdown-buttons.d.ts +2 -2
- package/src/rich-text-editor/actions/dropdown-buttons.js +12 -2
- package/src/rich-text-editor/actions/enter-key.js +1 -0
- 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 +3 -3
- package/src/rich-text-editor/actions/keyboard-model.d.ts +16 -16
- package/src/rich-text-editor/actions/keyboard.d.ts +1 -1
- package/src/rich-text-editor/actions/keyboard.js +20 -20
- package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
- package/src/rich-text-editor/actions/markdown-editor.js +2 -2
- package/src/rich-text-editor/actions/paste-clean-up.d.ts +1 -1
- package/src/rich-text-editor/actions/paste-clean-up.js +1 -1
- package/src/rich-text-editor/actions/quick-toolbar.d.ts +10 -9
- package/src/rich-text-editor/actions/quick-toolbar.js +24 -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 +107 -107
- package/src/rich-text-editor/base/classes.js +107 -107
- package/src/rich-text-editor/base/constant.d.ts +120 -120
- package/src/rich-text-editor/base/constant.js +120 -120
- package/src/rich-text-editor/base/enum.d.ts +1 -1
- package/src/rich-text-editor/base/enum.js +1 -1
- package/src/rich-text-editor/base/interface.d.ts +47 -45
- package/src/rich-text-editor/base/interface.js +1 -1
- package/src/rich-text-editor/base/rich-text-editor-model.d.ts +851 -851
- package/src/rich-text-editor/base/rich-text-editor.d.ts +53 -53
- package/src/rich-text-editor/base/rich-text-editor.js +65 -66
- package/src/rich-text-editor/base/util.d.ts +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 +11 -11
- package/src/rich-text-editor/formatter/html-formatter.d.ts +2 -2
- package/src/rich-text-editor/formatter/html-formatter.js +15 -15
- package/src/rich-text-editor/formatter/markdown-formatter.d.ts +2 -2
- package/src/rich-text-editor/formatter/markdown-formatter.js +15 -15
- package/src/rich-text-editor/models/iframe-settings-model.d.ts +26 -26
- package/src/rich-text-editor/models/iframe-settings.js +19 -19
- package/src/rich-text-editor/models/inline-mode-model.d.ts +11 -11
- package/src/rich-text-editor/models/inline-mode.js +19 -19
- package/src/rich-text-editor/models/toolbar-settings-model.d.ts +439 -439
- package/src/rich-text-editor/models/toolbar-settings.d.ts +1 -1
- package/src/rich-text-editor/models/toolbar-settings.js +19 -19
- package/src/rich-text-editor/renderer/content-renderer.d.ts +6 -6
- package/src/rich-text-editor/renderer/content-renderer.js +6 -6
- package/src/rich-text-editor/renderer/dialog-renderer.d.ts +2 -2
- package/src/rich-text-editor/renderer/dialog-renderer.js +2 -2
- package/src/rich-text-editor/renderer/iframe-content-renderer.d.ts +4 -4
- package/src/rich-text-editor/renderer/iframe-content-renderer.js +17 -17
- package/src/rich-text-editor/renderer/image-module.d.ts +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 +1 -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 +1 -1
- package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +9 -9
- package/src/rich-text-editor/renderer/toolbar-renderer.js +12 -11
- 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 +24 -23
- package/styles/_all.scss +2 -2
- package/styles/bootstrap-dark.css +4 -0
- package/styles/bootstrap.css +4 -0
- package/styles/bootstrap4.css +4 -0
- package/styles/bootstrap5-dark.css +4 -0
- package/styles/bootstrap5.css +4 -0
- package/styles/fabric-dark.css +4 -0
- package/styles/fabric.css +4 -0
- package/styles/highcontrast-light.css +4 -0
- package/styles/highcontrast.css +4 -0
- package/styles/material-dark.css +4 -0
- package/styles/material.css +4 -0
- package/styles/rich-text-editor/_all.scss +2 -2
- package/styles/rich-text-editor/_bootstrap-dark-definition.scss +187 -187
- package/styles/rich-text-editor/_bootstrap-definition.scss +244 -244
- package/styles/rich-text-editor/_bootstrap4-definition.scss +370 -370
- package/styles/rich-text-editor/_bootstrap5-definition.scss +168 -168
- package/styles/rich-text-editor/_fabric-dark-definition.scss +168 -168
- package/styles/rich-text-editor/_fabric-definition.scss +167 -167
- package/styles/rich-text-editor/_highcontrast-definition.scss +167 -167
- package/styles/rich-text-editor/_highcontrast-light-definition.scss +167 -167
- package/styles/rich-text-editor/_layout.scss +1639 -1635
- package/styles/rich-text-editor/_material-dark-definition.scss +172 -172
- package/styles/rich-text-editor/_material-definition.scss +169 -169
- package/styles/rich-text-editor/_tailwind-definition.scss +167 -167
- package/styles/rich-text-editor/_theme.scss +626 -626
- package/styles/rich-text-editor/bootstrap-dark.css +4 -0
- package/styles/rich-text-editor/bootstrap.css +4 -0
- package/styles/rich-text-editor/bootstrap4.css +4 -0
- package/styles/rich-text-editor/bootstrap5-dark.css +4 -0
- package/styles/rich-text-editor/bootstrap5.css +4 -0
- package/styles/rich-text-editor/fabric-dark.css +4 -0
- package/styles/rich-text-editor/fabric.css +4 -0
- package/styles/rich-text-editor/highcontrast-light.css +4 -0
- package/styles/rich-text-editor/highcontrast.css +4 -0
- package/styles/rich-text-editor/icons/_bootstrap-dark.scss +304 -304
- package/styles/rich-text-editor/icons/_bootstrap.scss +304 -304
- package/styles/rich-text-editor/icons/_bootstrap4.scss +304 -304
- package/styles/rich-text-editor/icons/_bootstrap5.scss +303 -303
- package/styles/rich-text-editor/icons/_fabric-dark.scss +304 -304
- package/styles/rich-text-editor/icons/_fabric.scss +304 -304
- package/styles/rich-text-editor/icons/_highcontrast-light.scss +304 -304
- package/styles/rich-text-editor/icons/_highcontrast.scss +304 -304
- package/styles/rich-text-editor/icons/_material-dark.scss +304 -304
- package/styles/rich-text-editor/icons/_material.scss +304 -304
- package/styles/rich-text-editor/icons/_tailwind.scss +304 -304
- package/styles/rich-text-editor/material-dark.css +4 -0
- package/styles/rich-text-editor/material.css +4 -0
- package/styles/rich-text-editor/tailwind-dark.css +4 -0
- package/styles/rich-text-editor/tailwind.css +4 -0
- package/styles/tailwind-dark.css +4 -0
- package/styles/tailwind.css +4 -0
- package/.eslintrc.json +0 -244
- package/dist/global/ej2-richtexteditor.min.js +0 -11
- package/dist/global/ej2-richtexteditor.min.js.map +0 -1
- package/dist/global/index.d.ts +0 -14
- package/tslint.json +0 -111
|
@@ -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, select, 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';
|
|
@@ -75,17 +75,17 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
75
75
|
_this.isResizeInitialized = false;
|
|
76
76
|
/**
|
|
77
77
|
* @hidden
|
|
78
|
-
|
|
78
|
+
* @deprecated
|
|
79
79
|
*/
|
|
80
80
|
_this.isFocusOut = false;
|
|
81
81
|
/**
|
|
82
82
|
* @hidden
|
|
83
|
-
|
|
83
|
+
* @deprecated
|
|
84
84
|
*/
|
|
85
85
|
_this.isRTE = false;
|
|
86
86
|
/**
|
|
87
87
|
* @hidden
|
|
88
|
-
|
|
88
|
+
* @deprecated
|
|
89
89
|
*/
|
|
90
90
|
_this.isBlur = true;
|
|
91
91
|
_this.needsID = true;
|
|
@@ -96,7 +96,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
96
96
|
*
|
|
97
97
|
* @returns {ModuleDeclaration[]} - specifies the declaration.
|
|
98
98
|
* @hidden
|
|
99
|
-
|
|
99
|
+
* @deprecated
|
|
100
100
|
*/
|
|
101
101
|
RichTextEditor.prototype.requiredModules = function () {
|
|
102
102
|
var modules = [];
|
|
@@ -163,7 +163,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
163
163
|
*
|
|
164
164
|
* @returns {void}
|
|
165
165
|
* @hidden
|
|
166
|
-
|
|
166
|
+
* @deprecated
|
|
167
167
|
*/
|
|
168
168
|
RichTextEditor.prototype.setEnable = function () {
|
|
169
169
|
this.updateEnable();
|
|
@@ -246,7 +246,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
246
246
|
*
|
|
247
247
|
* @returns {void}
|
|
248
248
|
* @hidden
|
|
249
|
-
|
|
249
|
+
* @deprecated
|
|
250
250
|
*/
|
|
251
251
|
RichTextEditor.prototype.getPersistData = function () {
|
|
252
252
|
return this.addOnPersist(['value']);
|
|
@@ -423,7 +423,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
423
423
|
*
|
|
424
424
|
* @returns {void}
|
|
425
425
|
* @private
|
|
426
|
-
|
|
426
|
+
* @deprecated
|
|
427
427
|
*/
|
|
428
428
|
RichTextEditor.prototype.render = function () {
|
|
429
429
|
if (this.value && !this.valueTemplate) {
|
|
@@ -457,7 +457,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
457
457
|
*
|
|
458
458
|
* @returns {void}
|
|
459
459
|
* @private
|
|
460
|
-
|
|
460
|
+
* @deprecated
|
|
461
461
|
* @hidden
|
|
462
462
|
*/
|
|
463
463
|
RichTextEditor.prototype.eventInitializer = function () {
|
|
@@ -469,7 +469,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
469
469
|
* @param {KeyboardEvent} e - specifies the event.
|
|
470
470
|
* @returns {void}
|
|
471
471
|
* @private
|
|
472
|
-
|
|
472
|
+
* @deprecated
|
|
473
473
|
* @hidden
|
|
474
474
|
*/
|
|
475
475
|
RichTextEditor.prototype.keyDown = function (e) {
|
|
@@ -571,7 +571,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
571
571
|
* @param {string} value - specifies the value.
|
|
572
572
|
* @returns {void}
|
|
573
573
|
* @hidden
|
|
574
|
-
|
|
574
|
+
* @deprecated
|
|
575
575
|
*/
|
|
576
576
|
RichTextEditor.prototype.serializeValue = function (value) {
|
|
577
577
|
if (this.editorMode === 'HTML' && !isNOU(value)) {
|
|
@@ -601,7 +601,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
601
601
|
* @param {string} value - specifies the string value.
|
|
602
602
|
* @returns {void}
|
|
603
603
|
* @hidden
|
|
604
|
-
|
|
604
|
+
* @deprecated
|
|
605
605
|
*/
|
|
606
606
|
RichTextEditor.prototype.updateValue = function (value) {
|
|
607
607
|
if (isNOU(value)) {
|
|
@@ -663,7 +663,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
663
663
|
* @param {Function} module - specifies the module function.
|
|
664
664
|
* @returns {void}
|
|
665
665
|
* @hidden
|
|
666
|
-
|
|
666
|
+
* @deprecated
|
|
667
667
|
*/
|
|
668
668
|
RichTextEditor.prototype.ensureModuleInjected = function (module) {
|
|
669
669
|
return this.getInjectedModules().indexOf(module) >= 0;
|
|
@@ -671,7 +671,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
671
671
|
/**
|
|
672
672
|
* @returns {void}
|
|
673
673
|
* @hidden
|
|
674
|
-
|
|
674
|
+
* @deprecated
|
|
675
675
|
*/
|
|
676
676
|
RichTextEditor.prototype.onCopy = function () {
|
|
677
677
|
this.contentModule.getDocument().execCommand('copy', false, null);
|
|
@@ -679,7 +679,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
679
679
|
/**
|
|
680
680
|
* @returns {void}
|
|
681
681
|
* @hidden
|
|
682
|
-
|
|
682
|
+
* @deprecated
|
|
683
683
|
*/
|
|
684
684
|
RichTextEditor.prototype.onCut = function () {
|
|
685
685
|
this.contentModule.getDocument().execCommand('cut', false, null);
|
|
@@ -688,7 +688,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
688
688
|
* @param {KeyboardEvent} e - specifies the keyboard event.
|
|
689
689
|
* @returns {void}
|
|
690
690
|
* @hidden
|
|
691
|
-
|
|
691
|
+
* @deprecated
|
|
692
692
|
*/
|
|
693
693
|
RichTextEditor.prototype.onPaste = function (e) {
|
|
694
694
|
var _this = this;
|
|
@@ -747,7 +747,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
747
747
|
* @param {MouseEvent} event - specifies the event.
|
|
748
748
|
* @returns {void}
|
|
749
749
|
* @hidden
|
|
750
|
-
|
|
750
|
+
* @deprecated
|
|
751
751
|
*/
|
|
752
752
|
RichTextEditor.prototype.clipboardAction = function (action, event) {
|
|
753
753
|
switch (action.toLowerCase()) {
|
|
@@ -932,7 +932,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
932
932
|
*
|
|
933
933
|
* @returns {void}
|
|
934
934
|
* @private
|
|
935
|
-
|
|
935
|
+
* @deprecated
|
|
936
936
|
*/
|
|
937
937
|
RichTextEditor.prototype.getModuleName = function () {
|
|
938
938
|
return 'richtexteditor';
|
|
@@ -944,7 +944,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
944
944
|
* @param {RichTextEditorModel} oldProp - specifies the old property.
|
|
945
945
|
* @returns {void}
|
|
946
946
|
* @hidden
|
|
947
|
-
|
|
947
|
+
* @deprecated
|
|
948
948
|
*/
|
|
949
949
|
RichTextEditor.prototype.onPropertyChanged = function (newProp, oldProp) {
|
|
950
950
|
for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {
|
|
@@ -1089,7 +1089,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1089
1089
|
/**
|
|
1090
1090
|
* @hidden
|
|
1091
1091
|
* @returns {void}
|
|
1092
|
-
|
|
1092
|
+
* @deprecated
|
|
1093
1093
|
*/
|
|
1094
1094
|
RichTextEditor.prototype.updateValueData = function () {
|
|
1095
1095
|
if (this.enableHtmlEncode) {
|
|
@@ -1176,7 +1176,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1176
1176
|
*
|
|
1177
1177
|
* @returns {void}
|
|
1178
1178
|
* @hidden
|
|
1179
|
-
|
|
1179
|
+
* @deprecated
|
|
1180
1180
|
*/
|
|
1181
1181
|
RichTextEditor.prototype.setPlaceHolder = function () {
|
|
1182
1182
|
if (this.inputElement && this.placeholder && this.iframeSettings.enable !== true) {
|
|
@@ -1241,7 +1241,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1241
1241
|
* @param {boolean} initial - specifies the boolean value
|
|
1242
1242
|
* @returns {void}
|
|
1243
1243
|
* @hidden
|
|
1244
|
-
|
|
1244
|
+
* @deprecated
|
|
1245
1245
|
*/
|
|
1246
1246
|
RichTextEditor.prototype.setReadOnly = function (initial) {
|
|
1247
1247
|
this.updateReadOnly();
|
|
@@ -1341,7 +1341,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1341
1341
|
*
|
|
1342
1342
|
* @returns {void}
|
|
1343
1343
|
* @public
|
|
1344
|
-
|
|
1344
|
+
* @deprecated
|
|
1345
1345
|
*/
|
|
1346
1346
|
RichTextEditor.prototype.getRange = function () {
|
|
1347
1347
|
return this.formatter.editorManager.nodeSelection.getRange(this.contentModule.getDocument());
|
|
@@ -1431,8 +1431,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1431
1431
|
this.setProperties({ value: this.valueTemplate });
|
|
1432
1432
|
}
|
|
1433
1433
|
else {
|
|
1434
|
-
var
|
|
1435
|
-
var compiledTemplate = compiledString({});
|
|
1434
|
+
var compiledTemplate = compile(this.valueTemplate)('', this, 'valueTemplate');
|
|
1436
1435
|
for (var i = 0; i < compiledTemplate.length; i++) {
|
|
1437
1436
|
var item = compiledTemplate[i];
|
|
1438
1437
|
append([item], this.element);
|
|
@@ -1461,7 +1460,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1461
1460
|
*
|
|
1462
1461
|
* @returns {void}
|
|
1463
1462
|
* @hidden
|
|
1464
|
-
|
|
1463
|
+
* @deprecated
|
|
1465
1464
|
*/
|
|
1466
1465
|
RichTextEditor.prototype.getInsertImgMaxWidth = function () {
|
|
1467
1466
|
var maxWidth = this.insertImageSettings.maxWidth;
|
|
@@ -1482,7 +1481,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1482
1481
|
* @param {boolean} isExpand - specifies the bollean value.
|
|
1483
1482
|
* @returns {void}
|
|
1484
1483
|
* @hidden
|
|
1485
|
-
|
|
1484
|
+
* @deprecated
|
|
1486
1485
|
*/
|
|
1487
1486
|
RichTextEditor.prototype.setContentHeight = function (target, isExpand) {
|
|
1488
1487
|
var heightValue;
|
|
@@ -1628,7 +1627,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1628
1627
|
/**
|
|
1629
1628
|
* @returns {void}
|
|
1630
1629
|
* @hidden
|
|
1631
|
-
|
|
1630
|
+
* @deprecated
|
|
1632
1631
|
*/
|
|
1633
1632
|
RichTextEditor.prototype.getBaseToolbarObject = function () {
|
|
1634
1633
|
var tbObj;
|
|
@@ -1643,7 +1642,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1643
1642
|
/**
|
|
1644
1643
|
* @returns {void}
|
|
1645
1644
|
* @hidden
|
|
1646
|
-
|
|
1645
|
+
* @deprecated
|
|
1647
1646
|
*/
|
|
1648
1647
|
RichTextEditor.prototype.getToolbar = function () {
|
|
1649
1648
|
return this.toolbarModule ? this.toolbarModule.getToolbarElement() : null;
|
|
@@ -1651,7 +1650,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1651
1650
|
/**
|
|
1652
1651
|
* @returns {void}
|
|
1653
1652
|
* @hidden
|
|
1654
|
-
|
|
1653
|
+
* @deprecated
|
|
1655
1654
|
*/
|
|
1656
1655
|
RichTextEditor.prototype.getToolbarElement = function () {
|
|
1657
1656
|
return this.toolbarModule && this.toolbarModule.getToolbarElement();
|
|
@@ -1661,7 +1660,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1661
1660
|
* getID method
|
|
1662
1661
|
*
|
|
1663
1662
|
* @hidden
|
|
1664
|
-
|
|
1663
|
+
* @deprecated
|
|
1665
1664
|
*/
|
|
1666
1665
|
RichTextEditor.prototype.getID = function () {
|
|
1667
1666
|
return (this.originalElement.tagName === 'TEXTAREA' ? this.valueContainer.id : this.element.id);
|
|
@@ -1684,7 +1683,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1684
1683
|
* @param {FocusEvent} e - specifies the event.
|
|
1685
1684
|
* @returns {void}
|
|
1686
1685
|
* @hidden
|
|
1687
|
-
|
|
1686
|
+
* @deprecated
|
|
1688
1687
|
*/
|
|
1689
1688
|
// eslint-disable-next-line
|
|
1690
1689
|
RichTextEditor.prototype.preventDefaultResize = function (e) {
|
|
@@ -1876,7 +1875,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1876
1875
|
*
|
|
1877
1876
|
* @returns {void}
|
|
1878
1877
|
* @hidden
|
|
1879
|
-
|
|
1878
|
+
* @deprecated
|
|
1880
1879
|
*/
|
|
1881
1880
|
RichTextEditor.prototype.contentChanged = function () {
|
|
1882
1881
|
if (this.autoSaveOnIdle) {
|
|
@@ -1891,7 +1890,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1891
1890
|
*
|
|
1892
1891
|
* @returns {void}
|
|
1893
1892
|
* @hidden
|
|
1894
|
-
|
|
1893
|
+
* @deprecated
|
|
1895
1894
|
*/
|
|
1896
1895
|
RichTextEditor.prototype.invokeChangeEvent = function () {
|
|
1897
1896
|
var currentValue;
|
|
@@ -1912,7 +1911,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1912
1911
|
/**
|
|
1913
1912
|
* @returns {void}
|
|
1914
1913
|
* @hidden
|
|
1915
|
-
|
|
1914
|
+
* @deprecated
|
|
1916
1915
|
*/
|
|
1917
1916
|
RichTextEditor.prototype.wireScrollElementsEvents = function () {
|
|
1918
1917
|
this.scrollParentElements = getScrollableParent(this.element);
|
|
@@ -1941,7 +1940,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1941
1940
|
/**
|
|
1942
1941
|
* @returns {void}
|
|
1943
1942
|
* @hidden
|
|
1944
|
-
|
|
1943
|
+
* @deprecated
|
|
1945
1944
|
*/
|
|
1946
1945
|
RichTextEditor.prototype.unWireScrollElementsEvents = function () {
|
|
1947
1946
|
this.scrollParentElements = getScrollableParent(this.element);
|
|
@@ -1971,7 +1970,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1971
1970
|
/**
|
|
1972
1971
|
* @returns {void}
|
|
1973
1972
|
* @hidden
|
|
1974
|
-
|
|
1973
|
+
* @deprecated
|
|
1975
1974
|
*/
|
|
1976
1975
|
RichTextEditor.prototype.autoResize = function () {
|
|
1977
1976
|
var _this = this;
|
|
@@ -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
|
/**
|
|
@@ -316,7 +316,7 @@ export function updateUndoRedoStatus(baseToolbar, undoRedoStatus) {
|
|
|
316
316
|
* @param {string} type - specifies the string type.
|
|
317
317
|
* @returns {void}
|
|
318
318
|
* @hidden
|
|
319
|
-
|
|
319
|
+
* @deprecated
|
|
320
320
|
*/
|
|
321
321
|
export function dispatchEvent(element, type) {
|
|
322
322
|
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;
|
|
@@ -88,7 +88,7 @@ var Formatter = /** @class */ (function () {
|
|
|
88
88
|
|| ((args.item.subCommand === 'FontName' || args.item.subCommand === 'FontSize') && args.name === 'dropDownSelect')
|
|
89
89
|
|| ((args.item.subCommand === 'BackgroundColor' || args.item.subCommand === 'FontColor')
|
|
90
90
|
&& args.name === 'colorPickerChanged'))) {
|
|
91
|
-
extend(args, args, { requestType: args.item.subCommand, cancel: false, itemCollection: value }, true);
|
|
91
|
+
extend(args, args, { requestType: args.item.subCommand, cancel: false, itemCollection: value, selectType: args.name }, true);
|
|
92
92
|
self.trigger(CONSTANT.actionBegin, args, function (actionBeginArgs) {
|
|
93
93
|
if (!actionBeginArgs.cancel) {
|
|
94
94
|
if (_this.getUndoRedoStack().length === 0 && actionBeginArgs.item.command !== 'Links'
|
|
@@ -106,8 +106,8 @@ var Formatter = /** @class */ (function () {
|
|
|
106
106
|
}
|
|
107
107
|
else {
|
|
108
108
|
_this.editorManager.observer.notify(CONSTANT.checkUndo, { subCommand: actionBeginArgs.item.subCommand });
|
|
109
|
-
_this.editorManager.execCommand(actionBeginArgs.item.command, actionBeginArgs.item.subCommand, event, _this.onSuccess.bind(_this, self), actionBeginArgs.item.value, actionBeginArgs.item.subCommand === 'Pre' &&
|
|
110
|
-
{ name:
|
|
109
|
+
_this.editorManager.execCommand(actionBeginArgs.item.command, actionBeginArgs.item.subCommand, event, _this.onSuccess.bind(_this, self), actionBeginArgs.item.value, actionBeginArgs.item.subCommand === 'Pre' && actionBeginArgs.selectType === 'dropDownSelect' ?
|
|
110
|
+
{ name: actionBeginArgs.selectType } : value, ('#' + self.getID() + ' iframe'), self.enterKey);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
});
|
|
@@ -127,7 +127,7 @@ var Formatter = /** @class */ (function () {
|
|
|
127
127
|
* @param {KeyboardEvent} e - specifies the keyboard event.
|
|
128
128
|
* @returns {void}
|
|
129
129
|
* @hidden
|
|
130
|
-
|
|
130
|
+
* @deprecated
|
|
131
131
|
*/
|
|
132
132
|
Formatter.prototype.onKeyHandler = function (self, e) {
|
|
133
133
|
var _this = this;
|
|
@@ -145,7 +145,7 @@ var Formatter = /** @class */ (function () {
|
|
|
145
145
|
* @param {IMarkdownFormatterCallBack} events - specifies the event call back
|
|
146
146
|
* @returns {void}
|
|
147
147
|
* @hidden
|
|
148
|
-
|
|
148
|
+
* @deprecated
|
|
149
149
|
*/
|
|
150
150
|
Formatter.prototype.onSuccess = function (self, events) {
|
|
151
151
|
self.notify(CONSTANT.contentChanged, {});
|
|
@@ -176,7 +176,7 @@ var Formatter = /** @class */ (function () {
|
|
|
176
176
|
* @param {KeyboardEvent} e - specifies the keyboard event.
|
|
177
177
|
* @returns {void}
|
|
178
178
|
* @hidden
|
|
179
|
-
|
|
179
|
+
* @deprecated
|
|
180
180
|
*/
|
|
181
181
|
Formatter.prototype.saveData = function (e) {
|
|
182
182
|
this.editorManager.undoRedoManager.saveData(e);
|
|
@@ -186,7 +186,7 @@ var Formatter = /** @class */ (function () {
|
|
|
186
186
|
*
|
|
187
187
|
* @returns {void}
|
|
188
188
|
* @hidden
|
|
189
|
-
|
|
189
|
+
* @deprecated
|
|
190
190
|
*/
|
|
191
191
|
Formatter.prototype.getUndoStatus = function () {
|
|
192
192
|
return this.editorManager.undoRedoManager.getUndoStatus();
|
|
@@ -198,7 +198,7 @@ var Formatter = /** @class */ (function () {
|
|
|
198
198
|
* @param {IHtmlUndoRedoData} - specifies the redo data.
|
|
199
199
|
* @returns {void}
|
|
200
200
|
* @hidden
|
|
201
|
-
|
|
201
|
+
* @deprecated
|
|
202
202
|
*/
|
|
203
203
|
/* eslint-enable */
|
|
204
204
|
Formatter.prototype.getUndoRedoStack = function () {
|
|
@@ -210,7 +210,7 @@ var Formatter = /** @class */ (function () {
|
|
|
210
210
|
* @param {IRichTextEditor} self - specifies the self element.
|
|
211
211
|
* @returns {void}
|
|
212
212
|
* @hidden
|
|
213
|
-
|
|
213
|
+
* @deprecated
|
|
214
214
|
*/
|
|
215
215
|
Formatter.prototype.enableUndo = function (self) {
|
|
216
216
|
var status = this.getUndoStatus();
|
|
@@ -4,7 +4,7 @@ import { IEditorModel, IHtmlFormatterModel } from './../base/interface';
|
|
|
4
4
|
* HTML adapter
|
|
5
5
|
*
|
|
6
6
|
* @hidden
|
|
7
|
-
|
|
7
|
+
* @deprecated
|
|
8
8
|
*/
|
|
9
9
|
export declare class HTMLFormatter extends Formatter {
|
|
10
10
|
keyConfig: {
|
|
@@ -24,7 +24,7 @@ export declare class HTMLFormatter extends Formatter {
|
|
|
24
24
|
* @param {number} options - specifies the options
|
|
25
25
|
* @returns {void}
|
|
26
26
|
* @hidden
|
|
27
|
-
|
|
27
|
+
* @deprecated
|
|
28
28
|
*/
|
|
29
29
|
updateFormatter(editElement: Element, doc?: Document, options?: {
|
|
30
30
|
[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);
|
|
@@ -43,7 +43,7 @@ var HTMLFormatter = /** @class */ (function (_super) {
|
|
|
43
43
|
* @param {number} options - specifies the options
|
|
44
44
|
* @returns {void}
|
|
45
45
|
* @hidden
|
|
46
|
-
|
|
46
|
+
* @deprecated
|
|
47
47
|
*/
|
|
48
48
|
HTMLFormatter.prototype.updateFormatter = function (editElement, doc, options) {
|
|
49
49
|
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;
|
|
@@ -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 { MarkdownParser } from './../../markdown-parser/base/markdown-parser';
|
|
16
16
|
import { extend } from '@syncfusion/ej2-base';
|
|
@@ -19,7 +19,7 @@ import { markdownKeyConfig, markdownListsTags, markdownFormatTags, markdownSelec
|
|
|
19
19
|
* Markdown adapter
|
|
20
20
|
*
|
|
21
21
|
* @hidden
|
|
22
|
-
|
|
22
|
+
* @deprecated
|
|
23
23
|
*/
|
|
24
24
|
var MarkdownFormatter = /** @class */ (function (_super) {
|
|
25
25
|
__extends(MarkdownFormatter, _super);
|
|
@@ -46,7 +46,7 @@ var MarkdownFormatter = /** @class */ (function (_super) {
|
|
|
46
46
|
* @param {number} options - specifies the options
|
|
47
47
|
* @returns {void}
|
|
48
48
|
* @hidden
|
|
49
|
-
|
|
49
|
+
* @deprecated
|
|
50
50
|
*/
|
|
51
51
|
MarkdownFormatter.prototype.updateFormatter = function (editElement, doc, options) {
|
|
52
52
|
if (editElement) {
|