@syncfusion/ej2-richtexteditor 28.1.38 → 28.1.41-640046
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 +648 -584
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +757 -693
- package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
- package/helpers/e2e/index.js +3 -3
- package/helpers/e2e/rte-helper.js +13 -13
- package/license +9 -9
- package/package.json +84 -84
- package/src/common/interface.d.ts +8 -8
- package/src/common/util.d.ts +1 -2
- package/src/common/util.js +49 -95
- package/src/editor-manager/base/classes.d.ts +1 -1
- package/src/editor-manager/base/classes.js +1 -1
- package/src/editor-manager/base/editor-manager.d.ts +3 -3
- package/src/editor-manager/base/editor-manager.js +3 -3
- package/src/editor-manager/base/enum.d.ts +2 -2
- package/src/editor-manager/base/interface.d.ts +17 -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 +2 -2
- package/src/editor-manager/plugin/formats.js +2 -2
- package/src/editor-manager/plugin/image.d.ts +3 -3
- package/src/editor-manager/plugin/image.js +3 -3
- package/src/editor-manager/plugin/indents.d.ts +2 -2
- package/src/editor-manager/plugin/indents.js +2 -2
- package/src/editor-manager/plugin/insert-methods.d.ts +4 -4
- package/src/editor-manager/plugin/insert-methods.js +4 -4
- package/src/editor-manager/plugin/insert-text.d.ts +2 -2
- package/src/editor-manager/plugin/insert-text.js +2 -2
- package/src/editor-manager/plugin/inserthtml-exec.d.ts +2 -2
- package/src/editor-manager/plugin/inserthtml-exec.js +2 -2
- package/src/editor-manager/plugin/inserthtml.d.ts +2 -2
- package/src/editor-manager/plugin/inserthtml.js +5 -5
- 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 +3 -2
- package/src/editor-manager/plugin/lists.js +15 -3
- 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/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 +34 -3
- 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 +26 -4
- 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 +23 -32
- 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.d.ts +2 -0
- package/src/rich-text-editor/actions/resize.js +13 -2
- 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 +1 -1
- package/src/rich-text-editor/base/rich-text-editor.d.ts +62 -62
- package/src/rich-text-editor/base/rich-text-editor.js +67 -51
- 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.js +19 -19
- package/src/rich-text-editor/models/inline-mode.js +19 -19
- package/src/rich-text-editor/models/slash-menu-settings.js +19 -19
- package/src/rich-text-editor/models/toolbar-settings.js +19 -19
- package/src/rich-text-editor/renderer/audio-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/audio-module.js +1 -1
- 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 +3 -3
- 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 +3 -2
- package/src/rich-text-editor/renderer/table-module.js +15 -18
- package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +9 -9
- package/src/rich-text-editor/renderer/toolbar-renderer.js +9 -10
- package/src/rich-text-editor/renderer/video-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/video-module.js +1 -1
- 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 +22 -22
- package/src/selection/selection.js +22 -22
- package/styles/material3-dark.scss +1 -1
- package/styles/material3.scss +1 -1
- 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
|
@@ -12,7 +12,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
12
12
|
};
|
|
13
13
|
})();
|
|
14
14
|
var __assign = (this && this.__assign) || function () {
|
|
15
|
-
__assign = Object.assign || function(t) {
|
|
15
|
+
__assign = Object.assign || function (t) {
|
|
16
16
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
17
17
|
s = arguments[i];
|
|
18
18
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -83,7 +83,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
83
83
|
*
|
|
84
84
|
* @returns {ModuleDeclaration[]} - specifies the declaration.
|
|
85
85
|
* @hidden
|
|
86
|
-
|
|
86
|
+
* @deprecated
|
|
87
87
|
*/
|
|
88
88
|
RichTextEditor.prototype.requiredModules = function () {
|
|
89
89
|
var modules = [];
|
|
@@ -170,7 +170,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
170
170
|
*
|
|
171
171
|
* @returns {void}
|
|
172
172
|
* @hidden
|
|
173
|
-
|
|
173
|
+
* @deprecated
|
|
174
174
|
*/
|
|
175
175
|
RichTextEditor.prototype.setEnable = function () {
|
|
176
176
|
this.updateEnable();
|
|
@@ -269,7 +269,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
269
269
|
*
|
|
270
270
|
* @returns {void}
|
|
271
271
|
* @hidden
|
|
272
|
-
|
|
272
|
+
* @deprecated
|
|
273
273
|
*/
|
|
274
274
|
RichTextEditor.prototype.getPersistData = function () {
|
|
275
275
|
return this.addOnPersist(['value']);
|
|
@@ -450,8 +450,10 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
450
450
|
break;
|
|
451
451
|
case 'insertTable':
|
|
452
452
|
if (isNOU(value.width)) {
|
|
453
|
-
value.width = {
|
|
454
|
-
|
|
453
|
+
value.width = {
|
|
454
|
+
minWidth: this.tableSettings.minWidth,
|
|
455
|
+
maxWidth: this.tableSettings.maxWidth, width: this.tableSettings.width
|
|
456
|
+
};
|
|
455
457
|
}
|
|
456
458
|
break;
|
|
457
459
|
case 'insertImage': {
|
|
@@ -470,12 +472,16 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
470
472
|
url = !isNOU(url) ? url : '';
|
|
471
473
|
value.url = url;
|
|
472
474
|
if (isNOU(value.width)) {
|
|
473
|
-
value.width = {
|
|
474
|
-
|
|
475
|
+
value.width = {
|
|
476
|
+
minWidth: this.insertImageSettings.minWidth,
|
|
477
|
+
maxWidth: this.insertImageSettings.maxWidth, width: this.insertImageSettings.width
|
|
478
|
+
};
|
|
475
479
|
}
|
|
476
480
|
if (isNOU(value.height)) {
|
|
477
|
-
value.height = {
|
|
478
|
-
|
|
481
|
+
value.height = {
|
|
482
|
+
minHeight: this.insertImageSettings.minHeight,
|
|
483
|
+
maxHeight: this.insertImageSettings.maxHeight, height: this.insertImageSettings.height
|
|
484
|
+
};
|
|
479
485
|
}
|
|
480
486
|
break;
|
|
481
487
|
}
|
|
@@ -528,12 +534,16 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
528
534
|
url = !isNOU(url) ? url : '';
|
|
529
535
|
value.url = url;
|
|
530
536
|
if (isNOU(value.width)) {
|
|
531
|
-
value.width = {
|
|
532
|
-
|
|
537
|
+
value.width = {
|
|
538
|
+
minWidth: this.insertVideoSettings.minWidth,
|
|
539
|
+
maxWidth: this.insertVideoSettings.maxWidth, width: this.insertVideoSettings.width
|
|
540
|
+
};
|
|
533
541
|
}
|
|
534
542
|
if (isNOU(value.height)) {
|
|
535
|
-
value.height = {
|
|
536
|
-
|
|
543
|
+
value.height = {
|
|
544
|
+
minHeight: this.insertVideoSettings.minHeight,
|
|
545
|
+
maxHeight: this.insertVideoSettings.maxHeight, height: this.insertVideoSettings.height
|
|
546
|
+
};
|
|
537
547
|
}
|
|
538
548
|
break;
|
|
539
549
|
}
|
|
@@ -569,7 +579,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
569
579
|
*
|
|
570
580
|
* @returns {void}
|
|
571
581
|
* @private
|
|
572
|
-
|
|
582
|
+
* @deprecated
|
|
573
583
|
*/
|
|
574
584
|
RichTextEditor.prototype.render = function () {
|
|
575
585
|
if (this.value && !this.valueTemplate) {
|
|
@@ -607,7 +617,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
607
617
|
*
|
|
608
618
|
* @returns {void}
|
|
609
619
|
* @hidden
|
|
610
|
-
|
|
620
|
+
* @deprecated
|
|
611
621
|
*/
|
|
612
622
|
RichTextEditor.prototype.addAudioVideoWrapper = function () {
|
|
613
623
|
var _this = this;
|
|
@@ -669,7 +679,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
669
679
|
*
|
|
670
680
|
* @returns {void}
|
|
671
681
|
* @private
|
|
672
|
-
|
|
682
|
+
* @deprecated
|
|
673
683
|
* @hidden
|
|
674
684
|
*/
|
|
675
685
|
RichTextEditor.prototype.eventInitializer = function () {
|
|
@@ -720,7 +730,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
720
730
|
* @param {KeyboardEvent} e - specifies the event.
|
|
721
731
|
* @returns {void}
|
|
722
732
|
* @private
|
|
723
|
-
|
|
733
|
+
* @deprecated
|
|
724
734
|
* @hidden
|
|
725
735
|
*/
|
|
726
736
|
RichTextEditor.prototype.keyDown = function (e) {
|
|
@@ -892,7 +902,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
892
902
|
* @param {string} value - specifies the value.
|
|
893
903
|
* @returns {void}
|
|
894
904
|
* @hidden
|
|
895
|
-
|
|
905
|
+
* @deprecated
|
|
896
906
|
*/
|
|
897
907
|
RichTextEditor.prototype.serializeValue = function (value) {
|
|
898
908
|
if (this.editorMode === 'HTML' && !isNOU(value)) {
|
|
@@ -923,7 +933,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
923
933
|
* @param {string} value - specifies the string value.
|
|
924
934
|
* @returns {void}
|
|
925
935
|
* @hidden
|
|
926
|
-
|
|
936
|
+
* @deprecated
|
|
927
937
|
*/
|
|
928
938
|
RichTextEditor.prototype.updateValue = function (value) {
|
|
929
939
|
if (isNOU(value)) {
|
|
@@ -947,9 +957,12 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
947
957
|
};
|
|
948
958
|
RichTextEditor.prototype.notifyMouseUp = function (e) {
|
|
949
959
|
var touch = (e.touches ? e.changedTouches[0] : e);
|
|
950
|
-
this.notify(events.mouseUp, {
|
|
951
|
-
|
|
952
|
-
|
|
960
|
+
this.notify(events.mouseUp, {
|
|
961
|
+
member: 'mouseUp', args: e,
|
|
962
|
+
touchData: {
|
|
963
|
+
prevClientX: this.clickPoints.clientX, prevClientY: this.clickPoints.clientY,
|
|
964
|
+
clientX: touch.clientX, clientY: touch.clientY
|
|
965
|
+
}
|
|
953
966
|
});
|
|
954
967
|
if (this.inputElement && ((this.editorMode === 'HTML' && ((this.inputElement.textContent.length !== 0) || e.target && !isNOU(e.target.querySelector('li')))) ||
|
|
955
968
|
(this.editorMode === 'Markdown' && this.inputElement.value.length !== 0)) ||
|
|
@@ -982,7 +995,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
982
995
|
* @param {Function} module - specifies the module function.
|
|
983
996
|
* @returns {void}
|
|
984
997
|
* @hidden
|
|
985
|
-
|
|
998
|
+
* @deprecated
|
|
986
999
|
*/
|
|
987
1000
|
RichTextEditor.prototype.ensureModuleInjected = function (module) {
|
|
988
1001
|
return this.getInjectedModules().indexOf(module) >= 0;
|
|
@@ -990,7 +1003,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
990
1003
|
/**
|
|
991
1004
|
* @returns {void}
|
|
992
1005
|
* @hidden
|
|
993
|
-
|
|
1006
|
+
* @deprecated
|
|
994
1007
|
*/
|
|
995
1008
|
RichTextEditor.prototype.onCopy = function () {
|
|
996
1009
|
this.contentModule.getDocument().execCommand('copy', false, null);
|
|
@@ -998,7 +1011,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
998
1011
|
/**
|
|
999
1012
|
* @returns {void}
|
|
1000
1013
|
* @hidden
|
|
1001
|
-
|
|
1014
|
+
* @deprecated
|
|
1002
1015
|
*/
|
|
1003
1016
|
RichTextEditor.prototype.onCut = function () {
|
|
1004
1017
|
this.contentModule.getDocument().execCommand('cut', false, null);
|
|
@@ -1007,7 +1020,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1007
1020
|
* @param {KeyboardEvent} e - specifies the keyboard event.
|
|
1008
1021
|
* @returns {void}
|
|
1009
1022
|
* @hidden
|
|
1010
|
-
|
|
1023
|
+
* @deprecated
|
|
1011
1024
|
*/
|
|
1012
1025
|
RichTextEditor.prototype.onPaste = function (e) {
|
|
1013
1026
|
var _this = this;
|
|
@@ -1074,7 +1087,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1074
1087
|
* @param {MouseEvent} event - specifies the event.
|
|
1075
1088
|
* @returns {void}
|
|
1076
1089
|
* @hidden
|
|
1077
|
-
|
|
1090
|
+
* @deprecated
|
|
1078
1091
|
*/
|
|
1079
1092
|
RichTextEditor.prototype.clipboardAction = function (action, event) {
|
|
1080
1093
|
switch (action.toLowerCase()) {
|
|
@@ -1283,7 +1296,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1283
1296
|
*
|
|
1284
1297
|
* @returns {void}
|
|
1285
1298
|
* @private
|
|
1286
|
-
|
|
1299
|
+
* @deprecated
|
|
1287
1300
|
*/
|
|
1288
1301
|
RichTextEditor.prototype.getModuleName = function () {
|
|
1289
1302
|
return 'richtexteditor';
|
|
@@ -1295,7 +1308,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1295
1308
|
* @param {RichTextEditorModel} oldProp - specifies the old property.
|
|
1296
1309
|
* @returns {void}
|
|
1297
1310
|
* @hidden
|
|
1298
|
-
|
|
1311
|
+
* @deprecated
|
|
1299
1312
|
*/
|
|
1300
1313
|
/* eslint-disable */
|
|
1301
1314
|
RichTextEditor.prototype.onPropertyChanged = function (newProp, oldProp) {
|
|
@@ -1448,7 +1461,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1448
1461
|
/**
|
|
1449
1462
|
* @hidden
|
|
1450
1463
|
* @returns {void}
|
|
1451
|
-
|
|
1464
|
+
* @deprecated
|
|
1452
1465
|
*/
|
|
1453
1466
|
RichTextEditor.prototype.updateValueData = function () {
|
|
1454
1467
|
if (this.enableHtmlEncode) {
|
|
@@ -1543,7 +1556,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1543
1556
|
*
|
|
1544
1557
|
* @returns {void}
|
|
1545
1558
|
* @hidden
|
|
1546
|
-
|
|
1559
|
+
* @deprecated
|
|
1547
1560
|
*/
|
|
1548
1561
|
RichTextEditor.prototype.setPlaceHolder = function () {
|
|
1549
1562
|
if (this.inputElement && this.placeholder && this.iframeSettings.enable !== true) {
|
|
@@ -1560,7 +1573,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1560
1573
|
this.placeHolderWrapper.innerHTML = this.placeholder;
|
|
1561
1574
|
if (this.inputElement.textContent.length === 0 && this.inputElement.childNodes.length < 2 && !isNOU(this.inputElement.firstChild) && (this.inputElement.firstChild.nodeName === 'BR' ||
|
|
1562
1575
|
((this.inputElement.firstChild.nodeName === 'P' || this.inputElement.firstChild.nodeName === 'DIV') && !isNOU(this.inputElement.firstChild.firstChild) &&
|
|
1563
|
-
this.inputElement.firstChild.firstChild.nodeName === 'BR'))) {
|
|
1576
|
+
this.inputElement.firstChild.childNodes.length < 2 && this.inputElement.firstChild.firstChild.nodeName === 'BR'))) {
|
|
1564
1577
|
this.placeHolderWrapper.classList.add('enabled');
|
|
1565
1578
|
}
|
|
1566
1579
|
else {
|
|
@@ -1621,7 +1634,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1621
1634
|
* @param {boolean} initial - specifies the boolean value
|
|
1622
1635
|
* @returns {void}
|
|
1623
1636
|
* @hidden
|
|
1624
|
-
|
|
1637
|
+
* @deprecated
|
|
1625
1638
|
*/
|
|
1626
1639
|
RichTextEditor.prototype.setReadOnly = function (initial) {
|
|
1627
1640
|
this.updateReadOnly();
|
|
@@ -1722,7 +1735,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1722
1735
|
*
|
|
1723
1736
|
* @returns {void}
|
|
1724
1737
|
* @public
|
|
1725
|
-
|
|
1738
|
+
* @deprecated
|
|
1726
1739
|
*/
|
|
1727
1740
|
RichTextEditor.prototype.getRange = function () {
|
|
1728
1741
|
return this.formatter.editorManager.nodeSelection.getRange(this.contentModule.getDocument());
|
|
@@ -1869,7 +1882,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1869
1882
|
*
|
|
1870
1883
|
* @returns {void}
|
|
1871
1884
|
* @hidden
|
|
1872
|
-
|
|
1885
|
+
* @deprecated
|
|
1873
1886
|
*/
|
|
1874
1887
|
RichTextEditor.prototype.getInsertImgMaxWidth = function () {
|
|
1875
1888
|
var maxWidth = this.insertImageSettings.maxWidth;
|
|
@@ -1895,7 +1908,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1895
1908
|
*
|
|
1896
1909
|
* @returns {void}
|
|
1897
1910
|
* @hidden
|
|
1898
|
-
|
|
1911
|
+
* @deprecated
|
|
1899
1912
|
*/
|
|
1900
1913
|
RichTextEditor.prototype.getInsertVidMaxWidth = function () {
|
|
1901
1914
|
var maxWidth = this.insertVideoSettings.maxWidth;
|
|
@@ -2014,7 +2027,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2014
2027
|
/**
|
|
2015
2028
|
* @returns {void}
|
|
2016
2029
|
* @hidden
|
|
2017
|
-
|
|
2030
|
+
* @deprecated
|
|
2018
2031
|
*/
|
|
2019
2032
|
RichTextEditor.prototype.getBaseToolbarObject = function () {
|
|
2020
2033
|
var tbObj;
|
|
@@ -2029,7 +2042,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2029
2042
|
/**
|
|
2030
2043
|
* @returns {void}
|
|
2031
2044
|
* @hidden
|
|
2032
|
-
|
|
2045
|
+
* @deprecated
|
|
2033
2046
|
*/
|
|
2034
2047
|
RichTextEditor.prototype.getToolbar = function () {
|
|
2035
2048
|
return this.toolbarModule ? this.toolbarModule.getToolbarElement() : null;
|
|
@@ -2037,7 +2050,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2037
2050
|
/**
|
|
2038
2051
|
* @returns {void}
|
|
2039
2052
|
* @hidden
|
|
2040
|
-
|
|
2053
|
+
* @deprecated
|
|
2041
2054
|
*/
|
|
2042
2055
|
RichTextEditor.prototype.getToolbarElement = function () {
|
|
2043
2056
|
return this.toolbarModule && this.toolbarModule.getToolbarElement();
|
|
@@ -2047,7 +2060,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2047
2060
|
* getID method
|
|
2048
2061
|
*
|
|
2049
2062
|
* @hidden
|
|
2050
|
-
|
|
2063
|
+
* @deprecated
|
|
2051
2064
|
*/
|
|
2052
2065
|
RichTextEditor.prototype.getID = function () {
|
|
2053
2066
|
return this.internalID;
|
|
@@ -2058,7 +2071,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2058
2071
|
* @param {boolean} [isSpace] - Specifies whether to include a space before the CSS class.
|
|
2059
2072
|
* @returns {string} The CSS class.
|
|
2060
2073
|
* @hidden
|
|
2061
|
-
|
|
2074
|
+
* @deprecated
|
|
2062
2075
|
*/
|
|
2063
2076
|
RichTextEditor.prototype.getCssClass = function (isSpace) {
|
|
2064
2077
|
return (isNOU(this.cssClass) ? '' : isSpace ? ' ' + this.cssClass : this.cssClass);
|
|
@@ -2082,7 +2095,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2082
2095
|
* @param {FocusEvent} e - specifies the event.
|
|
2083
2096
|
* @returns {void}
|
|
2084
2097
|
* @hidden
|
|
2085
|
-
|
|
2098
|
+
* @deprecated
|
|
2086
2099
|
*/
|
|
2087
2100
|
// eslint-disable-next-line
|
|
2088
2101
|
RichTextEditor.prototype.preventDefaultResize = function (e) {
|
|
@@ -2294,9 +2307,12 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2294
2307
|
this.removeSelectionClassStates(this.inputElement);
|
|
2295
2308
|
this.notify(events.focusChange, {});
|
|
2296
2309
|
var value = this.getUpdatedValue();
|
|
2297
|
-
this.
|
|
2310
|
+
if (!this.rootContainer.classList.contains('e-source-code-enabled')) {
|
|
2311
|
+
this.setProperties({ value: value }, true);
|
|
2312
|
+
} else {
|
|
2313
|
+
this.setProperties({ value: value });
|
|
2314
|
+
}
|
|
2298
2315
|
this.valueContainer.value = this.value;
|
|
2299
|
-
this.notify(events.toolbarRefresh, { args: e, documentNode: document });
|
|
2300
2316
|
this.isValueChangeBlurhandler = true;
|
|
2301
2317
|
this.invokeChangeEvent();
|
|
2302
2318
|
this.isFocusOut = true;
|
|
@@ -2325,7 +2341,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2325
2341
|
*
|
|
2326
2342
|
* @returns {void}
|
|
2327
2343
|
* @hidden
|
|
2328
|
-
|
|
2344
|
+
* @deprecated
|
|
2329
2345
|
*/
|
|
2330
2346
|
RichTextEditor.prototype.contentChanged = function () {
|
|
2331
2347
|
var tempSpanToRemove = this.inputElement.querySelector('.tempSpan');
|
|
@@ -2344,7 +2360,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2344
2360
|
*
|
|
2345
2361
|
* @returns {void}
|
|
2346
2362
|
* @hidden
|
|
2347
|
-
|
|
2363
|
+
* @deprecated
|
|
2348
2364
|
*/
|
|
2349
2365
|
RichTextEditor.prototype.invokeChangeEvent = function () {
|
|
2350
2366
|
var currentValue;
|
|
@@ -2366,7 +2382,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2366
2382
|
/**
|
|
2367
2383
|
* @returns {void}
|
|
2368
2384
|
* @hidden
|
|
2369
|
-
|
|
2385
|
+
* @deprecated
|
|
2370
2386
|
*/
|
|
2371
2387
|
RichTextEditor.prototype.wireScrollElementsEvents = function () {
|
|
2372
2388
|
this.scrollParentElements = getScrollableParent(this.element);
|
|
@@ -2396,7 +2412,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2396
2412
|
/**
|
|
2397
2413
|
* @returns {void}
|
|
2398
2414
|
* @hidden
|
|
2399
|
-
|
|
2415
|
+
* @deprecated
|
|
2400
2416
|
*/
|
|
2401
2417
|
RichTextEditor.prototype.unWireScrollElementsEvents = function () {
|
|
2402
2418
|
this.scrollParentElements = getScrollableParent(this.element);
|
|
@@ -2433,7 +2449,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2433
2449
|
/**
|
|
2434
2450
|
* @returns {void}
|
|
2435
2451
|
* @hidden
|
|
2436
|
-
|
|
2452
|
+
* @deprecated
|
|
2437
2453
|
*/
|
|
2438
2454
|
RichTextEditor.prototype.autoResize = function () {
|
|
2439
2455
|
if (!this.element || !this.originalElement || !this.valueContainer) {
|
|
@@ -2675,7 +2691,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2675
2691
|
};
|
|
2676
2692
|
RichTextEditor.prototype.removeSelectionClassStates = function (element) {
|
|
2677
2693
|
var classNames = [classes.CLS_IMG_FOCUS, classes.CLS_TABLE_SEL,
|
|
2678
|
-
|
|
2694
|
+
classes.CLS_TABLE_MULTI_CELL, classes.CLS_TABLE_SEL_END, classes.CLS_VID_FOCUS, classes.CLS_AUD_FOCUS];
|
|
2679
2695
|
for (var i = 0; i < classNames.length; i++) {
|
|
2680
2696
|
var item = element.querySelectorAll('.' + classNames[i]);
|
|
2681
2697
|
removeClass(item, classNames[i]);
|
|
@@ -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
|
/**
|
|
@@ -335,7 +335,7 @@ export function updateUndoRedoStatus(baseToolbar, undoRedoStatus) {
|
|
|
335
335
|
* @param {string} type - specifies the string type.
|
|
336
336
|
* @returns {void}
|
|
337
337
|
* @hidden
|
|
338
|
-
|
|
338
|
+
* @deprecated
|
|
339
339
|
*/
|
|
340
340
|
export function dispatchEvent(element, type) {
|
|
341
341
|
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;
|