@syncfusion/ej2-richtexteditor 19.3.47 → 19.3.53-6125
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1019 -997
- package/README.md +67 -67
- package/dist/ej2-richtexteditor.umd.min.js +1 -10
- package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es2015.js +167 -130
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +276 -239
- package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
- package/helpers/e2e/index.js +3 -3
- package/license +9 -9
- package/package.json +75 -75
- package/src/common/interface.d.ts +7 -7
- package/src/editor-manager/base/classes.d.ts +1 -1
- package/src/editor-manager/base/classes.js +1 -1
- package/src/editor-manager/base/editor-manager.d.ts +3 -3
- package/src/editor-manager/base/editor-manager.js +3 -3
- package/src/editor-manager/base/interface.d.ts +7 -7
- package/src/editor-manager/base/types.d.ts +1 -1
- package/src/editor-manager/plugin/alignments.d.ts +2 -2
- package/src/editor-manager/plugin/alignments.js +2 -2
- package/src/editor-manager/plugin/clearformat-exec.d.ts +2 -2
- package/src/editor-manager/plugin/clearformat-exec.js +2 -2
- package/src/editor-manager/plugin/clearformat.d.ts +1 -1
- package/src/editor-manager/plugin/clearformat.js +1 -1
- package/src/editor-manager/plugin/dom-node.d.ts +34 -34
- package/src/editor-manager/plugin/dom-node.js +34 -34
- package/src/editor-manager/plugin/formats.d.ts +2 -2
- package/src/editor-manager/plugin/formats.js +2 -2
- package/src/editor-manager/plugin/image.d.ts +3 -3
- package/src/editor-manager/plugin/image.js +3 -3
- package/src/editor-manager/plugin/indents.d.ts +2 -2
- package/src/editor-manager/plugin/indents.js +2 -2
- package/src/editor-manager/plugin/insert-methods.d.ts +4 -4
- package/src/editor-manager/plugin/insert-methods.js +4 -4
- package/src/editor-manager/plugin/insert-text.d.ts +2 -2
- package/src/editor-manager/plugin/insert-text.js +2 -2
- package/src/editor-manager/plugin/inserthtml-exec.d.ts +2 -2
- package/src/editor-manager/plugin/inserthtml-exec.js +2 -2
- package/src/editor-manager/plugin/inserthtml.d.ts +2 -2
- package/src/editor-manager/plugin/inserthtml.js +13 -3
- package/src/editor-manager/plugin/isformatted.d.ts +8 -8
- package/src/editor-manager/plugin/isformatted.js +8 -8
- package/src/editor-manager/plugin/link.d.ts +2 -2
- package/src/editor-manager/plugin/link.js +2 -2
- package/src/editor-manager/plugin/lists.d.ts +2 -2
- package/src/editor-manager/plugin/lists.js +2 -2
- package/src/editor-manager/plugin/ms-word-clean-up.d.ts +1 -1
- package/src/editor-manager/plugin/ms-word-clean-up.js +1 -1
- package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
- package/src/editor-manager/plugin/nodecutter.js +6 -6
- package/src/editor-manager/plugin/selection-commands.d.ts +1 -1
- package/src/editor-manager/plugin/selection-commands.js +1 -1
- package/src/editor-manager/plugin/selection-exec.d.ts +2 -2
- package/src/editor-manager/plugin/selection-exec.js +2 -2
- package/src/editor-manager/plugin/table.d.ts +2 -2
- package/src/editor-manager/plugin/table.js +2 -2
- package/src/editor-manager/plugin/toolbar-status.d.ts +2 -2
- package/src/editor-manager/plugin/toolbar-status.js +2 -2
- package/src/editor-manager/plugin/undo.d.ts +6 -6
- package/src/editor-manager/plugin/undo.js +6 -6
- package/src/markdown-parser/base/interface.d.ts +10 -10
- package/src/markdown-parser/base/markdown-parser.d.ts +3 -3
- package/src/markdown-parser/base/markdown-parser.js +3 -3
- package/src/markdown-parser/base/types.d.ts +1 -1
- package/src/markdown-parser/plugin/clearformat.d.ts +2 -2
- package/src/markdown-parser/plugin/clearformat.js +2 -2
- package/src/markdown-parser/plugin/formats.d.ts +2 -2
- package/src/markdown-parser/plugin/formats.js +2 -2
- package/src/markdown-parser/plugin/link.d.ts +2 -2
- package/src/markdown-parser/plugin/link.js +2 -2
- package/src/markdown-parser/plugin/markdown-selection.d.ts +14 -14
- package/src/markdown-parser/plugin/markdown-selection.js +14 -14
- package/src/markdown-parser/plugin/md-selection-formats.d.ts +1 -1
- package/src/markdown-parser/plugin/md-selection-formats.js +1 -1
- package/src/markdown-parser/plugin/table.d.ts +3 -3
- package/src/markdown-parser/plugin/table.js +3 -3
- package/src/markdown-parser/plugin/undo.d.ts +6 -6
- package/src/markdown-parser/plugin/undo.js +6 -6
- package/src/rich-text-editor/actions/base-quick-toolbar.d.ts +9 -9
- package/src/rich-text-editor/actions/base-quick-toolbar.js +9 -9
- package/src/rich-text-editor/actions/base-toolbar.d.ts +3 -3
- package/src/rich-text-editor/actions/base-toolbar.js +3 -3
- package/src/rich-text-editor/actions/color-picker.d.ts +2 -2
- package/src/rich-text-editor/actions/color-picker.js +2 -2
- package/src/rich-text-editor/actions/count.d.ts +3 -3
- package/src/rich-text-editor/actions/count.js +3 -3
- package/src/rich-text-editor/actions/dropdown-buttons.d.ts +2 -2
- package/src/rich-text-editor/actions/dropdown-buttons.js +12 -2
- package/src/rich-text-editor/actions/enter-key.js +1 -0
- package/src/rich-text-editor/actions/full-screen.d.ts +3 -3
- package/src/rich-text-editor/actions/full-screen.js +3 -3
- package/src/rich-text-editor/actions/html-editor.d.ts +3 -3
- package/src/rich-text-editor/actions/html-editor.js +3 -3
- package/src/rich-text-editor/actions/keyboard-model.d.ts +16 -16
- package/src/rich-text-editor/actions/keyboard.d.ts +1 -1
- package/src/rich-text-editor/actions/keyboard.js +20 -20
- package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
- package/src/rich-text-editor/actions/markdown-editor.js +2 -2
- package/src/rich-text-editor/actions/paste-clean-up.d.ts +1 -1
- package/src/rich-text-editor/actions/paste-clean-up.js +1 -1
- package/src/rich-text-editor/actions/quick-toolbar.d.ts +10 -9
- package/src/rich-text-editor/actions/quick-toolbar.js +24 -9
- package/src/rich-text-editor/actions/toolbar.d.ts +13 -13
- package/src/rich-text-editor/actions/toolbar.js +13 -13
- package/src/rich-text-editor/actions/xhtml-validation.d.ts +1 -1
- package/src/rich-text-editor/actions/xhtml-validation.js +1 -1
- package/src/rich-text-editor/base/classes.d.ts +107 -107
- package/src/rich-text-editor/base/classes.js +107 -107
- package/src/rich-text-editor/base/constant.d.ts +120 -120
- package/src/rich-text-editor/base/constant.js +120 -120
- package/src/rich-text-editor/base/enum.d.ts +1 -1
- package/src/rich-text-editor/base/enum.js +1 -1
- package/src/rich-text-editor/base/interface.d.ts +47 -45
- package/src/rich-text-editor/base/interface.js +1 -1
- package/src/rich-text-editor/base/rich-text-editor-model.d.ts +851 -851
- package/src/rich-text-editor/base/rich-text-editor.d.ts +53 -53
- package/src/rich-text-editor/base/rich-text-editor.js +65 -66
- package/src/rich-text-editor/base/util.d.ts +1 -1
- package/src/rich-text-editor/base/util.js +1 -1
- package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
- package/src/rich-text-editor/formatter/formatter.js +11 -11
- package/src/rich-text-editor/formatter/html-formatter.d.ts +2 -2
- package/src/rich-text-editor/formatter/html-formatter.js +15 -15
- package/src/rich-text-editor/formatter/markdown-formatter.d.ts +2 -2
- package/src/rich-text-editor/formatter/markdown-formatter.js +15 -15
- package/src/rich-text-editor/models/iframe-settings-model.d.ts +26 -26
- package/src/rich-text-editor/models/iframe-settings.js +19 -19
- package/src/rich-text-editor/models/inline-mode-model.d.ts +11 -11
- package/src/rich-text-editor/models/inline-mode.js +19 -19
- package/src/rich-text-editor/models/toolbar-settings-model.d.ts +439 -439
- package/src/rich-text-editor/models/toolbar-settings.d.ts +1 -1
- package/src/rich-text-editor/models/toolbar-settings.js +19 -19
- package/src/rich-text-editor/renderer/content-renderer.d.ts +6 -6
- package/src/rich-text-editor/renderer/content-renderer.js +6 -6
- package/src/rich-text-editor/renderer/dialog-renderer.d.ts +2 -2
- package/src/rich-text-editor/renderer/dialog-renderer.js +2 -2
- package/src/rich-text-editor/renderer/iframe-content-renderer.d.ts +4 -4
- package/src/rich-text-editor/renderer/iframe-content-renderer.js +17 -17
- package/src/rich-text-editor/renderer/image-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/image-module.js +1 -1
- package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/link-module.js +1 -1
- package/src/rich-text-editor/renderer/markdown-renderer.d.ts +6 -6
- package/src/rich-text-editor/renderer/markdown-renderer.js +6 -6
- package/src/rich-text-editor/renderer/popup-renderer.d.ts +5 -5
- package/src/rich-text-editor/renderer/popup-renderer.js +5 -5
- package/src/rich-text-editor/renderer/render.d.ts +2 -2
- package/src/rich-text-editor/renderer/render.js +2 -2
- package/src/rich-text-editor/renderer/table-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/table-module.js +1 -1
- package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +9 -9
- package/src/rich-text-editor/renderer/toolbar-renderer.js +12 -11
- package/src/rich-text-editor/renderer/view-source.d.ts +6 -6
- package/src/rich-text-editor/renderer/view-source.js +6 -6
- package/src/rich-text-editor/services/renderer-factory.d.ts +3 -3
- package/src/rich-text-editor/services/renderer-factory.js +3 -3
- package/src/rich-text-editor/services/service-locator.d.ts +3 -3
- package/src/rich-text-editor/services/service-locator.js +3 -3
- package/src/selection/selection.d.ts +22 -22
- package/src/selection/selection.js +24 -23
- package/styles/_all.scss +2 -2
- package/styles/bootstrap-dark.css +4 -0
- package/styles/bootstrap.css +4 -0
- package/styles/bootstrap4.css +4 -0
- package/styles/bootstrap5-dark.css +4 -0
- package/styles/bootstrap5.css +4 -0
- package/styles/fabric-dark.css +4 -0
- package/styles/fabric.css +4 -0
- package/styles/highcontrast-light.css +4 -0
- package/styles/highcontrast.css +4 -0
- package/styles/material-dark.css +4 -0
- package/styles/material.css +4 -0
- package/styles/rich-text-editor/_all.scss +2 -2
- package/styles/rich-text-editor/_bootstrap-dark-definition.scss +187 -187
- package/styles/rich-text-editor/_bootstrap-definition.scss +244 -244
- package/styles/rich-text-editor/_bootstrap4-definition.scss +370 -370
- package/styles/rich-text-editor/_bootstrap5-definition.scss +168 -168
- package/styles/rich-text-editor/_fabric-dark-definition.scss +168 -168
- package/styles/rich-text-editor/_fabric-definition.scss +167 -167
- package/styles/rich-text-editor/_highcontrast-definition.scss +167 -167
- package/styles/rich-text-editor/_highcontrast-light-definition.scss +167 -167
- package/styles/rich-text-editor/_layout.scss +1639 -1635
- package/styles/rich-text-editor/_material-dark-definition.scss +172 -172
- package/styles/rich-text-editor/_material-definition.scss +169 -169
- package/styles/rich-text-editor/_tailwind-definition.scss +167 -167
- package/styles/rich-text-editor/_theme.scss +626 -626
- package/styles/rich-text-editor/bootstrap-dark.css +4 -0
- package/styles/rich-text-editor/bootstrap.css +4 -0
- package/styles/rich-text-editor/bootstrap4.css +4 -0
- package/styles/rich-text-editor/bootstrap5-dark.css +4 -0
- package/styles/rich-text-editor/bootstrap5.css +4 -0
- package/styles/rich-text-editor/fabric-dark.css +4 -0
- package/styles/rich-text-editor/fabric.css +4 -0
- package/styles/rich-text-editor/highcontrast-light.css +4 -0
- package/styles/rich-text-editor/highcontrast.css +4 -0
- package/styles/rich-text-editor/icons/_bootstrap-dark.scss +304 -304
- package/styles/rich-text-editor/icons/_bootstrap.scss +304 -304
- package/styles/rich-text-editor/icons/_bootstrap4.scss +304 -304
- package/styles/rich-text-editor/icons/_bootstrap5.scss +303 -303
- package/styles/rich-text-editor/icons/_fabric-dark.scss +304 -304
- package/styles/rich-text-editor/icons/_fabric.scss +304 -304
- package/styles/rich-text-editor/icons/_highcontrast-light.scss +304 -304
- package/styles/rich-text-editor/icons/_highcontrast.scss +304 -304
- package/styles/rich-text-editor/icons/_material-dark.scss +304 -304
- package/styles/rich-text-editor/icons/_material.scss +304 -304
- package/styles/rich-text-editor/icons/_tailwind.scss +304 -304
- package/styles/rich-text-editor/material-dark.css +4 -0
- package/styles/rich-text-editor/material.css +4 -0
- package/styles/rich-text-editor/tailwind-dark.css +4 -0
- package/styles/rich-text-editor/tailwind.css +4 -0
- package/styles/tailwind-dark.css +4 -0
- package/styles/tailwind.css +4 -0
- package/.eslintrc.json +0 -244
- package/dist/global/ej2-richtexteditor.min.js +0 -11
- package/dist/global/ej2-richtexteditor.min.js.map +0 -1
- package/dist/global/index.d.ts +0 -14
- package/tslint.json +0 -111
|
@@ -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
|
*
|
|
@@ -2741,7 +2741,8 @@ var ToolbarRenderer = /** @__PURE__ @class */ (function () {
|
|
|
2741
2741
|
this.parent.notify(beforeDropDownItemRender, args);
|
|
2742
2742
|
};
|
|
2743
2743
|
ToolbarRenderer.prototype.dropDownOpen = function (args) {
|
|
2744
|
-
if (args.element.parentElement.getAttribute('id').indexOf('TableCell') > -1)
|
|
2744
|
+
if (args.element.parentElement.getAttribute('id').indexOf('TableCell') > -1 && !isNullOrUndefined(args.element.parentElement.querySelector('.e-cell-merge')) &&
|
|
2745
|
+
(!isNullOrUndefined(args.element.parentElement.querySelector('.e-cell-horizontal-split')) || !isNullOrUndefined(args.element.parentElement.querySelector('.e-cell-vertical-split')))) {
|
|
2745
2746
|
var listEle = args.element.querySelectorAll('li');
|
|
2746
2747
|
if (this.parent.inputElement.querySelectorAll('.e-cell-select').length === 1) {
|
|
2747
2748
|
addClass([listEle[0]], 'e-disabled');
|
|
@@ -3236,7 +3237,7 @@ var ToolbarRenderer = /** @__PURE__ @class */ (function () {
|
|
|
3236
3237
|
/**
|
|
3237
3238
|
* `Toolbar` module is used to handle Toolbar actions.
|
|
3238
3239
|
*/
|
|
3239
|
-
var BaseToolbar = /** @
|
|
3240
|
+
var BaseToolbar = /** @class */ (function () {
|
|
3240
3241
|
function BaseToolbar(parent, serviceLocator) {
|
|
3241
3242
|
this.tools = {};
|
|
3242
3243
|
this.parent = parent;
|
|
@@ -3408,7 +3409,7 @@ var BaseToolbar = /** @__PURE__ @class */ (function () {
|
|
|
3408
3409
|
/**
|
|
3409
3410
|
* `Toolbar` module is used to handle Toolbar actions.
|
|
3410
3411
|
*/
|
|
3411
|
-
var DropDownButtons = /** @
|
|
3412
|
+
var DropDownButtons = /** @class */ (function () {
|
|
3412
3413
|
function DropDownButtons(parent, serviceLocator) {
|
|
3413
3414
|
this.parent = parent;
|
|
3414
3415
|
this.locator = serviceLocator;
|
|
@@ -3605,6 +3606,11 @@ var DropDownButtons = /** @__PURE__ @class */ (function () {
|
|
|
3605
3606
|
var prop = _a[_i];
|
|
3606
3607
|
switch (prop) {
|
|
3607
3608
|
case 'fontFamily':
|
|
3609
|
+
if (this.parent.inlineMode.enable) {
|
|
3610
|
+
if (!isNullOrUndefined(this.parent.fontFamily.default)) {
|
|
3611
|
+
this.getEditNode().style.fontFamily = this.parent.fontFamily.default;
|
|
3612
|
+
}
|
|
3613
|
+
}
|
|
3608
3614
|
if (this.fontNameDropDown) {
|
|
3609
3615
|
for (var _b = 0, _c = Object.keys(newProp.fontFamily); _b < _c.length; _b++) {
|
|
3610
3616
|
var fontFamily$$1 = _c[_b];
|
|
@@ -3636,6 +3642,11 @@ var DropDownButtons = /** @__PURE__ @class */ (function () {
|
|
|
3636
3642
|
}
|
|
3637
3643
|
break;
|
|
3638
3644
|
case 'fontSize':
|
|
3645
|
+
if (this.parent.inlineMode) {
|
|
3646
|
+
if (!isNullOrUndefined(this.parent.fontSize.default)) {
|
|
3647
|
+
this.getEditNode().style.fontSize = this.parent.fontSize.default;
|
|
3648
|
+
}
|
|
3649
|
+
}
|
|
3639
3650
|
if (this.fontSizeDropDown) {
|
|
3640
3651
|
for (var _d = 0, _e = Object.keys(newProp.fontSize); _d < _e.length; _d++) {
|
|
3641
3652
|
var fontSize$$1 = _e[_d];
|
|
@@ -3905,7 +3916,7 @@ var DropDownButtons = /** @__PURE__ @class */ (function () {
|
|
|
3905
3916
|
* @hidden
|
|
3906
3917
|
* @deprecated
|
|
3907
3918
|
*/
|
|
3908
|
-
var ServiceLocator = /** @
|
|
3919
|
+
var ServiceLocator = /** @class */ (function () {
|
|
3909
3920
|
function ServiceLocator() {
|
|
3910
3921
|
this.services = {};
|
|
3911
3922
|
}
|
|
@@ -3949,7 +3960,7 @@ var ServiceLocator = /** @__PURE__ @class */ (function () {
|
|
|
3949
3960
|
* @hidden
|
|
3950
3961
|
* @deprecated
|
|
3951
3962
|
*/
|
|
3952
|
-
var RendererFactory = /** @
|
|
3963
|
+
var RendererFactory = /** @class */ (function () {
|
|
3953
3964
|
function RendererFactory() {
|
|
3954
3965
|
this.rendererMap = {};
|
|
3955
3966
|
}
|
|
@@ -3992,7 +4003,7 @@ var RendererFactory = /** @__PURE__ @class */ (function () {
|
|
|
3992
4003
|
/**
|
|
3993
4004
|
* `ToolbarAction` module is used to toolbar click action
|
|
3994
4005
|
*/
|
|
3995
|
-
var ToolbarAction = /** @
|
|
4006
|
+
var ToolbarAction = /** @class */ (function () {
|
|
3996
4007
|
function ToolbarAction(parent) {
|
|
3997
4008
|
this.parent = parent;
|
|
3998
4009
|
this.addEventListener();
|
|
@@ -4065,7 +4076,7 @@ var ToolbarAction = /** @__PURE__ @class */ (function () {
|
|
|
4065
4076
|
/**
|
|
4066
4077
|
* `Toolbar` module is used to handle Toolbar actions.
|
|
4067
4078
|
*/
|
|
4068
|
-
var Toolbar$2 = /** @
|
|
4079
|
+
var Toolbar$2 = /** @class */ (function () {
|
|
4069
4080
|
function Toolbar$$1(parent, serviceLocator) {
|
|
4070
4081
|
this.parent = parent;
|
|
4071
4082
|
this.isToolbar = false;
|
|
@@ -4730,25 +4741,25 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
4730
4741
|
return Toolbar$$1;
|
|
4731
4742
|
}());
|
|
4732
4743
|
|
|
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
|
-
};
|
|
4744
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
4745
|
+
var extendStatics = function (d, b) {
|
|
4746
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4747
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
4748
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
4749
|
+
return extendStatics(d, b);
|
|
4750
|
+
};
|
|
4751
|
+
return function (d, b) {
|
|
4752
|
+
extendStatics(d, b);
|
|
4753
|
+
function __() { this.constructor = d; }
|
|
4754
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
4755
|
+
};
|
|
4756
|
+
})();
|
|
4757
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
4758
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4759
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4760
|
+
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;
|
|
4761
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4762
|
+
};
|
|
4752
4763
|
var keyCode = {
|
|
4753
4764
|
'backspace': 8,
|
|
4754
4765
|
'tab': 9,
|
|
@@ -4816,7 +4827,7 @@ var keyCode = {
|
|
|
4816
4827
|
* @hidden
|
|
4817
4828
|
* @deprecated
|
|
4818
4829
|
*/
|
|
4819
|
-
var KeyboardEvents$1 = /** @
|
|
4830
|
+
var KeyboardEvents$1 = /** @class */ (function (_super) {
|
|
4820
4831
|
__extends(KeyboardEvents$$1, _super);
|
|
4821
4832
|
/**
|
|
4822
4833
|
* Initializes the KeyboardEvents
|
|
@@ -4959,7 +4970,7 @@ var KeyboardEvents$1 = /** @__PURE__ @class */ (function (_super) {
|
|
|
4959
4970
|
/**
|
|
4960
4971
|
* `Color Picker` module is used to handle ColorPicker actions.
|
|
4961
4972
|
*/
|
|
4962
|
-
var ColorPickerInput = /** @
|
|
4973
|
+
var ColorPickerInput = /** @class */ (function () {
|
|
4963
4974
|
function ColorPickerInput(parent, serviceLocator) {
|
|
4964
4975
|
this.tools = {};
|
|
4965
4976
|
this.parent = parent;
|
|
@@ -5164,7 +5175,7 @@ var ColorPickerInput = /** @__PURE__ @class */ (function () {
|
|
|
5164
5175
|
/**
|
|
5165
5176
|
* `Quick toolbar` module is used to handle Quick toolbar actions.
|
|
5166
5177
|
*/
|
|
5167
|
-
var BaseQuickToolbar = /** @
|
|
5178
|
+
var BaseQuickToolbar = /** @class */ (function () {
|
|
5168
5179
|
function BaseQuickToolbar(parent, locator) {
|
|
5169
5180
|
this.parent = parent;
|
|
5170
5181
|
this.locator = locator;
|
|
@@ -5559,7 +5570,7 @@ var BaseQuickToolbar = /** @__PURE__ @class */ (function () {
|
|
|
5559
5570
|
* @hidden
|
|
5560
5571
|
* @deprecated
|
|
5561
5572
|
*/
|
|
5562
|
-
var PopupRenderer = /** @
|
|
5573
|
+
var PopupRenderer = /** @class */ (function () {
|
|
5563
5574
|
/**
|
|
5564
5575
|
* Constructor for popup renderer module
|
|
5565
5576
|
*
|
|
@@ -5628,7 +5639,7 @@ var PopupRenderer = /** @__PURE__ @class */ (function () {
|
|
|
5628
5639
|
/**
|
|
5629
5640
|
* `Quick toolbar` module is used to handle Quick toolbar actions.
|
|
5630
5641
|
*/
|
|
5631
|
-
var QuickToolbar = /** @
|
|
5642
|
+
var QuickToolbar = /** @class */ (function () {
|
|
5632
5643
|
function QuickToolbar(parent, locator) {
|
|
5633
5644
|
this.parent = parent;
|
|
5634
5645
|
this.locator = locator;
|
|
@@ -5700,6 +5711,11 @@ var QuickToolbar = /** @__PURE__ @class */ (function () {
|
|
|
5700
5711
|
this.parent.isBlur = false;
|
|
5701
5712
|
this.parent.isRTE = true;
|
|
5702
5713
|
};
|
|
5714
|
+
QuickToolbar.prototype.keyUpQT = function (e) {
|
|
5715
|
+
if (e.which == 27) {
|
|
5716
|
+
this.hideQuickToolbars();
|
|
5717
|
+
}
|
|
5718
|
+
};
|
|
5703
5719
|
QuickToolbar.prototype.renderQuickToolbars = function () {
|
|
5704
5720
|
if (this.linkQTBar || this.imageQTBar || this.textQTBar || this.tableQTBar) {
|
|
5705
5721
|
return;
|
|
@@ -5714,15 +5730,19 @@ var QuickToolbar = /** @__PURE__ @class */ (function () {
|
|
|
5714
5730
|
this.renderFactory.addRenderer(RenderType.TableToolbar, this.tableQTBar);
|
|
5715
5731
|
if (this.linkQTBar) {
|
|
5716
5732
|
EventHandler.add(this.linkQTBar.element, 'mousedown', this.onMouseDown, this);
|
|
5733
|
+
EventHandler.add(this.linkQTBar.element, 'keyup', this.keyUpQT, this);
|
|
5717
5734
|
}
|
|
5718
5735
|
if (this.imageQTBar) {
|
|
5719
5736
|
EventHandler.add(this.imageQTBar.element, 'mousedown', this.onMouseDown, this);
|
|
5737
|
+
EventHandler.add(this.imageQTBar.element, 'keyup', this.keyUpQT, this);
|
|
5720
5738
|
}
|
|
5721
5739
|
if (this.textQTBar) {
|
|
5722
5740
|
EventHandler.add(this.textQTBar.element, 'mousedown', this.onMouseDown, this);
|
|
5741
|
+
EventHandler.add(this.textQTBar.element, 'keyup', this.keyUpQT, this);
|
|
5723
5742
|
}
|
|
5724
5743
|
if (this.tableQTBar) {
|
|
5725
5744
|
EventHandler.add(this.tableQTBar.element, 'mousedown', this.onMouseDown, this);
|
|
5745
|
+
EventHandler.add(this.tableQTBar.element, 'keyup', this.keyUpQT, this);
|
|
5726
5746
|
}
|
|
5727
5747
|
};
|
|
5728
5748
|
QuickToolbar.prototype.renderInlineQuickToolbar = function () {
|
|
@@ -5731,6 +5751,7 @@ var QuickToolbar = /** @__PURE__ @class */ (function () {
|
|
|
5731
5751
|
this.inlineQTBar = this.createQTBar('Inline', 'MultiRow', this.parent.toolbarSettings.items, RenderType.InlineToolbar);
|
|
5732
5752
|
this.renderFactory.addRenderer(RenderType.InlineToolbar, this.inlineQTBar);
|
|
5733
5753
|
EventHandler.add(this.inlineQTBar.element, 'mousedown', this.onMouseDown, this);
|
|
5754
|
+
EventHandler.add(this.inlineQTBar.element, 'keyup', this.keyUpQT, this);
|
|
5734
5755
|
}
|
|
5735
5756
|
};
|
|
5736
5757
|
/**
|
|
@@ -5885,22 +5906,27 @@ var QuickToolbar = /** @__PURE__ @class */ (function () {
|
|
|
5885
5906
|
QuickToolbar.prototype.destroy = function () {
|
|
5886
5907
|
if (this.linkQTBar) {
|
|
5887
5908
|
EventHandler.remove(this.linkQTBar.element, 'mousedown', this.onMouseDown);
|
|
5909
|
+
EventHandler.remove(this.linkQTBar.element, 'keyup', this.keyUpQT);
|
|
5888
5910
|
this.linkQTBar.destroy();
|
|
5889
5911
|
}
|
|
5890
5912
|
if (this.textQTBar) {
|
|
5891
5913
|
EventHandler.remove(this.textQTBar.element, 'mousedown', this.onMouseDown);
|
|
5914
|
+
EventHandler.remove(this.textQTBar.element, 'keyup', this.keyUpQT);
|
|
5892
5915
|
this.textQTBar.destroy();
|
|
5893
5916
|
}
|
|
5894
5917
|
if (this.imageQTBar) {
|
|
5895
5918
|
EventHandler.remove(this.imageQTBar.element, 'mousedown', this.onMouseDown);
|
|
5919
|
+
EventHandler.remove(this.imageQTBar.element, 'keyup', this.keyUpQT);
|
|
5896
5920
|
this.imageQTBar.destroy();
|
|
5897
5921
|
}
|
|
5898
5922
|
if (this.tableQTBar) {
|
|
5899
5923
|
EventHandler.remove(this.tableQTBar.element, 'mousedown', this.onMouseDown);
|
|
5924
|
+
EventHandler.remove(this.tableQTBar.element, 'keyup', this.keyUpQT);
|
|
5900
5925
|
this.tableQTBar.destroy();
|
|
5901
5926
|
}
|
|
5902
5927
|
if (this.inlineQTBar) {
|
|
5903
5928
|
EventHandler.remove(this.inlineQTBar.element, 'mousedown', this.onMouseDown);
|
|
5929
|
+
EventHandler.remove(this.inlineQTBar.element, 'keyup', this.keyUpQT);
|
|
5904
5930
|
if (isIDevice()) {
|
|
5905
5931
|
EventHandler.remove(document, 'selectionchange', this.selectionChangeHandler);
|
|
5906
5932
|
}
|
|
@@ -6067,7 +6093,7 @@ var QuickToolbar = /** @__PURE__ @class */ (function () {
|
|
|
6067
6093
|
/**
|
|
6068
6094
|
* `Count` module is used to handle Count actions.
|
|
6069
6095
|
*/
|
|
6070
|
-
var Count = /** @
|
|
6096
|
+
var Count = /** @class */ (function () {
|
|
6071
6097
|
function Count(parent, serviceLocator) {
|
|
6072
6098
|
this.parent = parent;
|
|
6073
6099
|
this.locator = serviceLocator;
|
|
@@ -6195,7 +6221,7 @@ var Count = /** @__PURE__ @class */ (function () {
|
|
|
6195
6221
|
* @hidden
|
|
6196
6222
|
* @deprecated
|
|
6197
6223
|
*/
|
|
6198
|
-
var MarkdownSelection = /** @
|
|
6224
|
+
var MarkdownSelection = /** @class */ (function () {
|
|
6199
6225
|
function MarkdownSelection() {
|
|
6200
6226
|
}
|
|
6201
6227
|
/**
|
|
@@ -6578,7 +6604,7 @@ function getDefaultMDTbStatus() {
|
|
|
6578
6604
|
/**
|
|
6579
6605
|
* MarkdownToolbarStatus module for refresh the toolbar status
|
|
6580
6606
|
*/
|
|
6581
|
-
var MarkdownToolbarStatus = /** @
|
|
6607
|
+
var MarkdownToolbarStatus = /** @class */ (function () {
|
|
6582
6608
|
function MarkdownToolbarStatus(parent) {
|
|
6583
6609
|
this.toolbarStatus = this.prevToolbarStatus = getDefaultMDTbStatus();
|
|
6584
6610
|
this.selection = new MarkdownSelection();
|
|
@@ -6700,7 +6726,7 @@ var MarkdownToolbarStatus = /** @__PURE__ @class */ (function () {
|
|
|
6700
6726
|
/**
|
|
6701
6727
|
* `ExecCommandCallBack` module is used to run the editor manager command
|
|
6702
6728
|
*/
|
|
6703
|
-
var ExecCommandCallBack = /** @
|
|
6729
|
+
var ExecCommandCallBack = /** @class */ (function () {
|
|
6704
6730
|
function ExecCommandCallBack(parent) {
|
|
6705
6731
|
this.parent = parent;
|
|
6706
6732
|
this.addEventListener();
|
|
@@ -6811,7 +6837,7 @@ var SPACE_ACTION = 'actionBegin';
|
|
|
6811
6837
|
* @hidden
|
|
6812
6838
|
* @deprecated
|
|
6813
6839
|
*/
|
|
6814
|
-
var Formatter = /** @
|
|
6840
|
+
var Formatter = /** @class */ (function () {
|
|
6815
6841
|
function Formatter() {
|
|
6816
6842
|
}
|
|
6817
6843
|
/**
|
|
@@ -6891,7 +6917,7 @@ var Formatter = /** @__PURE__ @class */ (function () {
|
|
|
6891
6917
|
|| ((args.item.subCommand === 'FontName' || args.item.subCommand === 'FontSize') && args.name === 'dropDownSelect')
|
|
6892
6918
|
|| ((args.item.subCommand === 'BackgroundColor' || args.item.subCommand === 'FontColor')
|
|
6893
6919
|
&& args.name === 'colorPickerChanged'))) {
|
|
6894
|
-
extend(args, args, { requestType: args.item.subCommand, cancel: false, itemCollection: value }, true);
|
|
6920
|
+
extend(args, args, { requestType: args.item.subCommand, cancel: false, itemCollection: value, selectType: args.name }, true);
|
|
6895
6921
|
self.trigger(actionBegin, args, function (actionBeginArgs) {
|
|
6896
6922
|
if (!actionBeginArgs.cancel) {
|
|
6897
6923
|
if (_this.getUndoRedoStack().length === 0 && actionBeginArgs.item.command !== 'Links'
|
|
@@ -6909,8 +6935,8 @@ var Formatter = /** @__PURE__ @class */ (function () {
|
|
|
6909
6935
|
}
|
|
6910
6936
|
else {
|
|
6911
6937
|
_this.editorManager.observer.notify(checkUndo, { subCommand: actionBeginArgs.item.subCommand });
|
|
6912
|
-
_this.editorManager.execCommand(actionBeginArgs.item.command, actionBeginArgs.item.subCommand, event, _this.onSuccess.bind(_this, self), actionBeginArgs.item.value, actionBeginArgs.item.subCommand === 'Pre' &&
|
|
6913
|
-
{ name:
|
|
6938
|
+
_this.editorManager.execCommand(actionBeginArgs.item.command, actionBeginArgs.item.subCommand, event, _this.onSuccess.bind(_this, self), actionBeginArgs.item.value, actionBeginArgs.item.subCommand === 'Pre' && actionBeginArgs.selectType === 'dropDownSelect' ?
|
|
6939
|
+
{ name: actionBeginArgs.selectType } : value, ('#' + self.getID() + ' iframe'), self.enterKey);
|
|
6914
6940
|
}
|
|
6915
6941
|
}
|
|
6916
6942
|
});
|
|
@@ -7068,7 +7094,7 @@ var MD_TABLE = 'insert-table';
|
|
|
7068
7094
|
*
|
|
7069
7095
|
* @hidden
|
|
7070
7096
|
*/
|
|
7071
|
-
var MDLists = /** @
|
|
7097
|
+
var MDLists = /** @class */ (function () {
|
|
7072
7098
|
/**
|
|
7073
7099
|
* Constructor for creating the Lists plugin
|
|
7074
7100
|
*
|
|
@@ -7534,7 +7560,7 @@ var MDLists = /** @__PURE__ @class */ (function () {
|
|
|
7534
7560
|
* @hidden
|
|
7535
7561
|
* @deprecated
|
|
7536
7562
|
*/
|
|
7537
|
-
var MDFormats = /** @
|
|
7563
|
+
var MDFormats = /** @class */ (function () {
|
|
7538
7564
|
/**
|
|
7539
7565
|
* Constructor for creating the Formats plugin
|
|
7540
7566
|
*
|
|
@@ -7761,7 +7787,7 @@ var MDFormats = /** @__PURE__ @class */ (function () {
|
|
|
7761
7787
|
* @hidden
|
|
7762
7788
|
* @deprecated
|
|
7763
7789
|
*/
|
|
7764
|
-
var MDSelectionFormats = /** @
|
|
7790
|
+
var MDSelectionFormats = /** @class */ (function () {
|
|
7765
7791
|
function MDSelectionFormats(parent) {
|
|
7766
7792
|
extend(this, this, parent, true);
|
|
7767
7793
|
this.selection = this.parent.markdownSelection;
|
|
@@ -8213,7 +8239,7 @@ var selfClosingTags = [
|
|
|
8213
8239
|
/**
|
|
8214
8240
|
* `Undo` module is used to handle undo actions.
|
|
8215
8241
|
*/
|
|
8216
|
-
var UndoRedoCommands = /** @
|
|
8242
|
+
var UndoRedoCommands = /** @class */ (function () {
|
|
8217
8243
|
function UndoRedoCommands(parent, options) {
|
|
8218
8244
|
this.undoRedoStack = [];
|
|
8219
8245
|
this.parent = parent;
|
|
@@ -8408,7 +8434,7 @@ var UndoRedoCommands = /** @__PURE__ @class */ (function () {
|
|
|
8408
8434
|
* @hidden
|
|
8409
8435
|
* @deprecated
|
|
8410
8436
|
*/
|
|
8411
|
-
var MDLink = /** @
|
|
8437
|
+
var MDLink = /** @class */ (function () {
|
|
8412
8438
|
/**
|
|
8413
8439
|
* Constructor for creating the Formats plugin
|
|
8414
8440
|
*
|
|
@@ -8459,7 +8485,7 @@ var MDLink = /** @__PURE__ @class */ (function () {
|
|
|
8459
8485
|
* @hidden
|
|
8460
8486
|
* @deprecated
|
|
8461
8487
|
*/
|
|
8462
|
-
var MDTable = /** @
|
|
8488
|
+
var MDTable = /** @class */ (function () {
|
|
8463
8489
|
/**
|
|
8464
8490
|
* Constructor for creating the Formats plugin
|
|
8465
8491
|
*
|
|
@@ -8688,7 +8714,7 @@ var MDTable = /** @__PURE__ @class */ (function () {
|
|
|
8688
8714
|
* @hidden
|
|
8689
8715
|
* @deprecated
|
|
8690
8716
|
*/
|
|
8691
|
-
var ClearFormat = /** @
|
|
8717
|
+
var ClearFormat = /** @class */ (function () {
|
|
8692
8718
|
/**
|
|
8693
8719
|
* Constructor for creating the clear format plugin
|
|
8694
8720
|
*
|
|
@@ -8804,7 +8830,7 @@ var ClearFormat = /** @__PURE__ @class */ (function () {
|
|
|
8804
8830
|
* @hidden
|
|
8805
8831
|
* @deprecated
|
|
8806
8832
|
*/
|
|
8807
|
-
var MarkdownParser = /** @
|
|
8833
|
+
var MarkdownParser = /** @class */ (function () {
|
|
8808
8834
|
/**
|
|
8809
8835
|
* Constructor for creating the component
|
|
8810
8836
|
*
|
|
@@ -8895,26 +8921,26 @@ var MarkdownParser = /** @__PURE__ @class */ (function () {
|
|
|
8895
8921
|
return MarkdownParser;
|
|
8896
8922
|
}());
|
|
8897
8923
|
|
|
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
|
-
})();
|
|
8924
|
+
var __extends$1 = (undefined && undefined.__extends) || (function () {
|
|
8925
|
+
var extendStatics = function (d, b) {
|
|
8926
|
+
extendStatics = Object.setPrototypeOf ||
|
|
8927
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
8928
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
8929
|
+
return extendStatics(d, b);
|
|
8930
|
+
};
|
|
8931
|
+
return function (d, b) {
|
|
8932
|
+
extendStatics(d, b);
|
|
8933
|
+
function __() { this.constructor = d; }
|
|
8934
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
8935
|
+
};
|
|
8936
|
+
})();
|
|
8911
8937
|
/**
|
|
8912
8938
|
* Markdown adapter
|
|
8913
8939
|
*
|
|
8914
8940
|
* @hidden
|
|
8915
8941
|
* @deprecated
|
|
8916
8942
|
*/
|
|
8917
|
-
var MarkdownFormatter = /** @
|
|
8943
|
+
var MarkdownFormatter = /** @class */ (function (_super) {
|
|
8918
8944
|
__extends$1(MarkdownFormatter, _super);
|
|
8919
8945
|
function MarkdownFormatter(options) {
|
|
8920
8946
|
var _this = _super.call(this) || this;
|
|
@@ -8961,7 +8987,7 @@ var MarkdownFormatter = /** @__PURE__ @class */ (function (_super) {
|
|
|
8961
8987
|
* @hidden
|
|
8962
8988
|
* @deprecated
|
|
8963
8989
|
*/
|
|
8964
|
-
var MarkdownRender = /** @
|
|
8990
|
+
var MarkdownRender = /** @class */ (function () {
|
|
8965
8991
|
/**
|
|
8966
8992
|
* Constructor for content renderer module
|
|
8967
8993
|
*
|
|
@@ -9043,7 +9069,7 @@ var MarkdownRender = /** @__PURE__ @class */ (function () {
|
|
|
9043
9069
|
/**
|
|
9044
9070
|
* `MarkdownEditor` module is used to markdown editor
|
|
9045
9071
|
*/
|
|
9046
|
-
var MarkdownEditor = /** @
|
|
9072
|
+
var MarkdownEditor = /** @class */ (function () {
|
|
9047
9073
|
function MarkdownEditor(parent, serviceLocator) {
|
|
9048
9074
|
this.parent = parent;
|
|
9049
9075
|
this.locator = serviceLocator;
|
|
@@ -9298,7 +9324,7 @@ var CLEAR_TYPE = 'clear-type';
|
|
|
9298
9324
|
/**
|
|
9299
9325
|
* `Selection` module is used to handle RTE Selections.
|
|
9300
9326
|
*/
|
|
9301
|
-
var NodeSelection = /** @
|
|
9327
|
+
var NodeSelection = /** @class */ (function () {
|
|
9302
9328
|
function NodeSelection() {
|
|
9303
9329
|
this.startNodeName = [];
|
|
9304
9330
|
this.endNodeName = [];
|
|
@@ -9410,7 +9436,8 @@ var NodeSelection = /** @__PURE__ @class */ (function () {
|
|
|
9410
9436
|
|| range.startContainer;
|
|
9411
9437
|
var endNode = range.endContainer.childNodes[(range.endOffset > 0) ? (range.endOffset - 1) : range.endOffset]
|
|
9412
9438
|
|| range.endContainer;
|
|
9413
|
-
if (startNode === endNode && startNode.childNodes.
|
|
9439
|
+
if ((startNode === endNode || (startNode.nodeName === 'BR' && startNode === range.endContainer.childNodes[range.endOffset])) &&
|
|
9440
|
+
startNode.childNodes.length === 0) {
|
|
9414
9441
|
return [startNode];
|
|
9415
9442
|
}
|
|
9416
9443
|
if (range.startOffset === range.endOffset && range.startOffset !== 0 && range.startContainer.nodeName === 'PRE') {
|
|
@@ -9742,7 +9769,7 @@ var markerClassName = {
|
|
|
9742
9769
|
* @hidden
|
|
9743
9770
|
* @deprecated
|
|
9744
9771
|
*/
|
|
9745
|
-
var DOMNode = /** @
|
|
9772
|
+
var DOMNode = /** @class */ (function () {
|
|
9746
9773
|
/**
|
|
9747
9774
|
* Constructor for creating the DOMNode plugin
|
|
9748
9775
|
*
|
|
@@ -10509,7 +10536,7 @@ var DOMNode = /** @__PURE__ @class */ (function () {
|
|
|
10509
10536
|
* @hidden
|
|
10510
10537
|
* @deprecated
|
|
10511
10538
|
*/
|
|
10512
|
-
var Lists = /** @
|
|
10539
|
+
var Lists = /** @class */ (function () {
|
|
10513
10540
|
/**
|
|
10514
10541
|
* Constructor for creating the Lists plugin
|
|
10515
10542
|
*
|
|
@@ -11263,7 +11290,7 @@ var Lists = /** @__PURE__ @class */ (function () {
|
|
|
11263
11290
|
*
|
|
11264
11291
|
* @hidden
|
|
11265
11292
|
*/
|
|
11266
|
-
var InsertMethods = /** @
|
|
11293
|
+
var InsertMethods = /** @class */ (function () {
|
|
11267
11294
|
function InsertMethods() {
|
|
11268
11295
|
}
|
|
11269
11296
|
/**
|
|
@@ -11340,7 +11367,7 @@ var InsertMethods = /** @__PURE__ @class */ (function () {
|
|
|
11340
11367
|
* @hidden
|
|
11341
11368
|
* @deprecated
|
|
11342
11369
|
*/
|
|
11343
|
-
var NodeCutter = /** @
|
|
11370
|
+
var NodeCutter = /** @class */ (function () {
|
|
11344
11371
|
function NodeCutter() {
|
|
11345
11372
|
this.enterAction = 'P';
|
|
11346
11373
|
this.position = -1;
|
|
@@ -11546,7 +11573,7 @@ var NodeCutter = /** @__PURE__ @class */ (function () {
|
|
|
11546
11573
|
* @hidden
|
|
11547
11574
|
* @deprecated
|
|
11548
11575
|
*/
|
|
11549
|
-
var Formats = /** @
|
|
11576
|
+
var Formats = /** @class */ (function () {
|
|
11550
11577
|
/**
|
|
11551
11578
|
* Constructor for creating the Formats plugin
|
|
11552
11579
|
*
|
|
@@ -11914,7 +11941,7 @@ var Formats = /** @__PURE__ @class */ (function () {
|
|
|
11914
11941
|
* @hidden
|
|
11915
11942
|
* @deprecated
|
|
11916
11943
|
*/
|
|
11917
|
-
var InsertHtml = /** @
|
|
11944
|
+
var InsertHtml = /** @class */ (function () {
|
|
11918
11945
|
function InsertHtml() {
|
|
11919
11946
|
}
|
|
11920
11947
|
InsertHtml.Insert = function (docElement, insertNode, editNode, isExternal) {
|
|
@@ -12274,7 +12301,17 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
12274
12301
|
tempSpan.parentNode.replaceChild(node, tempSpan);
|
|
12275
12302
|
}
|
|
12276
12303
|
else {
|
|
12277
|
-
var
|
|
12304
|
+
var currentNode = nodes[nodes.length - 1];
|
|
12305
|
+
var splitedElm = void 0;
|
|
12306
|
+
if ((currentNode.nodeName === 'BR' || currentNode.nodeName === 'HR') && !isNullOrUndefined(currentNode.parentElement) &&
|
|
12307
|
+
currentNode.parentElement.textContent.trim().length === 0 && !node.classList.contains('pasteContent')) {
|
|
12308
|
+
//let newChildElem: HTMLElement = createElement(currentNode.nodeName);
|
|
12309
|
+
//currentNode.parentElement.insertBefore(newChildElem, currentNode);
|
|
12310
|
+
splitedElm = currentNode;
|
|
12311
|
+
}
|
|
12312
|
+
else {
|
|
12313
|
+
splitedElm = nodeCutter.GetSpliceNode(range, blockNode);
|
|
12314
|
+
}
|
|
12278
12315
|
splitedElm.parentNode.replaceChild(node, splitedElm);
|
|
12279
12316
|
}
|
|
12280
12317
|
}
|
|
@@ -12368,7 +12405,7 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
12368
12405
|
* @hidden
|
|
12369
12406
|
* @deprecated
|
|
12370
12407
|
*/
|
|
12371
|
-
var LinkCommand = /** @
|
|
12408
|
+
var LinkCommand = /** @class */ (function () {
|
|
12372
12409
|
/**
|
|
12373
12410
|
* Constructor for creating the Formats plugin
|
|
12374
12411
|
*
|
|
@@ -12657,7 +12694,7 @@ var LinkCommand = /** @__PURE__ @class */ (function () {
|
|
|
12657
12694
|
* @hidden
|
|
12658
12695
|
* @deprecated
|
|
12659
12696
|
*/
|
|
12660
|
-
var Alignments = /** @
|
|
12697
|
+
var Alignments = /** @class */ (function () {
|
|
12661
12698
|
/**
|
|
12662
12699
|
* Constructor for creating the Formats plugin
|
|
12663
12700
|
*
|
|
@@ -12760,7 +12797,7 @@ var Alignments = /** @__PURE__ @class */ (function () {
|
|
|
12760
12797
|
* @hidden
|
|
12761
12798
|
* @deprecated
|
|
12762
12799
|
*/
|
|
12763
|
-
var Indents = /** @
|
|
12800
|
+
var Indents = /** @class */ (function () {
|
|
12764
12801
|
/**
|
|
12765
12802
|
* Constructor for creating the Formats plugin
|
|
12766
12803
|
*
|
|
@@ -12880,7 +12917,7 @@ var CLASS_IMAGE_INLINE = 'e-imginline';
|
|
|
12880
12917
|
* @hidden
|
|
12881
12918
|
* @deprecated
|
|
12882
12919
|
*/
|
|
12883
|
-
var ImageCommand = /** @
|
|
12920
|
+
var ImageCommand = /** @class */ (function () {
|
|
12884
12921
|
/**
|
|
12885
12922
|
* Constructor for creating the Formats plugin
|
|
12886
12923
|
*
|
|
@@ -13240,7 +13277,7 @@ var ImageCommand = /** @__PURE__ @class */ (function () {
|
|
|
13240
13277
|
* @hidden
|
|
13241
13278
|
* @deprecated
|
|
13242
13279
|
*/
|
|
13243
|
-
var TableCommand = /** @
|
|
13280
|
+
var TableCommand = /** @class */ (function () {
|
|
13244
13281
|
/**
|
|
13245
13282
|
* Constructor for creating the Formats plugin
|
|
13246
13283
|
*
|
|
@@ -14144,7 +14181,7 @@ var TableCommand = /** @__PURE__ @class */ (function () {
|
|
|
14144
14181
|
|
|
14145
14182
|
return TableCommand;
|
|
14146
14183
|
}());
|
|
14147
|
-
var MinMax = /** @
|
|
14184
|
+
var MinMax = /** @class */ (function () {
|
|
14148
14185
|
function MinMax() {
|
|
14149
14186
|
}
|
|
14150
14187
|
return MinMax;
|
|
@@ -14156,7 +14193,7 @@ var MinMax = /** @__PURE__ @class */ (function () {
|
|
|
14156
14193
|
* @hidden
|
|
14157
14194
|
* @deprecated
|
|
14158
14195
|
*/
|
|
14159
|
-
var IsFormatted = /** @
|
|
14196
|
+
var IsFormatted = /** @class */ (function () {
|
|
14160
14197
|
function IsFormatted() {
|
|
14161
14198
|
}
|
|
14162
14199
|
/**
|
|
@@ -14399,7 +14436,7 @@ var IsFormatted = /** @__PURE__ @class */ (function () {
|
|
|
14399
14436
|
/**
|
|
14400
14437
|
* `Selection` module is used to handle RTE Selections.
|
|
14401
14438
|
*/
|
|
14402
|
-
var SelectionCommands = /** @
|
|
14439
|
+
var SelectionCommands = /** @class */ (function () {
|
|
14403
14440
|
function SelectionCommands() {
|
|
14404
14441
|
}
|
|
14405
14442
|
/**
|
|
@@ -14889,7 +14926,7 @@ var SelectionCommands = /** @__PURE__ @class */ (function () {
|
|
|
14889
14926
|
* @hidden
|
|
14890
14927
|
* @deprecated
|
|
14891
14928
|
*/
|
|
14892
|
-
var SelectionBasedExec = /** @
|
|
14929
|
+
var SelectionBasedExec = /** @class */ (function () {
|
|
14893
14930
|
/**
|
|
14894
14931
|
* Constructor for creating the Formats plugin
|
|
14895
14932
|
*
|
|
@@ -14938,7 +14975,7 @@ var SelectionBasedExec = /** @__PURE__ @class */ (function () {
|
|
|
14938
14975
|
* @hidden
|
|
14939
14976
|
* @deprecated
|
|
14940
14977
|
*/
|
|
14941
|
-
var InsertHtmlExec = /** @
|
|
14978
|
+
var InsertHtmlExec = /** @class */ (function () {
|
|
14942
14979
|
/**
|
|
14943
14980
|
* Constructor for creating the Formats plugin
|
|
14944
14981
|
*
|
|
@@ -14985,7 +15022,7 @@ var InsertHtmlExec = /** @__PURE__ @class */ (function () {
|
|
|
14985
15022
|
/**
|
|
14986
15023
|
* `Clear Format` module is used to handle Clear Format.
|
|
14987
15024
|
*/
|
|
14988
|
-
var ClearFormat$1 = /** @
|
|
15025
|
+
var ClearFormat$1 = /** @class */ (function () {
|
|
14989
15026
|
function ClearFormat() {
|
|
14990
15027
|
}
|
|
14991
15028
|
/**
|
|
@@ -15226,7 +15263,7 @@ var ClearFormat$1 = /** @__PURE__ @class */ (function () {
|
|
|
15226
15263
|
* @hidden
|
|
15227
15264
|
* @deprecated
|
|
15228
15265
|
*/
|
|
15229
|
-
var ClearFormatExec = /** @
|
|
15266
|
+
var ClearFormatExec = /** @class */ (function () {
|
|
15230
15267
|
/**
|
|
15231
15268
|
* Constructor for creating the Formats plugin
|
|
15232
15269
|
*
|
|
@@ -15271,7 +15308,7 @@ var ClearFormatExec = /** @__PURE__ @class */ (function () {
|
|
|
15271
15308
|
/**
|
|
15272
15309
|
* `Undo` module is used to handle undo actions.
|
|
15273
15310
|
*/
|
|
15274
|
-
var UndoRedoManager = /** @
|
|
15311
|
+
var UndoRedoManager = /** @class */ (function () {
|
|
15275
15312
|
function UndoRedoManager(parent, options) {
|
|
15276
15313
|
this.undoRedoStack = [];
|
|
15277
15314
|
this.parent = parent;
|
|
@@ -15472,7 +15509,7 @@ var UndoRedoManager = /** @__PURE__ @class */ (function () {
|
|
|
15472
15509
|
* @hidden
|
|
15473
15510
|
* @deprecated
|
|
15474
15511
|
*/
|
|
15475
|
-
var MsWordPaste = /** @
|
|
15512
|
+
var MsWordPaste = /** @class */ (function () {
|
|
15476
15513
|
function MsWordPaste(parent) {
|
|
15477
15514
|
this.olData = [
|
|
15478
15515
|
'decimal',
|
|
@@ -16129,7 +16166,7 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
|
|
|
16129
16166
|
* @hidden
|
|
16130
16167
|
* @deprecated
|
|
16131
16168
|
*/
|
|
16132
|
-
var InsertTextExec = /** @
|
|
16169
|
+
var InsertTextExec = /** @class */ (function () {
|
|
16133
16170
|
/**
|
|
16134
16171
|
* Constructor for creating the InsertText plugin
|
|
16135
16172
|
*
|
|
@@ -16166,7 +16203,7 @@ var InsertTextExec = /** @__PURE__ @class */ (function () {
|
|
|
16166
16203
|
* @hidden
|
|
16167
16204
|
* @deprecated
|
|
16168
16205
|
*/
|
|
16169
|
-
var EditorManager = /** @
|
|
16206
|
+
var EditorManager = /** @class */ (function () {
|
|
16170
16207
|
/**
|
|
16171
16208
|
* Constructor for creating the component
|
|
16172
16209
|
*
|
|
@@ -16333,26 +16370,26 @@ var EditorManager = /** @__PURE__ @class */ (function () {
|
|
|
16333
16370
|
return EditorManager;
|
|
16334
16371
|
}());
|
|
16335
16372
|
|
|
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
|
-
})();
|
|
16373
|
+
var __extends$2 = (undefined && undefined.__extends) || (function () {
|
|
16374
|
+
var extendStatics = function (d, b) {
|
|
16375
|
+
extendStatics = Object.setPrototypeOf ||
|
|
16376
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
16377
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
16378
|
+
return extendStatics(d, b);
|
|
16379
|
+
};
|
|
16380
|
+
return function (d, b) {
|
|
16381
|
+
extendStatics(d, b);
|
|
16382
|
+
function __() { this.constructor = d; }
|
|
16383
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16384
|
+
};
|
|
16385
|
+
})();
|
|
16349
16386
|
/**
|
|
16350
16387
|
* HTML adapter
|
|
16351
16388
|
*
|
|
16352
16389
|
* @hidden
|
|
16353
16390
|
* @deprecated
|
|
16354
16391
|
*/
|
|
16355
|
-
var HTMLFormatter = /** @
|
|
16392
|
+
var HTMLFormatter = /** @class */ (function (_super) {
|
|
16356
16393
|
__extends$2(HTMLFormatter, _super);
|
|
16357
16394
|
function HTMLFormatter(options) {
|
|
16358
16395
|
var _this = _super.call(this) || this;
|
|
@@ -16395,7 +16432,7 @@ var HTMLFormatter = /** @__PURE__ @class */ (function (_super) {
|
|
|
16395
16432
|
* @deprecated
|
|
16396
16433
|
*/
|
|
16397
16434
|
var statusCollection = getDefaultHtmlTbStatus();
|
|
16398
|
-
var ToolbarStatus = /** @
|
|
16435
|
+
var ToolbarStatus = /** @class */ (function () {
|
|
16399
16436
|
function ToolbarStatus() {
|
|
16400
16437
|
}
|
|
16401
16438
|
/**
|
|
@@ -16729,7 +16766,7 @@ var ToolbarStatus = /** @__PURE__ @class */ (function () {
|
|
|
16729
16766
|
/**
|
|
16730
16767
|
* HtmlToolbarStatus module for refresh the toolbar status
|
|
16731
16768
|
*/
|
|
16732
|
-
var HtmlToolbarStatus = /** @
|
|
16769
|
+
var HtmlToolbarStatus = /** @class */ (function () {
|
|
16733
16770
|
function HtmlToolbarStatus(parent) {
|
|
16734
16771
|
this.parent = parent;
|
|
16735
16772
|
this.toolbarStatus = this.prevToolbarStatus = getDefaultHtmlTbStatus();
|
|
@@ -16776,7 +16813,7 @@ var HtmlToolbarStatus = /** @__PURE__ @class */ (function () {
|
|
|
16776
16813
|
* @hidden
|
|
16777
16814
|
* @deprecated
|
|
16778
16815
|
*/
|
|
16779
|
-
var ContentRender = /** @
|
|
16816
|
+
var ContentRender = /** @class */ (function () {
|
|
16780
16817
|
/**
|
|
16781
16818
|
* Constructor for content renderer module
|
|
16782
16819
|
*
|
|
@@ -16863,19 +16900,19 @@ var ContentRender = /** @__PURE__ @class */ (function () {
|
|
|
16863
16900
|
return ContentRender;
|
|
16864
16901
|
}());
|
|
16865
16902
|
|
|
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
|
-
})();
|
|
16903
|
+
var __extends$3 = (undefined && undefined.__extends) || (function () {
|
|
16904
|
+
var extendStatics = function (d, b) {
|
|
16905
|
+
extendStatics = Object.setPrototypeOf ||
|
|
16906
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
16907
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
16908
|
+
return extendStatics(d, b);
|
|
16909
|
+
};
|
|
16910
|
+
return function (d, b) {
|
|
16911
|
+
extendStatics(d, b);
|
|
16912
|
+
function __() { this.constructor = d; }
|
|
16913
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16914
|
+
};
|
|
16915
|
+
})();
|
|
16879
16916
|
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>";
|
|
16880
16917
|
/**
|
|
16881
16918
|
* Content module is used to render Rich Text Editor content
|
|
@@ -16883,7 +16920,7 @@ var IFRAMEHEADER = "\n<!DOCTYPE html> \n <html>\n <head>\n
|
|
|
16883
16920
|
* @hidden
|
|
16884
16921
|
* @deprecated
|
|
16885
16922
|
*/
|
|
16886
|
-
var IframeContentRender = /** @
|
|
16923
|
+
var IframeContentRender = /** @class */ (function (_super) {
|
|
16887
16924
|
__extends$3(IframeContentRender, _super);
|
|
16888
16925
|
function IframeContentRender() {
|
|
16889
16926
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -16955,7 +16992,7 @@ var IframeContentRender = /** @__PURE__ @class */ (function (_super) {
|
|
|
16955
16992
|
/**
|
|
16956
16993
|
* XhtmlValidation module called when set enableXhtml as true
|
|
16957
16994
|
*/
|
|
16958
|
-
var XhtmlValidation = /** @
|
|
16995
|
+
var XhtmlValidation = /** @class */ (function () {
|
|
16959
16996
|
function XhtmlValidation(parent) {
|
|
16960
16997
|
this.parent = parent;
|
|
16961
16998
|
this.addEventListener();
|
|
@@ -17135,7 +17172,7 @@ var XhtmlValidation = /** @__PURE__ @class */ (function () {
|
|
|
17135
17172
|
/**
|
|
17136
17173
|
* `HtmlEditor` module is used to HTML editor
|
|
17137
17174
|
*/
|
|
17138
|
-
var HtmlEditor = /** @
|
|
17175
|
+
var HtmlEditor = /** @class */ (function () {
|
|
17139
17176
|
function HtmlEditor(parent, serviceLocator) {
|
|
17140
17177
|
this.rangeCollection = [];
|
|
17141
17178
|
this.parent = parent;
|
|
@@ -17819,7 +17856,7 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
|
|
|
17819
17856
|
/**
|
|
17820
17857
|
* PasteCleanup module called when pasting content in RichTextEditor
|
|
17821
17858
|
*/
|
|
17822
|
-
var PasteCleanup = /** @
|
|
17859
|
+
var PasteCleanup = /** @class */ (function () {
|
|
17823
17860
|
function PasteCleanup(parent, serviceLocator) {
|
|
17824
17861
|
this.inlineNode = ['a', 'abbr', 'acronym', 'audio', 'b', 'bdi', 'bdo', 'big', 'br', 'button',
|
|
17825
17862
|
'canvas', 'cite', 'code', 'data', 'datalist', 'del', 'dfn', 'em', 'embed', 'font', 'i', 'iframe', 'img', 'input',
|
|
@@ -18690,7 +18727,7 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
|
|
|
18690
18727
|
/**
|
|
18691
18728
|
* `Resize` module is used to resize the editor
|
|
18692
18729
|
*/
|
|
18693
|
-
var Resize = /** @
|
|
18730
|
+
var Resize = /** @class */ (function () {
|
|
18694
18731
|
function Resize(parent) {
|
|
18695
18732
|
this.parent = parent;
|
|
18696
18733
|
this.addEventListener();
|
|
@@ -18812,7 +18849,7 @@ var Resize = /** @__PURE__ @class */ (function () {
|
|
|
18812
18849
|
/**
|
|
18813
18850
|
* `FileManager` module is used to display the directories and images inside the editor.
|
|
18814
18851
|
*/
|
|
18815
|
-
var FileManager$1 = /** @
|
|
18852
|
+
var FileManager$1 = /** @class */ (function () {
|
|
18816
18853
|
function FileManager$$1(parent, locator) {
|
|
18817
18854
|
FileManager.Inject(ContextMenu, DetailsView, NavigationPane, Toolbar$1);
|
|
18818
18855
|
this.parent = parent;
|
|
@@ -19047,7 +19084,7 @@ var FileManager$1 = /** @__PURE__ @class */ (function () {
|
|
|
19047
19084
|
/**
|
|
19048
19085
|
* `FullScreen` module is used to maximize and minimize screen
|
|
19049
19086
|
*/
|
|
19050
|
-
var FullScreen = /** @
|
|
19087
|
+
var FullScreen = /** @class */ (function () {
|
|
19051
19088
|
function FullScreen(parent) {
|
|
19052
19089
|
this.parent = parent;
|
|
19053
19090
|
this.addEventListener();
|
|
@@ -19274,7 +19311,7 @@ function setAttributes(htmlAttributes, rte, isFrame, initial) {
|
|
|
19274
19311
|
* @hidden
|
|
19275
19312
|
* @deprecated
|
|
19276
19313
|
*/
|
|
19277
|
-
var Render = /** @
|
|
19314
|
+
var Render = /** @class */ (function () {
|
|
19278
19315
|
/**
|
|
19279
19316
|
* Constructor for render module
|
|
19280
19317
|
*
|
|
@@ -19365,7 +19402,7 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
19365
19402
|
/**
|
|
19366
19403
|
* `Link` module is used to handle undo actions.
|
|
19367
19404
|
*/
|
|
19368
|
-
var Link = /** @
|
|
19405
|
+
var Link = /** @class */ (function () {
|
|
19369
19406
|
function Link(parent, serviceLocator) {
|
|
19370
19407
|
this.parent = parent;
|
|
19371
19408
|
this.rteID = parent.element.id;
|
|
@@ -19871,7 +19908,7 @@ var Link = /** @__PURE__ @class */ (function () {
|
|
|
19871
19908
|
/**
|
|
19872
19909
|
* `Image` module is used to handle image actions.
|
|
19873
19910
|
*/
|
|
19874
|
-
var Image = /** @
|
|
19911
|
+
var Image = /** @class */ (function () {
|
|
19875
19912
|
function Image(parent, serviceLocator) {
|
|
19876
19913
|
this.isImgUploaded = false;
|
|
19877
19914
|
this.isAllowedTypes = true;
|
|
@@ -22050,7 +22087,7 @@ var Image = /** @__PURE__ @class */ (function () {
|
|
|
22050
22087
|
* @hidden
|
|
22051
22088
|
* @deprecated
|
|
22052
22089
|
*/
|
|
22053
|
-
var ViewSource = /** @
|
|
22090
|
+
var ViewSource = /** @class */ (function () {
|
|
22054
22091
|
/**
|
|
22055
22092
|
* Constructor for view source module
|
|
22056
22093
|
*
|
|
@@ -22308,7 +22345,7 @@ var ViewSource = /** @__PURE__ @class */ (function () {
|
|
|
22308
22345
|
/**
|
|
22309
22346
|
* `Table` module is used to handle table actions.
|
|
22310
22347
|
*/
|
|
22311
|
-
var Table = /** @
|
|
22348
|
+
var Table = /** @class */ (function () {
|
|
22312
22349
|
function Table(parent, serviceLocator) {
|
|
22313
22350
|
this.ensureInsideTableList = true;
|
|
22314
22351
|
this.pageX = null;
|
|
@@ -23535,7 +23572,7 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
23535
23572
|
/**
|
|
23536
23573
|
* Dialog Renderer
|
|
23537
23574
|
*/
|
|
23538
|
-
var DialogRenderer = /** @
|
|
23575
|
+
var DialogRenderer = /** @class */ (function () {
|
|
23539
23576
|
function DialogRenderer(parent) {
|
|
23540
23577
|
this.parent = parent;
|
|
23541
23578
|
}
|
|
@@ -23768,29 +23805,29 @@ var executeGroup = {
|
|
|
23768
23805
|
}
|
|
23769
23806
|
};
|
|
23770
23807
|
|
|
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
|
-
};
|
|
23808
|
+
var __extends$5 = (undefined && undefined.__extends) || (function () {
|
|
23809
|
+
var extendStatics = function (d, b) {
|
|
23810
|
+
extendStatics = Object.setPrototypeOf ||
|
|
23811
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
23812
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
23813
|
+
return extendStatics(d, b);
|
|
23814
|
+
};
|
|
23815
|
+
return function (d, b) {
|
|
23816
|
+
extendStatics(d, b);
|
|
23817
|
+
function __() { this.constructor = d; }
|
|
23818
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
23819
|
+
};
|
|
23820
|
+
})();
|
|
23821
|
+
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
23822
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
23823
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
23824
|
+
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;
|
|
23825
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23826
|
+
};
|
|
23790
23827
|
/**
|
|
23791
23828
|
* Configures the toolbar settings of the RichTextEditor.
|
|
23792
23829
|
*/
|
|
23793
|
-
var ToolbarSettings$1 = /** @
|
|
23830
|
+
var ToolbarSettings$1 = /** @class */ (function (_super) {
|
|
23794
23831
|
__extends$5(ToolbarSettings$$1, _super);
|
|
23795
23832
|
function ToolbarSettings$$1() {
|
|
23796
23833
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -23815,7 +23852,7 @@ var ToolbarSettings$1 = /** @__PURE__ @class */ (function (_super) {
|
|
|
23815
23852
|
/**
|
|
23816
23853
|
* Configures the image settings of the RichTextEditor.
|
|
23817
23854
|
*/
|
|
23818
|
-
var ImageSettings = /** @
|
|
23855
|
+
var ImageSettings = /** @class */ (function (_super) {
|
|
23819
23856
|
__extends$5(ImageSettings, _super);
|
|
23820
23857
|
function ImageSettings() {
|
|
23821
23858
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -23867,7 +23904,7 @@ var ImageSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
23867
23904
|
/**
|
|
23868
23905
|
* Configures the file manager settings of the RichTextEditor.
|
|
23869
23906
|
*/
|
|
23870
|
-
var FileManagerSettings = /** @
|
|
23907
|
+
var FileManagerSettings = /** @class */ (function (_super) {
|
|
23871
23908
|
__extends$5(FileManagerSettings, _super);
|
|
23872
23909
|
function FileManagerSettings() {
|
|
23873
23910
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -23925,7 +23962,7 @@ var FileManagerSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
23925
23962
|
], FileManagerSettings.prototype, "view", void 0);
|
|
23926
23963
|
return FileManagerSettings;
|
|
23927
23964
|
}(ChildProperty));
|
|
23928
|
-
var TableSettings = /** @
|
|
23965
|
+
var TableSettings = /** @class */ (function (_super) {
|
|
23929
23966
|
__extends$5(TableSettings, _super);
|
|
23930
23967
|
function TableSettings() {
|
|
23931
23968
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -23950,7 +23987,7 @@ var TableSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
23950
23987
|
/**
|
|
23951
23988
|
* Configures the quick toolbar settings of the RichTextEditor.
|
|
23952
23989
|
*/
|
|
23953
|
-
var QuickToolbarSettings = /** @
|
|
23990
|
+
var QuickToolbarSettings = /** @class */ (function (_super) {
|
|
23954
23991
|
__extends$5(QuickToolbarSettings, _super);
|
|
23955
23992
|
function QuickToolbarSettings() {
|
|
23956
23993
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -23981,7 +24018,7 @@ var QuickToolbarSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
23981
24018
|
/**
|
|
23982
24019
|
* Configures the Paste Cleanup settings of the RichTextEditor.
|
|
23983
24020
|
*/
|
|
23984
|
-
var PasteCleanupSettings = /** @
|
|
24021
|
+
var PasteCleanupSettings = /** @class */ (function (_super) {
|
|
23985
24022
|
__extends$5(PasteCleanupSettings, _super);
|
|
23986
24023
|
function PasteCleanupSettings() {
|
|
23987
24024
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -24009,7 +24046,7 @@ var PasteCleanupSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
24009
24046
|
/**
|
|
24010
24047
|
* Configures the font family settings of the RichTextEditor.
|
|
24011
24048
|
*/
|
|
24012
|
-
var FontFamily = /** @
|
|
24049
|
+
var FontFamily = /** @class */ (function (_super) {
|
|
24013
24050
|
__extends$5(FontFamily, _super);
|
|
24014
24051
|
function FontFamily() {
|
|
24015
24052
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -24028,7 +24065,7 @@ var FontFamily = /** @__PURE__ @class */ (function (_super) {
|
|
|
24028
24065
|
/**
|
|
24029
24066
|
* Configures the font size settings of the RichTextEditor.
|
|
24030
24067
|
*/
|
|
24031
|
-
var FontSize = /** @
|
|
24068
|
+
var FontSize = /** @class */ (function (_super) {
|
|
24032
24069
|
__extends$5(FontSize, _super);
|
|
24033
24070
|
function FontSize() {
|
|
24034
24071
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -24047,7 +24084,7 @@ var FontSize = /** @__PURE__ @class */ (function (_super) {
|
|
|
24047
24084
|
/**
|
|
24048
24085
|
* Configures the format settings of the RichTextEditor.
|
|
24049
24086
|
*/
|
|
24050
|
-
var Format = /** @
|
|
24087
|
+
var Format = /** @class */ (function (_super) {
|
|
24051
24088
|
__extends$5(Format, _super);
|
|
24052
24089
|
function Format() {
|
|
24053
24090
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -24066,7 +24103,7 @@ var Format = /** @__PURE__ @class */ (function (_super) {
|
|
|
24066
24103
|
/**
|
|
24067
24104
|
* Configures the font Color settings of the RichTextEditor.
|
|
24068
24105
|
*/
|
|
24069
|
-
var FontColor = /** @
|
|
24106
|
+
var FontColor = /** @class */ (function (_super) {
|
|
24070
24107
|
__extends$5(FontColor, _super);
|
|
24071
24108
|
function FontColor() {
|
|
24072
24109
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -24091,7 +24128,7 @@ var FontColor = /** @__PURE__ @class */ (function (_super) {
|
|
|
24091
24128
|
/**
|
|
24092
24129
|
* Configures the background Color settings of the RichTextEditor.
|
|
24093
24130
|
*/
|
|
24094
|
-
var BackgroundColor = /** @
|
|
24131
|
+
var BackgroundColor = /** @class */ (function (_super) {
|
|
24095
24132
|
__extends$5(BackgroundColor, _super);
|
|
24096
24133
|
function BackgroundColor() {
|
|
24097
24134
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -24116,7 +24153,7 @@ var BackgroundColor = /** @__PURE__ @class */ (function (_super) {
|
|
|
24116
24153
|
/**
|
|
24117
24154
|
* Configures the numberFormatList settings of the RichTextEditor.
|
|
24118
24155
|
*/
|
|
24119
|
-
var NumberFormatList = /** @
|
|
24156
|
+
var NumberFormatList = /** @class */ (function (_super) {
|
|
24120
24157
|
__extends$5(NumberFormatList, _super);
|
|
24121
24158
|
function NumberFormatList() {
|
|
24122
24159
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -24129,7 +24166,7 @@ var NumberFormatList = /** @__PURE__ @class */ (function (_super) {
|
|
|
24129
24166
|
/**
|
|
24130
24167
|
* Configures the bulletFormatList settings of the RichTextEditor.
|
|
24131
24168
|
*/
|
|
24132
|
-
var BulletFormatList = /** @
|
|
24169
|
+
var BulletFormatList = /** @class */ (function (_super) {
|
|
24133
24170
|
__extends$5(BulletFormatList, _super);
|
|
24134
24171
|
function BulletFormatList() {
|
|
24135
24172
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -24140,29 +24177,29 @@ var BulletFormatList = /** @__PURE__ @class */ (function (_super) {
|
|
|
24140
24177
|
return BulletFormatList;
|
|
24141
24178
|
}(ChildProperty));
|
|
24142
24179
|
|
|
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
|
-
};
|
|
24180
|
+
var __extends$6 = (undefined && undefined.__extends) || (function () {
|
|
24181
|
+
var extendStatics = function (d, b) {
|
|
24182
|
+
extendStatics = Object.setPrototypeOf ||
|
|
24183
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
24184
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
24185
|
+
return extendStatics(d, b);
|
|
24186
|
+
};
|
|
24187
|
+
return function (d, b) {
|
|
24188
|
+
extendStatics(d, b);
|
|
24189
|
+
function __() { this.constructor = d; }
|
|
24190
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
24191
|
+
};
|
|
24192
|
+
})();
|
|
24193
|
+
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
24194
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
24195
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
24196
|
+
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;
|
|
24197
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24198
|
+
};
|
|
24162
24199
|
/**
|
|
24163
24200
|
* Objects used for configuring the iframe resources properties.
|
|
24164
24201
|
*/
|
|
24165
|
-
var Resources = /** @
|
|
24202
|
+
var Resources = /** @class */ (function (_super) {
|
|
24166
24203
|
__extends$6(Resources, _super);
|
|
24167
24204
|
function Resources() {
|
|
24168
24205
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -24178,7 +24215,7 @@ var Resources = /** @__PURE__ @class */ (function (_super) {
|
|
|
24178
24215
|
/**
|
|
24179
24216
|
* Configures the iframe settings of the RTE.
|
|
24180
24217
|
*/
|
|
24181
|
-
var IFrameSettings = /** @
|
|
24218
|
+
var IFrameSettings = /** @class */ (function (_super) {
|
|
24182
24219
|
__extends$6(IFrameSettings, _super);
|
|
24183
24220
|
function IFrameSettings() {
|
|
24184
24221
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -24195,29 +24232,29 @@ var IFrameSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
24195
24232
|
return IFrameSettings;
|
|
24196
24233
|
}(ChildProperty));
|
|
24197
24234
|
|
|
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
|
-
};
|
|
24235
|
+
var __extends$7 = (undefined && undefined.__extends) || (function () {
|
|
24236
|
+
var extendStatics = function (d, b) {
|
|
24237
|
+
extendStatics = Object.setPrototypeOf ||
|
|
24238
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
24239
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
24240
|
+
return extendStatics(d, b);
|
|
24241
|
+
};
|
|
24242
|
+
return function (d, b) {
|
|
24243
|
+
extendStatics(d, b);
|
|
24244
|
+
function __() { this.constructor = d; }
|
|
24245
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
24246
|
+
};
|
|
24247
|
+
})();
|
|
24248
|
+
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
24249
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
24250
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
24251
|
+
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;
|
|
24252
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24253
|
+
};
|
|
24217
24254
|
/**
|
|
24218
24255
|
* Configures the inlineMode property of the RTE.
|
|
24219
24256
|
*/
|
|
24220
|
-
var InlineMode = /** @
|
|
24257
|
+
var InlineMode = /** @class */ (function (_super) {
|
|
24221
24258
|
__extends$7(InlineMode, _super);
|
|
24222
24259
|
function InlineMode() {
|
|
24223
24260
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -24234,7 +24271,7 @@ var InlineMode = /** @__PURE__ @class */ (function (_super) {
|
|
|
24234
24271
|
/**
|
|
24235
24272
|
* `EnterKey` module is used to handle enter key press actions.
|
|
24236
24273
|
*/
|
|
24237
|
-
var EnterKeyAction = /** @
|
|
24274
|
+
var EnterKeyAction = /** @class */ (function () {
|
|
24238
24275
|
function EnterKeyAction(parent) {
|
|
24239
24276
|
this.parent = parent;
|
|
24240
24277
|
this.addEventListener();
|
|
@@ -24360,6 +24397,7 @@ var EnterKeyAction = /** @__PURE__ @class */ (function () {
|
|
|
24360
24397
|
detach(nearBlockNode);
|
|
24361
24398
|
}
|
|
24362
24399
|
}
|
|
24400
|
+
_this.parent.formatter.editorManager.nodeSelection.setCursorPoint(_this.parent.contentModule.getDocument(), insertElem.nextElementSibling, 0);
|
|
24363
24401
|
}
|
|
24364
24402
|
else if (nearBlockNode.textContent.length === 0 && !(!isNullOrUndefined(nearBlockNode.childNodes[0]) && nearBlockNode.childNodes[0].nodeName === 'IMG')) {
|
|
24365
24403
|
if (!isNullOrUndefined(nearBlockNode.children[0]) && nearBlockNode.children[0].tagName !== 'BR') {
|
|
@@ -24507,36 +24545,36 @@ var EnterKeyAction = /** @__PURE__ @class */ (function () {
|
|
|
24507
24545
|
return EnterKeyAction;
|
|
24508
24546
|
}());
|
|
24509
24547
|
|
|
24510
|
-
var __extends$4 = (undefined && undefined.__extends) || (function () {
|
|
24511
|
-
var extendStatics = function (d, b) {
|
|
24512
|
-
extendStatics = Object.setPrototypeOf ||
|
|
24513
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
24514
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
24515
|
-
return extendStatics(d, b);
|
|
24516
|
-
};
|
|
24517
|
-
return function (d, b) {
|
|
24518
|
-
extendStatics(d, b);
|
|
24519
|
-
function __() { this.constructor = d; }
|
|
24520
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
24521
|
-
};
|
|
24522
|
-
})();
|
|
24523
|
-
var __assign = (undefined && undefined.__assign) || function () {
|
|
24524
|
-
__assign = Object.assign || function(t) {
|
|
24525
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
24526
|
-
s = arguments[i];
|
|
24527
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
24528
|
-
t[p] = s[p];
|
|
24529
|
-
}
|
|
24530
|
-
return t;
|
|
24531
|
-
};
|
|
24532
|
-
return __assign.apply(this, arguments);
|
|
24533
|
-
};
|
|
24534
|
-
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
24535
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
24536
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
24537
|
-
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;
|
|
24538
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24539
|
-
};
|
|
24548
|
+
var __extends$4 = (undefined && undefined.__extends) || (function () {
|
|
24549
|
+
var extendStatics = function (d, b) {
|
|
24550
|
+
extendStatics = Object.setPrototypeOf ||
|
|
24551
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
24552
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
24553
|
+
return extendStatics(d, b);
|
|
24554
|
+
};
|
|
24555
|
+
return function (d, b) {
|
|
24556
|
+
extendStatics(d, b);
|
|
24557
|
+
function __() { this.constructor = d; }
|
|
24558
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
24559
|
+
};
|
|
24560
|
+
})();
|
|
24561
|
+
var __assign = (undefined && undefined.__assign) || function () {
|
|
24562
|
+
__assign = Object.assign || function(t) {
|
|
24563
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
24564
|
+
s = arguments[i];
|
|
24565
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
24566
|
+
t[p] = s[p];
|
|
24567
|
+
}
|
|
24568
|
+
return t;
|
|
24569
|
+
};
|
|
24570
|
+
return __assign.apply(this, arguments);
|
|
24571
|
+
};
|
|
24572
|
+
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
24573
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
24574
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
24575
|
+
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;
|
|
24576
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24577
|
+
};
|
|
24540
24578
|
/**
|
|
24541
24579
|
* Represents the Rich Text Editor component.
|
|
24542
24580
|
* ```html
|
|
@@ -24547,7 +24585,7 @@ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
24547
24585
|
* </script>
|
|
24548
24586
|
* ```
|
|
24549
24587
|
*/
|
|
24550
|
-
var RichTextEditor = /** @
|
|
24588
|
+
var RichTextEditor = /** @class */ (function (_super) {
|
|
24551
24589
|
__extends$4(RichTextEditor, _super);
|
|
24552
24590
|
function RichTextEditor(options, element) {
|
|
24553
24591
|
var _this = _super.call(this, options, element) || this;
|
|
@@ -25911,8 +25949,7 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
25911
25949
|
this.setProperties({ value: this.valueTemplate });
|
|
25912
25950
|
}
|
|
25913
25951
|
else {
|
|
25914
|
-
var
|
|
25915
|
-
var compiledTemplate = compiledString({});
|
|
25952
|
+
var compiledTemplate = compile(this.valueTemplate)('', this, 'valueTemplate');
|
|
25916
25953
|
for (var i = 0; i < compiledTemplate.length; i++) {
|
|
25917
25954
|
var item = compiledTemplate[i];
|
|
25918
25955
|
append([item], this.element);
|