@syncfusion/ej2-richtexteditor 18.4.39 → 18.4.42-70943
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 +782 -728
- 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 +249 -145
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +371 -267
- package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
- package/helpers/e2e/index.js +3 -3
- package/license +9 -9
- package/package.json +76 -75
- package/src/common/interface.d.ts +6 -6
- 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 +5 -4
- 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 +16 -12
- 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 +8 -8
- package/src/editor-manager/plugin/lists.d.ts +2 -2
- package/src/editor-manager/plugin/lists.js +8 -4
- package/src/editor-manager/plugin/ms-word-clean-up.d.ts +1 -1
- package/src/editor-manager/plugin/ms-word-clean-up.js +23 -7
- package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
- package/src/editor-manager/plugin/nodecutter.js +6 -6
- package/src/editor-manager/plugin/selection-commands.d.ts +2 -1
- package/src/editor-manager/plugin/selection-commands.js +35 -4
- 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 +4 -3
- 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/global.d.ts +1 -0
- package/src/markdown-parser/base/interface.d.ts +10 -10
- package/src/markdown-parser/base/markdown-parser.d.ts +3 -3
- package/src/markdown-parser/base/markdown-parser.js +3 -3
- package/src/markdown-parser/base/types.d.ts +1 -1
- package/src/markdown-parser/plugin/clearformat.d.ts +2 -2
- package/src/markdown-parser/plugin/clearformat.js +2 -2
- package/src/markdown-parser/plugin/formats.d.ts +2 -2
- package/src/markdown-parser/plugin/formats.js +2 -2
- package/src/markdown-parser/plugin/link.d.ts +2 -2
- package/src/markdown-parser/plugin/link.js +2 -2
- package/src/markdown-parser/plugin/markdown-selection.d.ts +14 -14
- package/src/markdown-parser/plugin/markdown-selection.js +14 -14
- package/src/markdown-parser/plugin/md-selection-formats.d.ts +2 -2
- package/src/markdown-parser/plugin/md-selection-formats.js +2 -2
- 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/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 +13 -13
- package/src/rich-text-editor/actions/keyboard.d.ts +1 -1
- package/src/rich-text-editor/actions/keyboard.js +22 -21
- package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
- package/src/rich-text-editor/actions/markdown-editor.js +2 -2
- package/src/rich-text-editor/actions/paste-clean-up.d.ts +1 -1
- package/src/rich-text-editor/actions/paste-clean-up.js +1 -1
- package/src/rich-text-editor/actions/quick-toolbar.d.ts +9 -9
- package/src/rich-text-editor/actions/quick-toolbar.js +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 +103 -103
- package/src/rich-text-editor/base/classes.js +103 -103
- package/src/rich-text-editor/base/constant.d.ts +112 -107
- package/src/rich-text-editor/base/constant.js +112 -107
- 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 +40 -40
- package/src/rich-text-editor/base/interface.js +1 -1
- package/src/rich-text-editor/base/rich-text-editor-model.d.ts +701 -701
- package/src/rich-text-editor/base/rich-text-editor.d.ts +51 -51
- package/src/rich-text-editor/base/rich-text-editor.js +88 -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 +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 +21 -21
- package/src/rich-text-editor/models/iframe-settings.js +19 -19
- package/src/rich-text-editor/models/inline-mode-model.d.ts +9 -9
- package/src/rich-text-editor/models/inline-mode.js +19 -19
- package/src/rich-text-editor/models/toolbar-settings-model.d.ts +328 -328
- 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 +2 -1
- package/src/rich-text-editor/renderer/image-module.js +21 -7
- 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 +7 -2
- package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +8 -8
- package/src/rich-text-editor/renderer/toolbar-renderer.js +8 -8
- package/src/rich-text-editor/renderer/view-source.d.ts +6 -6
- package/src/rich-text-editor/renderer/view-source.js +6 -6
- package/src/rich-text-editor/services/renderer-factory.d.ts +3 -3
- package/src/rich-text-editor/services/renderer-factory.js +3 -3
- package/src/rich-text-editor/services/service-locator.d.ts +3 -3
- package/src/rich-text-editor/services/service-locator.js +3 -3
- package/src/selection/selection.d.ts +22 -22
- package/src/selection/selection.js +22 -22
- package/styles/_all.scss +2 -2
- package/styles/bootstrap-dark.css +13 -1
- package/styles/bootstrap.css +13 -1
- package/styles/bootstrap4.css +13 -1
- package/styles/bootstrap5-dark.css +0 -0
- package/styles/bootstrap5-dark.scss +0 -0
- package/styles/bootstrap5.css +0 -0
- package/styles/bootstrap5.scss +0 -0
- package/styles/fabric-dark.css +13 -1
- package/styles/fabric.css +13 -1
- package/styles/highcontrast-light.css +13 -1
- package/styles/highcontrast.css +13 -1
- package/styles/material-dark.css +13 -1
- package/styles/material.css +13 -1
- package/styles/rich-text-editor/_all.scss +2 -2
- package/styles/rich-text-editor/_bootstrap-dark-definition.scss +151 -151
- package/styles/rich-text-editor/_bootstrap-definition.scss +184 -184
- package/styles/rich-text-editor/_bootstrap4-definition.scss +307 -307
- package/styles/rich-text-editor/_fabric-dark-definition.scss +150 -150
- package/styles/rich-text-editor/_fabric-definition.scss +148 -148
- package/styles/rich-text-editor/_highcontrast-definition.scss +148 -148
- package/styles/rich-text-editor/_highcontrast-light-definition.scss +148 -148
- package/styles/rich-text-editor/_layout.scss +1416 -1404
- package/styles/rich-text-editor/_material-dark-definition.scss +151 -151
- package/styles/rich-text-editor/_material-definition.scss +150 -150
- package/styles/rich-text-editor/_theme.scss +499 -499
- package/styles/rich-text-editor/bootstrap-dark.css +13 -1
- package/styles/rich-text-editor/bootstrap.css +13 -1
- package/styles/rich-text-editor/bootstrap4.css +13 -1
- package/styles/rich-text-editor/fabric-dark.css +13 -1
- package/styles/rich-text-editor/fabric.css +13 -1
- package/styles/rich-text-editor/highcontrast-light.css +13 -1
- package/styles/rich-text-editor/highcontrast.css +13 -1
- package/styles/rich-text-editor/icons/_bootstrap-dark.scss +289 -289
- package/styles/rich-text-editor/icons/_bootstrap.scss +288 -288
- package/styles/rich-text-editor/icons/_bootstrap4.scss +288 -288
- package/styles/rich-text-editor/icons/_fabric-dark.scss +288 -288
- package/styles/rich-text-editor/icons/_fabric.scss +288 -288
- package/styles/rich-text-editor/icons/_highcontrast-light.scss +288 -288
- package/styles/rich-text-editor/icons/_highcontrast.scss +288 -288
- package/styles/rich-text-editor/icons/_material-dark.scss +288 -288
- package/styles/rich-text-editor/icons/_material.scss +288 -288
- package/styles/rich-text-editor/material-dark.css +13 -1
- package/styles/rich-text-editor/material.css +13 -1
- package/styles/tailwind-dark.css +0 -0
- package/styles/tailwind-dark.scss +0 -0
- package/styles/tailwind.css +0 -0
- package/styles/tailwind.scss +0 -0
- 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
|
@@ -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';
|
|
@@ -74,17 +74,17 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
74
74
|
_this.isResizeInitialized = false;
|
|
75
75
|
/**
|
|
76
76
|
* @hidden
|
|
77
|
-
|
|
77
|
+
* @deprecated
|
|
78
78
|
*/
|
|
79
79
|
_this.isFocusOut = false;
|
|
80
80
|
/**
|
|
81
81
|
* @hidden
|
|
82
|
-
|
|
82
|
+
* @deprecated
|
|
83
83
|
*/
|
|
84
84
|
_this.isRTE = false;
|
|
85
85
|
/**
|
|
86
86
|
* @hidden
|
|
87
|
-
|
|
87
|
+
* @deprecated
|
|
88
88
|
*/
|
|
89
89
|
_this.isBlur = true;
|
|
90
90
|
_this.needsID = true;
|
|
@@ -94,7 +94,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
94
94
|
* To provide the array of modules needed for component rendering
|
|
95
95
|
* @return {ModuleDeclaration[]}
|
|
96
96
|
* @hidden
|
|
97
|
-
|
|
97
|
+
* @deprecated
|
|
98
98
|
*/
|
|
99
99
|
RichTextEditor.prototype.requiredModules = function () {
|
|
100
100
|
var modules = [];
|
|
@@ -159,7 +159,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
159
159
|
/**
|
|
160
160
|
* setEnable method
|
|
161
161
|
* @hidden
|
|
162
|
-
|
|
162
|
+
* @deprecated
|
|
163
163
|
*/
|
|
164
164
|
RichTextEditor.prototype.setEnable = function () {
|
|
165
165
|
this.updateEnable();
|
|
@@ -252,7 +252,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
252
252
|
/**
|
|
253
253
|
* getPersistData method
|
|
254
254
|
* @hidden
|
|
255
|
-
|
|
255
|
+
* @deprecated
|
|
256
256
|
*/
|
|
257
257
|
RichTextEditor.prototype.getPersistData = function () {
|
|
258
258
|
return this.addOnPersist(['value']);
|
|
@@ -410,7 +410,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
410
410
|
/**
|
|
411
411
|
* For internal use only - To Initialize the component rendering.
|
|
412
412
|
* @private
|
|
413
|
-
|
|
413
|
+
* @deprecated
|
|
414
414
|
*/
|
|
415
415
|
RichTextEditor.prototype.render = function () {
|
|
416
416
|
if (this.value && !this.valueTemplate) {
|
|
@@ -445,7 +445,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
445
445
|
/**
|
|
446
446
|
* For internal use only - Initialize the event handler
|
|
447
447
|
* @private
|
|
448
|
-
|
|
448
|
+
* @deprecated
|
|
449
449
|
*/
|
|
450
450
|
RichTextEditor.prototype.eventInitializer = function () {
|
|
451
451
|
this.wireEvents();
|
|
@@ -453,7 +453,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
453
453
|
/**
|
|
454
454
|
* For internal use only - keydown the event handler;
|
|
455
455
|
* @private
|
|
456
|
-
|
|
456
|
+
* @deprecated
|
|
457
457
|
*/
|
|
458
458
|
RichTextEditor.prototype.keyDown = function (e) {
|
|
459
459
|
this.notify(events.keyDown, { member: 'keydown', args: e });
|
|
@@ -528,6 +528,17 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
528
528
|
this.autoResize();
|
|
529
529
|
};
|
|
530
530
|
RichTextEditor.prototype.keyUp = function (e) {
|
|
531
|
+
if (this.editorMode === "HTML") {
|
|
532
|
+
var range = this.getRange();
|
|
533
|
+
if (Browser.userAgent.indexOf('Firefox') != -1 && range.startContainer.nodeName === '#text' &&
|
|
534
|
+
range.startContainer.parentElement === this.inputElement) {
|
|
535
|
+
var range_1 = this.getRange();
|
|
536
|
+
var tempElem = this.createElement('p');
|
|
537
|
+
range_1.startContainer.parentElement.insertBefore(tempElem, range_1.startContainer);
|
|
538
|
+
tempElem.appendChild(range_1.startContainer);
|
|
539
|
+
this.formatter.editorManager.nodeSelection.setSelectionText(this.contentModule.getDocument(), tempElem.childNodes[0], tempElem.childNodes[0], tempElem.childNodes[0].textContent.length, tempElem.childNodes[0].textContent.length);
|
|
540
|
+
}
|
|
541
|
+
}
|
|
531
542
|
this.notify(events.keyUp, { member: 'keyup', args: e });
|
|
532
543
|
if (e.code === 'KeyX' && e.which === 88 && e.keyCode === 88 && e.ctrlKey && (this.inputElement.innerHTML === '' ||
|
|
533
544
|
this.inputElement.innerHTML === '<br>')) {
|
|
@@ -538,7 +549,8 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
538
549
|
&& ((e.key !== 'shift' && !e.ctrlKey) && e.key && e.key.length === 1 || allowedKeys)) && !this.inlineMode.enable) {
|
|
539
550
|
this.formatter.onKeyHandler(this, e);
|
|
540
551
|
}
|
|
541
|
-
if (this.inputElement && this.inputElement.textContent.length !== 0
|
|
552
|
+
if (this.inputElement && this.inputElement.textContent.length !== 0
|
|
553
|
+
|| this.element.querySelectorAll('.e-toolbar-item.e-active').length > 0) {
|
|
542
554
|
this.notify(events.toolbarRefresh, { args: e });
|
|
543
555
|
}
|
|
544
556
|
if (!isNOU(this.placeholder)) {
|
|
@@ -549,7 +561,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
549
561
|
};
|
|
550
562
|
/**
|
|
551
563
|
* @hidden
|
|
552
|
-
|
|
564
|
+
* @deprecated
|
|
553
565
|
*/
|
|
554
566
|
RichTextEditor.prototype.serializeValue = function (value) {
|
|
555
567
|
if (this.editorMode === 'HTML' && !isNOU(value)) {
|
|
@@ -575,7 +587,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
575
587
|
/**
|
|
576
588
|
* updateValue method
|
|
577
589
|
* @hidden
|
|
578
|
-
|
|
590
|
+
* @deprecated
|
|
579
591
|
*/
|
|
580
592
|
RichTextEditor.prototype.updateValue = function (value) {
|
|
581
593
|
if (isNOU(value)) {
|
|
@@ -622,28 +634,28 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
622
634
|
};
|
|
623
635
|
/**
|
|
624
636
|
* @hidden
|
|
625
|
-
|
|
637
|
+
* @deprecated
|
|
626
638
|
*/
|
|
627
639
|
RichTextEditor.prototype.ensureModuleInjected = function (module) {
|
|
628
640
|
return this.getInjectedModules().indexOf(module) >= 0;
|
|
629
641
|
};
|
|
630
642
|
/**
|
|
631
643
|
* @hidden
|
|
632
|
-
|
|
644
|
+
* @deprecated
|
|
633
645
|
*/
|
|
634
646
|
RichTextEditor.prototype.onCopy = function () {
|
|
635
647
|
this.contentModule.getDocument().execCommand('copy', false, null);
|
|
636
648
|
};
|
|
637
649
|
/**
|
|
638
650
|
* @hidden
|
|
639
|
-
|
|
651
|
+
* @deprecated
|
|
640
652
|
*/
|
|
641
653
|
RichTextEditor.prototype.onCut = function () {
|
|
642
654
|
this.contentModule.getDocument().execCommand('cut', false, null);
|
|
643
655
|
};
|
|
644
656
|
/**
|
|
645
657
|
* @hidden
|
|
646
|
-
|
|
658
|
+
* @deprecated
|
|
647
659
|
*/
|
|
648
660
|
RichTextEditor.prototype.onPaste = function (e) {
|
|
649
661
|
var _this = this;
|
|
@@ -694,7 +706,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
694
706
|
};
|
|
695
707
|
/**
|
|
696
708
|
* @hidden
|
|
697
|
-
|
|
709
|
+
* @deprecated
|
|
698
710
|
*/
|
|
699
711
|
RichTextEditor.prototype.clipboardAction = function (action, event) {
|
|
700
712
|
switch (action.toLowerCase()) {
|
|
@@ -883,7 +895,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
883
895
|
/**
|
|
884
896
|
* For internal use only - Get the module name.
|
|
885
897
|
* @private
|
|
886
|
-
|
|
898
|
+
* @deprecated
|
|
887
899
|
*/
|
|
888
900
|
RichTextEditor.prototype.getModuleName = function () {
|
|
889
901
|
return 'richtexteditor';
|
|
@@ -891,7 +903,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
891
903
|
/**
|
|
892
904
|
* Called internally if any of the property value changed.
|
|
893
905
|
* @hidden
|
|
894
|
-
|
|
906
|
+
* @deprecated
|
|
895
907
|
*/
|
|
896
908
|
RichTextEditor.prototype.onPropertyChanged = function (newProp, oldProp) {
|
|
897
909
|
for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {
|
|
@@ -1020,7 +1032,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1020
1032
|
};
|
|
1021
1033
|
/**
|
|
1022
1034
|
* @hidden
|
|
1023
|
-
|
|
1035
|
+
* @deprecated
|
|
1024
1036
|
*/
|
|
1025
1037
|
RichTextEditor.prototype.updateValueData = function () {
|
|
1026
1038
|
if (this.enableHtmlEncode) {
|
|
@@ -1094,7 +1106,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1094
1106
|
/**
|
|
1095
1107
|
* setPlaceHolder method
|
|
1096
1108
|
* @hidden
|
|
1097
|
-
|
|
1109
|
+
* @deprecated
|
|
1098
1110
|
*/
|
|
1099
1111
|
RichTextEditor.prototype.setPlaceHolder = function () {
|
|
1100
1112
|
if (this.inputElement && this.placeholder && this.iframeSettings.enable !== true) {
|
|
@@ -1156,7 +1168,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1156
1168
|
/**
|
|
1157
1169
|
* setReadOnly method
|
|
1158
1170
|
* @hidden
|
|
1159
|
-
|
|
1171
|
+
* @deprecated
|
|
1160
1172
|
*/
|
|
1161
1173
|
RichTextEditor.prototype.setReadOnly = function (initial) {
|
|
1162
1174
|
this.updateReadOnly();
|
|
@@ -1240,7 +1252,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1240
1252
|
/**
|
|
1241
1253
|
* Get the selected range from the RichTextEditor's content.
|
|
1242
1254
|
* @public
|
|
1243
|
-
|
|
1255
|
+
* @deprecated
|
|
1244
1256
|
*/
|
|
1245
1257
|
RichTextEditor.prototype.getRange = function () {
|
|
1246
1258
|
return this.formatter.editorManager.nodeSelection.getRange(this.contentModule.getDocument());
|
|
@@ -1339,7 +1351,9 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1339
1351
|
var item = compiledTemplate[i];
|
|
1340
1352
|
append([item], this.element);
|
|
1341
1353
|
}
|
|
1342
|
-
|
|
1354
|
+
if (this.element.innerHTML.trim() !== '') {
|
|
1355
|
+
this.setProperties({ value: this.element.innerHTML.trim() });
|
|
1356
|
+
}
|
|
1343
1357
|
}
|
|
1344
1358
|
}
|
|
1345
1359
|
else {
|
|
@@ -1360,7 +1374,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1360
1374
|
/**
|
|
1361
1375
|
* Image max width calculation method
|
|
1362
1376
|
* @hidden
|
|
1363
|
-
|
|
1377
|
+
* @deprecated
|
|
1364
1378
|
*/
|
|
1365
1379
|
RichTextEditor.prototype.getInsertImgMaxWidth = function () {
|
|
1366
1380
|
var maxWidth = this.insertImageSettings.maxWidth;
|
|
@@ -1376,7 +1390,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1376
1390
|
/**
|
|
1377
1391
|
* setContentHeight method
|
|
1378
1392
|
* @hidden
|
|
1379
|
-
|
|
1393
|
+
* @deprecated
|
|
1380
1394
|
*/
|
|
1381
1395
|
RichTextEditor.prototype.setContentHeight = function (target, isExpand) {
|
|
1382
1396
|
var heightValue;
|
|
@@ -1462,7 +1476,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1462
1476
|
};
|
|
1463
1477
|
/**
|
|
1464
1478
|
* @hidden
|
|
1465
|
-
|
|
1479
|
+
* @deprecated
|
|
1466
1480
|
*/
|
|
1467
1481
|
RichTextEditor.prototype.getBaseToolbarObject = function () {
|
|
1468
1482
|
var tbObj;
|
|
@@ -1476,14 +1490,14 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1476
1490
|
};
|
|
1477
1491
|
/**
|
|
1478
1492
|
* @hidden
|
|
1479
|
-
|
|
1493
|
+
* @deprecated
|
|
1480
1494
|
*/
|
|
1481
1495
|
RichTextEditor.prototype.getToolbar = function () {
|
|
1482
1496
|
return this.toolbarModule ? this.toolbarModule.getToolbarElement() : null;
|
|
1483
1497
|
};
|
|
1484
1498
|
/**
|
|
1485
1499
|
* @hidden
|
|
1486
|
-
|
|
1500
|
+
* @deprecated
|
|
1487
1501
|
*/
|
|
1488
1502
|
RichTextEditor.prototype.getToolbarElement = function () {
|
|
1489
1503
|
return this.toolbarModule && this.toolbarModule.getToolbarElement();
|
|
@@ -1491,7 +1505,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1491
1505
|
/**
|
|
1492
1506
|
* getID method
|
|
1493
1507
|
* @hidden
|
|
1494
|
-
|
|
1508
|
+
* @deprecated
|
|
1495
1509
|
*/
|
|
1496
1510
|
RichTextEditor.prototype.getID = function () {
|
|
1497
1511
|
return (this.originalElement.tagName === 'TEXTAREA' ? this.valueContainer.id : this.element.id);
|
|
@@ -1511,7 +1525,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1511
1525
|
/**
|
|
1512
1526
|
* preventDefaultResize method
|
|
1513
1527
|
* @hidden
|
|
1514
|
-
|
|
1528
|
+
* @deprecated
|
|
1515
1529
|
*/
|
|
1516
1530
|
RichTextEditor.prototype.preventDefaultResize = function (e) {
|
|
1517
1531
|
if (Browser.info.name === 'msie') {
|
|
@@ -1533,11 +1547,16 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1533
1547
|
};
|
|
1534
1548
|
RichTextEditor.prototype.resizeHandler = function () {
|
|
1535
1549
|
var isExpand = false;
|
|
1550
|
+
if (!document.body.contains(this.element)) {
|
|
1551
|
+
document.defaultView.removeEventListener('resize', this.onResizeHandler, true);
|
|
1552
|
+
return;
|
|
1553
|
+
}
|
|
1536
1554
|
if (this.toolbarSettings.enable && !this.inlineMode.enable) {
|
|
1537
1555
|
this.toolbarModule.refreshToolbarOverflow();
|
|
1538
1556
|
isExpand = this.toolbarModule.baseToolbar.toolbarObj.element.classList.contains(classes.CLS_EXPAND_OPEN);
|
|
1539
1557
|
}
|
|
1540
1558
|
this.setContentHeight('', isExpand);
|
|
1559
|
+
this.notify(events.windowResize, null);
|
|
1541
1560
|
};
|
|
1542
1561
|
RichTextEditor.prototype.scrollHandler = function (e) {
|
|
1543
1562
|
this.notify(events.scroll, { args: e });
|
|
@@ -1613,6 +1632,9 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1613
1632
|
return value;
|
|
1614
1633
|
};
|
|
1615
1634
|
RichTextEditor.prototype.updateValueOnIdle = function () {
|
|
1635
|
+
if (!isNOU(this.tableModule) && !isNOU(this.inputElement.querySelector('.e-table-box.e-rbox-select'))) {
|
|
1636
|
+
return;
|
|
1637
|
+
}
|
|
1616
1638
|
this.setProperties({ value: this.getUpdatedValue() }, true);
|
|
1617
1639
|
this.valueContainer.value = this.value;
|
|
1618
1640
|
this.invokeChangeEvent();
|
|
@@ -1674,7 +1696,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1674
1696
|
/**
|
|
1675
1697
|
* invokeChangeEvent method
|
|
1676
1698
|
* @hidden
|
|
1677
|
-
|
|
1699
|
+
* @deprecated
|
|
1678
1700
|
*/
|
|
1679
1701
|
RichTextEditor.prototype.contentChanged = function () {
|
|
1680
1702
|
if (this.autoSaveOnIdle) {
|
|
@@ -1687,7 +1709,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1687
1709
|
/**
|
|
1688
1710
|
* invokeChangeEvent method
|
|
1689
1711
|
* @hidden
|
|
1690
|
-
|
|
1712
|
+
* @deprecated
|
|
1691
1713
|
*/
|
|
1692
1714
|
RichTextEditor.prototype.invokeChangeEvent = function () {
|
|
1693
1715
|
var currentValue;
|
|
@@ -1707,7 +1729,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1707
1729
|
};
|
|
1708
1730
|
/**
|
|
1709
1731
|
* @hidden
|
|
1710
|
-
|
|
1732
|
+
* @deprecated
|
|
1711
1733
|
*/
|
|
1712
1734
|
RichTextEditor.prototype.wireScrollElementsEvents = function () {
|
|
1713
1735
|
this.scrollParentElements = getScrollableParent(this.element);
|
|
@@ -1735,7 +1757,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1735
1757
|
};
|
|
1736
1758
|
/**
|
|
1737
1759
|
* @hidden
|
|
1738
|
-
|
|
1760
|
+
* @deprecated
|
|
1739
1761
|
*/
|
|
1740
1762
|
RichTextEditor.prototype.unWireScrollElementsEvents = function () {
|
|
1741
1763
|
this.scrollParentElements = getScrollableParent(this.element);
|
|
@@ -1764,7 +1786,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1764
1786
|
};
|
|
1765
1787
|
/**
|
|
1766
1788
|
* @hidden
|
|
1767
|
-
|
|
1789
|
+
* @deprecated
|
|
1768
1790
|
*/
|
|
1769
1791
|
RichTextEditor.prototype.autoResize = function () {
|
|
1770
1792
|
var _this = this;
|
|
@@ -18,7 +18,7 @@ export declare function updateUndoRedoStatus(baseToolbar: BaseToolbar, undoRedoS
|
|
|
18
18
|
/**
|
|
19
19
|
* To dispatch the event manually
|
|
20
20
|
* @hidden
|
|
21
|
-
|
|
21
|
+
* @deprecated
|
|
22
22
|
*/
|
|
23
23
|
export declare function dispatchEvent(element: Element | HTMLDocument, type: string): void;
|
|
24
24
|
export declare function parseHtml(value: string): DocumentFragment;
|
|
@@ -237,7 +237,7 @@ export function updateUndoRedoStatus(baseToolbar, undoRedoStatus) {
|
|
|
237
237
|
/**
|
|
238
238
|
* To dispatch the event manually
|
|
239
239
|
* @hidden
|
|
240
|
-
|
|
240
|
+
* @deprecated
|
|
241
241
|
*/
|
|
242
242
|
export function dispatchEvent(element, type) {
|
|
243
243
|
var evt = document.createEvent('HTMLEvents');
|
|
@@ -6,7 +6,7 @@ import { IHtmlUndoRedoData } from '../../editor-manager/base/interface';
|
|
|
6
6
|
/**
|
|
7
7
|
* Formatter
|
|
8
8
|
* @hidden
|
|
9
|
-
|
|
9
|
+
* @deprecated
|
|
10
10
|
*/
|
|
11
11
|
export declare class Formatter {
|
|
12
12
|
editorManager: IEditorModel;
|
|
@@ -18,32 +18,32 @@ export declare class Formatter {
|
|
|
18
18
|
* @param {MouseEvent|KeyboardEvent} event
|
|
19
19
|
* @param {IItemCollectionArgs} value
|
|
20
20
|
* @hidden
|
|
21
|
-
|
|
21
|
+
* @deprecated
|
|
22
22
|
*/
|
|
23
23
|
process(self: IRichTextEditor, args: ActionBeginEventArgs, event: MouseEvent | KeyboardEvent, value: IItemCollectionArgs): void;
|
|
24
24
|
private getAncestorNode;
|
|
25
25
|
/**
|
|
26
26
|
* onKeyHandler method
|
|
27
27
|
* @hidden
|
|
28
|
-
|
|
28
|
+
* @deprecated
|
|
29
29
|
*/
|
|
30
30
|
onKeyHandler(self: IRichTextEditor, e: KeyboardEvent): void;
|
|
31
31
|
/**
|
|
32
32
|
* onSuccess method
|
|
33
33
|
* @hidden
|
|
34
|
-
|
|
34
|
+
* @deprecated
|
|
35
35
|
*/
|
|
36
36
|
onSuccess(self: IRichTextEditor, events: IMarkdownFormatterCallBack | IHtmlFormatterCallBack): void;
|
|
37
37
|
/**
|
|
38
38
|
* Save the data for undo and redo action.
|
|
39
39
|
* @hidden
|
|
40
|
-
|
|
40
|
+
* @deprecated
|
|
41
41
|
*/
|
|
42
42
|
saveData(e?: KeyboardEvent | MouseEvent | IUndoCallBack): void;
|
|
43
43
|
/**
|
|
44
44
|
* getUndoStatus method
|
|
45
45
|
* @hidden
|
|
46
|
-
|
|
46
|
+
* @deprecated
|
|
47
47
|
*/
|
|
48
48
|
getUndoStatus(): {
|
|
49
49
|
[key: string]: boolean;
|
|
@@ -51,13 +51,13 @@ export declare class Formatter {
|
|
|
51
51
|
/**
|
|
52
52
|
* getUndoRedoStack method
|
|
53
53
|
* @hidden
|
|
54
|
-
|
|
54
|
+
* @deprecated
|
|
55
55
|
*/
|
|
56
56
|
getUndoRedoStack(): IHtmlUndoRedoData[] | MarkdownUndoRedoData[];
|
|
57
57
|
/**
|
|
58
58
|
* enableUndo method
|
|
59
59
|
* @hidden
|
|
60
|
-
|
|
60
|
+
* @deprecated
|
|
61
61
|
*/
|
|
62
62
|
enableUndo(self: IRichTextEditor): void;
|
|
63
63
|
}
|
|
@@ -5,7 +5,7 @@ import { KEY_DOWN, KEY_UP } from './../../common/constant';
|
|
|
5
5
|
/**
|
|
6
6
|
* Formatter
|
|
7
7
|
* @hidden
|
|
8
|
-
|
|
8
|
+
* @deprecated
|
|
9
9
|
*/
|
|
10
10
|
var Formatter = /** @class */ (function () {
|
|
11
11
|
function Formatter() {
|
|
@@ -17,7 +17,7 @@ var Formatter = /** @class */ (function () {
|
|
|
17
17
|
* @param {MouseEvent|KeyboardEvent} event
|
|
18
18
|
* @param {IItemCollectionArgs} value
|
|
19
19
|
* @hidden
|
|
20
|
-
|
|
20
|
+
* @deprecated
|
|
21
21
|
*/
|
|
22
22
|
Formatter.prototype.process = function (self, args, event, value) {
|
|
23
23
|
var _this = this;
|
|
@@ -118,7 +118,7 @@ var Formatter = /** @class */ (function () {
|
|
|
118
118
|
/**
|
|
119
119
|
* onKeyHandler method
|
|
120
120
|
* @hidden
|
|
121
|
-
|
|
121
|
+
* @deprecated
|
|
122
122
|
*/
|
|
123
123
|
Formatter.prototype.onKeyHandler = function (self, e) {
|
|
124
124
|
var _this = this;
|
|
@@ -132,7 +132,7 @@ var Formatter = /** @class */ (function () {
|
|
|
132
132
|
/**
|
|
133
133
|
* onSuccess method
|
|
134
134
|
* @hidden
|
|
135
|
-
|
|
135
|
+
* @deprecated
|
|
136
136
|
*/
|
|
137
137
|
Formatter.prototype.onSuccess = function (self, events) {
|
|
138
138
|
self.notify(CONSTANT.contentChanged, {});
|
|
@@ -160,7 +160,7 @@ var Formatter = /** @class */ (function () {
|
|
|
160
160
|
/**
|
|
161
161
|
* Save the data for undo and redo action.
|
|
162
162
|
* @hidden
|
|
163
|
-
|
|
163
|
+
* @deprecated
|
|
164
164
|
*/
|
|
165
165
|
Formatter.prototype.saveData = function (e) {
|
|
166
166
|
this.editorManager.undoRedoManager.saveData(e);
|
|
@@ -168,7 +168,7 @@ var Formatter = /** @class */ (function () {
|
|
|
168
168
|
/**
|
|
169
169
|
* getUndoStatus method
|
|
170
170
|
* @hidden
|
|
171
|
-
|
|
171
|
+
* @deprecated
|
|
172
172
|
*/
|
|
173
173
|
Formatter.prototype.getUndoStatus = function () {
|
|
174
174
|
return this.editorManager.undoRedoManager.getUndoStatus();
|
|
@@ -176,7 +176,7 @@ var Formatter = /** @class */ (function () {
|
|
|
176
176
|
/**
|
|
177
177
|
* getUndoRedoStack method
|
|
178
178
|
* @hidden
|
|
179
|
-
|
|
179
|
+
* @deprecated
|
|
180
180
|
*/
|
|
181
181
|
Formatter.prototype.getUndoRedoStack = function () {
|
|
182
182
|
return this.editorManager.undoRedoManager.undoRedoStack;
|
|
@@ -184,7 +184,7 @@ var Formatter = /** @class */ (function () {
|
|
|
184
184
|
/**
|
|
185
185
|
* enableUndo method
|
|
186
186
|
* @hidden
|
|
187
|
-
|
|
187
|
+
* @deprecated
|
|
188
188
|
*/
|
|
189
189
|
Formatter.prototype.enableUndo = function (self) {
|
|
190
190
|
var status = this.getUndoStatus();
|
|
@@ -3,7 +3,7 @@ import { IEditorModel, IHtmlFormatterModel } from './../base/interface';
|
|
|
3
3
|
/**
|
|
4
4
|
* HTML adapter
|
|
5
5
|
* @hidden
|
|
6
|
-
|
|
6
|
+
* @deprecated
|
|
7
7
|
*/
|
|
8
8
|
export declare class HTMLFormatter extends Formatter {
|
|
9
9
|
keyConfig: {
|
|
@@ -20,7 +20,7 @@ export declare class HTMLFormatter extends Formatter {
|
|
|
20
20
|
* @param {Element} editElement
|
|
21
21
|
* @param {Document} doc
|
|
22
22
|
* @hidden
|
|
23
|
-
|
|
23
|
+
* @deprecated
|
|
24
24
|
*/
|
|
25
25
|
updateFormatter(editElement: Element, doc?: Document, options?: {
|
|
26
26
|
[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';
|
|
@@ -18,7 +18,7 @@ import { htmlKeyConfig } from './../../common/config';
|
|
|
18
18
|
/**
|
|
19
19
|
* HTML adapter
|
|
20
20
|
* @hidden
|
|
21
|
-
|
|
21
|
+
* @deprecated
|
|
22
22
|
*/
|
|
23
23
|
var HTMLFormatter = /** @class */ (function (_super) {
|
|
24
24
|
__extends(HTMLFormatter, _super);
|
|
@@ -39,7 +39,7 @@ var HTMLFormatter = /** @class */ (function (_super) {
|
|
|
39
39
|
* @param {Element} editElement
|
|
40
40
|
* @param {Document} doc
|
|
41
41
|
* @hidden
|
|
42
|
-
|
|
42
|
+
* @deprecated
|
|
43
43
|
*/
|
|
44
44
|
HTMLFormatter.prototype.updateFormatter = function (editElement, doc, options) {
|
|
45
45
|
if (editElement && doc) {
|
|
@@ -3,7 +3,7 @@ import { IEditorModel, IMarkdownFormatterModel } from './../base/interface';
|
|
|
3
3
|
/**
|
|
4
4
|
* Markdown adapter
|
|
5
5
|
* @hidden
|
|
6
|
-
|
|
6
|
+
* @deprecated
|
|
7
7
|
*/
|
|
8
8
|
export declare class MarkdownFormatter extends Formatter {
|
|
9
9
|
keyConfig: {
|
|
@@ -27,7 +27,7 @@ export declare class MarkdownFormatter extends Formatter {
|
|
|
27
27
|
* @param {Element} editElement
|
|
28
28
|
* @param {Document} doc
|
|
29
29
|
* @hidden
|
|
30
|
-
|
|
30
|
+
* @deprecated
|
|
31
31
|
*/
|
|
32
32
|
updateFormatter(editElement: Element, doc?: Document, options?: {
|
|
33
33
|
[key: string]: number;
|