@syncfusion/ej2-richtexteditor 19.3.46 → 19.3.47-6125
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +999 -977
- 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 +174 -131
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +283 -240
- package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
- package/helpers/e2e/index.js +3 -3
- package/license +9 -9
- package/package.json +55 -74
- package/src/common/interface.d.ts +7 -7
- package/src/editor-manager/base/classes.d.ts +1 -1
- package/src/editor-manager/base/classes.js +1 -1
- package/src/editor-manager/base/editor-manager.d.ts +3 -3
- package/src/editor-manager/base/editor-manager.js +3 -3
- package/src/editor-manager/base/interface.d.ts +7 -7
- package/src/editor-manager/base/types.d.ts +1 -1
- package/src/editor-manager/plugin/alignments.d.ts +2 -2
- package/src/editor-manager/plugin/alignments.js +2 -2
- package/src/editor-manager/plugin/clearformat-exec.d.ts +2 -2
- package/src/editor-manager/plugin/clearformat-exec.js +2 -2
- package/src/editor-manager/plugin/clearformat.d.ts +1 -1
- package/src/editor-manager/plugin/clearformat.js +1 -1
- package/src/editor-manager/plugin/dom-node.d.ts +34 -34
- package/src/editor-manager/plugin/dom-node.js +34 -34
- package/src/editor-manager/plugin/formats.d.ts +2 -2
- package/src/editor-manager/plugin/formats.js +2 -2
- package/src/editor-manager/plugin/image.d.ts +3 -3
- package/src/editor-manager/plugin/image.js +3 -3
- package/src/editor-manager/plugin/indents.d.ts +2 -2
- package/src/editor-manager/plugin/indents.js +2 -2
- package/src/editor-manager/plugin/insert-methods.d.ts +4 -4
- package/src/editor-manager/plugin/insert-methods.js +4 -4
- package/src/editor-manager/plugin/insert-text.d.ts +2 -2
- package/src/editor-manager/plugin/insert-text.js +2 -2
- package/src/editor-manager/plugin/inserthtml-exec.d.ts +2 -2
- package/src/editor-manager/plugin/inserthtml-exec.js +2 -2
- package/src/editor-manager/plugin/inserthtml.d.ts +2 -2
- package/src/editor-manager/plugin/inserthtml.js +2 -2
- package/src/editor-manager/plugin/isformatted.d.ts +8 -8
- package/src/editor-manager/plugin/isformatted.js +8 -8
- package/src/editor-manager/plugin/link.d.ts +2 -2
- package/src/editor-manager/plugin/link.js +2 -2
- package/src/editor-manager/plugin/lists.d.ts +2 -2
- package/src/editor-manager/plugin/lists.js +2 -2
- package/src/editor-manager/plugin/ms-word-clean-up.d.ts +1 -1
- package/src/editor-manager/plugin/ms-word-clean-up.js +1 -1
- package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
- package/src/editor-manager/plugin/nodecutter.js +6 -6
- package/src/editor-manager/plugin/selection-commands.d.ts +1 -1
- package/src/editor-manager/plugin/selection-commands.js +19 -2
- 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/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 +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/enter-key.js +1 -0
- package/src/rich-text-editor/actions/full-screen.d.ts +3 -3
- package/src/rich-text-editor/actions/full-screen.js +3 -3
- package/src/rich-text-editor/actions/html-editor.d.ts +3 -3
- package/src/rich-text-editor/actions/html-editor.js +3 -3
- package/src/rich-text-editor/actions/keyboard-model.d.ts +16 -16
- package/src/rich-text-editor/actions/keyboard.d.ts +1 -1
- package/src/rich-text-editor/actions/keyboard.js +20 -20
- package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
- package/src/rich-text-editor/actions/markdown-editor.js +2 -2
- package/src/rich-text-editor/actions/paste-clean-up.d.ts +1 -1
- package/src/rich-text-editor/actions/paste-clean-up.js +1 -1
- package/src/rich-text-editor/actions/quick-toolbar.d.ts +9 -9
- package/src/rich-text-editor/actions/quick-toolbar.js +14 -11
- package/src/rich-text-editor/actions/toolbar.d.ts +13 -13
- package/src/rich-text-editor/actions/toolbar.js +13 -13
- package/src/rich-text-editor/actions/xhtml-validation.d.ts +1 -1
- package/src/rich-text-editor/actions/xhtml-validation.js +1 -1
- package/src/rich-text-editor/base/classes.d.ts +107 -107
- package/src/rich-text-editor/base/classes.js +107 -107
- package/src/rich-text-editor/base/constant.d.ts +120 -120
- package/src/rich-text-editor/base/constant.js +120 -120
- package/src/rich-text-editor/base/enum.d.ts +1 -1
- package/src/rich-text-editor/base/enum.js +1 -1
- package/src/rich-text-editor/base/interface.d.ts +45 -45
- package/src/rich-text-editor/base/interface.js +1 -1
- package/src/rich-text-editor/base/rich-text-editor-model.d.ts +851 -851
- package/src/rich-text-editor/base/rich-text-editor.d.ts +53 -53
- package/src/rich-text-editor/base/rich-text-editor.js +65 -66
- package/src/rich-text-editor/base/util.d.ts +1 -1
- package/src/rich-text-editor/base/util.js +1 -1
- package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
- package/src/rich-text-editor/formatter/formatter.js +8 -8
- package/src/rich-text-editor/formatter/html-formatter.d.ts +2 -2
- package/src/rich-text-editor/formatter/html-formatter.js +15 -15
- package/src/rich-text-editor/formatter/markdown-formatter.d.ts +2 -2
- package/src/rich-text-editor/formatter/markdown-formatter.js +15 -15
- package/src/rich-text-editor/models/iframe-settings-model.d.ts +26 -26
- package/src/rich-text-editor/models/iframe-settings.js +19 -19
- package/src/rich-text-editor/models/inline-mode-model.d.ts +11 -11
- package/src/rich-text-editor/models/inline-mode.js +19 -19
- package/src/rich-text-editor/models/toolbar-settings-model.d.ts +439 -439
- package/src/rich-text-editor/models/toolbar-settings.d.ts +1 -1
- package/src/rich-text-editor/models/toolbar-settings.js +19 -19
- package/src/rich-text-editor/renderer/content-renderer.d.ts +6 -6
- package/src/rich-text-editor/renderer/content-renderer.js +6 -6
- package/src/rich-text-editor/renderer/dialog-renderer.d.ts +2 -2
- package/src/rich-text-editor/renderer/dialog-renderer.js +2 -2
- package/src/rich-text-editor/renderer/iframe-content-renderer.d.ts +4 -4
- package/src/rich-text-editor/renderer/iframe-content-renderer.js +17 -17
- package/src/rich-text-editor/renderer/image-module.d.ts +3 -1
- package/src/rich-text-editor/renderer/image-module.js +24 -3
- package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/link-module.js +4 -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 +1 -1
- package/src/rich-text-editor/renderer/table-module.js +4 -3
- 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/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/rich-text-editor/_all.scss +2 -2
- package/styles/rich-text-editor/_bootstrap-dark-definition.scss +187 -187
- package/styles/rich-text-editor/_bootstrap-definition.scss +244 -244
- package/styles/rich-text-editor/_bootstrap4-definition.scss +370 -370
- package/styles/rich-text-editor/_bootstrap5-definition.scss +168 -168
- package/styles/rich-text-editor/_fabric-dark-definition.scss +168 -168
- package/styles/rich-text-editor/_fabric-definition.scss +167 -167
- package/styles/rich-text-editor/_highcontrast-definition.scss +167 -167
- package/styles/rich-text-editor/_highcontrast-light-definition.scss +167 -167
- package/styles/rich-text-editor/_layout.scss +1635 -1635
- package/styles/rich-text-editor/_material-dark-definition.scss +172 -172
- package/styles/rich-text-editor/_material-definition.scss +169 -169
- package/styles/rich-text-editor/_tailwind-definition.scss +167 -167
- package/styles/rich-text-editor/_theme.scss +626 -626
- package/styles/rich-text-editor/icons/_bootstrap-dark.scss +304 -304
- package/styles/rich-text-editor/icons/_bootstrap.scss +304 -304
- package/styles/rich-text-editor/icons/_bootstrap4.scss +304 -304
- package/styles/rich-text-editor/icons/_bootstrap5.scss +303 -303
- package/styles/rich-text-editor/icons/_fabric-dark.scss +304 -304
- package/styles/rich-text-editor/icons/_fabric.scss +304 -304
- package/styles/rich-text-editor/icons/_highcontrast-light.scss +304 -304
- package/styles/rich-text-editor/icons/_highcontrast.scss +304 -304
- package/styles/rich-text-editor/icons/_material-dark.scss +304 -304
- package/styles/rich-text-editor/icons/_material.scss +304 -304
- package/styles/rich-text-editor/icons/_tailwind.scss +304 -304
- package/.eslintrc.json +0 -244
- package/dist/global/ej2-richtexteditor.min.js +0 -11
- package/dist/global/ej2-richtexteditor.min.js.map +0 -1
- package/dist/global/index.d.ts +0 -14
- package/tslint.json +0 -111
|
@@ -2693,7 +2693,7 @@ function updateDropDownFontFormatLocale(self) {
|
|
|
2693
2693
|
* @hidden
|
|
2694
2694
|
* @deprecated
|
|
2695
2695
|
*/
|
|
2696
|
-
var ToolbarRenderer = /** @
|
|
2696
|
+
var ToolbarRenderer = /** @class */ (function () {
|
|
2697
2697
|
/**
|
|
2698
2698
|
* Constructor for toolbar renderer module
|
|
2699
2699
|
*
|
|
@@ -3236,7 +3236,7 @@ var ToolbarRenderer = /** @__PURE__ @class */ (function () {
|
|
|
3236
3236
|
/**
|
|
3237
3237
|
* `Toolbar` module is used to handle Toolbar actions.
|
|
3238
3238
|
*/
|
|
3239
|
-
var BaseToolbar = /** @
|
|
3239
|
+
var BaseToolbar = /** @class */ (function () {
|
|
3240
3240
|
function BaseToolbar(parent, serviceLocator) {
|
|
3241
3241
|
this.tools = {};
|
|
3242
3242
|
this.parent = parent;
|
|
@@ -3408,7 +3408,7 @@ var BaseToolbar = /** @__PURE__ @class */ (function () {
|
|
|
3408
3408
|
/**
|
|
3409
3409
|
* `Toolbar` module is used to handle Toolbar actions.
|
|
3410
3410
|
*/
|
|
3411
|
-
var DropDownButtons = /** @
|
|
3411
|
+
var DropDownButtons = /** @class */ (function () {
|
|
3412
3412
|
function DropDownButtons(parent, serviceLocator) {
|
|
3413
3413
|
this.parent = parent;
|
|
3414
3414
|
this.locator = serviceLocator;
|
|
@@ -3905,7 +3905,7 @@ var DropDownButtons = /** @__PURE__ @class */ (function () {
|
|
|
3905
3905
|
* @hidden
|
|
3906
3906
|
* @deprecated
|
|
3907
3907
|
*/
|
|
3908
|
-
var ServiceLocator = /** @
|
|
3908
|
+
var ServiceLocator = /** @class */ (function () {
|
|
3909
3909
|
function ServiceLocator() {
|
|
3910
3910
|
this.services = {};
|
|
3911
3911
|
}
|
|
@@ -3949,7 +3949,7 @@ var ServiceLocator = /** @__PURE__ @class */ (function () {
|
|
|
3949
3949
|
* @hidden
|
|
3950
3950
|
* @deprecated
|
|
3951
3951
|
*/
|
|
3952
|
-
var RendererFactory = /** @
|
|
3952
|
+
var RendererFactory = /** @class */ (function () {
|
|
3953
3953
|
function RendererFactory() {
|
|
3954
3954
|
this.rendererMap = {};
|
|
3955
3955
|
}
|
|
@@ -3992,7 +3992,7 @@ var RendererFactory = /** @__PURE__ @class */ (function () {
|
|
|
3992
3992
|
/**
|
|
3993
3993
|
* `ToolbarAction` module is used to toolbar click action
|
|
3994
3994
|
*/
|
|
3995
|
-
var ToolbarAction = /** @
|
|
3995
|
+
var ToolbarAction = /** @class */ (function () {
|
|
3996
3996
|
function ToolbarAction(parent) {
|
|
3997
3997
|
this.parent = parent;
|
|
3998
3998
|
this.addEventListener();
|
|
@@ -4065,7 +4065,7 @@ var ToolbarAction = /** @__PURE__ @class */ (function () {
|
|
|
4065
4065
|
/**
|
|
4066
4066
|
* `Toolbar` module is used to handle Toolbar actions.
|
|
4067
4067
|
*/
|
|
4068
|
-
var Toolbar$2 = /** @
|
|
4068
|
+
var Toolbar$2 = /** @class */ (function () {
|
|
4069
4069
|
function Toolbar$$1(parent, serviceLocator) {
|
|
4070
4070
|
this.parent = parent;
|
|
4071
4071
|
this.isToolbar = false;
|
|
@@ -4730,25 +4730,25 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
4730
4730
|
return Toolbar$$1;
|
|
4731
4731
|
}());
|
|
4732
4732
|
|
|
4733
|
-
var __extends = (undefined && undefined.__extends) || (function () {
|
|
4734
|
-
var extendStatics = function (d, b) {
|
|
4735
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4736
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
4737
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
4738
|
-
return extendStatics(d, b);
|
|
4739
|
-
};
|
|
4740
|
-
return function (d, b) {
|
|
4741
|
-
extendStatics(d, b);
|
|
4742
|
-
function __() { this.constructor = d; }
|
|
4743
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
4744
|
-
};
|
|
4745
|
-
})();
|
|
4746
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
4747
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4748
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4749
|
-
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;
|
|
4750
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4751
|
-
};
|
|
4733
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
4734
|
+
var extendStatics = function (d, b) {
|
|
4735
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4736
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
4737
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
4738
|
+
return extendStatics(d, b);
|
|
4739
|
+
};
|
|
4740
|
+
return function (d, b) {
|
|
4741
|
+
extendStatics(d, b);
|
|
4742
|
+
function __() { this.constructor = d; }
|
|
4743
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
4744
|
+
};
|
|
4745
|
+
})();
|
|
4746
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
4747
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4748
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4749
|
+
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;
|
|
4750
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4751
|
+
};
|
|
4752
4752
|
var keyCode = {
|
|
4753
4753
|
'backspace': 8,
|
|
4754
4754
|
'tab': 9,
|
|
@@ -4816,7 +4816,7 @@ var keyCode = {
|
|
|
4816
4816
|
* @hidden
|
|
4817
4817
|
* @deprecated
|
|
4818
4818
|
*/
|
|
4819
|
-
var KeyboardEvents$1 = /** @
|
|
4819
|
+
var KeyboardEvents$1 = /** @class */ (function (_super) {
|
|
4820
4820
|
__extends(KeyboardEvents$$1, _super);
|
|
4821
4821
|
/**
|
|
4822
4822
|
* Initializes the KeyboardEvents
|
|
@@ -4959,7 +4959,7 @@ var KeyboardEvents$1 = /** @__PURE__ @class */ (function (_super) {
|
|
|
4959
4959
|
/**
|
|
4960
4960
|
* `Color Picker` module is used to handle ColorPicker actions.
|
|
4961
4961
|
*/
|
|
4962
|
-
var ColorPickerInput = /** @
|
|
4962
|
+
var ColorPickerInput = /** @class */ (function () {
|
|
4963
4963
|
function ColorPickerInput(parent, serviceLocator) {
|
|
4964
4964
|
this.tools = {};
|
|
4965
4965
|
this.parent = parent;
|
|
@@ -5164,7 +5164,7 @@ var ColorPickerInput = /** @__PURE__ @class */ (function () {
|
|
|
5164
5164
|
/**
|
|
5165
5165
|
* `Quick toolbar` module is used to handle Quick toolbar actions.
|
|
5166
5166
|
*/
|
|
5167
|
-
var BaseQuickToolbar = /** @
|
|
5167
|
+
var BaseQuickToolbar = /** @class */ (function () {
|
|
5168
5168
|
function BaseQuickToolbar(parent, locator) {
|
|
5169
5169
|
this.parent = parent;
|
|
5170
5170
|
this.locator = locator;
|
|
@@ -5559,7 +5559,7 @@ var BaseQuickToolbar = /** @__PURE__ @class */ (function () {
|
|
|
5559
5559
|
* @hidden
|
|
5560
5560
|
* @deprecated
|
|
5561
5561
|
*/
|
|
5562
|
-
var PopupRenderer = /** @
|
|
5562
|
+
var PopupRenderer = /** @class */ (function () {
|
|
5563
5563
|
/**
|
|
5564
5564
|
* Constructor for popup renderer module
|
|
5565
5565
|
*
|
|
@@ -5628,7 +5628,7 @@ var PopupRenderer = /** @__PURE__ @class */ (function () {
|
|
|
5628
5628
|
/**
|
|
5629
5629
|
* `Quick toolbar` module is used to handle Quick toolbar actions.
|
|
5630
5630
|
*/
|
|
5631
|
-
var QuickToolbar = /** @
|
|
5631
|
+
var QuickToolbar = /** @class */ (function () {
|
|
5632
5632
|
function QuickToolbar(parent, locator) {
|
|
5633
5633
|
this.parent = parent;
|
|
5634
5634
|
this.locator = locator;
|
|
@@ -5813,7 +5813,10 @@ var QuickToolbar = /** @__PURE__ @class */ (function () {
|
|
|
5813
5813
|
else {
|
|
5814
5814
|
var closestAnchor = closest(target, 'a');
|
|
5815
5815
|
target = closestAnchor ? closestAnchor : target;
|
|
5816
|
-
|
|
5816
|
+
var startNode = this.parent.getRange().startContainer.parentElement;
|
|
5817
|
+
var endNode = this.parent.getRange().endContainer.parentElement;
|
|
5818
|
+
if ((isNullOrUndefined(closest(startNode, 'A')) || isNullOrUndefined(closest(endNode, 'A'))) && (!closest(target, 'td,th') || !range.collapsed) &&
|
|
5819
|
+
(target.tagName !== 'IMG' || this.parent.getRange().startOffset !== this.parent.getRange().endOffset)) {
|
|
5817
5820
|
if (this.parent.inlineMode.onSelection && range.collapsed) {
|
|
5818
5821
|
return;
|
|
5819
5822
|
}
|
|
@@ -6064,7 +6067,7 @@ var QuickToolbar = /** @__PURE__ @class */ (function () {
|
|
|
6064
6067
|
/**
|
|
6065
6068
|
* `Count` module is used to handle Count actions.
|
|
6066
6069
|
*/
|
|
6067
|
-
var Count = /** @
|
|
6070
|
+
var Count = /** @class */ (function () {
|
|
6068
6071
|
function Count(parent, serviceLocator) {
|
|
6069
6072
|
this.parent = parent;
|
|
6070
6073
|
this.locator = serviceLocator;
|
|
@@ -6192,7 +6195,7 @@ var Count = /** @__PURE__ @class */ (function () {
|
|
|
6192
6195
|
* @hidden
|
|
6193
6196
|
* @deprecated
|
|
6194
6197
|
*/
|
|
6195
|
-
var MarkdownSelection = /** @
|
|
6198
|
+
var MarkdownSelection = /** @class */ (function () {
|
|
6196
6199
|
function MarkdownSelection() {
|
|
6197
6200
|
}
|
|
6198
6201
|
/**
|
|
@@ -6575,7 +6578,7 @@ function getDefaultMDTbStatus() {
|
|
|
6575
6578
|
/**
|
|
6576
6579
|
* MarkdownToolbarStatus module for refresh the toolbar status
|
|
6577
6580
|
*/
|
|
6578
|
-
var MarkdownToolbarStatus = /** @
|
|
6581
|
+
var MarkdownToolbarStatus = /** @class */ (function () {
|
|
6579
6582
|
function MarkdownToolbarStatus(parent) {
|
|
6580
6583
|
this.toolbarStatus = this.prevToolbarStatus = getDefaultMDTbStatus();
|
|
6581
6584
|
this.selection = new MarkdownSelection();
|
|
@@ -6697,7 +6700,7 @@ var MarkdownToolbarStatus = /** @__PURE__ @class */ (function () {
|
|
|
6697
6700
|
/**
|
|
6698
6701
|
* `ExecCommandCallBack` module is used to run the editor manager command
|
|
6699
6702
|
*/
|
|
6700
|
-
var ExecCommandCallBack = /** @
|
|
6703
|
+
var ExecCommandCallBack = /** @class */ (function () {
|
|
6701
6704
|
function ExecCommandCallBack(parent) {
|
|
6702
6705
|
this.parent = parent;
|
|
6703
6706
|
this.addEventListener();
|
|
@@ -6808,7 +6811,7 @@ var SPACE_ACTION = 'actionBegin';
|
|
|
6808
6811
|
* @hidden
|
|
6809
6812
|
* @deprecated
|
|
6810
6813
|
*/
|
|
6811
|
-
var Formatter = /** @
|
|
6814
|
+
var Formatter = /** @class */ (function () {
|
|
6812
6815
|
function Formatter() {
|
|
6813
6816
|
}
|
|
6814
6817
|
/**
|
|
@@ -7065,7 +7068,7 @@ var MD_TABLE = 'insert-table';
|
|
|
7065
7068
|
*
|
|
7066
7069
|
* @hidden
|
|
7067
7070
|
*/
|
|
7068
|
-
var MDLists = /** @
|
|
7071
|
+
var MDLists = /** @class */ (function () {
|
|
7069
7072
|
/**
|
|
7070
7073
|
* Constructor for creating the Lists plugin
|
|
7071
7074
|
*
|
|
@@ -7531,7 +7534,7 @@ var MDLists = /** @__PURE__ @class */ (function () {
|
|
|
7531
7534
|
* @hidden
|
|
7532
7535
|
* @deprecated
|
|
7533
7536
|
*/
|
|
7534
|
-
var MDFormats = /** @
|
|
7537
|
+
var MDFormats = /** @class */ (function () {
|
|
7535
7538
|
/**
|
|
7536
7539
|
* Constructor for creating the Formats plugin
|
|
7537
7540
|
*
|
|
@@ -7758,7 +7761,7 @@ var MDFormats = /** @__PURE__ @class */ (function () {
|
|
|
7758
7761
|
* @hidden
|
|
7759
7762
|
* @deprecated
|
|
7760
7763
|
*/
|
|
7761
|
-
var MDSelectionFormats = /** @
|
|
7764
|
+
var MDSelectionFormats = /** @class */ (function () {
|
|
7762
7765
|
function MDSelectionFormats(parent) {
|
|
7763
7766
|
extend(this, this, parent, true);
|
|
7764
7767
|
this.selection = this.parent.markdownSelection;
|
|
@@ -8210,7 +8213,7 @@ var selfClosingTags = [
|
|
|
8210
8213
|
/**
|
|
8211
8214
|
* `Undo` module is used to handle undo actions.
|
|
8212
8215
|
*/
|
|
8213
|
-
var UndoRedoCommands = /** @
|
|
8216
|
+
var UndoRedoCommands = /** @class */ (function () {
|
|
8214
8217
|
function UndoRedoCommands(parent, options) {
|
|
8215
8218
|
this.undoRedoStack = [];
|
|
8216
8219
|
this.parent = parent;
|
|
@@ -8405,7 +8408,7 @@ var UndoRedoCommands = /** @__PURE__ @class */ (function () {
|
|
|
8405
8408
|
* @hidden
|
|
8406
8409
|
* @deprecated
|
|
8407
8410
|
*/
|
|
8408
|
-
var MDLink = /** @
|
|
8411
|
+
var MDLink = /** @class */ (function () {
|
|
8409
8412
|
/**
|
|
8410
8413
|
* Constructor for creating the Formats plugin
|
|
8411
8414
|
*
|
|
@@ -8456,7 +8459,7 @@ var MDLink = /** @__PURE__ @class */ (function () {
|
|
|
8456
8459
|
* @hidden
|
|
8457
8460
|
* @deprecated
|
|
8458
8461
|
*/
|
|
8459
|
-
var MDTable = /** @
|
|
8462
|
+
var MDTable = /** @class */ (function () {
|
|
8460
8463
|
/**
|
|
8461
8464
|
* Constructor for creating the Formats plugin
|
|
8462
8465
|
*
|
|
@@ -8685,7 +8688,7 @@ var MDTable = /** @__PURE__ @class */ (function () {
|
|
|
8685
8688
|
* @hidden
|
|
8686
8689
|
* @deprecated
|
|
8687
8690
|
*/
|
|
8688
|
-
var ClearFormat = /** @
|
|
8691
|
+
var ClearFormat = /** @class */ (function () {
|
|
8689
8692
|
/**
|
|
8690
8693
|
* Constructor for creating the clear format plugin
|
|
8691
8694
|
*
|
|
@@ -8801,7 +8804,7 @@ var ClearFormat = /** @__PURE__ @class */ (function () {
|
|
|
8801
8804
|
* @hidden
|
|
8802
8805
|
* @deprecated
|
|
8803
8806
|
*/
|
|
8804
|
-
var MarkdownParser = /** @
|
|
8807
|
+
var MarkdownParser = /** @class */ (function () {
|
|
8805
8808
|
/**
|
|
8806
8809
|
* Constructor for creating the component
|
|
8807
8810
|
*
|
|
@@ -8892,26 +8895,26 @@ var MarkdownParser = /** @__PURE__ @class */ (function () {
|
|
|
8892
8895
|
return MarkdownParser;
|
|
8893
8896
|
}());
|
|
8894
8897
|
|
|
8895
|
-
var __extends$1 = (undefined && undefined.__extends) || (function () {
|
|
8896
|
-
var extendStatics = function (d, b) {
|
|
8897
|
-
extendStatics = Object.setPrototypeOf ||
|
|
8898
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
8899
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
8900
|
-
return extendStatics(d, b);
|
|
8901
|
-
};
|
|
8902
|
-
return function (d, b) {
|
|
8903
|
-
extendStatics(d, b);
|
|
8904
|
-
function __() { this.constructor = d; }
|
|
8905
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
8906
|
-
};
|
|
8907
|
-
})();
|
|
8898
|
+
var __extends$1 = (undefined && undefined.__extends) || (function () {
|
|
8899
|
+
var extendStatics = function (d, b) {
|
|
8900
|
+
extendStatics = Object.setPrototypeOf ||
|
|
8901
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
8902
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
8903
|
+
return extendStatics(d, b);
|
|
8904
|
+
};
|
|
8905
|
+
return function (d, b) {
|
|
8906
|
+
extendStatics(d, b);
|
|
8907
|
+
function __() { this.constructor = d; }
|
|
8908
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
8909
|
+
};
|
|
8910
|
+
})();
|
|
8908
8911
|
/**
|
|
8909
8912
|
* Markdown adapter
|
|
8910
8913
|
*
|
|
8911
8914
|
* @hidden
|
|
8912
8915
|
* @deprecated
|
|
8913
8916
|
*/
|
|
8914
|
-
var MarkdownFormatter = /** @
|
|
8917
|
+
var MarkdownFormatter = /** @class */ (function (_super) {
|
|
8915
8918
|
__extends$1(MarkdownFormatter, _super);
|
|
8916
8919
|
function MarkdownFormatter(options) {
|
|
8917
8920
|
var _this = _super.call(this) || this;
|
|
@@ -8958,7 +8961,7 @@ var MarkdownFormatter = /** @__PURE__ @class */ (function (_super) {
|
|
|
8958
8961
|
* @hidden
|
|
8959
8962
|
* @deprecated
|
|
8960
8963
|
*/
|
|
8961
|
-
var MarkdownRender = /** @
|
|
8964
|
+
var MarkdownRender = /** @class */ (function () {
|
|
8962
8965
|
/**
|
|
8963
8966
|
* Constructor for content renderer module
|
|
8964
8967
|
*
|
|
@@ -9040,7 +9043,7 @@ var MarkdownRender = /** @__PURE__ @class */ (function () {
|
|
|
9040
9043
|
/**
|
|
9041
9044
|
* `MarkdownEditor` module is used to markdown editor
|
|
9042
9045
|
*/
|
|
9043
|
-
var MarkdownEditor = /** @
|
|
9046
|
+
var MarkdownEditor = /** @class */ (function () {
|
|
9044
9047
|
function MarkdownEditor(parent, serviceLocator) {
|
|
9045
9048
|
this.parent = parent;
|
|
9046
9049
|
this.locator = serviceLocator;
|
|
@@ -9295,7 +9298,7 @@ var CLEAR_TYPE = 'clear-type';
|
|
|
9295
9298
|
/**
|
|
9296
9299
|
* `Selection` module is used to handle RTE Selections.
|
|
9297
9300
|
*/
|
|
9298
|
-
var NodeSelection = /** @
|
|
9301
|
+
var NodeSelection = /** @class */ (function () {
|
|
9299
9302
|
function NodeSelection() {
|
|
9300
9303
|
this.startNodeName = [];
|
|
9301
9304
|
this.endNodeName = [];
|
|
@@ -9739,7 +9742,7 @@ var markerClassName = {
|
|
|
9739
9742
|
* @hidden
|
|
9740
9743
|
* @deprecated
|
|
9741
9744
|
*/
|
|
9742
|
-
var DOMNode = /** @
|
|
9745
|
+
var DOMNode = /** @class */ (function () {
|
|
9743
9746
|
/**
|
|
9744
9747
|
* Constructor for creating the DOMNode plugin
|
|
9745
9748
|
*
|
|
@@ -10506,7 +10509,7 @@ var DOMNode = /** @__PURE__ @class */ (function () {
|
|
|
10506
10509
|
* @hidden
|
|
10507
10510
|
* @deprecated
|
|
10508
10511
|
*/
|
|
10509
|
-
var Lists = /** @
|
|
10512
|
+
var Lists = /** @class */ (function () {
|
|
10510
10513
|
/**
|
|
10511
10514
|
* Constructor for creating the Lists plugin
|
|
10512
10515
|
*
|
|
@@ -11260,7 +11263,7 @@ var Lists = /** @__PURE__ @class */ (function () {
|
|
|
11260
11263
|
*
|
|
11261
11264
|
* @hidden
|
|
11262
11265
|
*/
|
|
11263
|
-
var InsertMethods = /** @
|
|
11266
|
+
var InsertMethods = /** @class */ (function () {
|
|
11264
11267
|
function InsertMethods() {
|
|
11265
11268
|
}
|
|
11266
11269
|
/**
|
|
@@ -11337,7 +11340,7 @@ var InsertMethods = /** @__PURE__ @class */ (function () {
|
|
|
11337
11340
|
* @hidden
|
|
11338
11341
|
* @deprecated
|
|
11339
11342
|
*/
|
|
11340
|
-
var NodeCutter = /** @
|
|
11343
|
+
var NodeCutter = /** @class */ (function () {
|
|
11341
11344
|
function NodeCutter() {
|
|
11342
11345
|
this.enterAction = 'P';
|
|
11343
11346
|
this.position = -1;
|
|
@@ -11543,7 +11546,7 @@ var NodeCutter = /** @__PURE__ @class */ (function () {
|
|
|
11543
11546
|
* @hidden
|
|
11544
11547
|
* @deprecated
|
|
11545
11548
|
*/
|
|
11546
|
-
var Formats = /** @
|
|
11549
|
+
var Formats = /** @class */ (function () {
|
|
11547
11550
|
/**
|
|
11548
11551
|
* Constructor for creating the Formats plugin
|
|
11549
11552
|
*
|
|
@@ -11911,7 +11914,7 @@ var Formats = /** @__PURE__ @class */ (function () {
|
|
|
11911
11914
|
* @hidden
|
|
11912
11915
|
* @deprecated
|
|
11913
11916
|
*/
|
|
11914
|
-
var InsertHtml = /** @
|
|
11917
|
+
var InsertHtml = /** @class */ (function () {
|
|
11915
11918
|
function InsertHtml() {
|
|
11916
11919
|
}
|
|
11917
11920
|
InsertHtml.Insert = function (docElement, insertNode, editNode, isExternal) {
|
|
@@ -12365,7 +12368,7 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
12365
12368
|
* @hidden
|
|
12366
12369
|
* @deprecated
|
|
12367
12370
|
*/
|
|
12368
|
-
var LinkCommand = /** @
|
|
12371
|
+
var LinkCommand = /** @class */ (function () {
|
|
12369
12372
|
/**
|
|
12370
12373
|
* Constructor for creating the Formats plugin
|
|
12371
12374
|
*
|
|
@@ -12654,7 +12657,7 @@ var LinkCommand = /** @__PURE__ @class */ (function () {
|
|
|
12654
12657
|
* @hidden
|
|
12655
12658
|
* @deprecated
|
|
12656
12659
|
*/
|
|
12657
|
-
var Alignments = /** @
|
|
12660
|
+
var Alignments = /** @class */ (function () {
|
|
12658
12661
|
/**
|
|
12659
12662
|
* Constructor for creating the Formats plugin
|
|
12660
12663
|
*
|
|
@@ -12757,7 +12760,7 @@ var Alignments = /** @__PURE__ @class */ (function () {
|
|
|
12757
12760
|
* @hidden
|
|
12758
12761
|
* @deprecated
|
|
12759
12762
|
*/
|
|
12760
|
-
var Indents = /** @
|
|
12763
|
+
var Indents = /** @class */ (function () {
|
|
12761
12764
|
/**
|
|
12762
12765
|
* Constructor for creating the Formats plugin
|
|
12763
12766
|
*
|
|
@@ -12877,7 +12880,7 @@ var CLASS_IMAGE_INLINE = 'e-imginline';
|
|
|
12877
12880
|
* @hidden
|
|
12878
12881
|
* @deprecated
|
|
12879
12882
|
*/
|
|
12880
|
-
var ImageCommand = /** @
|
|
12883
|
+
var ImageCommand = /** @class */ (function () {
|
|
12881
12884
|
/**
|
|
12882
12885
|
* Constructor for creating the Formats plugin
|
|
12883
12886
|
*
|
|
@@ -13237,7 +13240,7 @@ var ImageCommand = /** @__PURE__ @class */ (function () {
|
|
|
13237
13240
|
* @hidden
|
|
13238
13241
|
* @deprecated
|
|
13239
13242
|
*/
|
|
13240
|
-
var TableCommand = /** @
|
|
13243
|
+
var TableCommand = /** @class */ (function () {
|
|
13241
13244
|
/**
|
|
13242
13245
|
* Constructor for creating the Formats plugin
|
|
13243
13246
|
*
|
|
@@ -14141,7 +14144,7 @@ var TableCommand = /** @__PURE__ @class */ (function () {
|
|
|
14141
14144
|
|
|
14142
14145
|
return TableCommand;
|
|
14143
14146
|
}());
|
|
14144
|
-
var MinMax = /** @
|
|
14147
|
+
var MinMax = /** @class */ (function () {
|
|
14145
14148
|
function MinMax() {
|
|
14146
14149
|
}
|
|
14147
14150
|
return MinMax;
|
|
@@ -14153,7 +14156,7 @@ var MinMax = /** @__PURE__ @class */ (function () {
|
|
|
14153
14156
|
* @hidden
|
|
14154
14157
|
* @deprecated
|
|
14155
14158
|
*/
|
|
14156
|
-
var IsFormatted = /** @
|
|
14159
|
+
var IsFormatted = /** @class */ (function () {
|
|
14157
14160
|
function IsFormatted() {
|
|
14158
14161
|
}
|
|
14159
14162
|
/**
|
|
@@ -14396,7 +14399,7 @@ var IsFormatted = /** @__PURE__ @class */ (function () {
|
|
|
14396
14399
|
/**
|
|
14397
14400
|
* `Selection` module is used to handle RTE Selections.
|
|
14398
14401
|
*/
|
|
14399
|
-
var SelectionCommands = /** @
|
|
14402
|
+
var SelectionCommands = /** @class */ (function () {
|
|
14400
14403
|
function SelectionCommands() {
|
|
14401
14404
|
}
|
|
14402
14405
|
/**
|
|
@@ -14533,7 +14536,24 @@ var SelectionCommands = /** @__PURE__ @class */ (function () {
|
|
|
14533
14536
|
}
|
|
14534
14537
|
}
|
|
14535
14538
|
}
|
|
14536
|
-
|
|
14539
|
+
if ((['fontcolor', 'fontname', 'fontsize', 'backgroundcolor'].indexOf(format) > -1)) {
|
|
14540
|
+
if (format === 'fontcolor') {
|
|
14541
|
+
cursorFormat.style.color = value;
|
|
14542
|
+
}
|
|
14543
|
+
else if (format === 'fontname') {
|
|
14544
|
+
cursorFormat.style.fontFamily = value;
|
|
14545
|
+
}
|
|
14546
|
+
else if (format === 'fontsize') {
|
|
14547
|
+
cursorFormat.style.fontSize = value;
|
|
14548
|
+
}
|
|
14549
|
+
else {
|
|
14550
|
+
cursorFormat.style.backgroundColor = value;
|
|
14551
|
+
}
|
|
14552
|
+
cursorNode = cursorFormat;
|
|
14553
|
+
}
|
|
14554
|
+
else {
|
|
14555
|
+
InsertMethods.unwrap(cursorFormat);
|
|
14556
|
+
}
|
|
14537
14557
|
}
|
|
14538
14558
|
else {
|
|
14539
14559
|
if (cursorNodes.length > 1 && range.startOffset > 0 && (cursorNodes[0].firstElementChild &&
|
|
@@ -14869,7 +14889,7 @@ var SelectionCommands = /** @__PURE__ @class */ (function () {
|
|
|
14869
14889
|
* @hidden
|
|
14870
14890
|
* @deprecated
|
|
14871
14891
|
*/
|
|
14872
|
-
var SelectionBasedExec = /** @
|
|
14892
|
+
var SelectionBasedExec = /** @class */ (function () {
|
|
14873
14893
|
/**
|
|
14874
14894
|
* Constructor for creating the Formats plugin
|
|
14875
14895
|
*
|
|
@@ -14918,7 +14938,7 @@ var SelectionBasedExec = /** @__PURE__ @class */ (function () {
|
|
|
14918
14938
|
* @hidden
|
|
14919
14939
|
* @deprecated
|
|
14920
14940
|
*/
|
|
14921
|
-
var InsertHtmlExec = /** @
|
|
14941
|
+
var InsertHtmlExec = /** @class */ (function () {
|
|
14922
14942
|
/**
|
|
14923
14943
|
* Constructor for creating the Formats plugin
|
|
14924
14944
|
*
|
|
@@ -14965,7 +14985,7 @@ var InsertHtmlExec = /** @__PURE__ @class */ (function () {
|
|
|
14965
14985
|
/**
|
|
14966
14986
|
* `Clear Format` module is used to handle Clear Format.
|
|
14967
14987
|
*/
|
|
14968
|
-
var ClearFormat$1 = /** @
|
|
14988
|
+
var ClearFormat$1 = /** @class */ (function () {
|
|
14969
14989
|
function ClearFormat() {
|
|
14970
14990
|
}
|
|
14971
14991
|
/**
|
|
@@ -15206,7 +15226,7 @@ var ClearFormat$1 = /** @__PURE__ @class */ (function () {
|
|
|
15206
15226
|
* @hidden
|
|
15207
15227
|
* @deprecated
|
|
15208
15228
|
*/
|
|
15209
|
-
var ClearFormatExec = /** @
|
|
15229
|
+
var ClearFormatExec = /** @class */ (function () {
|
|
15210
15230
|
/**
|
|
15211
15231
|
* Constructor for creating the Formats plugin
|
|
15212
15232
|
*
|
|
@@ -15251,7 +15271,7 @@ var ClearFormatExec = /** @__PURE__ @class */ (function () {
|
|
|
15251
15271
|
/**
|
|
15252
15272
|
* `Undo` module is used to handle undo actions.
|
|
15253
15273
|
*/
|
|
15254
|
-
var UndoRedoManager = /** @
|
|
15274
|
+
var UndoRedoManager = /** @class */ (function () {
|
|
15255
15275
|
function UndoRedoManager(parent, options) {
|
|
15256
15276
|
this.undoRedoStack = [];
|
|
15257
15277
|
this.parent = parent;
|
|
@@ -15452,7 +15472,7 @@ var UndoRedoManager = /** @__PURE__ @class */ (function () {
|
|
|
15452
15472
|
* @hidden
|
|
15453
15473
|
* @deprecated
|
|
15454
15474
|
*/
|
|
15455
|
-
var MsWordPaste = /** @
|
|
15475
|
+
var MsWordPaste = /** @class */ (function () {
|
|
15456
15476
|
function MsWordPaste(parent) {
|
|
15457
15477
|
this.olData = [
|
|
15458
15478
|
'decimal',
|
|
@@ -16109,7 +16129,7 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
|
|
|
16109
16129
|
* @hidden
|
|
16110
16130
|
* @deprecated
|
|
16111
16131
|
*/
|
|
16112
|
-
var InsertTextExec = /** @
|
|
16132
|
+
var InsertTextExec = /** @class */ (function () {
|
|
16113
16133
|
/**
|
|
16114
16134
|
* Constructor for creating the InsertText plugin
|
|
16115
16135
|
*
|
|
@@ -16146,7 +16166,7 @@ var InsertTextExec = /** @__PURE__ @class */ (function () {
|
|
|
16146
16166
|
* @hidden
|
|
16147
16167
|
* @deprecated
|
|
16148
16168
|
*/
|
|
16149
|
-
var EditorManager = /** @
|
|
16169
|
+
var EditorManager = /** @class */ (function () {
|
|
16150
16170
|
/**
|
|
16151
16171
|
* Constructor for creating the component
|
|
16152
16172
|
*
|
|
@@ -16313,26 +16333,26 @@ var EditorManager = /** @__PURE__ @class */ (function () {
|
|
|
16313
16333
|
return EditorManager;
|
|
16314
16334
|
}());
|
|
16315
16335
|
|
|
16316
|
-
var __extends$2 = (undefined && undefined.__extends) || (function () {
|
|
16317
|
-
var extendStatics = function (d, b) {
|
|
16318
|
-
extendStatics = Object.setPrototypeOf ||
|
|
16319
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
16320
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
16321
|
-
return extendStatics(d, b);
|
|
16322
|
-
};
|
|
16323
|
-
return function (d, b) {
|
|
16324
|
-
extendStatics(d, b);
|
|
16325
|
-
function __() { this.constructor = d; }
|
|
16326
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16327
|
-
};
|
|
16328
|
-
})();
|
|
16336
|
+
var __extends$2 = (undefined && undefined.__extends) || (function () {
|
|
16337
|
+
var extendStatics = function (d, b) {
|
|
16338
|
+
extendStatics = Object.setPrototypeOf ||
|
|
16339
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
16340
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
16341
|
+
return extendStatics(d, b);
|
|
16342
|
+
};
|
|
16343
|
+
return function (d, b) {
|
|
16344
|
+
extendStatics(d, b);
|
|
16345
|
+
function __() { this.constructor = d; }
|
|
16346
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16347
|
+
};
|
|
16348
|
+
})();
|
|
16329
16349
|
/**
|
|
16330
16350
|
* HTML adapter
|
|
16331
16351
|
*
|
|
16332
16352
|
* @hidden
|
|
16333
16353
|
* @deprecated
|
|
16334
16354
|
*/
|
|
16335
|
-
var HTMLFormatter = /** @
|
|
16355
|
+
var HTMLFormatter = /** @class */ (function (_super) {
|
|
16336
16356
|
__extends$2(HTMLFormatter, _super);
|
|
16337
16357
|
function HTMLFormatter(options) {
|
|
16338
16358
|
var _this = _super.call(this) || this;
|
|
@@ -16375,7 +16395,7 @@ var HTMLFormatter = /** @__PURE__ @class */ (function (_super) {
|
|
|
16375
16395
|
* @deprecated
|
|
16376
16396
|
*/
|
|
16377
16397
|
var statusCollection = getDefaultHtmlTbStatus();
|
|
16378
|
-
var ToolbarStatus = /** @
|
|
16398
|
+
var ToolbarStatus = /** @class */ (function () {
|
|
16379
16399
|
function ToolbarStatus() {
|
|
16380
16400
|
}
|
|
16381
16401
|
/**
|
|
@@ -16709,7 +16729,7 @@ var ToolbarStatus = /** @__PURE__ @class */ (function () {
|
|
|
16709
16729
|
/**
|
|
16710
16730
|
* HtmlToolbarStatus module for refresh the toolbar status
|
|
16711
16731
|
*/
|
|
16712
|
-
var HtmlToolbarStatus = /** @
|
|
16732
|
+
var HtmlToolbarStatus = /** @class */ (function () {
|
|
16713
16733
|
function HtmlToolbarStatus(parent) {
|
|
16714
16734
|
this.parent = parent;
|
|
16715
16735
|
this.toolbarStatus = this.prevToolbarStatus = getDefaultHtmlTbStatus();
|
|
@@ -16756,7 +16776,7 @@ var HtmlToolbarStatus = /** @__PURE__ @class */ (function () {
|
|
|
16756
16776
|
* @hidden
|
|
16757
16777
|
* @deprecated
|
|
16758
16778
|
*/
|
|
16759
|
-
var ContentRender = /** @
|
|
16779
|
+
var ContentRender = /** @class */ (function () {
|
|
16760
16780
|
/**
|
|
16761
16781
|
* Constructor for content renderer module
|
|
16762
16782
|
*
|
|
@@ -16843,19 +16863,19 @@ var ContentRender = /** @__PURE__ @class */ (function () {
|
|
|
16843
16863
|
return ContentRender;
|
|
16844
16864
|
}());
|
|
16845
16865
|
|
|
16846
|
-
var __extends$3 = (undefined && undefined.__extends) || (function () {
|
|
16847
|
-
var extendStatics = function (d, b) {
|
|
16848
|
-
extendStatics = Object.setPrototypeOf ||
|
|
16849
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
16850
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
16851
|
-
return extendStatics(d, b);
|
|
16852
|
-
};
|
|
16853
|
-
return function (d, b) {
|
|
16854
|
-
extendStatics(d, b);
|
|
16855
|
-
function __() { this.constructor = d; }
|
|
16856
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16857
|
-
};
|
|
16858
|
-
})();
|
|
16866
|
+
var __extends$3 = (undefined && undefined.__extends) || (function () {
|
|
16867
|
+
var extendStatics = function (d, b) {
|
|
16868
|
+
extendStatics = Object.setPrototypeOf ||
|
|
16869
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
16870
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
16871
|
+
return extendStatics(d, b);
|
|
16872
|
+
};
|
|
16873
|
+
return function (d, b) {
|
|
16874
|
+
extendStatics(d, b);
|
|
16875
|
+
function __() { this.constructor = d; }
|
|
16876
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16877
|
+
};
|
|
16878
|
+
})();
|
|
16859
16879
|
var IFRAMEHEADER = "\n<!DOCTYPE html> \n <html>\n <head>\n <meta charset='utf-8' /> \n <style>\n @charset \"UTF-8\";\n body {\n font-family: \"Roboto\", sans-serif;\n font-size: 14px;\n }\n html, body{height: 100%;margin: 0;}\n body.e-cursor{cursor:default}\n span.e-selected-node\t{background-color: #939393;color: white;}\n span.e-selected-node.e-highlight {background-color: #1d9dd8;}\n body{color:#333;word-wrap:break-word;padding: 8px;box-sizing: border-box;}\n .e-rte-image {border: 0;cursor: pointer;display:\n block;float: none;height: auto;margin: 5px auto;max-width: 100%;position: relative;}\n .e-img-caption { display: inline-block; float: none; margin: 5px auto; max-width: 100%;position: relative;}\n .e-img-caption.e-caption-inline {display: inline-block;float: none;\n margin: 5px auto;margin-left: 5px;margin-right: 5px;max-width: calc(100% - (2 * 5px));\n position: relativetext-align: center;vertical-align: bottom;}\n .e-img-inner {box-sizing: border-box;display: block;font-size: 16px;font-weight: initial;\n margin: auto;opacity: .9;text-align: center;width: 100%;}\n .e-img-wrap {display: inline-block;margin: auto;padding: 0;text-align: center;width: 100%;}\n .e-imgleft {float: left;margin: 0 5px 0 0;text-align: left;}\n .e-imgright {float: right;margin: 0 0 0 5px;text-align: right;}\n .e-imgcenter {cursor: pointer;display: block;float: none;height: auto;margin: 5px auto;max-width: 100%;position: relative;}\n .e-control img:not(.e-resize) {border: 2px solid transparent; z-index: 1000}\n .e-imginline {display: inline-block;float: none;margin-left: 5px;margin-right: 5px;\n max-width: calc(100% - (2 * 5px));vertical-align: bottom;}\n .e-imgbreak {border: 0;cursor: pointer;\n display: block;float: none;height: auto;margin: 5px auto;max-width: 100%;position: relative;}\n .e-rte-image.e-img-focus:not(.e-resize) {border: solid 2px #4a90e2;}\n img.e-img-focus::selection { background: transparent;color: transparent;}\n span.e-rte-imageboxmark { width: 10px; height: 10px; position: absolute; display: block;\n background: #4a90e2; border: 1px solid #fff; z-index: 1000;}\n .e-mob-rte.e-mob-span span.e-rte-imageboxmark { background: #4a90e2; border: 1px solid #fff; }\n .e-mob-rte span.e-rte-imageboxmark { background: #fff; border: 1px solid #4a90e2;\n border-radius: 15px; height: 20px; width: 20px; }\n .e-mob-rte.e-mob-span span.e-rte-imageboxmark { background: #4a90e2; border: 1px solid #fff; }\n .e-rte-content .e-content img.e-resize { z-index: 1000; }\n .e-img-caption .e-img-inner { outline: 0; }\n .e-img-caption a:focus-visible { outline: none; }\n .e-img-caption .e-rte-image.e-imgright, .e-img-caption .e-rte-image.e-imgleft { float: none; margin: 0;}\n body{box-sizing: border-box;min-height: 100px;outline: 0 solid transparent;\n overflow-x: auto;padding: 16px;position: relative;text-align: inherit;z-index: 2;}\n p{margin: 0 0 10px;margin-bottom: 10px;}\n li{margin-bottom: 10px;}\n h1{font-size: 2.17em;font-weight: 400;line-height: 1;margin: 10px 0;}\n h2{font-size: 1.74em;font-weight: 400;margin: 10px 0;}\n h3{font-size: 1.31em;font-weight: 400;margin: 10px 0;}\n h4{font-size: 16px;font-weight: 400;line-height: 1.5;margin: 0;}\n h5{font-size: 00.8em;font-weight: 400;margin: 0;}\n h6{font-size: 00.65em;font-weight: 400;margin: 0;}\n blockquote{margin: 10px 0;margin-left: 0;padding-left: 5px;border-left: solid 2px #5c5c5c;}\n pre{background-color: inherit;border: 0;border-radius: 0;color: #333;\n font-size: inherit;line-height: inherit;margin: 0 0 10px;overflow: visible;padding: 0;\n white-space: pre-wrap;word-break: inherit;word-wrap: break-word;}\n strong, b{font-weight: 700;}\n a{text-decoration: none;user-select: auto;}\n a:hover{text-decoration: underline;};\n p:last-child, pre:last-child, blockquote:last-child{margin-bottom: 0;}\n h3+h4, h4+h5, h5+h6{margin-top: 00.6em;}\n ul:last-child{margin-bottom: 0;}\n table { border-collapse: collapse; empty-cells: show;}\n table td,table th {border: 1px solid #BDBDBD; height: 20px; vertical-align: middle;}\n table.e-alternate-border tbody tr:nth-child(2n) {background-color: #F5F5F5;}\n table th {background-color: #E0E0E0;}\n table.e-dashed-border td,table.e-dashed-border th { border: 1px dashed #BDBDBD} \n table .e-cell-select {border: 1px double #4a90e2;}\n span.e-table-box { cursor: nwse-resize; display: block; height: 10px; position: absolute; width: 10px; }\n span.e-table-box.e-rmob {height: 14px;width: 14px;}\n .e-row-resize, .e-column-resize { background-color: transparent; background-repeat: repeat;\n bottom: 0;cursor: col-resize;height: 1px;overflow: visible;position: absolute;width: 1px; }\n .e-row-resize { cursor: row-resize; height: 1px;}\n .e-table-rhelper { cursor: col-resize; opacity: .87;position: absolute;}\n .e-table-rhelper.e-column-helper { width: 1px; }\n .e-table-rhelper.e-row-helper {height: 1px;}\n .e-reicon::before { border-bottom: 6px solid transparent; border-right: 6px solid;\n border-top: 6px solid transparent; content: ''; display: block; height: 0;\n position: absolute; right: 4px; top: 4px; width: 20px; }\n .e-reicon::after { border-bottom: 6px solid transparent; border-left: 6px solid;\n border-top: 6px solid transparent; content: ''; display: block;\n height: 0; left: 4px; position: absolute; top: 4px; width: 20px; z-index: 3; }\n .e-row-helper.e-reicon::after { top: 10px; transform: rotate(90deg); }\n .e-row-helper.e-reicon::before { left: 4px; top: -20px; transform: rotate(90deg); }\n span.e-table-box { background-color: #ffffff; border: 1px solid #BDBDBD; }\n span.e-table-box.e-rbox-select { background-color: #BDBDBD; border: 1px solid #BDBDBD; }\n .e-table-rhelper { background-color: #4a90e2;}\n .e-rtl { direction: rtl; }\n </style>\n </head>";
|
|
16860
16880
|
/**
|
|
16861
16881
|
* Content module is used to render Rich Text Editor content
|
|
@@ -16863,7 +16883,7 @@ var IFRAMEHEADER = "\n<!DOCTYPE html> \n <html>\n <head>\n
|
|
|
16863
16883
|
* @hidden
|
|
16864
16884
|
* @deprecated
|
|
16865
16885
|
*/
|
|
16866
|
-
var IframeContentRender = /** @
|
|
16886
|
+
var IframeContentRender = /** @class */ (function (_super) {
|
|
16867
16887
|
__extends$3(IframeContentRender, _super);
|
|
16868
16888
|
function IframeContentRender() {
|
|
16869
16889
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -16935,7 +16955,7 @@ var IframeContentRender = /** @__PURE__ @class */ (function (_super) {
|
|
|
16935
16955
|
/**
|
|
16936
16956
|
* XhtmlValidation module called when set enableXhtml as true
|
|
16937
16957
|
*/
|
|
16938
|
-
var XhtmlValidation = /** @
|
|
16958
|
+
var XhtmlValidation = /** @class */ (function () {
|
|
16939
16959
|
function XhtmlValidation(parent) {
|
|
16940
16960
|
this.parent = parent;
|
|
16941
16961
|
this.addEventListener();
|
|
@@ -17115,7 +17135,7 @@ var XhtmlValidation = /** @__PURE__ @class */ (function () {
|
|
|
17115
17135
|
/**
|
|
17116
17136
|
* `HtmlEditor` module is used to HTML editor
|
|
17117
17137
|
*/
|
|
17118
|
-
var HtmlEditor = /** @
|
|
17138
|
+
var HtmlEditor = /** @class */ (function () {
|
|
17119
17139
|
function HtmlEditor(parent, serviceLocator) {
|
|
17120
17140
|
this.rangeCollection = [];
|
|
17121
17141
|
this.parent = parent;
|
|
@@ -17799,7 +17819,7 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
|
|
|
17799
17819
|
/**
|
|
17800
17820
|
* PasteCleanup module called when pasting content in RichTextEditor
|
|
17801
17821
|
*/
|
|
17802
|
-
var PasteCleanup = /** @
|
|
17822
|
+
var PasteCleanup = /** @class */ (function () {
|
|
17803
17823
|
function PasteCleanup(parent, serviceLocator) {
|
|
17804
17824
|
this.inlineNode = ['a', 'abbr', 'acronym', 'audio', 'b', 'bdi', 'bdo', 'big', 'br', 'button',
|
|
17805
17825
|
'canvas', 'cite', 'code', 'data', 'datalist', 'del', 'dfn', 'em', 'embed', 'font', 'i', 'iframe', 'img', 'input',
|
|
@@ -18670,7 +18690,7 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
|
|
|
18670
18690
|
/**
|
|
18671
18691
|
* `Resize` module is used to resize the editor
|
|
18672
18692
|
*/
|
|
18673
|
-
var Resize = /** @
|
|
18693
|
+
var Resize = /** @class */ (function () {
|
|
18674
18694
|
function Resize(parent) {
|
|
18675
18695
|
this.parent = parent;
|
|
18676
18696
|
this.addEventListener();
|
|
@@ -18792,7 +18812,7 @@ var Resize = /** @__PURE__ @class */ (function () {
|
|
|
18792
18812
|
/**
|
|
18793
18813
|
* `FileManager` module is used to display the directories and images inside the editor.
|
|
18794
18814
|
*/
|
|
18795
|
-
var FileManager$1 = /** @
|
|
18815
|
+
var FileManager$1 = /** @class */ (function () {
|
|
18796
18816
|
function FileManager$$1(parent, locator) {
|
|
18797
18817
|
FileManager.Inject(ContextMenu, DetailsView, NavigationPane, Toolbar$1);
|
|
18798
18818
|
this.parent = parent;
|
|
@@ -19027,7 +19047,7 @@ var FileManager$1 = /** @__PURE__ @class */ (function () {
|
|
|
19027
19047
|
/**
|
|
19028
19048
|
* `FullScreen` module is used to maximize and minimize screen
|
|
19029
19049
|
*/
|
|
19030
|
-
var FullScreen = /** @
|
|
19050
|
+
var FullScreen = /** @class */ (function () {
|
|
19031
19051
|
function FullScreen(parent) {
|
|
19032
19052
|
this.parent = parent;
|
|
19033
19053
|
this.addEventListener();
|
|
@@ -19254,7 +19274,7 @@ function setAttributes(htmlAttributes, rte, isFrame, initial) {
|
|
|
19254
19274
|
* @hidden
|
|
19255
19275
|
* @deprecated
|
|
19256
19276
|
*/
|
|
19257
|
-
var Render = /** @
|
|
19277
|
+
var Render = /** @class */ (function () {
|
|
19258
19278
|
/**
|
|
19259
19279
|
* Constructor for render module
|
|
19260
19280
|
*
|
|
@@ -19345,7 +19365,7 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
19345
19365
|
/**
|
|
19346
19366
|
* `Link` module is used to handle undo actions.
|
|
19347
19367
|
*/
|
|
19348
|
-
var Link = /** @
|
|
19368
|
+
var Link = /** @class */ (function () {
|
|
19349
19369
|
function Link(parent, serviceLocator) {
|
|
19350
19370
|
this.parent = parent;
|
|
19351
19371
|
this.rteID = parent.element.id;
|
|
@@ -19472,7 +19492,8 @@ var Link = /** @__PURE__ @class */ (function () {
|
|
|
19472
19492
|
this.contentModule = this.rendererFactory.getRenderer(RenderType.Content);
|
|
19473
19493
|
var isPopupOpen = this.quickToolObj.linkQTBar.element.classList.contains('e-rte-pop');
|
|
19474
19494
|
if (target.nodeName === 'A' && (target.childNodes.length > 0 && target.childNodes[0].nodeName !== 'IMG') &&
|
|
19475
|
-
e.args.target.nodeName !== 'IMG'
|
|
19495
|
+
e.args.target.nodeName !== 'IMG' &&
|
|
19496
|
+
!isNullOrUndefined(closest(this.parent.getRange().startContainer.parentElement, 'A')) && !isNullOrUndefined(closest(this.parent.getRange().endContainer.parentElement, 'A'))) {
|
|
19476
19497
|
if (isPopupOpen) {
|
|
19477
19498
|
return;
|
|
19478
19499
|
}
|
|
@@ -19850,7 +19871,7 @@ var Link = /** @__PURE__ @class */ (function () {
|
|
|
19850
19871
|
/**
|
|
19851
19872
|
* `Image` module is used to handle image actions.
|
|
19852
19873
|
*/
|
|
19853
|
-
var Image = /** @
|
|
19874
|
+
var Image = /** @class */ (function () {
|
|
19854
19875
|
function Image(parent, serviceLocator) {
|
|
19855
19876
|
this.isImgUploaded = false;
|
|
19856
19877
|
this.isAllowedTypes = true;
|
|
@@ -20652,7 +20673,7 @@ var Image = /** @__PURE__ @class */ (function () {
|
|
|
20652
20673
|
var target = args.target;
|
|
20653
20674
|
this.contentModule = this.rendererFactory.getRenderer(RenderType.Content);
|
|
20654
20675
|
var isPopupOpen = this.quickToolObj.imageQTBar.element.classList.contains('e-rte-pop');
|
|
20655
|
-
if (target.nodeName === 'IMG' && this.parent.quickToolbarModule) {
|
|
20676
|
+
if (target.nodeName === 'IMG' && this.parent.quickToolbarModule && this.parent.getRange().startOffset === this.parent.getRange().endOffset) {
|
|
20656
20677
|
if (isPopupOpen) {
|
|
20657
20678
|
return;
|
|
20658
20679
|
}
|
|
@@ -20891,13 +20912,34 @@ var Image = /** @__PURE__ @class */ (function () {
|
|
|
20891
20912
|
}
|
|
20892
20913
|
};
|
|
20893
20914
|
Image.prototype.imageRemovePost = function (src) {
|
|
20915
|
+
var proxy = this;
|
|
20916
|
+
var absoluteUrl = '';
|
|
20917
|
+
if (src.indexOf('http://') > -1 || src.indexOf('https://') > -1) {
|
|
20918
|
+
absoluteUrl = src;
|
|
20919
|
+
}
|
|
20920
|
+
else {
|
|
20921
|
+
absoluteUrl = new URL(src, document.baseURI).href;
|
|
20922
|
+
}
|
|
20923
|
+
this.removingImgName = absoluteUrl.replace(/^.*[\\\/]/, '');
|
|
20924
|
+
var xhr = new XMLHttpRequest();
|
|
20925
|
+
xhr.addEventListener("readystatechange", function () {
|
|
20926
|
+
if (this.readyState == 4 && this.status == 200) {
|
|
20927
|
+
proxy.triggerPost(this.response);
|
|
20928
|
+
}
|
|
20929
|
+
});
|
|
20930
|
+
xhr.open('GET', absoluteUrl);
|
|
20931
|
+
xhr.responseType = 'blob';
|
|
20932
|
+
xhr.send();
|
|
20933
|
+
};
|
|
20934
|
+
Image.prototype.triggerPost = function (response) {
|
|
20894
20935
|
var removeUrl = this.parent.insertImageSettings.removeUrl;
|
|
20895
20936
|
if (isNullOrUndefined(removeUrl) || removeUrl === '') {
|
|
20896
20937
|
return;
|
|
20897
20938
|
}
|
|
20939
|
+
var file = new File([response], this.removingImgName);
|
|
20898
20940
|
var ajax = new Ajax(removeUrl, 'POST', true, null);
|
|
20899
20941
|
var formData = new FormData();
|
|
20900
|
-
formData.append(
|
|
20942
|
+
formData.append('UploadFiles', file);
|
|
20901
20943
|
ajax.send(formData);
|
|
20902
20944
|
};
|
|
20903
20945
|
Image.prototype.caption = function (e) {
|
|
@@ -22008,7 +22050,7 @@ var Image = /** @__PURE__ @class */ (function () {
|
|
|
22008
22050
|
* @hidden
|
|
22009
22051
|
* @deprecated
|
|
22010
22052
|
*/
|
|
22011
|
-
var ViewSource = /** @
|
|
22053
|
+
var ViewSource = /** @class */ (function () {
|
|
22012
22054
|
/**
|
|
22013
22055
|
* Constructor for view source module
|
|
22014
22056
|
*
|
|
@@ -22266,7 +22308,7 @@ var ViewSource = /** @__PURE__ @class */ (function () {
|
|
|
22266
22308
|
/**
|
|
22267
22309
|
* `Table` module is used to handle table actions.
|
|
22268
22310
|
*/
|
|
22269
|
-
var Table = /** @
|
|
22311
|
+
var Table = /** @class */ (function () {
|
|
22270
22312
|
function Table(parent, serviceLocator) {
|
|
22271
22313
|
this.ensureInsideTableList = true;
|
|
22272
22314
|
this.pageX = null;
|
|
@@ -22655,7 +22697,9 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
22655
22697
|
}
|
|
22656
22698
|
var range = this.parent.formatter.editorManager.nodeSelection.getRange(this.contentModule.getDocument());
|
|
22657
22699
|
var closestTable = closest(target, 'table');
|
|
22658
|
-
|
|
22700
|
+
var startNode = this.parent.getRange().startContainer.parentElement;
|
|
22701
|
+
var endNode = this.parent.getRange().endContainer.parentElement;
|
|
22702
|
+
if (target && target.nodeName !== 'A' && target.nodeName !== 'IMG' && startNode === endNode && (target.nodeName === 'TD' || target.nodeName === 'TH' ||
|
|
22659
22703
|
target.nodeName === 'TABLE' || (closestTable && this.parent.contentModule.getEditPanel().contains(closestTable)))
|
|
22660
22704
|
&& !(range.startContainer.nodeType === 3 && !range.collapsed)) {
|
|
22661
22705
|
var range_1 = this.parent.formatter.editorManager.nodeSelection.getRange(this.contentModule.getDocument());
|
|
@@ -22742,7 +22786,6 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
22742
22786
|
tdNode : target;
|
|
22743
22787
|
removeClass(this.contentModule.getEditPanel().querySelectorAll('table td, table th'), CLS_TABLE_SEL);
|
|
22744
22788
|
if (target && (target.tagName === 'TD' || target.tagName === 'TH')) {
|
|
22745
|
-
target.removeAttribute('class');
|
|
22746
22789
|
addClass([target], CLS_TABLE_SEL);
|
|
22747
22790
|
this.activeCell = target;
|
|
22748
22791
|
this.curTable = (this.curTable) ? this.curTable : closest(target, 'table');
|
|
@@ -23492,7 +23535,7 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
23492
23535
|
/**
|
|
23493
23536
|
* Dialog Renderer
|
|
23494
23537
|
*/
|
|
23495
|
-
var DialogRenderer = /** @
|
|
23538
|
+
var DialogRenderer = /** @class */ (function () {
|
|
23496
23539
|
function DialogRenderer(parent) {
|
|
23497
23540
|
this.parent = parent;
|
|
23498
23541
|
}
|
|
@@ -23725,29 +23768,29 @@ var executeGroup = {
|
|
|
23725
23768
|
}
|
|
23726
23769
|
};
|
|
23727
23770
|
|
|
23728
|
-
var __extends$5 = (undefined && undefined.__extends) || (function () {
|
|
23729
|
-
var extendStatics = function (d, b) {
|
|
23730
|
-
extendStatics = Object.setPrototypeOf ||
|
|
23731
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
23732
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
23733
|
-
return extendStatics(d, b);
|
|
23734
|
-
};
|
|
23735
|
-
return function (d, b) {
|
|
23736
|
-
extendStatics(d, b);
|
|
23737
|
-
function __() { this.constructor = d; }
|
|
23738
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
23739
|
-
};
|
|
23740
|
-
})();
|
|
23741
|
-
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
23742
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
23743
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
23744
|
-
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;
|
|
23745
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23746
|
-
};
|
|
23771
|
+
var __extends$5 = (undefined && undefined.__extends) || (function () {
|
|
23772
|
+
var extendStatics = function (d, b) {
|
|
23773
|
+
extendStatics = Object.setPrototypeOf ||
|
|
23774
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
23775
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
23776
|
+
return extendStatics(d, b);
|
|
23777
|
+
};
|
|
23778
|
+
return function (d, b) {
|
|
23779
|
+
extendStatics(d, b);
|
|
23780
|
+
function __() { this.constructor = d; }
|
|
23781
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
23782
|
+
};
|
|
23783
|
+
})();
|
|
23784
|
+
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
23785
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
23786
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
23787
|
+
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;
|
|
23788
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23789
|
+
};
|
|
23747
23790
|
/**
|
|
23748
23791
|
* Configures the toolbar settings of the RichTextEditor.
|
|
23749
23792
|
*/
|
|
23750
|
-
var ToolbarSettings$1 = /** @
|
|
23793
|
+
var ToolbarSettings$1 = /** @class */ (function (_super) {
|
|
23751
23794
|
__extends$5(ToolbarSettings$$1, _super);
|
|
23752
23795
|
function ToolbarSettings$$1() {
|
|
23753
23796
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -23772,7 +23815,7 @@ var ToolbarSettings$1 = /** @__PURE__ @class */ (function (_super) {
|
|
|
23772
23815
|
/**
|
|
23773
23816
|
* Configures the image settings of the RichTextEditor.
|
|
23774
23817
|
*/
|
|
23775
|
-
var ImageSettings = /** @
|
|
23818
|
+
var ImageSettings = /** @class */ (function (_super) {
|
|
23776
23819
|
__extends$5(ImageSettings, _super);
|
|
23777
23820
|
function ImageSettings() {
|
|
23778
23821
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -23824,7 +23867,7 @@ var ImageSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
23824
23867
|
/**
|
|
23825
23868
|
* Configures the file manager settings of the RichTextEditor.
|
|
23826
23869
|
*/
|
|
23827
|
-
var FileManagerSettings = /** @
|
|
23870
|
+
var FileManagerSettings = /** @class */ (function (_super) {
|
|
23828
23871
|
__extends$5(FileManagerSettings, _super);
|
|
23829
23872
|
function FileManagerSettings() {
|
|
23830
23873
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -23882,7 +23925,7 @@ var FileManagerSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
23882
23925
|
], FileManagerSettings.prototype, "view", void 0);
|
|
23883
23926
|
return FileManagerSettings;
|
|
23884
23927
|
}(ChildProperty));
|
|
23885
|
-
var TableSettings = /** @
|
|
23928
|
+
var TableSettings = /** @class */ (function (_super) {
|
|
23886
23929
|
__extends$5(TableSettings, _super);
|
|
23887
23930
|
function TableSettings() {
|
|
23888
23931
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -23907,7 +23950,7 @@ var TableSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
23907
23950
|
/**
|
|
23908
23951
|
* Configures the quick toolbar settings of the RichTextEditor.
|
|
23909
23952
|
*/
|
|
23910
|
-
var QuickToolbarSettings = /** @
|
|
23953
|
+
var QuickToolbarSettings = /** @class */ (function (_super) {
|
|
23911
23954
|
__extends$5(QuickToolbarSettings, _super);
|
|
23912
23955
|
function QuickToolbarSettings() {
|
|
23913
23956
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -23938,7 +23981,7 @@ var QuickToolbarSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
23938
23981
|
/**
|
|
23939
23982
|
* Configures the Paste Cleanup settings of the RichTextEditor.
|
|
23940
23983
|
*/
|
|
23941
|
-
var PasteCleanupSettings = /** @
|
|
23984
|
+
var PasteCleanupSettings = /** @class */ (function (_super) {
|
|
23942
23985
|
__extends$5(PasteCleanupSettings, _super);
|
|
23943
23986
|
function PasteCleanupSettings() {
|
|
23944
23987
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -23966,7 +24009,7 @@ var PasteCleanupSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
23966
24009
|
/**
|
|
23967
24010
|
* Configures the font family settings of the RichTextEditor.
|
|
23968
24011
|
*/
|
|
23969
|
-
var FontFamily = /** @
|
|
24012
|
+
var FontFamily = /** @class */ (function (_super) {
|
|
23970
24013
|
__extends$5(FontFamily, _super);
|
|
23971
24014
|
function FontFamily() {
|
|
23972
24015
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -23985,7 +24028,7 @@ var FontFamily = /** @__PURE__ @class */ (function (_super) {
|
|
|
23985
24028
|
/**
|
|
23986
24029
|
* Configures the font size settings of the RichTextEditor.
|
|
23987
24030
|
*/
|
|
23988
|
-
var FontSize = /** @
|
|
24031
|
+
var FontSize = /** @class */ (function (_super) {
|
|
23989
24032
|
__extends$5(FontSize, _super);
|
|
23990
24033
|
function FontSize() {
|
|
23991
24034
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -24004,7 +24047,7 @@ var FontSize = /** @__PURE__ @class */ (function (_super) {
|
|
|
24004
24047
|
/**
|
|
24005
24048
|
* Configures the format settings of the RichTextEditor.
|
|
24006
24049
|
*/
|
|
24007
|
-
var Format = /** @
|
|
24050
|
+
var Format = /** @class */ (function (_super) {
|
|
24008
24051
|
__extends$5(Format, _super);
|
|
24009
24052
|
function Format() {
|
|
24010
24053
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -24023,7 +24066,7 @@ var Format = /** @__PURE__ @class */ (function (_super) {
|
|
|
24023
24066
|
/**
|
|
24024
24067
|
* Configures the font Color settings of the RichTextEditor.
|
|
24025
24068
|
*/
|
|
24026
|
-
var FontColor = /** @
|
|
24069
|
+
var FontColor = /** @class */ (function (_super) {
|
|
24027
24070
|
__extends$5(FontColor, _super);
|
|
24028
24071
|
function FontColor() {
|
|
24029
24072
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -24048,7 +24091,7 @@ var FontColor = /** @__PURE__ @class */ (function (_super) {
|
|
|
24048
24091
|
/**
|
|
24049
24092
|
* Configures the background Color settings of the RichTextEditor.
|
|
24050
24093
|
*/
|
|
24051
|
-
var BackgroundColor = /** @
|
|
24094
|
+
var BackgroundColor = /** @class */ (function (_super) {
|
|
24052
24095
|
__extends$5(BackgroundColor, _super);
|
|
24053
24096
|
function BackgroundColor() {
|
|
24054
24097
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -24073,7 +24116,7 @@ var BackgroundColor = /** @__PURE__ @class */ (function (_super) {
|
|
|
24073
24116
|
/**
|
|
24074
24117
|
* Configures the numberFormatList settings of the RichTextEditor.
|
|
24075
24118
|
*/
|
|
24076
|
-
var NumberFormatList = /** @
|
|
24119
|
+
var NumberFormatList = /** @class */ (function (_super) {
|
|
24077
24120
|
__extends$5(NumberFormatList, _super);
|
|
24078
24121
|
function NumberFormatList() {
|
|
24079
24122
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -24086,7 +24129,7 @@ var NumberFormatList = /** @__PURE__ @class */ (function (_super) {
|
|
|
24086
24129
|
/**
|
|
24087
24130
|
* Configures the bulletFormatList settings of the RichTextEditor.
|
|
24088
24131
|
*/
|
|
24089
|
-
var BulletFormatList = /** @
|
|
24132
|
+
var BulletFormatList = /** @class */ (function (_super) {
|
|
24090
24133
|
__extends$5(BulletFormatList, _super);
|
|
24091
24134
|
function BulletFormatList() {
|
|
24092
24135
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -24097,29 +24140,29 @@ var BulletFormatList = /** @__PURE__ @class */ (function (_super) {
|
|
|
24097
24140
|
return BulletFormatList;
|
|
24098
24141
|
}(ChildProperty));
|
|
24099
24142
|
|
|
24100
|
-
var __extends$6 = (undefined && undefined.__extends) || (function () {
|
|
24101
|
-
var extendStatics = function (d, b) {
|
|
24102
|
-
extendStatics = Object.setPrototypeOf ||
|
|
24103
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
24104
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
24105
|
-
return extendStatics(d, b);
|
|
24106
|
-
};
|
|
24107
|
-
return function (d, b) {
|
|
24108
|
-
extendStatics(d, b);
|
|
24109
|
-
function __() { this.constructor = d; }
|
|
24110
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
24111
|
-
};
|
|
24112
|
-
})();
|
|
24113
|
-
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
24114
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
24115
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
24116
|
-
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;
|
|
24117
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24118
|
-
};
|
|
24143
|
+
var __extends$6 = (undefined && undefined.__extends) || (function () {
|
|
24144
|
+
var extendStatics = function (d, b) {
|
|
24145
|
+
extendStatics = Object.setPrototypeOf ||
|
|
24146
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
24147
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
24148
|
+
return extendStatics(d, b);
|
|
24149
|
+
};
|
|
24150
|
+
return function (d, b) {
|
|
24151
|
+
extendStatics(d, b);
|
|
24152
|
+
function __() { this.constructor = d; }
|
|
24153
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
24154
|
+
};
|
|
24155
|
+
})();
|
|
24156
|
+
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
24157
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
24158
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
24159
|
+
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;
|
|
24160
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24161
|
+
};
|
|
24119
24162
|
/**
|
|
24120
24163
|
* Objects used for configuring the iframe resources properties.
|
|
24121
24164
|
*/
|
|
24122
|
-
var Resources = /** @
|
|
24165
|
+
var Resources = /** @class */ (function (_super) {
|
|
24123
24166
|
__extends$6(Resources, _super);
|
|
24124
24167
|
function Resources() {
|
|
24125
24168
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -24135,7 +24178,7 @@ var Resources = /** @__PURE__ @class */ (function (_super) {
|
|
|
24135
24178
|
/**
|
|
24136
24179
|
* Configures the iframe settings of the RTE.
|
|
24137
24180
|
*/
|
|
24138
|
-
var IFrameSettings = /** @
|
|
24181
|
+
var IFrameSettings = /** @class */ (function (_super) {
|
|
24139
24182
|
__extends$6(IFrameSettings, _super);
|
|
24140
24183
|
function IFrameSettings() {
|
|
24141
24184
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -24152,29 +24195,29 @@ var IFrameSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
24152
24195
|
return IFrameSettings;
|
|
24153
24196
|
}(ChildProperty));
|
|
24154
24197
|
|
|
24155
|
-
var __extends$7 = (undefined && undefined.__extends) || (function () {
|
|
24156
|
-
var extendStatics = function (d, b) {
|
|
24157
|
-
extendStatics = Object.setPrototypeOf ||
|
|
24158
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
24159
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
24160
|
-
return extendStatics(d, b);
|
|
24161
|
-
};
|
|
24162
|
-
return function (d, b) {
|
|
24163
|
-
extendStatics(d, b);
|
|
24164
|
-
function __() { this.constructor = d; }
|
|
24165
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
24166
|
-
};
|
|
24167
|
-
})();
|
|
24168
|
-
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
24169
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
24170
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
24171
|
-
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;
|
|
24172
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24173
|
-
};
|
|
24198
|
+
var __extends$7 = (undefined && undefined.__extends) || (function () {
|
|
24199
|
+
var extendStatics = function (d, b) {
|
|
24200
|
+
extendStatics = Object.setPrototypeOf ||
|
|
24201
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
24202
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
24203
|
+
return extendStatics(d, b);
|
|
24204
|
+
};
|
|
24205
|
+
return function (d, b) {
|
|
24206
|
+
extendStatics(d, b);
|
|
24207
|
+
function __() { this.constructor = d; }
|
|
24208
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
24209
|
+
};
|
|
24210
|
+
})();
|
|
24211
|
+
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
24212
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
24213
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
24214
|
+
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;
|
|
24215
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24216
|
+
};
|
|
24174
24217
|
/**
|
|
24175
24218
|
* Configures the inlineMode property of the RTE.
|
|
24176
24219
|
*/
|
|
24177
|
-
var InlineMode = /** @
|
|
24220
|
+
var InlineMode = /** @class */ (function (_super) {
|
|
24178
24221
|
__extends$7(InlineMode, _super);
|
|
24179
24222
|
function InlineMode() {
|
|
24180
24223
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -24191,7 +24234,7 @@ var InlineMode = /** @__PURE__ @class */ (function (_super) {
|
|
|
24191
24234
|
/**
|
|
24192
24235
|
* `EnterKey` module is used to handle enter key press actions.
|
|
24193
24236
|
*/
|
|
24194
|
-
var EnterKeyAction = /** @
|
|
24237
|
+
var EnterKeyAction = /** @class */ (function () {
|
|
24195
24238
|
function EnterKeyAction(parent) {
|
|
24196
24239
|
this.parent = parent;
|
|
24197
24240
|
this.addEventListener();
|
|
@@ -24317,6 +24360,7 @@ var EnterKeyAction = /** @__PURE__ @class */ (function () {
|
|
|
24317
24360
|
detach(nearBlockNode);
|
|
24318
24361
|
}
|
|
24319
24362
|
}
|
|
24363
|
+
_this.parent.formatter.editorManager.nodeSelection.setCursorPoint(_this.parent.contentModule.getDocument(), insertElem.nextElementSibling, 0);
|
|
24320
24364
|
}
|
|
24321
24365
|
else if (nearBlockNode.textContent.length === 0 && !(!isNullOrUndefined(nearBlockNode.childNodes[0]) && nearBlockNode.childNodes[0].nodeName === 'IMG')) {
|
|
24322
24366
|
if (!isNullOrUndefined(nearBlockNode.children[0]) && nearBlockNode.children[0].tagName !== 'BR') {
|
|
@@ -24464,36 +24508,36 @@ var EnterKeyAction = /** @__PURE__ @class */ (function () {
|
|
|
24464
24508
|
return EnterKeyAction;
|
|
24465
24509
|
}());
|
|
24466
24510
|
|
|
24467
|
-
var __extends$4 = (undefined && undefined.__extends) || (function () {
|
|
24468
|
-
var extendStatics = function (d, b) {
|
|
24469
|
-
extendStatics = Object.setPrototypeOf ||
|
|
24470
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
24471
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
24472
|
-
return extendStatics(d, b);
|
|
24473
|
-
};
|
|
24474
|
-
return function (d, b) {
|
|
24475
|
-
extendStatics(d, b);
|
|
24476
|
-
function __() { this.constructor = d; }
|
|
24477
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
24478
|
-
};
|
|
24479
|
-
})();
|
|
24480
|
-
var __assign = (undefined && undefined.__assign) || function () {
|
|
24481
|
-
__assign = Object.assign || function(t) {
|
|
24482
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
24483
|
-
s = arguments[i];
|
|
24484
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
24485
|
-
t[p] = s[p];
|
|
24486
|
-
}
|
|
24487
|
-
return t;
|
|
24488
|
-
};
|
|
24489
|
-
return __assign.apply(this, arguments);
|
|
24490
|
-
};
|
|
24491
|
-
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
24492
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
24493
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
24494
|
-
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;
|
|
24495
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24496
|
-
};
|
|
24511
|
+
var __extends$4 = (undefined && undefined.__extends) || (function () {
|
|
24512
|
+
var extendStatics = function (d, b) {
|
|
24513
|
+
extendStatics = Object.setPrototypeOf ||
|
|
24514
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
24515
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
24516
|
+
return extendStatics(d, b);
|
|
24517
|
+
};
|
|
24518
|
+
return function (d, b) {
|
|
24519
|
+
extendStatics(d, b);
|
|
24520
|
+
function __() { this.constructor = d; }
|
|
24521
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
24522
|
+
};
|
|
24523
|
+
})();
|
|
24524
|
+
var __assign = (undefined && undefined.__assign) || function () {
|
|
24525
|
+
__assign = Object.assign || function(t) {
|
|
24526
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
24527
|
+
s = arguments[i];
|
|
24528
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
24529
|
+
t[p] = s[p];
|
|
24530
|
+
}
|
|
24531
|
+
return t;
|
|
24532
|
+
};
|
|
24533
|
+
return __assign.apply(this, arguments);
|
|
24534
|
+
};
|
|
24535
|
+
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
24536
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
24537
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
24538
|
+
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;
|
|
24539
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24540
|
+
};
|
|
24497
24541
|
/**
|
|
24498
24542
|
* Represents the Rich Text Editor component.
|
|
24499
24543
|
* ```html
|
|
@@ -24504,7 +24548,7 @@ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
24504
24548
|
* </script>
|
|
24505
24549
|
* ```
|
|
24506
24550
|
*/
|
|
24507
|
-
var RichTextEditor = /** @
|
|
24551
|
+
var RichTextEditor = /** @class */ (function (_super) {
|
|
24508
24552
|
__extends$4(RichTextEditor, _super);
|
|
24509
24553
|
function RichTextEditor(options, element) {
|
|
24510
24554
|
var _this = _super.call(this, options, element) || this;
|
|
@@ -25868,8 +25912,7 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
25868
25912
|
this.setProperties({ value: this.valueTemplate });
|
|
25869
25913
|
}
|
|
25870
25914
|
else {
|
|
25871
|
-
var
|
|
25872
|
-
var compiledTemplate = compiledString({});
|
|
25915
|
+
var compiledTemplate = compile(this.valueTemplate)('', this, 'valueTemplate');
|
|
25873
25916
|
for (var i = 0; i < compiledTemplate.length; i++) {
|
|
25874
25917
|
var item = compiledTemplate[i];
|
|
25875
25918
|
append([item], this.element);
|