@syncfusion/ej2-richtexteditor 27.1.55 → 27.1.57-637882
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/.eslintignore +4 -4
- package/.eslintrc.json +260 -260
- 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 +994 -749
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +622 -364
- 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 +85 -85
- package/src/common/editor-styles.js +1 -1
- package/src/common/interface.d.ts +10 -8
- package/src/common/util.js +2 -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/constant.d.ts +4 -0
- package/src/editor-manager/base/constant.js +4 -0
- package/src/editor-manager/base/editor-manager.d.ts +3 -3
- package/src/editor-manager/base/editor-manager.js +3 -3
- package/src/editor-manager/base/enum.d.ts +2 -2
- package/src/editor-manager/base/interface.d.ts +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 +2 -2
- package/src/editor-manager/plugin/audio.d.ts +3 -3
- package/src/editor-manager/plugin/audio.js +3 -3
- package/src/editor-manager/plugin/clearformat-exec.d.ts +2 -2
- package/src/editor-manager/plugin/clearformat-exec.js +2 -2
- package/src/editor-manager/plugin/clearformat.d.ts +1 -1
- package/src/editor-manager/plugin/clearformat.js +1 -1
- package/src/editor-manager/plugin/dom-node.d.ts +36 -36
- package/src/editor-manager/plugin/dom-node.js +36 -36
- package/src/editor-manager/plugin/format-painter-actions.d.ts +1 -1
- package/src/editor-manager/plugin/format-painter-actions.js +1 -1
- package/src/editor-manager/plugin/formats.d.ts +3 -2
- package/src/editor-manager/plugin/formats.js +27 -2
- package/src/editor-manager/plugin/image.d.ts +3 -3
- package/src/editor-manager/plugin/image.js +11 -5
- 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 +4 -2
- package/src/editor-manager/plugin/inserthtml.js +98 -19
- package/src/editor-manager/plugin/isformatted.d.ts +9 -9
- package/src/editor-manager/plugin/isformatted.js +9 -9
- package/src/editor-manager/plugin/link.d.ts +2 -2
- package/src/editor-manager/plugin/link.js +2 -2
- package/src/editor-manager/plugin/lists.d.ts +2 -2
- package/src/editor-manager/plugin/lists.js +2 -2
- package/src/editor-manager/plugin/ms-word-clean-up.d.ts +2 -1
- package/src/editor-manager/plugin/ms-word-clean-up.js +17 -1
- 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 +6 -6
- package/src/editor-manager/plugin/video.d.ts +3 -3
- package/src/editor-manager/plugin/video.js +3 -3
- package/src/markdown-parser/base/interface.d.ts +10 -10
- package/src/markdown-parser/base/markdown-parser.d.ts +3 -3
- package/src/markdown-parser/base/markdown-parser.js +3 -3
- package/src/markdown-parser/base/types.d.ts +1 -1
- package/src/markdown-parser/plugin/clearformat.d.ts +2 -2
- package/src/markdown-parser/plugin/clearformat.js +2 -2
- package/src/markdown-parser/plugin/formats.d.ts +2 -2
- package/src/markdown-parser/plugin/formats.js +2 -2
- package/src/markdown-parser/plugin/insert-text.d.ts +2 -2
- package/src/markdown-parser/plugin/insert-text.js +2 -2
- package/src/markdown-parser/plugin/link.d.ts +2 -2
- package/src/markdown-parser/plugin/link.js +2 -2
- package/src/markdown-parser/plugin/markdown-selection.d.ts +14 -14
- package/src/markdown-parser/plugin/markdown-selection.js +14 -14
- package/src/markdown-parser/plugin/md-selection-formats.d.ts +1 -1
- package/src/markdown-parser/plugin/md-selection-formats.js +1 -1
- package/src/markdown-parser/plugin/table.d.ts +3 -3
- package/src/markdown-parser/plugin/table.js +3 -3
- package/src/markdown-parser/plugin/undo.d.ts +6 -6
- package/src/markdown-parser/plugin/undo.js +6 -6
- package/src/rich-text-editor/actions/base-quick-toolbar.d.ts +9 -9
- package/src/rich-text-editor/actions/base-quick-toolbar.js +9 -9
- package/src/rich-text-editor/actions/base-toolbar.d.ts +3 -3
- package/src/rich-text-editor/actions/base-toolbar.js +3 -3
- package/src/rich-text-editor/actions/color-picker.d.ts +2 -2
- package/src/rich-text-editor/actions/color-picker.js +2 -2
- package/src/rich-text-editor/actions/count.d.ts +3 -3
- package/src/rich-text-editor/actions/count.js +3 -3
- package/src/rich-text-editor/actions/dropdown-buttons.d.ts +2 -2
- package/src/rich-text-editor/actions/dropdown-buttons.js +2 -2
- package/src/rich-text-editor/actions/emoji-picker.d.ts +1 -1
- package/src/rich-text-editor/actions/emoji-picker.js +1 -1
- package/src/rich-text-editor/actions/enter-key.js +10 -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 +21 -5
- package/src/rich-text-editor/actions/keyboard-model.d.ts +16 -16
- package/src/rich-text-editor/actions/keyboard.d.ts +1 -1
- package/src/rich-text-editor/actions/keyboard.js +20 -20
- package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
- package/src/rich-text-editor/actions/markdown-editor.js +2 -2
- package/src/rich-text-editor/actions/paste-clean-up.d.ts +1 -1
- package/src/rich-text-editor/actions/paste-clean-up.js +49 -22
- package/src/rich-text-editor/actions/quick-toolbar.d.ts +9 -9
- package/src/rich-text-editor/actions/quick-toolbar.js +9 -9
- package/src/rich-text-editor/actions/resize.js +4 -0
- package/src/rich-text-editor/actions/toolbar.d.ts +13 -13
- package/src/rich-text-editor/actions/toolbar.js +13 -13
- package/src/rich-text-editor/actions/xhtml-validation.d.ts +1 -1
- package/src/rich-text-editor/actions/xhtml-validation.js +1 -1
- package/src/rich-text-editor/base/classes.d.ts +125 -125
- package/src/rich-text-editor/base/classes.js +125 -125
- package/src/rich-text-editor/base/constant.d.ts +158 -158
- package/src/rich-text-editor/base/constant.js +158 -158
- package/src/rich-text-editor/base/enum.d.ts +1 -1
- package/src/rich-text-editor/base/enum.js +1 -1
- package/src/rich-text-editor/base/interface.d.ts +51 -51
- package/src/rich-text-editor/base/interface.js +1 -1
- package/src/rich-text-editor/base/rich-text-editor-model.d.ts +958 -958
- package/src/rich-text-editor/base/rich-text-editor.d.ts +62 -62
- package/src/rich-text-editor/base/rich-text-editor.js +68 -65
- package/src/rich-text-editor/base/util.d.ts +1 -1
- package/src/rich-text-editor/base/util.js +1 -1
- package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
- package/src/rich-text-editor/formatter/formatter.js +8 -8
- package/src/rich-text-editor/formatter/html-formatter.d.ts +2 -2
- package/src/rich-text-editor/formatter/html-formatter.js +15 -15
- package/src/rich-text-editor/formatter/markdown-formatter.d.ts +2 -2
- package/src/rich-text-editor/formatter/markdown-formatter.js +15 -15
- package/src/rich-text-editor/models/default-locale.js +5 -5
- package/src/rich-text-editor/models/iframe-settings-model.d.ts +38 -38
- 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/slash-menu-settings-model.d.ts +25 -25
- package/src/rich-text-editor/models/slash-menu-settings.js +19 -19
- package/src/rich-text-editor/models/toolbar-settings-model.d.ts +807 -807
- 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 +8 -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 +17 -17
- package/src/rich-text-editor/renderer/image-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/image-module.js +65 -23
- 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/slash-menu.js +9 -0
- package/src/rich-text-editor/renderer/table-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/table-module.js +5 -4
- package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +9 -9
- package/src/rich-text-editor/renderer/toolbar-renderer.js +9 -9
- package/src/rich-text-editor/renderer/video-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/video-module.js +8 -2
- package/src/rich-text-editor/renderer/view-source.d.ts +5 -5
- package/src/rich-text-editor/renderer/view-source.js +5 -5
- package/src/rich-text-editor/services/renderer-factory.d.ts +3 -3
- package/src/rich-text-editor/services/renderer-factory.js +3 -3
- package/src/rich-text-editor/services/service-locator.d.ts +3 -3
- package/src/rich-text-editor/services/service-locator.js +3 -3
- package/src/selection/selection.d.ts +24 -23
- package/src/selection/selection.js +37 -34
- package/styles/_all.scss +1 -1
- package/styles/material3-dark.scss +1 -1
- package/styles/material3.scss +1 -1
- package/styles/rich-text-editor/_all.scss +2 -2
- package/styles/rich-text-editor/_bds-definition.scss +290 -290
- package/styles/rich-text-editor/_bigger.scss +610 -610
- package/styles/rich-text-editor/_bootstrap-dark-definition.scss +291 -291
- package/styles/rich-text-editor/_bootstrap-definition.scss +349 -349
- package/styles/rich-text-editor/_bootstrap4-definition.scss +476 -476
- package/styles/rich-text-editor/_bootstrap5-definition.scss +278 -278
- package/styles/rich-text-editor/_bootstrap5.3-definition.scss +278 -278
- package/styles/rich-text-editor/_fabric-dark-definition.scss +275 -275
- package/styles/rich-text-editor/_fabric-definition.scss +273 -273
- package/styles/rich-text-editor/_fluent-definition.scss +279 -279
- package/styles/rich-text-editor/_fluent2-definition.scss +287 -287
- package/styles/rich-text-editor/_fusionnew-definition.scss +276 -276
- package/styles/rich-text-editor/_highcontrast-definition.scss +274 -274
- package/styles/rich-text-editor/_highcontrast-light-definition.scss +273 -273
- package/styles/rich-text-editor/_layout.scss +2180 -2180
- package/styles/rich-text-editor/_material-dark-definition.scss +278 -278
- package/styles/rich-text-editor/_material-definition.scss +276 -276
- package/styles/rich-text-editor/_material3-definition.scss +278 -278
- package/styles/rich-text-editor/_tailwind-definition.scss +273 -273
- package/styles/rich-text-editor/_theme.scss +844 -844
- package/styles/rich-text-editor/icons/_bds.scss +372 -372
- package/styles/rich-text-editor/icons/_bootstrap-dark.scss +373 -373
- package/styles/rich-text-editor/icons/_bootstrap.scss +373 -373
- package/styles/rich-text-editor/icons/_bootstrap4.scss +373 -373
- package/styles/rich-text-editor/icons/_bootstrap5.3.scss +372 -372
- package/styles/rich-text-editor/icons/_bootstrap5.scss +372 -372
- package/styles/rich-text-editor/icons/_fabric-dark.scss +373 -373
- package/styles/rich-text-editor/icons/_fabric.scss +373 -373
- package/styles/rich-text-editor/icons/_fluent.scss +372 -372
- package/styles/rich-text-editor/icons/_fluent2.scss +369 -369
- package/styles/rich-text-editor/icons/_fusionnew.scss +357 -357
- package/styles/rich-text-editor/icons/_highcontrast-light.scss +361 -361
- package/styles/rich-text-editor/icons/_highcontrast.scss +373 -373
- package/styles/rich-text-editor/icons/_material-dark.scss +373 -373
- package/styles/rich-text-editor/icons/_material.scss +373 -373
- package/styles/rich-text-editor/icons/_material3.scss +372 -372
- package/styles/rich-text-editor/icons/_tailwind.scss +372 -372
- package/styles/rich-text-editor/material3-dark.scss +1 -1
- package/styles/rich-text-editor/material3.scss +1 -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';
|
|
@@ -82,7 +82,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
82
82
|
*
|
|
83
83
|
* @returns {ModuleDeclaration[]} - specifies the declaration.
|
|
84
84
|
* @hidden
|
|
85
|
-
|
|
85
|
+
* @deprecated
|
|
86
86
|
*/
|
|
87
87
|
RichTextEditor.prototype.requiredModules = function () {
|
|
88
88
|
var modules = [];
|
|
@@ -169,7 +169,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
169
169
|
*
|
|
170
170
|
* @returns {void}
|
|
171
171
|
* @hidden
|
|
172
|
-
|
|
172
|
+
* @deprecated
|
|
173
173
|
*/
|
|
174
174
|
RichTextEditor.prototype.setEnable = function () {
|
|
175
175
|
this.updateEnable();
|
|
@@ -268,7 +268,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
268
268
|
*
|
|
269
269
|
* @returns {void}
|
|
270
270
|
* @hidden
|
|
271
|
-
|
|
271
|
+
* @deprecated
|
|
272
272
|
*/
|
|
273
273
|
RichTextEditor.prototype.getPersistData = function () {
|
|
274
274
|
return this.addOnPersist(['value']);
|
|
@@ -567,7 +567,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
567
567
|
*
|
|
568
568
|
* @returns {void}
|
|
569
569
|
* @private
|
|
570
|
-
|
|
570
|
+
* @deprecated
|
|
571
571
|
*/
|
|
572
572
|
RichTextEditor.prototype.render = function () {
|
|
573
573
|
if (this.value && !this.valueTemplate) {
|
|
@@ -605,7 +605,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
605
605
|
*
|
|
606
606
|
* @returns {void}
|
|
607
607
|
* @hidden
|
|
608
|
-
|
|
608
|
+
* @deprecated
|
|
609
609
|
*/
|
|
610
610
|
RichTextEditor.prototype.addAudioVideoWrapper = function () {
|
|
611
611
|
var _this = this;
|
|
@@ -667,7 +667,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
667
667
|
*
|
|
668
668
|
* @returns {void}
|
|
669
669
|
* @private
|
|
670
|
-
|
|
670
|
+
* @deprecated
|
|
671
671
|
* @hidden
|
|
672
672
|
*/
|
|
673
673
|
RichTextEditor.prototype.eventInitializer = function () {
|
|
@@ -718,7 +718,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
718
718
|
* @param {KeyboardEvent} e - specifies the event.
|
|
719
719
|
* @returns {void}
|
|
720
720
|
* @private
|
|
721
|
-
|
|
721
|
+
* @deprecated
|
|
722
722
|
* @hidden
|
|
723
723
|
*/
|
|
724
724
|
RichTextEditor.prototype.keyDown = function (e) {
|
|
@@ -781,7 +781,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
781
781
|
}
|
|
782
782
|
var notFormatPainterCopy = isNOU(e.action) ? true : (e.action !== 'format-copy' ? true : false);
|
|
783
783
|
if (this.formatter.getUndoRedoStack().length === 0 && notFormatPainterCopy &&
|
|
784
|
-
!(e.altKey || e.shiftKey || (e.altKey && e.shiftKey && e.which === 67))) {
|
|
784
|
+
!(e.altKey || (e.shiftKey && e.which === 16) || (e.altKey && e.shiftKey && e.which === 67))) {
|
|
785
785
|
this.formatter.saveData();
|
|
786
786
|
}
|
|
787
787
|
var preventingMention = false;
|
|
@@ -890,7 +890,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
890
890
|
* @param {string} value - specifies the value.
|
|
891
891
|
* @returns {void}
|
|
892
892
|
* @hidden
|
|
893
|
-
|
|
893
|
+
* @deprecated
|
|
894
894
|
*/
|
|
895
895
|
RichTextEditor.prototype.serializeValue = function (value) {
|
|
896
896
|
if (this.editorMode === 'HTML' && !isNOU(value)) {
|
|
@@ -921,7 +921,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
921
921
|
* @param {string} value - specifies the string value.
|
|
922
922
|
* @returns {void}
|
|
923
923
|
* @hidden
|
|
924
|
-
|
|
924
|
+
* @deprecated
|
|
925
925
|
*/
|
|
926
926
|
RichTextEditor.prototype.updateValue = function (value) {
|
|
927
927
|
if (isNOU(value)) {
|
|
@@ -980,7 +980,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
980
980
|
* @param {Function} module - specifies the module function.
|
|
981
981
|
* @returns {void}
|
|
982
982
|
* @hidden
|
|
983
|
-
|
|
983
|
+
* @deprecated
|
|
984
984
|
*/
|
|
985
985
|
RichTextEditor.prototype.ensureModuleInjected = function (module) {
|
|
986
986
|
return this.getInjectedModules().indexOf(module) >= 0;
|
|
@@ -988,7 +988,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
988
988
|
/**
|
|
989
989
|
* @returns {void}
|
|
990
990
|
* @hidden
|
|
991
|
-
|
|
991
|
+
* @deprecated
|
|
992
992
|
*/
|
|
993
993
|
RichTextEditor.prototype.onCopy = function () {
|
|
994
994
|
this.contentModule.getDocument().execCommand('copy', false, null);
|
|
@@ -996,7 +996,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
996
996
|
/**
|
|
997
997
|
* @returns {void}
|
|
998
998
|
* @hidden
|
|
999
|
-
|
|
999
|
+
* @deprecated
|
|
1000
1000
|
*/
|
|
1001
1001
|
RichTextEditor.prototype.onCut = function () {
|
|
1002
1002
|
this.contentModule.getDocument().execCommand('cut', false, null);
|
|
@@ -1005,7 +1005,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1005
1005
|
* @param {KeyboardEvent} e - specifies the keyboard event.
|
|
1006
1006
|
* @returns {void}
|
|
1007
1007
|
* @hidden
|
|
1008
|
-
|
|
1008
|
+
* @deprecated
|
|
1009
1009
|
*/
|
|
1010
1010
|
RichTextEditor.prototype.onPaste = function (e) {
|
|
1011
1011
|
var _this = this;
|
|
@@ -1072,7 +1072,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1072
1072
|
* @param {MouseEvent} event - specifies the event.
|
|
1073
1073
|
* @returns {void}
|
|
1074
1074
|
* @hidden
|
|
1075
|
-
|
|
1075
|
+
* @deprecated
|
|
1076
1076
|
*/
|
|
1077
1077
|
RichTextEditor.prototype.clipboardAction = function (action, event) {
|
|
1078
1078
|
switch (action.toLowerCase()) {
|
|
@@ -1281,7 +1281,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1281
1281
|
*
|
|
1282
1282
|
* @returns {void}
|
|
1283
1283
|
* @private
|
|
1284
|
-
|
|
1284
|
+
* @deprecated
|
|
1285
1285
|
*/
|
|
1286
1286
|
RichTextEditor.prototype.getModuleName = function () {
|
|
1287
1287
|
return 'richtexteditor';
|
|
@@ -1293,7 +1293,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1293
1293
|
* @param {RichTextEditorModel} oldProp - specifies the old property.
|
|
1294
1294
|
* @returns {void}
|
|
1295
1295
|
* @hidden
|
|
1296
|
-
|
|
1296
|
+
* @deprecated
|
|
1297
1297
|
*/
|
|
1298
1298
|
/* eslint-disable */
|
|
1299
1299
|
RichTextEditor.prototype.onPropertyChanged = function (newProp, oldProp) {
|
|
@@ -1446,7 +1446,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1446
1446
|
/**
|
|
1447
1447
|
* @hidden
|
|
1448
1448
|
* @returns {void}
|
|
1449
|
-
|
|
1449
|
+
* @deprecated
|
|
1450
1450
|
*/
|
|
1451
1451
|
RichTextEditor.prototype.updateValueData = function () {
|
|
1452
1452
|
if (this.enableHtmlEncode) {
|
|
@@ -1541,7 +1541,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1541
1541
|
*
|
|
1542
1542
|
* @returns {void}
|
|
1543
1543
|
* @hidden
|
|
1544
|
-
|
|
1544
|
+
* @deprecated
|
|
1545
1545
|
*/
|
|
1546
1546
|
RichTextEditor.prototype.setPlaceHolder = function () {
|
|
1547
1547
|
if (this.inputElement && this.placeholder && this.iframeSettings.enable !== true) {
|
|
@@ -1619,7 +1619,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1619
1619
|
* @param {boolean} initial - specifies the boolean value
|
|
1620
1620
|
* @returns {void}
|
|
1621
1621
|
* @hidden
|
|
1622
|
-
|
|
1622
|
+
* @deprecated
|
|
1623
1623
|
*/
|
|
1624
1624
|
RichTextEditor.prototype.setReadOnly = function (initial) {
|
|
1625
1625
|
this.updateReadOnly();
|
|
@@ -1720,7 +1720,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1720
1720
|
*
|
|
1721
1721
|
* @returns {void}
|
|
1722
1722
|
* @public
|
|
1723
|
-
|
|
1723
|
+
* @deprecated
|
|
1724
1724
|
*/
|
|
1725
1725
|
RichTextEditor.prototype.getRange = function () {
|
|
1726
1726
|
return this.formatter.editorManager.nodeSelection.getRange(this.contentModule.getDocument());
|
|
@@ -1835,7 +1835,10 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1835
1835
|
var item = compiledTemplate[i];
|
|
1836
1836
|
append([item], appendElem);
|
|
1837
1837
|
}
|
|
1838
|
-
|
|
1838
|
+
var content = appendElem.innerHTML.trim();
|
|
1839
|
+
if (content.length > 0) {
|
|
1840
|
+
this.setProperties({ value: content });
|
|
1841
|
+
}
|
|
1839
1842
|
this.renderReactTemplates();
|
|
1840
1843
|
}
|
|
1841
1844
|
}
|
|
@@ -1865,7 +1868,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1865
1868
|
*
|
|
1866
1869
|
* @returns {void}
|
|
1867
1870
|
* @hidden
|
|
1868
|
-
|
|
1871
|
+
* @deprecated
|
|
1869
1872
|
*/
|
|
1870
1873
|
RichTextEditor.prototype.getInsertImgMaxWidth = function () {
|
|
1871
1874
|
var maxWidth = this.insertImageSettings.maxWidth;
|
|
@@ -1891,7 +1894,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1891
1894
|
*
|
|
1892
1895
|
* @returns {void}
|
|
1893
1896
|
* @hidden
|
|
1894
|
-
|
|
1897
|
+
* @deprecated
|
|
1895
1898
|
*/
|
|
1896
1899
|
RichTextEditor.prototype.getInsertVidMaxWidth = function () {
|
|
1897
1900
|
var maxWidth = this.insertVideoSettings.maxWidth;
|
|
@@ -2010,7 +2013,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2010
2013
|
/**
|
|
2011
2014
|
* @returns {void}
|
|
2012
2015
|
* @hidden
|
|
2013
|
-
|
|
2016
|
+
* @deprecated
|
|
2014
2017
|
*/
|
|
2015
2018
|
RichTextEditor.prototype.getBaseToolbarObject = function () {
|
|
2016
2019
|
var tbObj;
|
|
@@ -2025,7 +2028,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2025
2028
|
/**
|
|
2026
2029
|
* @returns {void}
|
|
2027
2030
|
* @hidden
|
|
2028
|
-
|
|
2031
|
+
* @deprecated
|
|
2029
2032
|
*/
|
|
2030
2033
|
RichTextEditor.prototype.getToolbar = function () {
|
|
2031
2034
|
return this.toolbarModule ? this.toolbarModule.getToolbarElement() : null;
|
|
@@ -2033,7 +2036,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2033
2036
|
/**
|
|
2034
2037
|
* @returns {void}
|
|
2035
2038
|
* @hidden
|
|
2036
|
-
|
|
2039
|
+
* @deprecated
|
|
2037
2040
|
*/
|
|
2038
2041
|
RichTextEditor.prototype.getToolbarElement = function () {
|
|
2039
2042
|
return this.toolbarModule && this.toolbarModule.getToolbarElement();
|
|
@@ -2043,7 +2046,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2043
2046
|
* getID method
|
|
2044
2047
|
*
|
|
2045
2048
|
* @hidden
|
|
2046
|
-
|
|
2049
|
+
* @deprecated
|
|
2047
2050
|
*/
|
|
2048
2051
|
RichTextEditor.prototype.getID = function () {
|
|
2049
2052
|
return this.internalID;
|
|
@@ -2054,7 +2057,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2054
2057
|
* @param {boolean} [isSpace] - Specifies whether to include a space before the CSS class.
|
|
2055
2058
|
* @returns {string} The CSS class.
|
|
2056
2059
|
* @hidden
|
|
2057
|
-
|
|
2060
|
+
* @deprecated
|
|
2058
2061
|
*/
|
|
2059
2062
|
RichTextEditor.prototype.getCssClass = function (isSpace) {
|
|
2060
2063
|
return (isNOU(this.cssClass) ? '' : isSpace ? ' ' + this.cssClass : this.cssClass);
|
|
@@ -2078,7 +2081,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2078
2081
|
* @param {FocusEvent} e - specifies the event.
|
|
2079
2082
|
* @returns {void}
|
|
2080
2083
|
* @hidden
|
|
2081
|
-
|
|
2084
|
+
* @deprecated
|
|
2082
2085
|
*/
|
|
2083
2086
|
// eslint-disable-next-line
|
|
2084
2087
|
RichTextEditor.prototype.preventDefaultResize = function (e) {
|
|
@@ -2321,7 +2324,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2321
2324
|
*
|
|
2322
2325
|
* @returns {void}
|
|
2323
2326
|
* @hidden
|
|
2324
|
-
|
|
2327
|
+
* @deprecated
|
|
2325
2328
|
*/
|
|
2326
2329
|
RichTextEditor.prototype.contentChanged = function () {
|
|
2327
2330
|
if (this.autoSaveOnIdle) {
|
|
@@ -2336,7 +2339,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2336
2339
|
*
|
|
2337
2340
|
* @returns {void}
|
|
2338
2341
|
* @hidden
|
|
2339
|
-
|
|
2342
|
+
* @deprecated
|
|
2340
2343
|
*/
|
|
2341
2344
|
RichTextEditor.prototype.invokeChangeEvent = function () {
|
|
2342
2345
|
var currentValue;
|
|
@@ -2358,7 +2361,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2358
2361
|
/**
|
|
2359
2362
|
* @returns {void}
|
|
2360
2363
|
* @hidden
|
|
2361
|
-
|
|
2364
|
+
* @deprecated
|
|
2362
2365
|
*/
|
|
2363
2366
|
RichTextEditor.prototype.wireScrollElementsEvents = function () {
|
|
2364
2367
|
this.scrollParentElements = getScrollableParent(this.element);
|
|
@@ -2388,7 +2391,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2388
2391
|
/**
|
|
2389
2392
|
* @returns {void}
|
|
2390
2393
|
* @hidden
|
|
2391
|
-
|
|
2394
|
+
* @deprecated
|
|
2392
2395
|
*/
|
|
2393
2396
|
RichTextEditor.prototype.unWireScrollElementsEvents = function () {
|
|
2394
2397
|
this.scrollParentElements = getScrollableParent(this.element);
|
|
@@ -2425,7 +2428,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2425
2428
|
/**
|
|
2426
2429
|
* @returns {void}
|
|
2427
2430
|
* @hidden
|
|
2428
|
-
|
|
2431
|
+
* @deprecated
|
|
2429
2432
|
*/
|
|
2430
2433
|
RichTextEditor.prototype.autoResize = function () {
|
|
2431
2434
|
if (!this.element || !this.originalElement || !this.valueContainer) {
|
|
@@ -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
|
/**
|
|
@@ -332,7 +332,7 @@ export function updateUndoRedoStatus(baseToolbar, undoRedoStatus) {
|
|
|
332
332
|
* @param {string} type - specifies the string type.
|
|
333
333
|
* @returns {void}
|
|
334
334
|
* @hidden
|
|
335
|
-
|
|
335
|
+
* @deprecated
|
|
336
336
|
*/
|
|
337
337
|
export function dispatchEvent(element, type) {
|
|
338
338
|
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
|
beforeSlashMenuApply(): void;
|
|
@@ -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;
|
|
@@ -172,7 +172,7 @@ var Formatter = /** @class */ (function () {
|
|
|
172
172
|
* @param {KeyboardEvent} e - specifies the keyboard event.
|
|
173
173
|
* @returns {void}
|
|
174
174
|
* @hidden
|
|
175
|
-
|
|
175
|
+
* @deprecated
|
|
176
176
|
*/
|
|
177
177
|
Formatter.prototype.onKeyHandler = function (self, e) {
|
|
178
178
|
var _this = this;
|
|
@@ -191,7 +191,7 @@ var Formatter = /** @class */ (function () {
|
|
|
191
191
|
* @param {IMarkdownFormatterCallBack} events - specifies the event call back
|
|
192
192
|
* @returns {void}
|
|
193
193
|
* @hidden
|
|
194
|
-
|
|
194
|
+
* @deprecated
|
|
195
195
|
*/
|
|
196
196
|
Formatter.prototype.onSuccess = function (self, events) {
|
|
197
197
|
self.notify(CONSTANT.contentChanged, {});
|
|
@@ -225,7 +225,7 @@ var Formatter = /** @class */ (function () {
|
|
|
225
225
|
* @param {KeyboardEvent} e - specifies the keyboard event.
|
|
226
226
|
* @returns {void}
|
|
227
227
|
* @hidden
|
|
228
|
-
|
|
228
|
+
* @deprecated
|
|
229
229
|
*/
|
|
230
230
|
Formatter.prototype.saveData = function (e) {
|
|
231
231
|
this.editorManager.undoRedoManager.saveData(e);
|
|
@@ -235,7 +235,7 @@ var Formatter = /** @class */ (function () {
|
|
|
235
235
|
*
|
|
236
236
|
* @returns {void}
|
|
237
237
|
* @hidden
|
|
238
|
-
|
|
238
|
+
* @deprecated
|
|
239
239
|
*/
|
|
240
240
|
Formatter.prototype.getUndoStatus = function () {
|
|
241
241
|
return this.editorManager.undoRedoManager.getUndoStatus();
|
|
@@ -247,7 +247,7 @@ var Formatter = /** @class */ (function () {
|
|
|
247
247
|
* @param {IHtmlUndoRedoData} - specifies the redo data.
|
|
248
248
|
* @returns {void}
|
|
249
249
|
* @hidden
|
|
250
|
-
|
|
250
|
+
* @deprecated
|
|
251
251
|
*/
|
|
252
252
|
/* eslint-enable */
|
|
253
253
|
Formatter.prototype.getUndoRedoStack = function () {
|
|
@@ -259,7 +259,7 @@ var Formatter = /** @class */ (function () {
|
|
|
259
259
|
* @param {IRichTextEditor} self - specifies the self element.
|
|
260
260
|
* @returns {void}
|
|
261
261
|
* @hidden
|
|
262
|
-
|
|
262
|
+
* @deprecated
|
|
263
263
|
*/
|
|
264
264
|
Formatter.prototype.enableUndo = function (self) {
|
|
265
265
|
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;
|
|
@@ -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) {
|
|
@@ -360,11 +360,11 @@ export var formatsLocale = [
|
|
|
360
360
|
export var numberFormatListLocale = [
|
|
361
361
|
{ locale: 'numberFormatListNone', value: 'none' },
|
|
362
362
|
{ locale: 'numberFormatListNumber', value: 'decimal' },
|
|
363
|
-
{ locale: 'numberFormatListLowerAlpha', value: '
|
|
364
|
-
{ locale: 'numberFormatListUpperAlpha', value: '
|
|
365
|
-
{ locale: 'numberFormatListLowerRoman', value: '
|
|
366
|
-
{ locale: 'numberFormatListUpperRoman', value: '
|
|
367
|
-
{ locale: 'numberFormatListLowerGreek', value: '
|
|
363
|
+
{ locale: 'numberFormatListLowerAlpha', value: 'lowerAlpha' },
|
|
364
|
+
{ locale: 'numberFormatListUpperAlpha', value: 'upperAlpha' },
|
|
365
|
+
{ locale: 'numberFormatListLowerRoman', value: 'lowerRoman' },
|
|
366
|
+
{ locale: 'numberFormatListUpperRoman', value: 'upperRoman' },
|
|
367
|
+
{ locale: 'numberFormatListLowerGreek', value: 'lowerGreek' }
|
|
368
368
|
];
|
|
369
369
|
export var bulletFormatListLocale = [
|
|
370
370
|
{ locale: 'bulletFormatListNone', value: 'none' },
|