@syncfusion/ej2-richtexteditor 19.3.45 → 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 -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 +217 -137
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +326 -246
- 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 +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/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 +29 -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 +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 +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 +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
|
/**
|
|
@@ -5813,7 +5834,10 @@ var QuickToolbar = /** @__PURE__ @class */ (function () {
|
|
|
5813
5834
|
else {
|
|
5814
5835
|
var closestAnchor = closest(target, 'a');
|
|
5815
5836
|
target = closestAnchor ? closestAnchor : target;
|
|
5816
|
-
|
|
5837
|
+
var startNode = this.parent.getRange().startContainer.parentElement;
|
|
5838
|
+
var endNode = this.parent.getRange().endContainer.parentElement;
|
|
5839
|
+
if ((isNullOrUndefined(closest(startNode, 'A')) || isNullOrUndefined(closest(endNode, 'A'))) && (!closest(target, 'td,th') || !range.collapsed) &&
|
|
5840
|
+
(target.tagName !== 'IMG' || this.parent.getRange().startOffset !== this.parent.getRange().endOffset)) {
|
|
5817
5841
|
if (this.parent.inlineMode.onSelection && range.collapsed) {
|
|
5818
5842
|
return;
|
|
5819
5843
|
}
|
|
@@ -5882,22 +5906,27 @@ var QuickToolbar = /** @__PURE__ @class */ (function () {
|
|
|
5882
5906
|
QuickToolbar.prototype.destroy = function () {
|
|
5883
5907
|
if (this.linkQTBar) {
|
|
5884
5908
|
EventHandler.remove(this.linkQTBar.element, 'mousedown', this.onMouseDown);
|
|
5909
|
+
EventHandler.remove(this.linkQTBar.element, 'keyup', this.keyUpQT);
|
|
5885
5910
|
this.linkQTBar.destroy();
|
|
5886
5911
|
}
|
|
5887
5912
|
if (this.textQTBar) {
|
|
5888
5913
|
EventHandler.remove(this.textQTBar.element, 'mousedown', this.onMouseDown);
|
|
5914
|
+
EventHandler.remove(this.textQTBar.element, 'keyup', this.keyUpQT);
|
|
5889
5915
|
this.textQTBar.destroy();
|
|
5890
5916
|
}
|
|
5891
5917
|
if (this.imageQTBar) {
|
|
5892
5918
|
EventHandler.remove(this.imageQTBar.element, 'mousedown', this.onMouseDown);
|
|
5919
|
+
EventHandler.remove(this.imageQTBar.element, 'keyup', this.keyUpQT);
|
|
5893
5920
|
this.imageQTBar.destroy();
|
|
5894
5921
|
}
|
|
5895
5922
|
if (this.tableQTBar) {
|
|
5896
5923
|
EventHandler.remove(this.tableQTBar.element, 'mousedown', this.onMouseDown);
|
|
5924
|
+
EventHandler.remove(this.tableQTBar.element, 'keyup', this.keyUpQT);
|
|
5897
5925
|
this.tableQTBar.destroy();
|
|
5898
5926
|
}
|
|
5899
5927
|
if (this.inlineQTBar) {
|
|
5900
5928
|
EventHandler.remove(this.inlineQTBar.element, 'mousedown', this.onMouseDown);
|
|
5929
|
+
EventHandler.remove(this.inlineQTBar.element, 'keyup', this.keyUpQT);
|
|
5901
5930
|
if (isIDevice()) {
|
|
5902
5931
|
EventHandler.remove(document, 'selectionchange', this.selectionChangeHandler);
|
|
5903
5932
|
}
|
|
@@ -6064,7 +6093,7 @@ var QuickToolbar = /** @__PURE__ @class */ (function () {
|
|
|
6064
6093
|
/**
|
|
6065
6094
|
* `Count` module is used to handle Count actions.
|
|
6066
6095
|
*/
|
|
6067
|
-
var Count = /** @
|
|
6096
|
+
var Count = /** @class */ (function () {
|
|
6068
6097
|
function Count(parent, serviceLocator) {
|
|
6069
6098
|
this.parent = parent;
|
|
6070
6099
|
this.locator = serviceLocator;
|
|
@@ -6192,7 +6221,7 @@ var Count = /** @__PURE__ @class */ (function () {
|
|
|
6192
6221
|
* @hidden
|
|
6193
6222
|
* @deprecated
|
|
6194
6223
|
*/
|
|
6195
|
-
var MarkdownSelection = /** @
|
|
6224
|
+
var MarkdownSelection = /** @class */ (function () {
|
|
6196
6225
|
function MarkdownSelection() {
|
|
6197
6226
|
}
|
|
6198
6227
|
/**
|
|
@@ -6575,7 +6604,7 @@ function getDefaultMDTbStatus() {
|
|
|
6575
6604
|
/**
|
|
6576
6605
|
* MarkdownToolbarStatus module for refresh the toolbar status
|
|
6577
6606
|
*/
|
|
6578
|
-
var MarkdownToolbarStatus = /** @
|
|
6607
|
+
var MarkdownToolbarStatus = /** @class */ (function () {
|
|
6579
6608
|
function MarkdownToolbarStatus(parent) {
|
|
6580
6609
|
this.toolbarStatus = this.prevToolbarStatus = getDefaultMDTbStatus();
|
|
6581
6610
|
this.selection = new MarkdownSelection();
|
|
@@ -6697,7 +6726,7 @@ var MarkdownToolbarStatus = /** @__PURE__ @class */ (function () {
|
|
|
6697
6726
|
/**
|
|
6698
6727
|
* `ExecCommandCallBack` module is used to run the editor manager command
|
|
6699
6728
|
*/
|
|
6700
|
-
var ExecCommandCallBack = /** @
|
|
6729
|
+
var ExecCommandCallBack = /** @class */ (function () {
|
|
6701
6730
|
function ExecCommandCallBack(parent) {
|
|
6702
6731
|
this.parent = parent;
|
|
6703
6732
|
this.addEventListener();
|
|
@@ -6808,7 +6837,7 @@ var SPACE_ACTION = 'actionBegin';
|
|
|
6808
6837
|
* @hidden
|
|
6809
6838
|
* @deprecated
|
|
6810
6839
|
*/
|
|
6811
|
-
var Formatter = /** @
|
|
6840
|
+
var Formatter = /** @class */ (function () {
|
|
6812
6841
|
function Formatter() {
|
|
6813
6842
|
}
|
|
6814
6843
|
/**
|
|
@@ -6888,7 +6917,7 @@ var Formatter = /** @__PURE__ @class */ (function () {
|
|
|
6888
6917
|
|| ((args.item.subCommand === 'FontName' || args.item.subCommand === 'FontSize') && args.name === 'dropDownSelect')
|
|
6889
6918
|
|| ((args.item.subCommand === 'BackgroundColor' || args.item.subCommand === 'FontColor')
|
|
6890
6919
|
&& args.name === 'colorPickerChanged'))) {
|
|
6891
|
-
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);
|
|
6892
6921
|
self.trigger(actionBegin, args, function (actionBeginArgs) {
|
|
6893
6922
|
if (!actionBeginArgs.cancel) {
|
|
6894
6923
|
if (_this.getUndoRedoStack().length === 0 && actionBeginArgs.item.command !== 'Links'
|
|
@@ -6906,8 +6935,8 @@ var Formatter = /** @__PURE__ @class */ (function () {
|
|
|
6906
6935
|
}
|
|
6907
6936
|
else {
|
|
6908
6937
|
_this.editorManager.observer.notify(checkUndo, { subCommand: actionBeginArgs.item.subCommand });
|
|
6909
|
-
_this.editorManager.execCommand(actionBeginArgs.item.command, actionBeginArgs.item.subCommand, event, _this.onSuccess.bind(_this, self), actionBeginArgs.item.value, actionBeginArgs.item.subCommand === 'Pre' &&
|
|
6910
|
-
{ 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);
|
|
6911
6940
|
}
|
|
6912
6941
|
}
|
|
6913
6942
|
});
|
|
@@ -7065,7 +7094,7 @@ var MD_TABLE = 'insert-table';
|
|
|
7065
7094
|
*
|
|
7066
7095
|
* @hidden
|
|
7067
7096
|
*/
|
|
7068
|
-
var MDLists = /** @
|
|
7097
|
+
var MDLists = /** @class */ (function () {
|
|
7069
7098
|
/**
|
|
7070
7099
|
* Constructor for creating the Lists plugin
|
|
7071
7100
|
*
|
|
@@ -7531,7 +7560,7 @@ var MDLists = /** @__PURE__ @class */ (function () {
|
|
|
7531
7560
|
* @hidden
|
|
7532
7561
|
* @deprecated
|
|
7533
7562
|
*/
|
|
7534
|
-
var MDFormats = /** @
|
|
7563
|
+
var MDFormats = /** @class */ (function () {
|
|
7535
7564
|
/**
|
|
7536
7565
|
* Constructor for creating the Formats plugin
|
|
7537
7566
|
*
|
|
@@ -7758,7 +7787,7 @@ var MDFormats = /** @__PURE__ @class */ (function () {
|
|
|
7758
7787
|
* @hidden
|
|
7759
7788
|
* @deprecated
|
|
7760
7789
|
*/
|
|
7761
|
-
var MDSelectionFormats = /** @
|
|
7790
|
+
var MDSelectionFormats = /** @class */ (function () {
|
|
7762
7791
|
function MDSelectionFormats(parent) {
|
|
7763
7792
|
extend(this, this, parent, true);
|
|
7764
7793
|
this.selection = this.parent.markdownSelection;
|
|
@@ -8210,7 +8239,7 @@ var selfClosingTags = [
|
|
|
8210
8239
|
/**
|
|
8211
8240
|
* `Undo` module is used to handle undo actions.
|
|
8212
8241
|
*/
|
|
8213
|
-
var UndoRedoCommands = /** @
|
|
8242
|
+
var UndoRedoCommands = /** @class */ (function () {
|
|
8214
8243
|
function UndoRedoCommands(parent, options) {
|
|
8215
8244
|
this.undoRedoStack = [];
|
|
8216
8245
|
this.parent = parent;
|
|
@@ -8405,7 +8434,7 @@ var UndoRedoCommands = /** @__PURE__ @class */ (function () {
|
|
|
8405
8434
|
* @hidden
|
|
8406
8435
|
* @deprecated
|
|
8407
8436
|
*/
|
|
8408
|
-
var MDLink = /** @
|
|
8437
|
+
var MDLink = /** @class */ (function () {
|
|
8409
8438
|
/**
|
|
8410
8439
|
* Constructor for creating the Formats plugin
|
|
8411
8440
|
*
|
|
@@ -8456,7 +8485,7 @@ var MDLink = /** @__PURE__ @class */ (function () {
|
|
|
8456
8485
|
* @hidden
|
|
8457
8486
|
* @deprecated
|
|
8458
8487
|
*/
|
|
8459
|
-
var MDTable = /** @
|
|
8488
|
+
var MDTable = /** @class */ (function () {
|
|
8460
8489
|
/**
|
|
8461
8490
|
* Constructor for creating the Formats plugin
|
|
8462
8491
|
*
|
|
@@ -8685,7 +8714,7 @@ var MDTable = /** @__PURE__ @class */ (function () {
|
|
|
8685
8714
|
* @hidden
|
|
8686
8715
|
* @deprecated
|
|
8687
8716
|
*/
|
|
8688
|
-
var ClearFormat = /** @
|
|
8717
|
+
var ClearFormat = /** @class */ (function () {
|
|
8689
8718
|
/**
|
|
8690
8719
|
* Constructor for creating the clear format plugin
|
|
8691
8720
|
*
|
|
@@ -8801,7 +8830,7 @@ var ClearFormat = /** @__PURE__ @class */ (function () {
|
|
|
8801
8830
|
* @hidden
|
|
8802
8831
|
* @deprecated
|
|
8803
8832
|
*/
|
|
8804
|
-
var MarkdownParser = /** @
|
|
8833
|
+
var MarkdownParser = /** @class */ (function () {
|
|
8805
8834
|
/**
|
|
8806
8835
|
* Constructor for creating the component
|
|
8807
8836
|
*
|
|
@@ -8892,26 +8921,26 @@ var MarkdownParser = /** @__PURE__ @class */ (function () {
|
|
|
8892
8921
|
return MarkdownParser;
|
|
8893
8922
|
}());
|
|
8894
8923
|
|
|
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
|
-
})();
|
|
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
|
+
})();
|
|
8908
8937
|
/**
|
|
8909
8938
|
* Markdown adapter
|
|
8910
8939
|
*
|
|
8911
8940
|
* @hidden
|
|
8912
8941
|
* @deprecated
|
|
8913
8942
|
*/
|
|
8914
|
-
var MarkdownFormatter = /** @
|
|
8943
|
+
var MarkdownFormatter = /** @class */ (function (_super) {
|
|
8915
8944
|
__extends$1(MarkdownFormatter, _super);
|
|
8916
8945
|
function MarkdownFormatter(options) {
|
|
8917
8946
|
var _this = _super.call(this) || this;
|
|
@@ -8958,7 +8987,7 @@ var MarkdownFormatter = /** @__PURE__ @class */ (function (_super) {
|
|
|
8958
8987
|
* @hidden
|
|
8959
8988
|
* @deprecated
|
|
8960
8989
|
*/
|
|
8961
|
-
var MarkdownRender = /** @
|
|
8990
|
+
var MarkdownRender = /** @class */ (function () {
|
|
8962
8991
|
/**
|
|
8963
8992
|
* Constructor for content renderer module
|
|
8964
8993
|
*
|
|
@@ -9040,7 +9069,7 @@ var MarkdownRender = /** @__PURE__ @class */ (function () {
|
|
|
9040
9069
|
/**
|
|
9041
9070
|
* `MarkdownEditor` module is used to markdown editor
|
|
9042
9071
|
*/
|
|
9043
|
-
var MarkdownEditor = /** @
|
|
9072
|
+
var MarkdownEditor = /** @class */ (function () {
|
|
9044
9073
|
function MarkdownEditor(parent, serviceLocator) {
|
|
9045
9074
|
this.parent = parent;
|
|
9046
9075
|
this.locator = serviceLocator;
|
|
@@ -9295,7 +9324,7 @@ var CLEAR_TYPE = 'clear-type';
|
|
|
9295
9324
|
/**
|
|
9296
9325
|
* `Selection` module is used to handle RTE Selections.
|
|
9297
9326
|
*/
|
|
9298
|
-
var NodeSelection = /** @
|
|
9327
|
+
var NodeSelection = /** @class */ (function () {
|
|
9299
9328
|
function NodeSelection() {
|
|
9300
9329
|
this.startNodeName = [];
|
|
9301
9330
|
this.endNodeName = [];
|
|
@@ -9407,7 +9436,8 @@ var NodeSelection = /** @__PURE__ @class */ (function () {
|
|
|
9407
9436
|
|| range.startContainer;
|
|
9408
9437
|
var endNode = range.endContainer.childNodes[(range.endOffset > 0) ? (range.endOffset - 1) : range.endOffset]
|
|
9409
9438
|
|| range.endContainer;
|
|
9410
|
-
if (startNode === endNode && startNode.childNodes.
|
|
9439
|
+
if ((startNode === endNode || (startNode.nodeName === 'BR' && startNode === range.endContainer.childNodes[range.endOffset])) &&
|
|
9440
|
+
startNode.childNodes.length === 0) {
|
|
9411
9441
|
return [startNode];
|
|
9412
9442
|
}
|
|
9413
9443
|
if (range.startOffset === range.endOffset && range.startOffset !== 0 && range.startContainer.nodeName === 'PRE') {
|
|
@@ -9739,7 +9769,7 @@ var markerClassName = {
|
|
|
9739
9769
|
* @hidden
|
|
9740
9770
|
* @deprecated
|
|
9741
9771
|
*/
|
|
9742
|
-
var DOMNode = /** @
|
|
9772
|
+
var DOMNode = /** @class */ (function () {
|
|
9743
9773
|
/**
|
|
9744
9774
|
* Constructor for creating the DOMNode plugin
|
|
9745
9775
|
*
|
|
@@ -10506,7 +10536,7 @@ var DOMNode = /** @__PURE__ @class */ (function () {
|
|
|
10506
10536
|
* @hidden
|
|
10507
10537
|
* @deprecated
|
|
10508
10538
|
*/
|
|
10509
|
-
var Lists = /** @
|
|
10539
|
+
var Lists = /** @class */ (function () {
|
|
10510
10540
|
/**
|
|
10511
10541
|
* Constructor for creating the Lists plugin
|
|
10512
10542
|
*
|
|
@@ -11260,7 +11290,7 @@ var Lists = /** @__PURE__ @class */ (function () {
|
|
|
11260
11290
|
*
|
|
11261
11291
|
* @hidden
|
|
11262
11292
|
*/
|
|
11263
|
-
var InsertMethods = /** @
|
|
11293
|
+
var InsertMethods = /** @class */ (function () {
|
|
11264
11294
|
function InsertMethods() {
|
|
11265
11295
|
}
|
|
11266
11296
|
/**
|
|
@@ -11337,7 +11367,7 @@ var InsertMethods = /** @__PURE__ @class */ (function () {
|
|
|
11337
11367
|
* @hidden
|
|
11338
11368
|
* @deprecated
|
|
11339
11369
|
*/
|
|
11340
|
-
var NodeCutter = /** @
|
|
11370
|
+
var NodeCutter = /** @class */ (function () {
|
|
11341
11371
|
function NodeCutter() {
|
|
11342
11372
|
this.enterAction = 'P';
|
|
11343
11373
|
this.position = -1;
|
|
@@ -11543,7 +11573,7 @@ var NodeCutter = /** @__PURE__ @class */ (function () {
|
|
|
11543
11573
|
* @hidden
|
|
11544
11574
|
* @deprecated
|
|
11545
11575
|
*/
|
|
11546
|
-
var Formats = /** @
|
|
11576
|
+
var Formats = /** @class */ (function () {
|
|
11547
11577
|
/**
|
|
11548
11578
|
* Constructor for creating the Formats plugin
|
|
11549
11579
|
*
|
|
@@ -11911,7 +11941,7 @@ var Formats = /** @__PURE__ @class */ (function () {
|
|
|
11911
11941
|
* @hidden
|
|
11912
11942
|
* @deprecated
|
|
11913
11943
|
*/
|
|
11914
|
-
var InsertHtml = /** @
|
|
11944
|
+
var InsertHtml = /** @class */ (function () {
|
|
11915
11945
|
function InsertHtml() {
|
|
11916
11946
|
}
|
|
11917
11947
|
InsertHtml.Insert = function (docElement, insertNode, editNode, isExternal) {
|
|
@@ -12271,7 +12301,17 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
12271
12301
|
tempSpan.parentNode.replaceChild(node, tempSpan);
|
|
12272
12302
|
}
|
|
12273
12303
|
else {
|
|
12274
|
-
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
|
+
}
|
|
12275
12315
|
splitedElm.parentNode.replaceChild(node, splitedElm);
|
|
12276
12316
|
}
|
|
12277
12317
|
}
|
|
@@ -12365,7 +12405,7 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
12365
12405
|
* @hidden
|
|
12366
12406
|
* @deprecated
|
|
12367
12407
|
*/
|
|
12368
|
-
var LinkCommand = /** @
|
|
12408
|
+
var LinkCommand = /** @class */ (function () {
|
|
12369
12409
|
/**
|
|
12370
12410
|
* Constructor for creating the Formats plugin
|
|
12371
12411
|
*
|
|
@@ -12654,7 +12694,7 @@ var LinkCommand = /** @__PURE__ @class */ (function () {
|
|
|
12654
12694
|
* @hidden
|
|
12655
12695
|
* @deprecated
|
|
12656
12696
|
*/
|
|
12657
|
-
var Alignments = /** @
|
|
12697
|
+
var Alignments = /** @class */ (function () {
|
|
12658
12698
|
/**
|
|
12659
12699
|
* Constructor for creating the Formats plugin
|
|
12660
12700
|
*
|
|
@@ -12757,7 +12797,7 @@ var Alignments = /** @__PURE__ @class */ (function () {
|
|
|
12757
12797
|
* @hidden
|
|
12758
12798
|
* @deprecated
|
|
12759
12799
|
*/
|
|
12760
|
-
var Indents = /** @
|
|
12800
|
+
var Indents = /** @class */ (function () {
|
|
12761
12801
|
/**
|
|
12762
12802
|
* Constructor for creating the Formats plugin
|
|
12763
12803
|
*
|
|
@@ -12877,7 +12917,7 @@ var CLASS_IMAGE_INLINE = 'e-imginline';
|
|
|
12877
12917
|
* @hidden
|
|
12878
12918
|
* @deprecated
|
|
12879
12919
|
*/
|
|
12880
|
-
var ImageCommand = /** @
|
|
12920
|
+
var ImageCommand = /** @class */ (function () {
|
|
12881
12921
|
/**
|
|
12882
12922
|
* Constructor for creating the Formats plugin
|
|
12883
12923
|
*
|
|
@@ -13237,7 +13277,7 @@ var ImageCommand = /** @__PURE__ @class */ (function () {
|
|
|
13237
13277
|
* @hidden
|
|
13238
13278
|
* @deprecated
|
|
13239
13279
|
*/
|
|
13240
|
-
var TableCommand = /** @
|
|
13280
|
+
var TableCommand = /** @class */ (function () {
|
|
13241
13281
|
/**
|
|
13242
13282
|
* Constructor for creating the Formats plugin
|
|
13243
13283
|
*
|
|
@@ -14141,7 +14181,7 @@ var TableCommand = /** @__PURE__ @class */ (function () {
|
|
|
14141
14181
|
|
|
14142
14182
|
return TableCommand;
|
|
14143
14183
|
}());
|
|
14144
|
-
var MinMax = /** @
|
|
14184
|
+
var MinMax = /** @class */ (function () {
|
|
14145
14185
|
function MinMax() {
|
|
14146
14186
|
}
|
|
14147
14187
|
return MinMax;
|
|
@@ -14153,7 +14193,7 @@ var MinMax = /** @__PURE__ @class */ (function () {
|
|
|
14153
14193
|
* @hidden
|
|
14154
14194
|
* @deprecated
|
|
14155
14195
|
*/
|
|
14156
|
-
var IsFormatted = /** @
|
|
14196
|
+
var IsFormatted = /** @class */ (function () {
|
|
14157
14197
|
function IsFormatted() {
|
|
14158
14198
|
}
|
|
14159
14199
|
/**
|
|
@@ -14396,7 +14436,7 @@ var IsFormatted = /** @__PURE__ @class */ (function () {
|
|
|
14396
14436
|
/**
|
|
14397
14437
|
* `Selection` module is used to handle RTE Selections.
|
|
14398
14438
|
*/
|
|
14399
|
-
var SelectionCommands = /** @
|
|
14439
|
+
var SelectionCommands = /** @class */ (function () {
|
|
14400
14440
|
function SelectionCommands() {
|
|
14401
14441
|
}
|
|
14402
14442
|
/**
|
|
@@ -14533,7 +14573,24 @@ var SelectionCommands = /** @__PURE__ @class */ (function () {
|
|
|
14533
14573
|
}
|
|
14534
14574
|
}
|
|
14535
14575
|
}
|
|
14536
|
-
|
|
14576
|
+
if ((['fontcolor', 'fontname', 'fontsize', 'backgroundcolor'].indexOf(format) > -1)) {
|
|
14577
|
+
if (format === 'fontcolor') {
|
|
14578
|
+
cursorFormat.style.color = value;
|
|
14579
|
+
}
|
|
14580
|
+
else if (format === 'fontname') {
|
|
14581
|
+
cursorFormat.style.fontFamily = value;
|
|
14582
|
+
}
|
|
14583
|
+
else if (format === 'fontsize') {
|
|
14584
|
+
cursorFormat.style.fontSize = value;
|
|
14585
|
+
}
|
|
14586
|
+
else {
|
|
14587
|
+
cursorFormat.style.backgroundColor = value;
|
|
14588
|
+
}
|
|
14589
|
+
cursorNode = cursorFormat;
|
|
14590
|
+
}
|
|
14591
|
+
else {
|
|
14592
|
+
InsertMethods.unwrap(cursorFormat);
|
|
14593
|
+
}
|
|
14537
14594
|
}
|
|
14538
14595
|
else {
|
|
14539
14596
|
if (cursorNodes.length > 1 && range.startOffset > 0 && (cursorNodes[0].firstElementChild &&
|
|
@@ -14869,7 +14926,7 @@ var SelectionCommands = /** @__PURE__ @class */ (function () {
|
|
|
14869
14926
|
* @hidden
|
|
14870
14927
|
* @deprecated
|
|
14871
14928
|
*/
|
|
14872
|
-
var SelectionBasedExec = /** @
|
|
14929
|
+
var SelectionBasedExec = /** @class */ (function () {
|
|
14873
14930
|
/**
|
|
14874
14931
|
* Constructor for creating the Formats plugin
|
|
14875
14932
|
*
|
|
@@ -14918,7 +14975,7 @@ var SelectionBasedExec = /** @__PURE__ @class */ (function () {
|
|
|
14918
14975
|
* @hidden
|
|
14919
14976
|
* @deprecated
|
|
14920
14977
|
*/
|
|
14921
|
-
var InsertHtmlExec = /** @
|
|
14978
|
+
var InsertHtmlExec = /** @class */ (function () {
|
|
14922
14979
|
/**
|
|
14923
14980
|
* Constructor for creating the Formats plugin
|
|
14924
14981
|
*
|
|
@@ -14965,7 +15022,7 @@ var InsertHtmlExec = /** @__PURE__ @class */ (function () {
|
|
|
14965
15022
|
/**
|
|
14966
15023
|
* `Clear Format` module is used to handle Clear Format.
|
|
14967
15024
|
*/
|
|
14968
|
-
var ClearFormat$1 = /** @
|
|
15025
|
+
var ClearFormat$1 = /** @class */ (function () {
|
|
14969
15026
|
function ClearFormat() {
|
|
14970
15027
|
}
|
|
14971
15028
|
/**
|
|
@@ -15206,7 +15263,7 @@ var ClearFormat$1 = /** @__PURE__ @class */ (function () {
|
|
|
15206
15263
|
* @hidden
|
|
15207
15264
|
* @deprecated
|
|
15208
15265
|
*/
|
|
15209
|
-
var ClearFormatExec = /** @
|
|
15266
|
+
var ClearFormatExec = /** @class */ (function () {
|
|
15210
15267
|
/**
|
|
15211
15268
|
* Constructor for creating the Formats plugin
|
|
15212
15269
|
*
|
|
@@ -15251,7 +15308,7 @@ var ClearFormatExec = /** @__PURE__ @class */ (function () {
|
|
|
15251
15308
|
/**
|
|
15252
15309
|
* `Undo` module is used to handle undo actions.
|
|
15253
15310
|
*/
|
|
15254
|
-
var UndoRedoManager = /** @
|
|
15311
|
+
var UndoRedoManager = /** @class */ (function () {
|
|
15255
15312
|
function UndoRedoManager(parent, options) {
|
|
15256
15313
|
this.undoRedoStack = [];
|
|
15257
15314
|
this.parent = parent;
|
|
@@ -15452,7 +15509,7 @@ var UndoRedoManager = /** @__PURE__ @class */ (function () {
|
|
|
15452
15509
|
* @hidden
|
|
15453
15510
|
* @deprecated
|
|
15454
15511
|
*/
|
|
15455
|
-
var MsWordPaste = /** @
|
|
15512
|
+
var MsWordPaste = /** @class */ (function () {
|
|
15456
15513
|
function MsWordPaste(parent) {
|
|
15457
15514
|
this.olData = [
|
|
15458
15515
|
'decimal',
|
|
@@ -16109,7 +16166,7 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
|
|
|
16109
16166
|
* @hidden
|
|
16110
16167
|
* @deprecated
|
|
16111
16168
|
*/
|
|
16112
|
-
var InsertTextExec = /** @
|
|
16169
|
+
var InsertTextExec = /** @class */ (function () {
|
|
16113
16170
|
/**
|
|
16114
16171
|
* Constructor for creating the InsertText plugin
|
|
16115
16172
|
*
|
|
@@ -16146,7 +16203,7 @@ var InsertTextExec = /** @__PURE__ @class */ (function () {
|
|
|
16146
16203
|
* @hidden
|
|
16147
16204
|
* @deprecated
|
|
16148
16205
|
*/
|
|
16149
|
-
var EditorManager = /** @
|
|
16206
|
+
var EditorManager = /** @class */ (function () {
|
|
16150
16207
|
/**
|
|
16151
16208
|
* Constructor for creating the component
|
|
16152
16209
|
*
|
|
@@ -16313,26 +16370,26 @@ var EditorManager = /** @__PURE__ @class */ (function () {
|
|
|
16313
16370
|
return EditorManager;
|
|
16314
16371
|
}());
|
|
16315
16372
|
|
|
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
|
-
})();
|
|
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
|
+
})();
|
|
16329
16386
|
/**
|
|
16330
16387
|
* HTML adapter
|
|
16331
16388
|
*
|
|
16332
16389
|
* @hidden
|
|
16333
16390
|
* @deprecated
|
|
16334
16391
|
*/
|
|
16335
|
-
var HTMLFormatter = /** @
|
|
16392
|
+
var HTMLFormatter = /** @class */ (function (_super) {
|
|
16336
16393
|
__extends$2(HTMLFormatter, _super);
|
|
16337
16394
|
function HTMLFormatter(options) {
|
|
16338
16395
|
var _this = _super.call(this) || this;
|
|
@@ -16375,7 +16432,7 @@ var HTMLFormatter = /** @__PURE__ @class */ (function (_super) {
|
|
|
16375
16432
|
* @deprecated
|
|
16376
16433
|
*/
|
|
16377
16434
|
var statusCollection = getDefaultHtmlTbStatus();
|
|
16378
|
-
var ToolbarStatus = /** @
|
|
16435
|
+
var ToolbarStatus = /** @class */ (function () {
|
|
16379
16436
|
function ToolbarStatus() {
|
|
16380
16437
|
}
|
|
16381
16438
|
/**
|
|
@@ -16709,7 +16766,7 @@ var ToolbarStatus = /** @__PURE__ @class */ (function () {
|
|
|
16709
16766
|
/**
|
|
16710
16767
|
* HtmlToolbarStatus module for refresh the toolbar status
|
|
16711
16768
|
*/
|
|
16712
|
-
var HtmlToolbarStatus = /** @
|
|
16769
|
+
var HtmlToolbarStatus = /** @class */ (function () {
|
|
16713
16770
|
function HtmlToolbarStatus(parent) {
|
|
16714
16771
|
this.parent = parent;
|
|
16715
16772
|
this.toolbarStatus = this.prevToolbarStatus = getDefaultHtmlTbStatus();
|
|
@@ -16756,7 +16813,7 @@ var HtmlToolbarStatus = /** @__PURE__ @class */ (function () {
|
|
|
16756
16813
|
* @hidden
|
|
16757
16814
|
* @deprecated
|
|
16758
16815
|
*/
|
|
16759
|
-
var ContentRender = /** @
|
|
16816
|
+
var ContentRender = /** @class */ (function () {
|
|
16760
16817
|
/**
|
|
16761
16818
|
* Constructor for content renderer module
|
|
16762
16819
|
*
|
|
@@ -16843,19 +16900,19 @@ var ContentRender = /** @__PURE__ @class */ (function () {
|
|
|
16843
16900
|
return ContentRender;
|
|
16844
16901
|
}());
|
|
16845
16902
|
|
|
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
|
-
})();
|
|
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
|
+
})();
|
|
16859
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>";
|
|
16860
16917
|
/**
|
|
16861
16918
|
* Content module is used to render Rich Text Editor content
|
|
@@ -16863,7 +16920,7 @@ var IFRAMEHEADER = "\n<!DOCTYPE html> \n <html>\n <head>\n
|
|
|
16863
16920
|
* @hidden
|
|
16864
16921
|
* @deprecated
|
|
16865
16922
|
*/
|
|
16866
|
-
var IframeContentRender = /** @
|
|
16923
|
+
var IframeContentRender = /** @class */ (function (_super) {
|
|
16867
16924
|
__extends$3(IframeContentRender, _super);
|
|
16868
16925
|
function IframeContentRender() {
|
|
16869
16926
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -16935,7 +16992,7 @@ var IframeContentRender = /** @__PURE__ @class */ (function (_super) {
|
|
|
16935
16992
|
/**
|
|
16936
16993
|
* XhtmlValidation module called when set enableXhtml as true
|
|
16937
16994
|
*/
|
|
16938
|
-
var XhtmlValidation = /** @
|
|
16995
|
+
var XhtmlValidation = /** @class */ (function () {
|
|
16939
16996
|
function XhtmlValidation(parent) {
|
|
16940
16997
|
this.parent = parent;
|
|
16941
16998
|
this.addEventListener();
|
|
@@ -17115,7 +17172,7 @@ var XhtmlValidation = /** @__PURE__ @class */ (function () {
|
|
|
17115
17172
|
/**
|
|
17116
17173
|
* `HtmlEditor` module is used to HTML editor
|
|
17117
17174
|
*/
|
|
17118
|
-
var HtmlEditor = /** @
|
|
17175
|
+
var HtmlEditor = /** @class */ (function () {
|
|
17119
17176
|
function HtmlEditor(parent, serviceLocator) {
|
|
17120
17177
|
this.rangeCollection = [];
|
|
17121
17178
|
this.parent = parent;
|
|
@@ -17799,7 +17856,7 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
|
|
|
17799
17856
|
/**
|
|
17800
17857
|
* PasteCleanup module called when pasting content in RichTextEditor
|
|
17801
17858
|
*/
|
|
17802
|
-
var PasteCleanup = /** @
|
|
17859
|
+
var PasteCleanup = /** @class */ (function () {
|
|
17803
17860
|
function PasteCleanup(parent, serviceLocator) {
|
|
17804
17861
|
this.inlineNode = ['a', 'abbr', 'acronym', 'audio', 'b', 'bdi', 'bdo', 'big', 'br', 'button',
|
|
17805
17862
|
'canvas', 'cite', 'code', 'data', 'datalist', 'del', 'dfn', 'em', 'embed', 'font', 'i', 'iframe', 'img', 'input',
|
|
@@ -18670,7 +18727,7 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
|
|
|
18670
18727
|
/**
|
|
18671
18728
|
* `Resize` module is used to resize the editor
|
|
18672
18729
|
*/
|
|
18673
|
-
var Resize = /** @
|
|
18730
|
+
var Resize = /** @class */ (function () {
|
|
18674
18731
|
function Resize(parent) {
|
|
18675
18732
|
this.parent = parent;
|
|
18676
18733
|
this.addEventListener();
|
|
@@ -18792,7 +18849,7 @@ var Resize = /** @__PURE__ @class */ (function () {
|
|
|
18792
18849
|
/**
|
|
18793
18850
|
* `FileManager` module is used to display the directories and images inside the editor.
|
|
18794
18851
|
*/
|
|
18795
|
-
var FileManager$1 = /** @
|
|
18852
|
+
var FileManager$1 = /** @class */ (function () {
|
|
18796
18853
|
function FileManager$$1(parent, locator) {
|
|
18797
18854
|
FileManager.Inject(ContextMenu, DetailsView, NavigationPane, Toolbar$1);
|
|
18798
18855
|
this.parent = parent;
|
|
@@ -19027,7 +19084,7 @@ var FileManager$1 = /** @__PURE__ @class */ (function () {
|
|
|
19027
19084
|
/**
|
|
19028
19085
|
* `FullScreen` module is used to maximize and minimize screen
|
|
19029
19086
|
*/
|
|
19030
|
-
var FullScreen = /** @
|
|
19087
|
+
var FullScreen = /** @class */ (function () {
|
|
19031
19088
|
function FullScreen(parent) {
|
|
19032
19089
|
this.parent = parent;
|
|
19033
19090
|
this.addEventListener();
|
|
@@ -19254,7 +19311,7 @@ function setAttributes(htmlAttributes, rte, isFrame, initial) {
|
|
|
19254
19311
|
* @hidden
|
|
19255
19312
|
* @deprecated
|
|
19256
19313
|
*/
|
|
19257
|
-
var Render = /** @
|
|
19314
|
+
var Render = /** @class */ (function () {
|
|
19258
19315
|
/**
|
|
19259
19316
|
* Constructor for render module
|
|
19260
19317
|
*
|
|
@@ -19345,7 +19402,7 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
19345
19402
|
/**
|
|
19346
19403
|
* `Link` module is used to handle undo actions.
|
|
19347
19404
|
*/
|
|
19348
|
-
var Link = /** @
|
|
19405
|
+
var Link = /** @class */ (function () {
|
|
19349
19406
|
function Link(parent, serviceLocator) {
|
|
19350
19407
|
this.parent = parent;
|
|
19351
19408
|
this.rteID = parent.element.id;
|
|
@@ -19472,7 +19529,8 @@ var Link = /** @__PURE__ @class */ (function () {
|
|
|
19472
19529
|
this.contentModule = this.rendererFactory.getRenderer(RenderType.Content);
|
|
19473
19530
|
var isPopupOpen = this.quickToolObj.linkQTBar.element.classList.contains('e-rte-pop');
|
|
19474
19531
|
if (target.nodeName === 'A' && (target.childNodes.length > 0 && target.childNodes[0].nodeName !== 'IMG') &&
|
|
19475
|
-
e.args.target.nodeName !== 'IMG'
|
|
19532
|
+
e.args.target.nodeName !== 'IMG' &&
|
|
19533
|
+
!isNullOrUndefined(closest(this.parent.getRange().startContainer.parentElement, 'A')) && !isNullOrUndefined(closest(this.parent.getRange().endContainer.parentElement, 'A'))) {
|
|
19476
19534
|
if (isPopupOpen) {
|
|
19477
19535
|
return;
|
|
19478
19536
|
}
|
|
@@ -19850,7 +19908,7 @@ var Link = /** @__PURE__ @class */ (function () {
|
|
|
19850
19908
|
/**
|
|
19851
19909
|
* `Image` module is used to handle image actions.
|
|
19852
19910
|
*/
|
|
19853
|
-
var Image = /** @
|
|
19911
|
+
var Image = /** @class */ (function () {
|
|
19854
19912
|
function Image(parent, serviceLocator) {
|
|
19855
19913
|
this.isImgUploaded = false;
|
|
19856
19914
|
this.isAllowedTypes = true;
|
|
@@ -20652,7 +20710,7 @@ var Image = /** @__PURE__ @class */ (function () {
|
|
|
20652
20710
|
var target = args.target;
|
|
20653
20711
|
this.contentModule = this.rendererFactory.getRenderer(RenderType.Content);
|
|
20654
20712
|
var isPopupOpen = this.quickToolObj.imageQTBar.element.classList.contains('e-rte-pop');
|
|
20655
|
-
if (target.nodeName === 'IMG' && this.parent.quickToolbarModule) {
|
|
20713
|
+
if (target.nodeName === 'IMG' && this.parent.quickToolbarModule && this.parent.getRange().startOffset === this.parent.getRange().endOffset) {
|
|
20656
20714
|
if (isPopupOpen) {
|
|
20657
20715
|
return;
|
|
20658
20716
|
}
|
|
@@ -20891,13 +20949,34 @@ var Image = /** @__PURE__ @class */ (function () {
|
|
|
20891
20949
|
}
|
|
20892
20950
|
};
|
|
20893
20951
|
Image.prototype.imageRemovePost = function (src) {
|
|
20952
|
+
var proxy = this;
|
|
20953
|
+
var absoluteUrl = '';
|
|
20954
|
+
if (src.indexOf('http://') > -1 || src.indexOf('https://') > -1) {
|
|
20955
|
+
absoluteUrl = src;
|
|
20956
|
+
}
|
|
20957
|
+
else {
|
|
20958
|
+
absoluteUrl = new URL(src, document.baseURI).href;
|
|
20959
|
+
}
|
|
20960
|
+
this.removingImgName = absoluteUrl.replace(/^.*[\\\/]/, '');
|
|
20961
|
+
var xhr = new XMLHttpRequest();
|
|
20962
|
+
xhr.addEventListener("readystatechange", function () {
|
|
20963
|
+
if (this.readyState == 4 && this.status == 200) {
|
|
20964
|
+
proxy.triggerPost(this.response);
|
|
20965
|
+
}
|
|
20966
|
+
});
|
|
20967
|
+
xhr.open('GET', absoluteUrl);
|
|
20968
|
+
xhr.responseType = 'blob';
|
|
20969
|
+
xhr.send();
|
|
20970
|
+
};
|
|
20971
|
+
Image.prototype.triggerPost = function (response) {
|
|
20894
20972
|
var removeUrl = this.parent.insertImageSettings.removeUrl;
|
|
20895
20973
|
if (isNullOrUndefined(removeUrl) || removeUrl === '') {
|
|
20896
20974
|
return;
|
|
20897
20975
|
}
|
|
20976
|
+
var file = new File([response], this.removingImgName);
|
|
20898
20977
|
var ajax = new Ajax(removeUrl, 'POST', true, null);
|
|
20899
20978
|
var formData = new FormData();
|
|
20900
|
-
formData.append(
|
|
20979
|
+
formData.append('UploadFiles', file);
|
|
20901
20980
|
ajax.send(formData);
|
|
20902
20981
|
};
|
|
20903
20982
|
Image.prototype.caption = function (e) {
|
|
@@ -22008,7 +22087,7 @@ var Image = /** @__PURE__ @class */ (function () {
|
|
|
22008
22087
|
* @hidden
|
|
22009
22088
|
* @deprecated
|
|
22010
22089
|
*/
|
|
22011
|
-
var ViewSource = /** @
|
|
22090
|
+
var ViewSource = /** @class */ (function () {
|
|
22012
22091
|
/**
|
|
22013
22092
|
* Constructor for view source module
|
|
22014
22093
|
*
|
|
@@ -22266,7 +22345,7 @@ var ViewSource = /** @__PURE__ @class */ (function () {
|
|
|
22266
22345
|
/**
|
|
22267
22346
|
* `Table` module is used to handle table actions.
|
|
22268
22347
|
*/
|
|
22269
|
-
var Table = /** @
|
|
22348
|
+
var Table = /** @class */ (function () {
|
|
22270
22349
|
function Table(parent, serviceLocator) {
|
|
22271
22350
|
this.ensureInsideTableList = true;
|
|
22272
22351
|
this.pageX = null;
|
|
@@ -22655,7 +22734,9 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
22655
22734
|
}
|
|
22656
22735
|
var range = this.parent.formatter.editorManager.nodeSelection.getRange(this.contentModule.getDocument());
|
|
22657
22736
|
var closestTable = closest(target, 'table');
|
|
22658
|
-
|
|
22737
|
+
var startNode = this.parent.getRange().startContainer.parentElement;
|
|
22738
|
+
var endNode = this.parent.getRange().endContainer.parentElement;
|
|
22739
|
+
if (target && target.nodeName !== 'A' && target.nodeName !== 'IMG' && startNode === endNode && (target.nodeName === 'TD' || target.nodeName === 'TH' ||
|
|
22659
22740
|
target.nodeName === 'TABLE' || (closestTable && this.parent.contentModule.getEditPanel().contains(closestTable)))
|
|
22660
22741
|
&& !(range.startContainer.nodeType === 3 && !range.collapsed)) {
|
|
22661
22742
|
var range_1 = this.parent.formatter.editorManager.nodeSelection.getRange(this.contentModule.getDocument());
|
|
@@ -22742,7 +22823,6 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
22742
22823
|
tdNode : target;
|
|
22743
22824
|
removeClass(this.contentModule.getEditPanel().querySelectorAll('table td, table th'), CLS_TABLE_SEL);
|
|
22744
22825
|
if (target && (target.tagName === 'TD' || target.tagName === 'TH')) {
|
|
22745
|
-
target.removeAttribute('class');
|
|
22746
22826
|
addClass([target], CLS_TABLE_SEL);
|
|
22747
22827
|
this.activeCell = target;
|
|
22748
22828
|
this.curTable = (this.curTable) ? this.curTable : closest(target, 'table');
|
|
@@ -23492,7 +23572,7 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
23492
23572
|
/**
|
|
23493
23573
|
* Dialog Renderer
|
|
23494
23574
|
*/
|
|
23495
|
-
var DialogRenderer = /** @
|
|
23575
|
+
var DialogRenderer = /** @class */ (function () {
|
|
23496
23576
|
function DialogRenderer(parent) {
|
|
23497
23577
|
this.parent = parent;
|
|
23498
23578
|
}
|
|
@@ -23725,29 +23805,29 @@ var executeGroup = {
|
|
|
23725
23805
|
}
|
|
23726
23806
|
};
|
|
23727
23807
|
|
|
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
|
-
};
|
|
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
|
+
};
|
|
23747
23827
|
/**
|
|
23748
23828
|
* Configures the toolbar settings of the RichTextEditor.
|
|
23749
23829
|
*/
|
|
23750
|
-
var ToolbarSettings$1 = /** @
|
|
23830
|
+
var ToolbarSettings$1 = /** @class */ (function (_super) {
|
|
23751
23831
|
__extends$5(ToolbarSettings$$1, _super);
|
|
23752
23832
|
function ToolbarSettings$$1() {
|
|
23753
23833
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -23772,7 +23852,7 @@ var ToolbarSettings$1 = /** @__PURE__ @class */ (function (_super) {
|
|
|
23772
23852
|
/**
|
|
23773
23853
|
* Configures the image settings of the RichTextEditor.
|
|
23774
23854
|
*/
|
|
23775
|
-
var ImageSettings = /** @
|
|
23855
|
+
var ImageSettings = /** @class */ (function (_super) {
|
|
23776
23856
|
__extends$5(ImageSettings, _super);
|
|
23777
23857
|
function ImageSettings() {
|
|
23778
23858
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -23824,7 +23904,7 @@ var ImageSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
23824
23904
|
/**
|
|
23825
23905
|
* Configures the file manager settings of the RichTextEditor.
|
|
23826
23906
|
*/
|
|
23827
|
-
var FileManagerSettings = /** @
|
|
23907
|
+
var FileManagerSettings = /** @class */ (function (_super) {
|
|
23828
23908
|
__extends$5(FileManagerSettings, _super);
|
|
23829
23909
|
function FileManagerSettings() {
|
|
23830
23910
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -23882,7 +23962,7 @@ var FileManagerSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
23882
23962
|
], FileManagerSettings.prototype, "view", void 0);
|
|
23883
23963
|
return FileManagerSettings;
|
|
23884
23964
|
}(ChildProperty));
|
|
23885
|
-
var TableSettings = /** @
|
|
23965
|
+
var TableSettings = /** @class */ (function (_super) {
|
|
23886
23966
|
__extends$5(TableSettings, _super);
|
|
23887
23967
|
function TableSettings() {
|
|
23888
23968
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -23907,7 +23987,7 @@ var TableSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
23907
23987
|
/**
|
|
23908
23988
|
* Configures the quick toolbar settings of the RichTextEditor.
|
|
23909
23989
|
*/
|
|
23910
|
-
var QuickToolbarSettings = /** @
|
|
23990
|
+
var QuickToolbarSettings = /** @class */ (function (_super) {
|
|
23911
23991
|
__extends$5(QuickToolbarSettings, _super);
|
|
23912
23992
|
function QuickToolbarSettings() {
|
|
23913
23993
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -23938,7 +24018,7 @@ var QuickToolbarSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
23938
24018
|
/**
|
|
23939
24019
|
* Configures the Paste Cleanup settings of the RichTextEditor.
|
|
23940
24020
|
*/
|
|
23941
|
-
var PasteCleanupSettings = /** @
|
|
24021
|
+
var PasteCleanupSettings = /** @class */ (function (_super) {
|
|
23942
24022
|
__extends$5(PasteCleanupSettings, _super);
|
|
23943
24023
|
function PasteCleanupSettings() {
|
|
23944
24024
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -23966,7 +24046,7 @@ var PasteCleanupSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
23966
24046
|
/**
|
|
23967
24047
|
* Configures the font family settings of the RichTextEditor.
|
|
23968
24048
|
*/
|
|
23969
|
-
var FontFamily = /** @
|
|
24049
|
+
var FontFamily = /** @class */ (function (_super) {
|
|
23970
24050
|
__extends$5(FontFamily, _super);
|
|
23971
24051
|
function FontFamily() {
|
|
23972
24052
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -23985,7 +24065,7 @@ var FontFamily = /** @__PURE__ @class */ (function (_super) {
|
|
|
23985
24065
|
/**
|
|
23986
24066
|
* Configures the font size settings of the RichTextEditor.
|
|
23987
24067
|
*/
|
|
23988
|
-
var FontSize = /** @
|
|
24068
|
+
var FontSize = /** @class */ (function (_super) {
|
|
23989
24069
|
__extends$5(FontSize, _super);
|
|
23990
24070
|
function FontSize() {
|
|
23991
24071
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -24004,7 +24084,7 @@ var FontSize = /** @__PURE__ @class */ (function (_super) {
|
|
|
24004
24084
|
/**
|
|
24005
24085
|
* Configures the format settings of the RichTextEditor.
|
|
24006
24086
|
*/
|
|
24007
|
-
var Format = /** @
|
|
24087
|
+
var Format = /** @class */ (function (_super) {
|
|
24008
24088
|
__extends$5(Format, _super);
|
|
24009
24089
|
function Format() {
|
|
24010
24090
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -24023,7 +24103,7 @@ var Format = /** @__PURE__ @class */ (function (_super) {
|
|
|
24023
24103
|
/**
|
|
24024
24104
|
* Configures the font Color settings of the RichTextEditor.
|
|
24025
24105
|
*/
|
|
24026
|
-
var FontColor = /** @
|
|
24106
|
+
var FontColor = /** @class */ (function (_super) {
|
|
24027
24107
|
__extends$5(FontColor, _super);
|
|
24028
24108
|
function FontColor() {
|
|
24029
24109
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -24048,7 +24128,7 @@ var FontColor = /** @__PURE__ @class */ (function (_super) {
|
|
|
24048
24128
|
/**
|
|
24049
24129
|
* Configures the background Color settings of the RichTextEditor.
|
|
24050
24130
|
*/
|
|
24051
|
-
var BackgroundColor = /** @
|
|
24131
|
+
var BackgroundColor = /** @class */ (function (_super) {
|
|
24052
24132
|
__extends$5(BackgroundColor, _super);
|
|
24053
24133
|
function BackgroundColor() {
|
|
24054
24134
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -24073,7 +24153,7 @@ var BackgroundColor = /** @__PURE__ @class */ (function (_super) {
|
|
|
24073
24153
|
/**
|
|
24074
24154
|
* Configures the numberFormatList settings of the RichTextEditor.
|
|
24075
24155
|
*/
|
|
24076
|
-
var NumberFormatList = /** @
|
|
24156
|
+
var NumberFormatList = /** @class */ (function (_super) {
|
|
24077
24157
|
__extends$5(NumberFormatList, _super);
|
|
24078
24158
|
function NumberFormatList() {
|
|
24079
24159
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -24086,7 +24166,7 @@ var NumberFormatList = /** @__PURE__ @class */ (function (_super) {
|
|
|
24086
24166
|
/**
|
|
24087
24167
|
* Configures the bulletFormatList settings of the RichTextEditor.
|
|
24088
24168
|
*/
|
|
24089
|
-
var BulletFormatList = /** @
|
|
24169
|
+
var BulletFormatList = /** @class */ (function (_super) {
|
|
24090
24170
|
__extends$5(BulletFormatList, _super);
|
|
24091
24171
|
function BulletFormatList() {
|
|
24092
24172
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -24097,29 +24177,29 @@ var BulletFormatList = /** @__PURE__ @class */ (function (_super) {
|
|
|
24097
24177
|
return BulletFormatList;
|
|
24098
24178
|
}(ChildProperty));
|
|
24099
24179
|
|
|
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
|
-
};
|
|
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
|
+
};
|
|
24119
24199
|
/**
|
|
24120
24200
|
* Objects used for configuring the iframe resources properties.
|
|
24121
24201
|
*/
|
|
24122
|
-
var Resources = /** @
|
|
24202
|
+
var Resources = /** @class */ (function (_super) {
|
|
24123
24203
|
__extends$6(Resources, _super);
|
|
24124
24204
|
function Resources() {
|
|
24125
24205
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -24135,7 +24215,7 @@ var Resources = /** @__PURE__ @class */ (function (_super) {
|
|
|
24135
24215
|
/**
|
|
24136
24216
|
* Configures the iframe settings of the RTE.
|
|
24137
24217
|
*/
|
|
24138
|
-
var IFrameSettings = /** @
|
|
24218
|
+
var IFrameSettings = /** @class */ (function (_super) {
|
|
24139
24219
|
__extends$6(IFrameSettings, _super);
|
|
24140
24220
|
function IFrameSettings() {
|
|
24141
24221
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -24152,29 +24232,29 @@ var IFrameSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
24152
24232
|
return IFrameSettings;
|
|
24153
24233
|
}(ChildProperty));
|
|
24154
24234
|
|
|
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
|
-
};
|
|
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
|
+
};
|
|
24174
24254
|
/**
|
|
24175
24255
|
* Configures the inlineMode property of the RTE.
|
|
24176
24256
|
*/
|
|
24177
|
-
var InlineMode = /** @
|
|
24257
|
+
var InlineMode = /** @class */ (function (_super) {
|
|
24178
24258
|
__extends$7(InlineMode, _super);
|
|
24179
24259
|
function InlineMode() {
|
|
24180
24260
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -24191,7 +24271,7 @@ var InlineMode = /** @__PURE__ @class */ (function (_super) {
|
|
|
24191
24271
|
/**
|
|
24192
24272
|
* `EnterKey` module is used to handle enter key press actions.
|
|
24193
24273
|
*/
|
|
24194
|
-
var EnterKeyAction = /** @
|
|
24274
|
+
var EnterKeyAction = /** @class */ (function () {
|
|
24195
24275
|
function EnterKeyAction(parent) {
|
|
24196
24276
|
this.parent = parent;
|
|
24197
24277
|
this.addEventListener();
|
|
@@ -24317,6 +24397,7 @@ var EnterKeyAction = /** @__PURE__ @class */ (function () {
|
|
|
24317
24397
|
detach(nearBlockNode);
|
|
24318
24398
|
}
|
|
24319
24399
|
}
|
|
24400
|
+
_this.parent.formatter.editorManager.nodeSelection.setCursorPoint(_this.parent.contentModule.getDocument(), insertElem.nextElementSibling, 0);
|
|
24320
24401
|
}
|
|
24321
24402
|
else if (nearBlockNode.textContent.length === 0 && !(!isNullOrUndefined(nearBlockNode.childNodes[0]) && nearBlockNode.childNodes[0].nodeName === 'IMG')) {
|
|
24322
24403
|
if (!isNullOrUndefined(nearBlockNode.children[0]) && nearBlockNode.children[0].tagName !== 'BR') {
|
|
@@ -24464,36 +24545,36 @@ var EnterKeyAction = /** @__PURE__ @class */ (function () {
|
|
|
24464
24545
|
return EnterKeyAction;
|
|
24465
24546
|
}());
|
|
24466
24547
|
|
|
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
|
-
};
|
|
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
|
+
};
|
|
24497
24578
|
/**
|
|
24498
24579
|
* Represents the Rich Text Editor component.
|
|
24499
24580
|
* ```html
|
|
@@ -24504,7 +24585,7 @@ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
24504
24585
|
* </script>
|
|
24505
24586
|
* ```
|
|
24506
24587
|
*/
|
|
24507
|
-
var RichTextEditor = /** @
|
|
24588
|
+
var RichTextEditor = /** @class */ (function (_super) {
|
|
24508
24589
|
__extends$4(RichTextEditor, _super);
|
|
24509
24590
|
function RichTextEditor(options, element) {
|
|
24510
24591
|
var _this = _super.call(this, options, element) || this;
|
|
@@ -25868,8 +25949,7 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
25868
25949
|
this.setProperties({ value: this.valueTemplate });
|
|
25869
25950
|
}
|
|
25870
25951
|
else {
|
|
25871
|
-
var
|
|
25872
|
-
var compiledTemplate = compiledString({});
|
|
25952
|
+
var compiledTemplate = compile(this.valueTemplate)('', this, 'valueTemplate');
|
|
25873
25953
|
for (var i = 0; i < compiledTemplate.length; i++) {
|
|
25874
25954
|
var item = compiledTemplate[i];
|
|
25875
25955
|
append([item], this.element);
|