@syncfusion/ej2-richtexteditor 18.4.39 → 18.4.42-70943
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 +782 -728
- 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 +249 -145
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +371 -267
- package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
- package/helpers/e2e/index.js +3 -3
- package/license +9 -9
- package/package.json +76 -75
- package/src/common/interface.d.ts +6 -6
- 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 +5 -4
- 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 +16 -12
- 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 +8 -8
- package/src/editor-manager/plugin/lists.d.ts +2 -2
- package/src/editor-manager/plugin/lists.js +8 -4
- package/src/editor-manager/plugin/ms-word-clean-up.d.ts +1 -1
- package/src/editor-manager/plugin/ms-word-clean-up.js +23 -7
- 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 +2 -1
- package/src/editor-manager/plugin/selection-commands.js +35 -4
- 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 +4 -3
- package/src/editor-manager/plugin/toolbar-status.d.ts +2 -2
- package/src/editor-manager/plugin/toolbar-status.js +2 -2
- package/src/editor-manager/plugin/undo.d.ts +6 -6
- package/src/editor-manager/plugin/undo.js +6 -6
- package/src/global.d.ts +1 -0
- package/src/markdown-parser/base/interface.d.ts +10 -10
- package/src/markdown-parser/base/markdown-parser.d.ts +3 -3
- package/src/markdown-parser/base/markdown-parser.js +3 -3
- package/src/markdown-parser/base/types.d.ts +1 -1
- package/src/markdown-parser/plugin/clearformat.d.ts +2 -2
- package/src/markdown-parser/plugin/clearformat.js +2 -2
- package/src/markdown-parser/plugin/formats.d.ts +2 -2
- package/src/markdown-parser/plugin/formats.js +2 -2
- package/src/markdown-parser/plugin/link.d.ts +2 -2
- package/src/markdown-parser/plugin/link.js +2 -2
- package/src/markdown-parser/plugin/markdown-selection.d.ts +14 -14
- package/src/markdown-parser/plugin/markdown-selection.js +14 -14
- package/src/markdown-parser/plugin/md-selection-formats.d.ts +2 -2
- package/src/markdown-parser/plugin/md-selection-formats.js +2 -2
- package/src/markdown-parser/plugin/table.d.ts +3 -3
- package/src/markdown-parser/plugin/table.js +3 -3
- package/src/markdown-parser/plugin/undo.d.ts +6 -6
- package/src/markdown-parser/plugin/undo.js +6 -6
- package/src/rich-text-editor/actions/base-quick-toolbar.d.ts +9 -9
- package/src/rich-text-editor/actions/base-quick-toolbar.js +9 -9
- package/src/rich-text-editor/actions/base-toolbar.d.ts +3 -3
- package/src/rich-text-editor/actions/base-toolbar.js +3 -3
- package/src/rich-text-editor/actions/color-picker.d.ts +2 -2
- package/src/rich-text-editor/actions/color-picker.js +2 -2
- package/src/rich-text-editor/actions/count.d.ts +3 -3
- package/src/rich-text-editor/actions/count.js +3 -3
- package/src/rich-text-editor/actions/dropdown-buttons.d.ts +2 -2
- package/src/rich-text-editor/actions/dropdown-buttons.js +2 -2
- package/src/rich-text-editor/actions/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 +13 -13
- package/src/rich-text-editor/actions/keyboard.d.ts +1 -1
- package/src/rich-text-editor/actions/keyboard.js +22 -21
- package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
- package/src/rich-text-editor/actions/markdown-editor.js +2 -2
- package/src/rich-text-editor/actions/paste-clean-up.d.ts +1 -1
- package/src/rich-text-editor/actions/paste-clean-up.js +1 -1
- package/src/rich-text-editor/actions/quick-toolbar.d.ts +9 -9
- package/src/rich-text-editor/actions/quick-toolbar.js +9 -9
- package/src/rich-text-editor/actions/toolbar.d.ts +13 -13
- package/src/rich-text-editor/actions/toolbar.js +13 -13
- package/src/rich-text-editor/actions/xhtml-validation.d.ts +1 -1
- package/src/rich-text-editor/actions/xhtml-validation.js +1 -1
- package/src/rich-text-editor/base/classes.d.ts +103 -103
- package/src/rich-text-editor/base/classes.js +103 -103
- package/src/rich-text-editor/base/constant.d.ts +112 -107
- package/src/rich-text-editor/base/constant.js +112 -107
- 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 +40 -40
- package/src/rich-text-editor/base/interface.js +1 -1
- package/src/rich-text-editor/base/rich-text-editor-model.d.ts +701 -701
- package/src/rich-text-editor/base/rich-text-editor.d.ts +51 -51
- package/src/rich-text-editor/base/rich-text-editor.js +88 -66
- package/src/rich-text-editor/base/util.d.ts +1 -1
- package/src/rich-text-editor/base/util.js +1 -1
- package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
- package/src/rich-text-editor/formatter/formatter.js +8 -8
- package/src/rich-text-editor/formatter/html-formatter.d.ts +2 -2
- package/src/rich-text-editor/formatter/html-formatter.js +15 -15
- package/src/rich-text-editor/formatter/markdown-formatter.d.ts +2 -2
- package/src/rich-text-editor/formatter/markdown-formatter.js +15 -15
- package/src/rich-text-editor/models/iframe-settings-model.d.ts +21 -21
- package/src/rich-text-editor/models/iframe-settings.js +19 -19
- package/src/rich-text-editor/models/inline-mode-model.d.ts +9 -9
- package/src/rich-text-editor/models/inline-mode.js +19 -19
- package/src/rich-text-editor/models/toolbar-settings-model.d.ts +328 -328
- 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 +2 -1
- package/src/rich-text-editor/renderer/image-module.js +21 -7
- package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/link-module.js +1 -1
- package/src/rich-text-editor/renderer/markdown-renderer.d.ts +6 -6
- package/src/rich-text-editor/renderer/markdown-renderer.js +6 -6
- package/src/rich-text-editor/renderer/popup-renderer.d.ts +5 -5
- package/src/rich-text-editor/renderer/popup-renderer.js +5 -5
- package/src/rich-text-editor/renderer/render.d.ts +2 -2
- package/src/rich-text-editor/renderer/render.js +2 -2
- package/src/rich-text-editor/renderer/table-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/table-module.js +7 -2
- package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +8 -8
- package/src/rich-text-editor/renderer/toolbar-renderer.js +8 -8
- package/src/rich-text-editor/renderer/view-source.d.ts +6 -6
- package/src/rich-text-editor/renderer/view-source.js +6 -6
- package/src/rich-text-editor/services/renderer-factory.d.ts +3 -3
- package/src/rich-text-editor/services/renderer-factory.js +3 -3
- package/src/rich-text-editor/services/service-locator.d.ts +3 -3
- package/src/rich-text-editor/services/service-locator.js +3 -3
- package/src/selection/selection.d.ts +22 -22
- package/src/selection/selection.js +22 -22
- package/styles/_all.scss +2 -2
- package/styles/bootstrap-dark.css +13 -1
- package/styles/bootstrap.css +13 -1
- package/styles/bootstrap4.css +13 -1
- package/styles/bootstrap5-dark.css +0 -0
- package/styles/bootstrap5-dark.scss +0 -0
- package/styles/bootstrap5.css +0 -0
- package/styles/bootstrap5.scss +0 -0
- package/styles/fabric-dark.css +13 -1
- package/styles/fabric.css +13 -1
- package/styles/highcontrast-light.css +13 -1
- package/styles/highcontrast.css +13 -1
- package/styles/material-dark.css +13 -1
- package/styles/material.css +13 -1
- package/styles/rich-text-editor/_all.scss +2 -2
- package/styles/rich-text-editor/_bootstrap-dark-definition.scss +151 -151
- package/styles/rich-text-editor/_bootstrap-definition.scss +184 -184
- package/styles/rich-text-editor/_bootstrap4-definition.scss +307 -307
- package/styles/rich-text-editor/_fabric-dark-definition.scss +150 -150
- package/styles/rich-text-editor/_fabric-definition.scss +148 -148
- package/styles/rich-text-editor/_highcontrast-definition.scss +148 -148
- package/styles/rich-text-editor/_highcontrast-light-definition.scss +148 -148
- package/styles/rich-text-editor/_layout.scss +1416 -1404
- package/styles/rich-text-editor/_material-dark-definition.scss +151 -151
- package/styles/rich-text-editor/_material-definition.scss +150 -150
- package/styles/rich-text-editor/_theme.scss +499 -499
- package/styles/rich-text-editor/bootstrap-dark.css +13 -1
- package/styles/rich-text-editor/bootstrap.css +13 -1
- package/styles/rich-text-editor/bootstrap4.css +13 -1
- package/styles/rich-text-editor/fabric-dark.css +13 -1
- package/styles/rich-text-editor/fabric.css +13 -1
- package/styles/rich-text-editor/highcontrast-light.css +13 -1
- package/styles/rich-text-editor/highcontrast.css +13 -1
- package/styles/rich-text-editor/icons/_bootstrap-dark.scss +289 -289
- package/styles/rich-text-editor/icons/_bootstrap.scss +288 -288
- package/styles/rich-text-editor/icons/_bootstrap4.scss +288 -288
- package/styles/rich-text-editor/icons/_fabric-dark.scss +288 -288
- package/styles/rich-text-editor/icons/_fabric.scss +288 -288
- package/styles/rich-text-editor/icons/_highcontrast-light.scss +288 -288
- package/styles/rich-text-editor/icons/_highcontrast.scss +288 -288
- package/styles/rich-text-editor/icons/_material-dark.scss +288 -288
- package/styles/rich-text-editor/icons/_material.scss +288 -288
- package/styles/rich-text-editor/material-dark.css +13 -1
- package/styles/rich-text-editor/material.css +13 -1
- package/styles/tailwind-dark.css +0 -0
- package/styles/tailwind-dark.scss +0 -0
- package/styles/tailwind.css +0 -0
- package/styles/tailwind.scss +0 -0
- 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
|
@@ -159,6 +159,11 @@ var imageToolbarAction = 'image-toolbar-action';
|
|
|
159
159
|
* @deprecated
|
|
160
160
|
*/
|
|
161
161
|
var linkToolbarAction = 'link-toolbar-action';
|
|
162
|
+
/**
|
|
163
|
+
* @hidden
|
|
164
|
+
* @deprecated
|
|
165
|
+
*/
|
|
166
|
+
var windowResize = 'resize';
|
|
162
167
|
/**
|
|
163
168
|
* @hidden
|
|
164
169
|
* @deprecated
|
|
@@ -2242,7 +2247,7 @@ function convertToBlob(dataUrl) {
|
|
|
2242
2247
|
* @hidden
|
|
2243
2248
|
* @deprecated
|
|
2244
2249
|
*/
|
|
2245
|
-
var ToolbarRenderer = /** @
|
|
2250
|
+
var ToolbarRenderer = /** @class */ (function () {
|
|
2246
2251
|
/**
|
|
2247
2252
|
* Constructor for toolbar renderer module
|
|
2248
2253
|
*/
|
|
@@ -2682,7 +2687,7 @@ var ToolbarRenderer = /** @__PURE__ @class */ (function () {
|
|
|
2682
2687
|
/**
|
|
2683
2688
|
* `Toolbar` module is used to handle Toolbar actions.
|
|
2684
2689
|
*/
|
|
2685
|
-
var BaseToolbar = /** @
|
|
2690
|
+
var BaseToolbar = /** @class */ (function () {
|
|
2686
2691
|
function BaseToolbar(parent, serviceLocator) {
|
|
2687
2692
|
this.tools = {};
|
|
2688
2693
|
this.parent = parent;
|
|
@@ -2825,7 +2830,7 @@ var BaseToolbar = /** @__PURE__ @class */ (function () {
|
|
|
2825
2830
|
/**
|
|
2826
2831
|
* `Toolbar` module is used to handle Toolbar actions.
|
|
2827
2832
|
*/
|
|
2828
|
-
var DropDownButtons = /** @
|
|
2833
|
+
var DropDownButtons = /** @class */ (function () {
|
|
2829
2834
|
function DropDownButtons(parent, serviceLocator) {
|
|
2830
2835
|
this.parent = parent;
|
|
2831
2836
|
this.locator = serviceLocator;
|
|
@@ -3246,7 +3251,7 @@ var DropDownButtons = /** @__PURE__ @class */ (function () {
|
|
|
3246
3251
|
* @hidden
|
|
3247
3252
|
* @deprecated
|
|
3248
3253
|
*/
|
|
3249
|
-
var ServiceLocator = /** @
|
|
3254
|
+
var ServiceLocator = /** @class */ (function () {
|
|
3250
3255
|
function ServiceLocator() {
|
|
3251
3256
|
this.services = {};
|
|
3252
3257
|
}
|
|
@@ -3279,7 +3284,7 @@ var ServiceLocator = /** @__PURE__ @class */ (function () {
|
|
|
3279
3284
|
* @hidden
|
|
3280
3285
|
* @deprecated
|
|
3281
3286
|
*/
|
|
3282
|
-
var RendererFactory = /** @
|
|
3287
|
+
var RendererFactory = /** @class */ (function () {
|
|
3283
3288
|
function RendererFactory() {
|
|
3284
3289
|
this.rendererMap = {};
|
|
3285
3290
|
}
|
|
@@ -3314,7 +3319,7 @@ var RendererFactory = /** @__PURE__ @class */ (function () {
|
|
|
3314
3319
|
/**
|
|
3315
3320
|
* `ToolbarAction` module is used to toolbar click action
|
|
3316
3321
|
*/
|
|
3317
|
-
var ToolbarAction = /** @
|
|
3322
|
+
var ToolbarAction = /** @class */ (function () {
|
|
3318
3323
|
function ToolbarAction(parent) {
|
|
3319
3324
|
this.parent = parent;
|
|
3320
3325
|
this.addEventListener();
|
|
@@ -3368,7 +3373,7 @@ var ToolbarAction = /** @__PURE__ @class */ (function () {
|
|
|
3368
3373
|
/**
|
|
3369
3374
|
* `Toolbar` module is used to handle Toolbar actions.
|
|
3370
3375
|
*/
|
|
3371
|
-
var Toolbar$2 = /** @
|
|
3376
|
+
var Toolbar$2 = /** @class */ (function () {
|
|
3372
3377
|
function Toolbar$$1(parent, serviceLocator) {
|
|
3373
3378
|
this.parent = parent;
|
|
3374
3379
|
this.isToolbar = false;
|
|
@@ -3989,25 +3994,25 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
3989
3994
|
return Toolbar$$1;
|
|
3990
3995
|
}());
|
|
3991
3996
|
|
|
3992
|
-
var __extends = (undefined && undefined.__extends) || (function () {
|
|
3993
|
-
var extendStatics = function (d, b) {
|
|
3994
|
-
extendStatics = Object.setPrototypeOf ||
|
|
3995
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
3996
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
3997
|
-
return extendStatics(d, b);
|
|
3998
|
-
};
|
|
3999
|
-
return function (d, b) {
|
|
4000
|
-
extendStatics(d, b);
|
|
4001
|
-
function __() { this.constructor = d; }
|
|
4002
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
4003
|
-
};
|
|
4004
|
-
})();
|
|
4005
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
4006
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4007
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4008
|
-
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;
|
|
4009
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4010
|
-
};
|
|
3997
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
3998
|
+
var extendStatics = function (d, b) {
|
|
3999
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4000
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
4001
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
4002
|
+
return extendStatics(d, b);
|
|
4003
|
+
};
|
|
4004
|
+
return function (d, b) {
|
|
4005
|
+
extendStatics(d, b);
|
|
4006
|
+
function __() { this.constructor = d; }
|
|
4007
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
4008
|
+
};
|
|
4009
|
+
})();
|
|
4010
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
4011
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4012
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4013
|
+
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;
|
|
4014
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4015
|
+
};
|
|
4011
4016
|
var keyCode = {
|
|
4012
4017
|
'backspace': 8,
|
|
4013
4018
|
'tab': 9,
|
|
@@ -4074,7 +4079,7 @@ var keyCode = {
|
|
|
4074
4079
|
* @hidden
|
|
4075
4080
|
* @deprecated
|
|
4076
4081
|
*/
|
|
4077
|
-
var KeyboardEvents$1 = /** @
|
|
4082
|
+
var KeyboardEvents$1 = /** @class */ (function (_super) {
|
|
4078
4083
|
__extends(KeyboardEvents$$1, _super);
|
|
4079
4084
|
/**
|
|
4080
4085
|
* Initializes the KeyboardEvents
|
|
@@ -4090,6 +4095,7 @@ var KeyboardEvents$1 = /** @__PURE__ @class */ (function (_super) {
|
|
|
4090
4095
|
var isAltKey = e.altKey;
|
|
4091
4096
|
var isCtrlKey = e.ctrlKey;
|
|
4092
4097
|
var isShiftKey = e.shiftKey;
|
|
4098
|
+
var isMetaKey = e.metaKey;
|
|
4093
4099
|
var curkeyCode = e.which;
|
|
4094
4100
|
var keys = Object.keys(_this.keyConfigs);
|
|
4095
4101
|
for (var _i = 0, keys_1 = keys; _i < keys_1.length; _i++) {
|
|
@@ -4098,7 +4104,7 @@ var KeyboardEvents$1 = /** @__PURE__ @class */ (function (_super) {
|
|
|
4098
4104
|
for (var _a = 0, configCollection_1 = configCollection; _a < configCollection_1.length; _a++) {
|
|
4099
4105
|
var rconfig = configCollection_1[_a];
|
|
4100
4106
|
var rKeyObj = KeyboardEvents_1.getKeyConfigData(rconfig.trim());
|
|
4101
|
-
if (isAltKey === rKeyObj.altKey && isCtrlKey === rKeyObj.ctrlKey &&
|
|
4107
|
+
if (isAltKey === rKeyObj.altKey && (isCtrlKey === rKeyObj.ctrlKey || isMetaKey) &&
|
|
4102
4108
|
isShiftKey === rKeyObj.shiftKey && curkeyCode === rKeyObj.keyCode) {
|
|
4103
4109
|
e.action = key;
|
|
4104
4110
|
}
|
|
@@ -4202,7 +4208,7 @@ var KeyboardEvents$1 = /** @__PURE__ @class */ (function (_super) {
|
|
|
4202
4208
|
/**
|
|
4203
4209
|
* `Color Picker` module is used to handle ColorPicker actions.
|
|
4204
4210
|
*/
|
|
4205
|
-
var ColorPickerInput = /** @
|
|
4211
|
+
var ColorPickerInput = /** @class */ (function () {
|
|
4206
4212
|
function ColorPickerInput(parent, serviceLocator) {
|
|
4207
4213
|
this.tools = {};
|
|
4208
4214
|
this.parent = parent;
|
|
@@ -4398,7 +4404,7 @@ var ColorPickerInput = /** @__PURE__ @class */ (function () {
|
|
|
4398
4404
|
/**
|
|
4399
4405
|
* `Quick toolbar` module is used to handle Quick toolbar actions.
|
|
4400
4406
|
*/
|
|
4401
|
-
var BaseQuickToolbar = /** @
|
|
4407
|
+
var BaseQuickToolbar = /** @class */ (function () {
|
|
4402
4408
|
function BaseQuickToolbar(parent, locator) {
|
|
4403
4409
|
this.parent = parent;
|
|
4404
4410
|
this.locator = locator;
|
|
@@ -4769,7 +4775,7 @@ var BaseQuickToolbar = /** @__PURE__ @class */ (function () {
|
|
|
4769
4775
|
* @hidden
|
|
4770
4776
|
* @deprecated
|
|
4771
4777
|
*/
|
|
4772
|
-
var PopupRenderer = /** @
|
|
4778
|
+
var PopupRenderer = /** @class */ (function () {
|
|
4773
4779
|
/**
|
|
4774
4780
|
* Constructor for popup renderer module
|
|
4775
4781
|
*/
|
|
@@ -4828,7 +4834,7 @@ var PopupRenderer = /** @__PURE__ @class */ (function () {
|
|
|
4828
4834
|
/**
|
|
4829
4835
|
* `Quick toolbar` module is used to handle Quick toolbar actions.
|
|
4830
4836
|
*/
|
|
4831
|
-
var QuickToolbar = /** @
|
|
4837
|
+
var QuickToolbar = /** @class */ (function () {
|
|
4832
4838
|
function QuickToolbar(parent, locator) {
|
|
4833
4839
|
this.parent = parent;
|
|
4834
4840
|
this.locator = locator;
|
|
@@ -5229,7 +5235,7 @@ var QuickToolbar = /** @__PURE__ @class */ (function () {
|
|
|
5229
5235
|
/**
|
|
5230
5236
|
* `Count` module is used to handle Count actions.
|
|
5231
5237
|
*/
|
|
5232
|
-
var Count = /** @
|
|
5238
|
+
var Count = /** @class */ (function () {
|
|
5233
5239
|
function Count(parent, serviceLocator) {
|
|
5234
5240
|
this.parent = parent;
|
|
5235
5241
|
this.locator = serviceLocator;
|
|
@@ -5345,7 +5351,7 @@ var Count = /** @__PURE__ @class */ (function () {
|
|
|
5345
5351
|
* @hidden
|
|
5346
5352
|
* @deprecated
|
|
5347
5353
|
*/
|
|
5348
|
-
var MarkdownSelection = /** @
|
|
5354
|
+
var MarkdownSelection = /** @class */ (function () {
|
|
5349
5355
|
function MarkdownSelection() {
|
|
5350
5356
|
}
|
|
5351
5357
|
/**
|
|
@@ -5511,7 +5517,7 @@ var MarkdownSelection = /** @__PURE__ @class */ (function () {
|
|
|
5511
5517
|
/**
|
|
5512
5518
|
* MarkdownToolbarStatus module for refresh the toolbar status
|
|
5513
5519
|
*/
|
|
5514
|
-
var MarkdownToolbarStatus = /** @
|
|
5520
|
+
var MarkdownToolbarStatus = /** @class */ (function () {
|
|
5515
5521
|
function MarkdownToolbarStatus(parent) {
|
|
5516
5522
|
this.toolbarStatus = {
|
|
5517
5523
|
bold: false,
|
|
@@ -5645,7 +5651,7 @@ var MarkdownToolbarStatus = /** @__PURE__ @class */ (function () {
|
|
|
5645
5651
|
/**
|
|
5646
5652
|
* `ExecCommandCallBack` module is used to run the editor manager command
|
|
5647
5653
|
*/
|
|
5648
|
-
var ExecCommandCallBack = /** @
|
|
5654
|
+
var ExecCommandCallBack = /** @class */ (function () {
|
|
5649
5655
|
function ExecCommandCallBack(parent) {
|
|
5650
5656
|
this.parent = parent;
|
|
5651
5657
|
this.addEventListener();
|
|
@@ -5732,7 +5738,7 @@ var MS_WORD_CLEANUP = 'ms_word_cleanup';
|
|
|
5732
5738
|
* @hidden
|
|
5733
5739
|
* @deprecated
|
|
5734
5740
|
*/
|
|
5735
|
-
var Formatter = /** @
|
|
5741
|
+
var Formatter = /** @class */ (function () {
|
|
5736
5742
|
function Formatter() {
|
|
5737
5743
|
}
|
|
5738
5744
|
/**
|
|
@@ -5960,7 +5966,7 @@ var MD_TABLE = 'insert-table';
|
|
|
5960
5966
|
* Lists internal component
|
|
5961
5967
|
* @hidden
|
|
5962
5968
|
*/
|
|
5963
|
-
var MDLists = /** @
|
|
5969
|
+
var MDLists = /** @class */ (function () {
|
|
5964
5970
|
/**
|
|
5965
5971
|
* Constructor for creating the Lists plugin
|
|
5966
5972
|
* @hidden
|
|
@@ -6416,7 +6422,7 @@ var MDLists = /** @__PURE__ @class */ (function () {
|
|
|
6416
6422
|
* @hidden
|
|
6417
6423
|
* @deprecated
|
|
6418
6424
|
*/
|
|
6419
|
-
var MDFormats = /** @
|
|
6425
|
+
var MDFormats = /** @class */ (function () {
|
|
6420
6426
|
/**
|
|
6421
6427
|
* Constructor for creating the Formats plugin
|
|
6422
6428
|
* @hidden
|
|
@@ -6631,7 +6637,7 @@ var MDFormats = /** @__PURE__ @class */ (function () {
|
|
|
6631
6637
|
* @hidden
|
|
6632
6638
|
* @deprecated
|
|
6633
6639
|
*/
|
|
6634
|
-
var MDSelectionFormats = /** @
|
|
6640
|
+
var MDSelectionFormats = /** @class */ (function () {
|
|
6635
6641
|
function MDSelectionFormats(parent) {
|
|
6636
6642
|
extend(this, this, parent, true);
|
|
6637
6643
|
this.selection = this.parent.markdownSelection;
|
|
@@ -7081,7 +7087,7 @@ var selfClosingTags = [
|
|
|
7081
7087
|
/**
|
|
7082
7088
|
* `Undo` module is used to handle undo actions.
|
|
7083
7089
|
*/
|
|
7084
|
-
var UndoRedoCommands = /** @
|
|
7090
|
+
var UndoRedoCommands = /** @class */ (function () {
|
|
7085
7091
|
function UndoRedoCommands(parent, options) {
|
|
7086
7092
|
this.undoRedoStack = [];
|
|
7087
7093
|
this.parent = parent;
|
|
@@ -7262,7 +7268,7 @@ var UndoRedoCommands = /** @__PURE__ @class */ (function () {
|
|
|
7262
7268
|
* @hidden
|
|
7263
7269
|
* @deprecated
|
|
7264
7270
|
*/
|
|
7265
|
-
var MDLink = /** @
|
|
7271
|
+
var MDLink = /** @class */ (function () {
|
|
7266
7272
|
/**
|
|
7267
7273
|
* Constructor for creating the Formats plugin
|
|
7268
7274
|
* @hidden
|
|
@@ -7310,7 +7316,7 @@ var MDLink = /** @__PURE__ @class */ (function () {
|
|
|
7310
7316
|
* @hidden
|
|
7311
7317
|
* @deprecated
|
|
7312
7318
|
*/
|
|
7313
|
-
var MDTable = /** @
|
|
7319
|
+
var MDTable = /** @class */ (function () {
|
|
7314
7320
|
/**
|
|
7315
7321
|
* Constructor for creating the Formats plugin
|
|
7316
7322
|
* @hidden
|
|
@@ -7532,7 +7538,7 @@ var MDTable = /** @__PURE__ @class */ (function () {
|
|
|
7532
7538
|
* @hidden
|
|
7533
7539
|
* @deprecated
|
|
7534
7540
|
*/
|
|
7535
|
-
var ClearFormat = /** @
|
|
7541
|
+
var ClearFormat = /** @class */ (function () {
|
|
7536
7542
|
/**
|
|
7537
7543
|
* Constructor for creating the clear format plugin
|
|
7538
7544
|
* @hidden
|
|
@@ -7641,7 +7647,7 @@ var ClearFormat = /** @__PURE__ @class */ (function () {
|
|
|
7641
7647
|
* @hidden
|
|
7642
7648
|
* @deprecated
|
|
7643
7649
|
*/
|
|
7644
|
-
var MarkdownParser = /** @
|
|
7650
|
+
var MarkdownParser = /** @class */ (function () {
|
|
7645
7651
|
/**
|
|
7646
7652
|
* Constructor for creating the component
|
|
7647
7653
|
* @hidden
|
|
@@ -7720,25 +7726,25 @@ var MarkdownParser = /** @__PURE__ @class */ (function () {
|
|
|
7720
7726
|
return MarkdownParser;
|
|
7721
7727
|
}());
|
|
7722
7728
|
|
|
7723
|
-
var __extends$1 = (undefined && undefined.__extends) || (function () {
|
|
7724
|
-
var extendStatics = function (d, b) {
|
|
7725
|
-
extendStatics = Object.setPrototypeOf ||
|
|
7726
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7727
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7728
|
-
return extendStatics(d, b);
|
|
7729
|
-
};
|
|
7730
|
-
return function (d, b) {
|
|
7731
|
-
extendStatics(d, b);
|
|
7732
|
-
function __() { this.constructor = d; }
|
|
7733
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
7734
|
-
};
|
|
7735
|
-
})();
|
|
7729
|
+
var __extends$1 = (undefined && undefined.__extends) || (function () {
|
|
7730
|
+
var extendStatics = function (d, b) {
|
|
7731
|
+
extendStatics = Object.setPrototypeOf ||
|
|
7732
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7733
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7734
|
+
return extendStatics(d, b);
|
|
7735
|
+
};
|
|
7736
|
+
return function (d, b) {
|
|
7737
|
+
extendStatics(d, b);
|
|
7738
|
+
function __() { this.constructor = d; }
|
|
7739
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
7740
|
+
};
|
|
7741
|
+
})();
|
|
7736
7742
|
/**
|
|
7737
7743
|
* Markdown adapter
|
|
7738
7744
|
* @hidden
|
|
7739
7745
|
* @deprecated
|
|
7740
7746
|
*/
|
|
7741
|
-
var MarkdownFormatter = /** @
|
|
7747
|
+
var MarkdownFormatter = /** @class */ (function (_super) {
|
|
7742
7748
|
__extends$1(MarkdownFormatter, _super);
|
|
7743
7749
|
function MarkdownFormatter(options) {
|
|
7744
7750
|
var _this = _super.call(this) || this;
|
|
@@ -7781,7 +7787,7 @@ var MarkdownFormatter = /** @__PURE__ @class */ (function (_super) {
|
|
|
7781
7787
|
* @hidden
|
|
7782
7788
|
* @deprecated
|
|
7783
7789
|
*/
|
|
7784
|
-
var MarkdownRender = /** @
|
|
7790
|
+
var MarkdownRender = /** @class */ (function () {
|
|
7785
7791
|
/**
|
|
7786
7792
|
* Constructor for content renderer module
|
|
7787
7793
|
*/
|
|
@@ -7853,7 +7859,7 @@ var MarkdownRender = /** @__PURE__ @class */ (function () {
|
|
|
7853
7859
|
/**
|
|
7854
7860
|
* `MarkdownEditor` module is used to markdown editor
|
|
7855
7861
|
*/
|
|
7856
|
-
var MarkdownEditor = /** @
|
|
7862
|
+
var MarkdownEditor = /** @class */ (function () {
|
|
7857
7863
|
function MarkdownEditor(parent, serviceLocator) {
|
|
7858
7864
|
this.parent = parent;
|
|
7859
7865
|
this.locator = serviceLocator;
|
|
@@ -8084,7 +8090,7 @@ var CLEAR_TYPE = 'clear-type';
|
|
|
8084
8090
|
/**
|
|
8085
8091
|
* `Selection` module is used to handle RTE Selections.
|
|
8086
8092
|
*/
|
|
8087
|
-
var NodeSelection = /** @
|
|
8093
|
+
var NodeSelection = /** @class */ (function () {
|
|
8088
8094
|
function NodeSelection() {
|
|
8089
8095
|
this.startNodeName = [];
|
|
8090
8096
|
this.endNodeName = [];
|
|
@@ -8551,7 +8557,7 @@ var markerClassName = {
|
|
|
8551
8557
|
* @hidden
|
|
8552
8558
|
* @deprecated
|
|
8553
8559
|
*/
|
|
8554
|
-
var DOMNode = /** @
|
|
8560
|
+
var DOMNode = /** @class */ (function () {
|
|
8555
8561
|
/**
|
|
8556
8562
|
* Constructor for creating the DOMNode plugin
|
|
8557
8563
|
* @hidden
|
|
@@ -9208,7 +9214,7 @@ var DOMNode = /** @__PURE__ @class */ (function () {
|
|
|
9208
9214
|
* @hidden
|
|
9209
9215
|
* @deprecated
|
|
9210
9216
|
*/
|
|
9211
|
-
var Lists = /** @
|
|
9217
|
+
var Lists = /** @class */ (function () {
|
|
9212
9218
|
/**
|
|
9213
9219
|
* Constructor for creating the Lists plugin
|
|
9214
9220
|
* @hidden
|
|
@@ -9291,11 +9297,15 @@ var Lists = /** @__PURE__ @class */ (function () {
|
|
|
9291
9297
|
startNode = startNode.nodeName === 'BR' ? startNode.parentElement : startNode;
|
|
9292
9298
|
endNode = endNode.nodeName === 'BR' ? endNode.parentElement : endNode;
|
|
9293
9299
|
if (startNode === endNode && !isNullOrUndefined(closest(startNode, 'li')) &&
|
|
9294
|
-
startNode.textContent.trim() === '' && startNode.textContent.charCodeAt(0) === 65279)
|
|
9300
|
+
((startNode.textContent.trim() === '' && startNode.textContent.charCodeAt(0) === 65279) ||
|
|
9301
|
+
(startNode.textContent.length === 1 && startNode.textContent.charCodeAt(0) === 8203))) {
|
|
9295
9302
|
startNode.textContent = '';
|
|
9296
9303
|
}
|
|
9297
9304
|
if (startNode === endNode && startNode.textContent === '') {
|
|
9298
|
-
if (startNode.
|
|
9305
|
+
if (startNode.parentElement.tagName === 'LI' && endNode.parentElement.tagName === 'LI') {
|
|
9306
|
+
detach(startNode);
|
|
9307
|
+
}
|
|
9308
|
+
else if (startNode.closest('ul') || startNode.closest('ol')) {
|
|
9299
9309
|
var parentList = !isNullOrUndefined(startNode.closest('ul')) ? startNode.closest('ul') : startNode.closest('ol');
|
|
9300
9310
|
if (parentList.firstElementChild === startNode && !isNullOrUndefined(parentList.children[1]) &&
|
|
9301
9311
|
(parentList.children[1].tagName === 'OL' || parentList.children[1].tagName === 'UL')) {
|
|
@@ -9812,7 +9822,7 @@ var Lists = /** @__PURE__ @class */ (function () {
|
|
|
9812
9822
|
* Node appending methods.
|
|
9813
9823
|
* @hidden
|
|
9814
9824
|
*/
|
|
9815
|
-
var InsertMethods = /** @
|
|
9825
|
+
var InsertMethods = /** @class */ (function () {
|
|
9816
9826
|
function InsertMethods() {
|
|
9817
9827
|
}
|
|
9818
9828
|
/**
|
|
@@ -9870,7 +9880,7 @@ var InsertMethods = /** @__PURE__ @class */ (function () {
|
|
|
9870
9880
|
* @hidden
|
|
9871
9881
|
* @deprecated
|
|
9872
9882
|
*/
|
|
9873
|
-
var NodeCutter = /** @
|
|
9883
|
+
var NodeCutter = /** @class */ (function () {
|
|
9874
9884
|
function NodeCutter() {
|
|
9875
9885
|
this.position = -1;
|
|
9876
9886
|
this.nodeSelection = new NodeSelection();
|
|
@@ -10052,7 +10062,7 @@ var NodeCutter = /** @__PURE__ @class */ (function () {
|
|
|
10052
10062
|
* @hidden
|
|
10053
10063
|
* @deprecated
|
|
10054
10064
|
*/
|
|
10055
|
-
var Formats = /** @
|
|
10065
|
+
var Formats = /** @class */ (function () {
|
|
10056
10066
|
/**
|
|
10057
10067
|
* Constructor for creating the Formats plugin
|
|
10058
10068
|
* @hidden
|
|
@@ -10336,7 +10346,7 @@ var Formats = /** @__PURE__ @class */ (function () {
|
|
|
10336
10346
|
* @hidden
|
|
10337
10347
|
* @deprecated
|
|
10338
10348
|
*/
|
|
10339
|
-
var InsertHtml = /** @
|
|
10349
|
+
var InsertHtml = /** @class */ (function () {
|
|
10340
10350
|
function InsertHtml() {
|
|
10341
10351
|
}
|
|
10342
10352
|
InsertHtml.Insert = function (docElement, insertNode, editNode, isExternal) {
|
|
@@ -10363,7 +10373,7 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
10363
10373
|
var isCursor = range.startOffset === range.endOffset && range.startOffset === 0 &&
|
|
10364
10374
|
range.startContainer === range.endContainer;
|
|
10365
10375
|
var isCollapsed = range.collapsed;
|
|
10366
|
-
var nodes = this.getNodeCollection(range, nodeSelection);
|
|
10376
|
+
var nodes = this.getNodeCollection(range, nodeSelection, node);
|
|
10367
10377
|
var closestParentNode = (node.nodeName.toLowerCase() === 'table') ? this.closestEle(nodes[0].parentNode, editNode) : nodes[0];
|
|
10368
10378
|
if (isExternal || (!isNullOrUndefined(node) && !isNullOrUndefined(node.classList) &&
|
|
10369
10379
|
node.classList.contains('pasteContent'))) {
|
|
@@ -10588,9 +10598,10 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
10588
10598
|
}
|
|
10589
10599
|
};
|
|
10590
10600
|
InsertHtml.placeCursorEnd = function (lastSelectionNode, node, nodeSelection, docElement, editNode) {
|
|
10591
|
-
lastSelectionNode = lastSelectionNode.nodeName === 'BR' ? lastSelectionNode.previousSibling
|
|
10601
|
+
lastSelectionNode = lastSelectionNode.nodeName === 'BR' ? (isNullOrUndefined(lastSelectionNode.previousSibling) ? lastSelectionNode.parentNode
|
|
10602
|
+
: lastSelectionNode.previousSibling) : lastSelectionNode;
|
|
10592
10603
|
while (!isNullOrUndefined(lastSelectionNode) && lastSelectionNode.nodeName !== '#text' && lastSelectionNode.nodeName !== 'IMG' &&
|
|
10593
|
-
lastSelectionNode.nodeName !== 'BR') {
|
|
10604
|
+
lastSelectionNode.nodeName !== 'BR' && lastSelectionNode.nodeName !== 'HR') {
|
|
10594
10605
|
lastSelectionNode = lastSelectionNode.lastChild;
|
|
10595
10606
|
}
|
|
10596
10607
|
lastSelectionNode = isNullOrUndefined(lastSelectionNode) ? node : lastSelectionNode;
|
|
@@ -10602,10 +10613,11 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
10602
10613
|
}
|
|
10603
10614
|
this.removeEmptyElements(editNode);
|
|
10604
10615
|
};
|
|
10605
|
-
InsertHtml.getNodeCollection = function (range, nodeSelection) {
|
|
10616
|
+
InsertHtml.getNodeCollection = function (range, nodeSelection, node) {
|
|
10606
10617
|
var nodes = [];
|
|
10607
|
-
if (range.startOffset === range.endOffset && range.startContainer === range.endContainer
|
|
10608
|
-
range.startContainer.nodeName === 'TD'
|
|
10618
|
+
if (range.startOffset === range.endOffset && range.startContainer === range.endContainer
|
|
10619
|
+
&& (range.startContainer.nodeName === 'TD' || (range.startContainer.nodeType !== 3 &&
|
|
10620
|
+
node.classList && node.classList.contains('pasteContent')))) {
|
|
10609
10621
|
nodes.push(range.startContainer.childNodes[range.endOffset]);
|
|
10610
10622
|
}
|
|
10611
10623
|
else {
|
|
@@ -10644,10 +10656,12 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
10644
10656
|
lastSelectionNode.classList.add('lastNode');
|
|
10645
10657
|
editNode.innerHTML = updateTextNode$1(editNode.innerHTML);
|
|
10646
10658
|
lastSelectionNode = editNode.querySelector('.lastNode');
|
|
10647
|
-
|
|
10648
|
-
|
|
10649
|
-
|
|
10650
|
-
lastSelectionNode.
|
|
10659
|
+
if (!isNullOrUndefined(lastSelectionNode)) {
|
|
10660
|
+
this.placeCursorEnd(lastSelectionNode, node, nodeSelection, docElement, editNode);
|
|
10661
|
+
lastSelectionNode.classList.remove('lastNode');
|
|
10662
|
+
if (lastSelectionNode.classList.length === 0) {
|
|
10663
|
+
lastSelectionNode.removeAttribute('class');
|
|
10664
|
+
}
|
|
10651
10665
|
}
|
|
10652
10666
|
};
|
|
10653
10667
|
InsertHtml.imageFocus = function (node, nodeSelection, docElement) {
|
|
@@ -10724,7 +10738,7 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
10724
10738
|
* @hidden
|
|
10725
10739
|
* @deprecated
|
|
10726
10740
|
*/
|
|
10727
|
-
var LinkCommand = /** @
|
|
10741
|
+
var LinkCommand = /** @class */ (function () {
|
|
10728
10742
|
/**
|
|
10729
10743
|
* Constructor for creating the Formats plugin
|
|
10730
10744
|
* @hidden
|
|
@@ -10841,17 +10855,17 @@ var LinkCommand = /** @__PURE__ @class */ (function () {
|
|
|
10841
10855
|
var check = true;
|
|
10842
10856
|
currentNode = txtArray[i];
|
|
10843
10857
|
while (check === true) {
|
|
10844
|
-
if (currentNode.
|
|
10845
|
-
var anchorEle = currentNode.
|
|
10846
|
-
currentNode.
|
|
10847
|
-
currentNode.
|
|
10858
|
+
if (currentNode.parentNode.nodeName === 'A') {
|
|
10859
|
+
var anchorEle = currentNode.parentNode;
|
|
10860
|
+
currentNode.parentNode.parentNode.insertBefore(anchorEle.firstChild, anchorEle);
|
|
10861
|
+
currentNode.parentNode.removeChild(anchorEle);
|
|
10848
10862
|
}
|
|
10849
|
-
if (this.isBlockNode(currentNode.
|
|
10863
|
+
if (this.isBlockNode(currentNode.parentNode) || txtArray.length === 0 || i === 0 || i === txtArray.length - 1) {
|
|
10850
10864
|
inlineNodes[i] = currentNode;
|
|
10851
10865
|
check = false;
|
|
10852
10866
|
}
|
|
10853
10867
|
else {
|
|
10854
|
-
currentNode = currentNode.
|
|
10868
|
+
currentNode = currentNode.parentNode;
|
|
10855
10869
|
}
|
|
10856
10870
|
}
|
|
10857
10871
|
}
|
|
@@ -11010,7 +11024,7 @@ var LinkCommand = /** @__PURE__ @class */ (function () {
|
|
|
11010
11024
|
* @hidden
|
|
11011
11025
|
* @deprecated
|
|
11012
11026
|
*/
|
|
11013
|
-
var Alignments = /** @
|
|
11027
|
+
var Alignments = /** @class */ (function () {
|
|
11014
11028
|
/**
|
|
11015
11029
|
* Constructor for creating the Formats plugin
|
|
11016
11030
|
* @hidden
|
|
@@ -11108,7 +11122,7 @@ var Alignments = /** @__PURE__ @class */ (function () {
|
|
|
11108
11122
|
* @hidden
|
|
11109
11123
|
* @deprecated
|
|
11110
11124
|
*/
|
|
11111
|
-
var Indents = /** @
|
|
11125
|
+
var Indents = /** @class */ (function () {
|
|
11112
11126
|
/**
|
|
11113
11127
|
* Constructor for creating the Formats plugin
|
|
11114
11128
|
* @hidden
|
|
@@ -11217,7 +11231,7 @@ var CLASS_IMAGE_INLINE = 'e-imginline';
|
|
|
11217
11231
|
* @hidden
|
|
11218
11232
|
* @deprecated
|
|
11219
11233
|
*/
|
|
11220
|
-
var ImageCommand = /** @
|
|
11234
|
+
var ImageCommand = /** @class */ (function () {
|
|
11221
11235
|
/**
|
|
11222
11236
|
* Constructor for creating the Formats plugin
|
|
11223
11237
|
* @hidden
|
|
@@ -11308,8 +11322,9 @@ var ImageCommand = /** @__PURE__ @class */ (function () {
|
|
|
11308
11322
|
}
|
|
11309
11323
|
}
|
|
11310
11324
|
if (e.callBack && (isNullOrUndefined(e.selector) || !isNullOrUndefined(e.selector) && e.selector !== 'pasteCleanupModule')) {
|
|
11325
|
+
var selectedNode = this.parent.nodeSelection.getSelectedNodes(this.parent.currentDocument)[0];
|
|
11311
11326
|
var imgElm_1 = e.value === 'Replace' ? e.item.selectParent[0] :
|
|
11312
|
-
|
|
11327
|
+
(Browser.isIE ? selectedNode.previousSibling : selectedNode.previousElementSibling);
|
|
11313
11328
|
imgElm_1.addEventListener('load', function () {
|
|
11314
11329
|
e.callBack({
|
|
11315
11330
|
requestType: 'Image',
|
|
@@ -11548,7 +11563,7 @@ var ImageCommand = /** @__PURE__ @class */ (function () {
|
|
|
11548
11563
|
* @hidden
|
|
11549
11564
|
* @deprecated
|
|
11550
11565
|
*/
|
|
11551
|
-
var TableCommand = /** @
|
|
11566
|
+
var TableCommand = /** @class */ (function () {
|
|
11552
11567
|
/**
|
|
11553
11568
|
* Constructor for creating the Formats plugin
|
|
11554
11569
|
* @hidden
|
|
@@ -11580,7 +11595,8 @@ var TableCommand = /** @__PURE__ @class */ (function () {
|
|
|
11580
11595
|
if (!isNullOrUndefined(e.item.width.maxWidth)) {
|
|
11581
11596
|
table.style.maxWidth = this.calculateStyleValue(e.item.width.maxWidth);
|
|
11582
11597
|
}
|
|
11583
|
-
var tdWid = parseInt(e.item.width.width, 10)
|
|
11598
|
+
var tdWid = parseInt(e.item.width.width, 10) > 100 ?
|
|
11599
|
+
100 / e.item.columns : parseInt(e.item.width.width, 10) / e.item.columns;
|
|
11584
11600
|
for (var i = 0; i < e.item.row; i++) {
|
|
11585
11601
|
var row = createElement('tr');
|
|
11586
11602
|
for (var j = 0; j < e.item.columns; j++) {
|
|
@@ -11864,7 +11880,7 @@ var TableCommand = /** @__PURE__ @class */ (function () {
|
|
|
11864
11880
|
* @hidden
|
|
11865
11881
|
* @deprecated
|
|
11866
11882
|
*/
|
|
11867
|
-
var IsFormatted = /** @
|
|
11883
|
+
var IsFormatted = /** @class */ (function () {
|
|
11868
11884
|
function IsFormatted() {
|
|
11869
11885
|
}
|
|
11870
11886
|
/**
|
|
@@ -12083,7 +12099,7 @@ var IsFormatted = /** @__PURE__ @class */ (function () {
|
|
|
12083
12099
|
/**
|
|
12084
12100
|
* `Selection` module is used to handle RTE Selections.
|
|
12085
12101
|
*/
|
|
12086
|
-
var SelectionCommands = /** @
|
|
12102
|
+
var SelectionCommands = /** @class */ (function () {
|
|
12087
12103
|
function SelectionCommands() {
|
|
12088
12104
|
}
|
|
12089
12105
|
/**
|
|
@@ -12098,6 +12114,7 @@ var SelectionCommands = /** @__PURE__ @class */ (function () {
|
|
|
12098
12114
|
if (format === 'backgroundcolor' && value === '') {
|
|
12099
12115
|
value = 'transparent';
|
|
12100
12116
|
}
|
|
12117
|
+
var preventRestore = false;
|
|
12101
12118
|
var domSelection = new NodeSelection();
|
|
12102
12119
|
var nodeCutter = new NodeCutter();
|
|
12103
12120
|
var isFormatted = new IsFormatted();
|
|
@@ -12114,10 +12131,23 @@ var SelectionCommands = /** @__PURE__ @class */ (function () {
|
|
|
12114
12131
|
isCollapsed = true;
|
|
12115
12132
|
range = nodeCutter.GetCursorRange(docElement, range, nodes[0]);
|
|
12116
12133
|
}
|
|
12134
|
+
else if (range.startContainer.nodeType === 3 && range.startContainer.parentElement.childElementCount > 0 &&
|
|
12135
|
+
range.startOffset > 0 && range.startContainer.parentElement.firstElementChild.tagName.toLowerCase() !== 'br') {
|
|
12136
|
+
isCollapsed = true;
|
|
12137
|
+
range = nodeCutter.GetCursorRange(docElement, range, range.startContainer);
|
|
12138
|
+
nodes.push(range.startContainer);
|
|
12139
|
+
}
|
|
12117
12140
|
else if (range.startContainer.nodeName.toLowerCase() !== 'td') {
|
|
12118
12141
|
var cursorNode = this.insertCursorNode(docElement, domSelection, range, isFormatted, nodeCutter, format, value, endNode);
|
|
12119
12142
|
domSelection.endContainer = domSelection.startContainer = domSelection.getNodeArray(cursorNode, true);
|
|
12120
|
-
|
|
12143
|
+
var childNodes = cursorNode.nodeName === 'BR' && cursorNode.parentNode.childNodes;
|
|
12144
|
+
if (!isNullOrUndefined(childNodes) && childNodes.length === 1 && childNodes[0].nodeName === 'BR' && nodes.length === 0) {
|
|
12145
|
+
domSelection.setSelectionText(docElement, range.startContainer, range.endContainer, 0, 0);
|
|
12146
|
+
preventRestore = true;
|
|
12147
|
+
}
|
|
12148
|
+
else {
|
|
12149
|
+
domSelection.endOffset = domSelection.startOffset = 1;
|
|
12150
|
+
}
|
|
12121
12151
|
}
|
|
12122
12152
|
}
|
|
12123
12153
|
isCursor = range.collapsed;
|
|
@@ -12148,7 +12178,9 @@ var SelectionCommands = /** @__PURE__ @class */ (function () {
|
|
|
12148
12178
|
if (isIDevice$1()) {
|
|
12149
12179
|
setEditFrameFocus(endNode, selector);
|
|
12150
12180
|
}
|
|
12151
|
-
|
|
12181
|
+
if (!preventRestore) {
|
|
12182
|
+
save.restore();
|
|
12183
|
+
}
|
|
12152
12184
|
if (isSubSup) {
|
|
12153
12185
|
this.applyFormat(docElement, format, endNode);
|
|
12154
12186
|
}
|
|
@@ -12156,17 +12188,32 @@ var SelectionCommands = /** @__PURE__ @class */ (function () {
|
|
|
12156
12188
|
};
|
|
12157
12189
|
SelectionCommands.insertCursorNode = function (docElement, domSelection, range, isFormatted, nodeCutter, format, value, endNode) {
|
|
12158
12190
|
var cursorNodes = domSelection.getNodeCollection(range);
|
|
12159
|
-
var cursorFormat = (cursorNodes.length > 0) ?
|
|
12191
|
+
var cursorFormat = (cursorNodes.length > 0) ?
|
|
12192
|
+
(cursorNodes.length > 1 && range.startContainer === range.endContainer) ?
|
|
12193
|
+
this.getCursorFormat(isFormatted, cursorNodes, format, endNode) :
|
|
12194
|
+
isFormatted.getFormattedNode(cursorNodes[0], format, endNode) : null;
|
|
12160
12195
|
var cursorNode = null;
|
|
12161
12196
|
if (cursorFormat) {
|
|
12162
12197
|
cursorNode = cursorNodes[0];
|
|
12163
12198
|
InsertMethods.unwrap(cursorFormat);
|
|
12164
12199
|
}
|
|
12165
12200
|
else {
|
|
12201
|
+
if (cursorNodes.length > 1 && range.startOffset > 0 && (cursorNodes[0].firstElementChild &&
|
|
12202
|
+
cursorNodes[0].firstElementChild.tagName.toLowerCase() === 'br')) {
|
|
12203
|
+
cursorNodes[0].innerHTML = '';
|
|
12204
|
+
}
|
|
12166
12205
|
cursorNode = this.getInsertNode(docElement, range, format, value).firstChild;
|
|
12167
12206
|
}
|
|
12168
12207
|
return cursorNode;
|
|
12169
12208
|
};
|
|
12209
|
+
SelectionCommands.getCursorFormat = function (isFormatted, cursorNodes, format, endNode) {
|
|
12210
|
+
var currentNode;
|
|
12211
|
+
for (var index = 0; index < cursorNodes.length; index++) {
|
|
12212
|
+
currentNode = cursorNodes[index].lastElementChild ?
|
|
12213
|
+
cursorNodes[index].lastElementChild : cursorNodes[index];
|
|
12214
|
+
}
|
|
12215
|
+
return isFormatted.getFormattedNode(currentNode, format, endNode);
|
|
12216
|
+
};
|
|
12170
12217
|
SelectionCommands.removeFormat = function (nodes, index, formatNode, isCursor, isFormat, isFontStyle, range, nodeCutter, format, value, domSelection) {
|
|
12171
12218
|
var splitNode = null;
|
|
12172
12219
|
if (!(range.startContainer === range.endContainer && range.startOffset === 0
|
|
@@ -12420,7 +12467,7 @@ var SelectionCommands = /** @__PURE__ @class */ (function () {
|
|
|
12420
12467
|
* @hidden
|
|
12421
12468
|
* @deprecated
|
|
12422
12469
|
*/
|
|
12423
|
-
var SelectionBasedExec = /** @
|
|
12470
|
+
var SelectionBasedExec = /** @class */ (function () {
|
|
12424
12471
|
/**
|
|
12425
12472
|
* Constructor for creating the Formats plugin
|
|
12426
12473
|
* @hidden
|
|
@@ -12466,7 +12513,7 @@ var SelectionBasedExec = /** @__PURE__ @class */ (function () {
|
|
|
12466
12513
|
* @hidden
|
|
12467
12514
|
* @deprecated
|
|
12468
12515
|
*/
|
|
12469
|
-
var InsertHtmlExec = /** @
|
|
12516
|
+
var InsertHtmlExec = /** @class */ (function () {
|
|
12470
12517
|
/**
|
|
12471
12518
|
* Constructor for creating the Formats plugin
|
|
12472
12519
|
* @hidden
|
|
@@ -12511,7 +12558,7 @@ var InsertHtmlExec = /** @__PURE__ @class */ (function () {
|
|
|
12511
12558
|
/**
|
|
12512
12559
|
* `Clear Format` module is used to handle Clear Format.
|
|
12513
12560
|
*/
|
|
12514
|
-
var ClearFormat$1 = /** @
|
|
12561
|
+
var ClearFormat$1 = /** @class */ (function () {
|
|
12515
12562
|
function ClearFormat() {
|
|
12516
12563
|
}
|
|
12517
12564
|
/**
|
|
@@ -12734,7 +12781,7 @@ var ClearFormat$1 = /** @__PURE__ @class */ (function () {
|
|
|
12734
12781
|
* @hidden
|
|
12735
12782
|
* @deprecated
|
|
12736
12783
|
*/
|
|
12737
|
-
var ClearFormatExec = /** @
|
|
12784
|
+
var ClearFormatExec = /** @class */ (function () {
|
|
12738
12785
|
/**
|
|
12739
12786
|
* Constructor for creating the Formats plugin
|
|
12740
12787
|
* @hidden
|
|
@@ -12776,7 +12823,7 @@ var ClearFormatExec = /** @__PURE__ @class */ (function () {
|
|
|
12776
12823
|
/**
|
|
12777
12824
|
* `Undo` module is used to handle undo actions.
|
|
12778
12825
|
*/
|
|
12779
|
-
var UndoRedoManager = /** @
|
|
12826
|
+
var UndoRedoManager = /** @class */ (function () {
|
|
12780
12827
|
function UndoRedoManager(parent, options) {
|
|
12781
12828
|
this.undoRedoStack = [];
|
|
12782
12829
|
this.parent = parent;
|
|
@@ -12963,7 +13010,7 @@ var UndoRedoManager = /** @__PURE__ @class */ (function () {
|
|
|
12963
13010
|
* @hidden
|
|
12964
13011
|
* @deprecated
|
|
12965
13012
|
*/
|
|
12966
|
-
var MsWordPaste = /** @
|
|
13013
|
+
var MsWordPaste = /** @class */ (function () {
|
|
12967
13014
|
function MsWordPaste(parent) {
|
|
12968
13015
|
this.olData = [
|
|
12969
13016
|
'decimal',
|
|
@@ -13532,18 +13579,34 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
|
|
|
13532
13579
|
};
|
|
13533
13580
|
MsWordPaste.prototype.getListContent = function (elem) {
|
|
13534
13581
|
var pushContent = '';
|
|
13535
|
-
|
|
13536
|
-
|
|
13537
|
-
|
|
13582
|
+
var firstChild = elem.firstElementChild;
|
|
13583
|
+
if (firstChild.textContent.trim() === '' && !isNullOrUndefined(firstChild.firstElementChild) &&
|
|
13584
|
+
firstChild.firstElementChild.nodeName === 'IMG') {
|
|
13538
13585
|
pushContent = elem.innerHTML.trim();
|
|
13539
13586
|
this.listContents.push('');
|
|
13540
13587
|
this.listContents.push(pushContent);
|
|
13541
13588
|
}
|
|
13542
13589
|
else {
|
|
13543
|
-
|
|
13544
|
-
|
|
13590
|
+
var styleNodes = ['b', 'em'];
|
|
13591
|
+
if (firstChild.childNodes.length > 0 && (firstChild.querySelectorAll('b').length > 0
|
|
13592
|
+
|| firstChild.querySelectorAll('em').length > 0)) {
|
|
13593
|
+
for (var i = 0; i < firstChild.childNodes.length; i++) {
|
|
13594
|
+
var nodeName = firstChild.childNodes[i].nodeName.toLowerCase();
|
|
13595
|
+
if (firstChild.childNodes[i].textContent.trim().length > 1 && styleNodes.indexOf(nodeName) !== -1) {
|
|
13596
|
+
pushContent = '<' + nodeName + '>' + firstChild.childNodes[i].textContent + '</' + nodeName + '>';
|
|
13597
|
+
this.listContents.push(pushContent);
|
|
13598
|
+
}
|
|
13599
|
+
else if (firstChild.childNodes[i].textContent.trim().length === 1) {
|
|
13600
|
+
this.listContents.push(firstChild.childNodes[i].textContent.trim());
|
|
13601
|
+
}
|
|
13602
|
+
}
|
|
13603
|
+
}
|
|
13604
|
+
else {
|
|
13605
|
+
pushContent = firstChild.textContent.trim();
|
|
13606
|
+
this.listContents.push(pushContent);
|
|
13607
|
+
}
|
|
13545
13608
|
}
|
|
13546
|
-
detach(
|
|
13609
|
+
detach(firstChild);
|
|
13547
13610
|
this.listContents.push(elem.innerHTML);
|
|
13548
13611
|
};
|
|
13549
13612
|
return MsWordPaste;
|
|
@@ -13554,7 +13617,7 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
|
|
|
13554
13617
|
* @hidden
|
|
13555
13618
|
* @deprecated
|
|
13556
13619
|
*/
|
|
13557
|
-
var InsertTextExec = /** @
|
|
13620
|
+
var InsertTextExec = /** @class */ (function () {
|
|
13558
13621
|
/**
|
|
13559
13622
|
* Constructor for creating the InsertText plugin
|
|
13560
13623
|
* @hidden
|
|
@@ -13588,7 +13651,7 @@ var InsertTextExec = /** @__PURE__ @class */ (function () {
|
|
|
13588
13651
|
* @hidden
|
|
13589
13652
|
* @deprecated
|
|
13590
13653
|
*/
|
|
13591
|
-
var EditorManager = /** @
|
|
13654
|
+
var EditorManager = /** @class */ (function () {
|
|
13592
13655
|
/**
|
|
13593
13656
|
* Constructor for creating the component
|
|
13594
13657
|
* @hidden
|
|
@@ -13727,25 +13790,25 @@ var EditorManager = /** @__PURE__ @class */ (function () {
|
|
|
13727
13790
|
return EditorManager;
|
|
13728
13791
|
}());
|
|
13729
13792
|
|
|
13730
|
-
var __extends$2 = (undefined && undefined.__extends) || (function () {
|
|
13731
|
-
var extendStatics = function (d, b) {
|
|
13732
|
-
extendStatics = Object.setPrototypeOf ||
|
|
13733
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
13734
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
13735
|
-
return extendStatics(d, b);
|
|
13736
|
-
};
|
|
13737
|
-
return function (d, b) {
|
|
13738
|
-
extendStatics(d, b);
|
|
13739
|
-
function __() { this.constructor = d; }
|
|
13740
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13741
|
-
};
|
|
13742
|
-
})();
|
|
13793
|
+
var __extends$2 = (undefined && undefined.__extends) || (function () {
|
|
13794
|
+
var extendStatics = function (d, b) {
|
|
13795
|
+
extendStatics = Object.setPrototypeOf ||
|
|
13796
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
13797
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
13798
|
+
return extendStatics(d, b);
|
|
13799
|
+
};
|
|
13800
|
+
return function (d, b) {
|
|
13801
|
+
extendStatics(d, b);
|
|
13802
|
+
function __() { this.constructor = d; }
|
|
13803
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13804
|
+
};
|
|
13805
|
+
})();
|
|
13743
13806
|
/**
|
|
13744
13807
|
* HTML adapter
|
|
13745
13808
|
* @hidden
|
|
13746
13809
|
* @deprecated
|
|
13747
13810
|
*/
|
|
13748
|
-
var HTMLFormatter = /** @
|
|
13811
|
+
var HTMLFormatter = /** @class */ (function (_super) {
|
|
13749
13812
|
__extends$2(HTMLFormatter, _super);
|
|
13750
13813
|
function HTMLFormatter(options) {
|
|
13751
13814
|
var _this = _super.call(this) || this;
|
|
@@ -13801,7 +13864,7 @@ var statusCollection = {
|
|
|
13801
13864
|
createlink: false,
|
|
13802
13865
|
insertcode: false
|
|
13803
13866
|
};
|
|
13804
|
-
var ToolbarStatus = /** @
|
|
13867
|
+
var ToolbarStatus = /** @class */ (function () {
|
|
13805
13868
|
function ToolbarStatus() {
|
|
13806
13869
|
}
|
|
13807
13870
|
/**
|
|
@@ -14050,7 +14113,7 @@ var ToolbarStatus = /** @__PURE__ @class */ (function () {
|
|
|
14050
14113
|
/**
|
|
14051
14114
|
* HtmlToolbarStatus module for refresh the toolbar status
|
|
14052
14115
|
*/
|
|
14053
|
-
var HtmlToolbarStatus = /** @
|
|
14116
|
+
var HtmlToolbarStatus = /** @class */ (function () {
|
|
14054
14117
|
function HtmlToolbarStatus(parent) {
|
|
14055
14118
|
this.parent = parent;
|
|
14056
14119
|
this.addEventListener();
|
|
@@ -14086,7 +14149,7 @@ var HtmlToolbarStatus = /** @__PURE__ @class */ (function () {
|
|
|
14086
14149
|
* @hidden
|
|
14087
14150
|
* @deprecated
|
|
14088
14151
|
*/
|
|
14089
|
-
var ContentRender = /** @
|
|
14152
|
+
var ContentRender = /** @class */ (function () {
|
|
14090
14153
|
/**
|
|
14091
14154
|
* Constructor for content renderer module
|
|
14092
14155
|
*/
|
|
@@ -14161,19 +14224,19 @@ var ContentRender = /** @__PURE__ @class */ (function () {
|
|
|
14161
14224
|
return ContentRender;
|
|
14162
14225
|
}());
|
|
14163
14226
|
|
|
14164
|
-
var __extends$3 = (undefined && undefined.__extends) || (function () {
|
|
14165
|
-
var extendStatics = function (d, b) {
|
|
14166
|
-
extendStatics = Object.setPrototypeOf ||
|
|
14167
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
14168
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
14169
|
-
return extendStatics(d, b);
|
|
14170
|
-
};
|
|
14171
|
-
return function (d, b) {
|
|
14172
|
-
extendStatics(d, b);
|
|
14173
|
-
function __() { this.constructor = d; }
|
|
14174
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14175
|
-
};
|
|
14176
|
-
})();
|
|
14227
|
+
var __extends$3 = (undefined && undefined.__extends) || (function () {
|
|
14228
|
+
var extendStatics = function (d, b) {
|
|
14229
|
+
extendStatics = Object.setPrototypeOf ||
|
|
14230
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
14231
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
14232
|
+
return extendStatics(d, b);
|
|
14233
|
+
};
|
|
14234
|
+
return function (d, b) {
|
|
14235
|
+
extendStatics(d, b);
|
|
14236
|
+
function __() { this.constructor = d; }
|
|
14237
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14238
|
+
};
|
|
14239
|
+
})();
|
|
14177
14240
|
/* tslint:disable */
|
|
14178
14241
|
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: 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;margin: 5px auto;margin-left: 5px;margin-right: 5px;max-width: calc(100% - (2 * 5px));position: relativetext-align: center;vertical-align: bottom;}\n .e-img-inner {box-sizing: border-box;display: block;font-size: 16px;font-weight: initial;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;max-width: calc(100% - (2 * 5px));vertical-align: bottom;}\n .e-imgbreak {border: 0;cursor: pointer;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::selection { background: transparent;color: transparent;}\n span.e-rte-imageboxmark { width: 10px; height: 10px; position: absolute; display: block; 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; 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 .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;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;font-size: inherit;line-height: inherit;margin: 0 0 10px;overflow: visible;padding: 0;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; 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; border-top: 6px solid transparent; content: ''; display: block; height: 0; position: absolute; right: 4px; top: 4px; width: 20px; }\n .e-reicon::after { border-bottom: 6px solid transparent; border-left: 6px solid; border-top: 6px solid transparent; content: ''; display: block; 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>";
|
|
14179
14242
|
/* tslint:enable */
|
|
@@ -14182,7 +14245,7 @@ var IFRAMEHEADER = "\n<!DOCTYPE html> \n <html>\n <head>\n
|
|
|
14182
14245
|
* @hidden
|
|
14183
14246
|
* @deprecated
|
|
14184
14247
|
*/
|
|
14185
|
-
var IframeContentRender = /** @
|
|
14248
|
+
var IframeContentRender = /** @class */ (function (_super) {
|
|
14186
14249
|
__extends$3(IframeContentRender, _super);
|
|
14187
14250
|
function IframeContentRender() {
|
|
14188
14251
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -14251,7 +14314,7 @@ var IframeContentRender = /** @__PURE__ @class */ (function (_super) {
|
|
|
14251
14314
|
/**
|
|
14252
14315
|
* XhtmlValidation module called when set enableXhtml as true
|
|
14253
14316
|
*/
|
|
14254
|
-
var XhtmlValidation = /** @
|
|
14317
|
+
var XhtmlValidation = /** @class */ (function () {
|
|
14255
14318
|
function XhtmlValidation(parent) {
|
|
14256
14319
|
this.parent = parent;
|
|
14257
14320
|
this.addEventListener();
|
|
@@ -14428,7 +14491,7 @@ var XhtmlValidation = /** @__PURE__ @class */ (function () {
|
|
|
14428
14491
|
/**
|
|
14429
14492
|
* `HtmlEditor` module is used to HTML editor
|
|
14430
14493
|
*/
|
|
14431
|
-
var HtmlEditor = /** @
|
|
14494
|
+
var HtmlEditor = /** @class */ (function () {
|
|
14432
14495
|
function HtmlEditor(parent, serviceLocator) {
|
|
14433
14496
|
this.rangeCollection = [];
|
|
14434
14497
|
this.parent = parent;
|
|
@@ -14810,7 +14873,7 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
|
|
|
14810
14873
|
/**
|
|
14811
14874
|
* PasteCleanup module called when pasting content in RichTextEditor
|
|
14812
14875
|
*/
|
|
14813
|
-
var PasteCleanup = /** @
|
|
14876
|
+
var PasteCleanup = /** @class */ (function () {
|
|
14814
14877
|
function PasteCleanup(parent, serviceLocator) {
|
|
14815
14878
|
this.inlineNode = ['a', 'abbr', 'acronym', 'audio', 'b', 'bdi', 'bdo', 'big', 'br', 'button',
|
|
14816
14879
|
'canvas', 'cite', 'code', 'data', 'datalist', 'del', 'dfn', 'em', 'embed', 'font', 'i', 'iframe', 'img', 'input',
|
|
@@ -15624,7 +15687,7 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
|
|
|
15624
15687
|
/**
|
|
15625
15688
|
* `Resize` module is used to resize the editor
|
|
15626
15689
|
*/
|
|
15627
|
-
var Resize = /** @
|
|
15690
|
+
var Resize = /** @class */ (function () {
|
|
15628
15691
|
function Resize(parent) {
|
|
15629
15692
|
this.parent = parent;
|
|
15630
15693
|
this.addEventListener();
|
|
@@ -15743,7 +15806,7 @@ var Resize = /** @__PURE__ @class */ (function () {
|
|
|
15743
15806
|
/**
|
|
15744
15807
|
* `FileManager` module is used to display the directories and images inside the editor.
|
|
15745
15808
|
*/
|
|
15746
|
-
var FileManager$1 = /** @
|
|
15809
|
+
var FileManager$1 = /** @class */ (function () {
|
|
15747
15810
|
function FileManager$$1(parent, locator) {
|
|
15748
15811
|
FileManager.Inject(ContextMenu, DetailsView, NavigationPane, Toolbar$1);
|
|
15749
15812
|
this.parent = parent;
|
|
@@ -15970,7 +16033,7 @@ var FileManager$1 = /** @__PURE__ @class */ (function () {
|
|
|
15970
16033
|
/**
|
|
15971
16034
|
* `FullScreen` module is used to maximize and minimize screen
|
|
15972
16035
|
*/
|
|
15973
|
-
var FullScreen = /** @
|
|
16036
|
+
var FullScreen = /** @class */ (function () {
|
|
15974
16037
|
function FullScreen(parent) {
|
|
15975
16038
|
this.parent = parent;
|
|
15976
16039
|
this.addEventListener();
|
|
@@ -16159,7 +16222,7 @@ function setAttributes(htmlAttributes, rte, isFrame, initial) {
|
|
|
16159
16222
|
* @hidden
|
|
16160
16223
|
* @deprecated
|
|
16161
16224
|
*/
|
|
16162
|
-
var Render = /** @
|
|
16225
|
+
var Render = /** @class */ (function () {
|
|
16163
16226
|
/**
|
|
16164
16227
|
* Constructor for render module
|
|
16165
16228
|
*/
|
|
@@ -16232,7 +16295,7 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
16232
16295
|
/**
|
|
16233
16296
|
* `Link` module is used to handle undo actions.
|
|
16234
16297
|
*/
|
|
16235
|
-
var Link = /** @
|
|
16298
|
+
var Link = /** @class */ (function () {
|
|
16236
16299
|
function Link(parent, serviceLocator) {
|
|
16237
16300
|
this.parent = parent;
|
|
16238
16301
|
this.rteID = parent.element.id;
|
|
@@ -16685,7 +16748,7 @@ var Link = /** @__PURE__ @class */ (function () {
|
|
|
16685
16748
|
/**
|
|
16686
16749
|
* `Image` module is used to handle image actions.
|
|
16687
16750
|
*/
|
|
16688
|
-
var Image = /** @
|
|
16751
|
+
var Image = /** @class */ (function () {
|
|
16689
16752
|
function Image(parent, serviceLocator) {
|
|
16690
16753
|
this.isImgUploaded = false;
|
|
16691
16754
|
this.pageX = null;
|
|
@@ -16705,6 +16768,7 @@ var Image = /** @__PURE__ @class */ (function () {
|
|
|
16705
16768
|
this.parent.on(keyDown, this.onKeyDown, this);
|
|
16706
16769
|
this.parent.on(keyUp, this.onKeyUp, this);
|
|
16707
16770
|
this.parent.on(insertImage, this.insertImage, this);
|
|
16771
|
+
this.parent.on(windowResize, this.onWindowResize, this);
|
|
16708
16772
|
this.parent.on(insertCompleted, this.showImageQuickToolbar, this);
|
|
16709
16773
|
this.parent.on(imageToolbarAction, this.onToolbarAction, this);
|
|
16710
16774
|
this.parent.on(imageCaption, this.caption, this);
|
|
@@ -16725,6 +16789,7 @@ var Image = /** @__PURE__ @class */ (function () {
|
|
|
16725
16789
|
}
|
|
16726
16790
|
this.parent.off(keyDown, this.onKeyDown);
|
|
16727
16791
|
this.parent.off(keyUp, this.onKeyUp);
|
|
16792
|
+
this.parent.off(windowResize, this.onWindowResize);
|
|
16728
16793
|
this.parent.off(insertImage, this.insertImage);
|
|
16729
16794
|
this.parent.off(insertCompleted, this.showImageQuickToolbar);
|
|
16730
16795
|
this.parent.off(imageCaption, this.caption);
|
|
@@ -16947,7 +17012,6 @@ var Image = /** @__PURE__ @class */ (function () {
|
|
|
16947
17012
|
Image.prototype.calcPos = function (elem) {
|
|
16948
17013
|
var ignoreOffset = ['TD', 'TH', 'TABLE', 'A'];
|
|
16949
17014
|
var parentOffset = { top: 0, left: 0 };
|
|
16950
|
-
var offset = elem.getBoundingClientRect();
|
|
16951
17015
|
var doc = elem.ownerDocument;
|
|
16952
17016
|
var offsetParent = ((elem.offsetParent && (elem.offsetParent.classList.contains('e-img-caption') ||
|
|
16953
17017
|
ignoreOffset.indexOf(elem.offsetParent.tagName) > -1)) ?
|
|
@@ -16961,8 +17025,8 @@ var Image = /** @__PURE__ @class */ (function () {
|
|
|
16961
17025
|
parentOffset = offsetParent.getBoundingClientRect();
|
|
16962
17026
|
}
|
|
16963
17027
|
return {
|
|
16964
|
-
top:
|
|
16965
|
-
left:
|
|
17028
|
+
top: elem.offsetTop,
|
|
17029
|
+
left: elem.offsetLeft
|
|
16966
17030
|
};
|
|
16967
17031
|
};
|
|
16968
17032
|
Image.prototype.setAspectRatio = function (img, expectedX, expectedY) {
|
|
@@ -17017,6 +17081,11 @@ var Image = /** @__PURE__ @class */ (function () {
|
|
|
17017
17081
|
}
|
|
17018
17082
|
}
|
|
17019
17083
|
};
|
|
17084
|
+
Image.prototype.onWindowResize = function () {
|
|
17085
|
+
if (!isNullOrUndefined(this.contentModule.getEditPanel().querySelector('.e-img-resize'))) {
|
|
17086
|
+
this.cancelResizeAction();
|
|
17087
|
+
}
|
|
17088
|
+
};
|
|
17020
17089
|
Image.prototype.pixToPerc = function (expected, parentEle) {
|
|
17021
17090
|
return expected / parseFloat(getComputedStyle(parentEle).width) * 100;
|
|
17022
17091
|
};
|
|
@@ -17029,7 +17098,8 @@ var Image = /** @__PURE__ @class */ (function () {
|
|
|
17029
17098
|
}
|
|
17030
17099
|
else {
|
|
17031
17100
|
if ((parseInt(_this.parent.insertImageSettings.minWidth, 10) >= parseInt(width, 10) ||
|
|
17032
|
-
parseInt(_this.parent.getInsertImgMaxWidth(), 10) <= parseInt(width, 10)
|
|
17101
|
+
(parseInt(_this.parent.getInsertImgMaxWidth(), 10) <= parseInt(width, 10) &&
|
|
17102
|
+
isNullOrUndefined(_this.imgEle.style.width)))) {
|
|
17033
17103
|
return;
|
|
17034
17104
|
}
|
|
17035
17105
|
if (!_this.parent.insertImageSettings.resizeByPercent &&
|
|
@@ -17654,7 +17724,11 @@ var Image = /** @__PURE__ @class */ (function () {
|
|
|
17654
17724
|
}
|
|
17655
17725
|
};
|
|
17656
17726
|
Image.prototype.imageRemovePost = function (src) {
|
|
17657
|
-
var
|
|
17727
|
+
var removeUrl = this.parent.insertImageSettings.removeUrl;
|
|
17728
|
+
if (isNullOrUndefined(removeUrl) || removeUrl === '') {
|
|
17729
|
+
return;
|
|
17730
|
+
}
|
|
17731
|
+
var ajax = new Ajax(removeUrl, 'POST', true, null);
|
|
17658
17732
|
var formData = new FormData();
|
|
17659
17733
|
formData.append(name, src);
|
|
17660
17734
|
ajax.send(formData);
|
|
@@ -17890,7 +17964,10 @@ var Image = /** @__PURE__ @class */ (function () {
|
|
|
17890
17964
|
if (target.tagName !== 'IMG') {
|
|
17891
17965
|
this.removeResizeEle();
|
|
17892
17966
|
}
|
|
17893
|
-
if (!isNullOrUndefined(this.
|
|
17967
|
+
if (target.tagName !== 'IMG' && !isNullOrUndefined(this.imgEle)) {
|
|
17968
|
+
this.imgEle.style.outline = '';
|
|
17969
|
+
}
|
|
17970
|
+
else if (!isNullOrUndefined(this.prevSelectedImgEle) && this.prevSelectedImgEle !== target) {
|
|
17894
17971
|
this.prevSelectedImgEle.style.outline = '';
|
|
17895
17972
|
}
|
|
17896
17973
|
}
|
|
@@ -18638,7 +18715,7 @@ var Image = /** @__PURE__ @class */ (function () {
|
|
|
18638
18715
|
* @hidden
|
|
18639
18716
|
* @deprecated
|
|
18640
18717
|
*/
|
|
18641
|
-
var ViewSource = /** @
|
|
18718
|
+
var ViewSource = /** @class */ (function () {
|
|
18642
18719
|
/**
|
|
18643
18720
|
* Constructor for view source module
|
|
18644
18721
|
*/
|
|
@@ -18865,7 +18942,7 @@ var ViewSource = /** @__PURE__ @class */ (function () {
|
|
|
18865
18942
|
/**
|
|
18866
18943
|
* `Table` module is used to handle table actions.
|
|
18867
18944
|
*/
|
|
18868
|
-
var Table = /** @
|
|
18945
|
+
var Table = /** @class */ (function () {
|
|
18869
18946
|
function Table(parent, serviceLocator) {
|
|
18870
18947
|
this.ensureInsideTableList = true;
|
|
18871
18948
|
this.pageX = null;
|
|
@@ -19305,6 +19382,11 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
19305
19382
|
}
|
|
19306
19383
|
var target = e.target || e.targetTouches[0].target;
|
|
19307
19384
|
var closestTable = closest(target, 'table');
|
|
19385
|
+
if (!isNullOrUndefined(this.curTable) && !isNullOrUndefined(closestTable) && closestTable !== this.curTable) {
|
|
19386
|
+
this.removeResizeElement();
|
|
19387
|
+
this.removeHelper(e);
|
|
19388
|
+
this.cancelResizeAction();
|
|
19389
|
+
}
|
|
19308
19390
|
if (target.nodeName === 'TABLE' || target.nodeName === 'TD' || target.nodeName === 'TH') {
|
|
19309
19391
|
this.curTable = (closestTable && this.parent.contentModule.getEditPanel().contains(closestTable))
|
|
19310
19392
|
&& (target.nodeName === 'TD' || target.nodeName === 'TH') ?
|
|
@@ -19556,7 +19638,7 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
19556
19638
|
'px; left:' + (_this.calcPos(_this.curTable).left + tableWidth - 4) + 'px;';
|
|
19557
19639
|
_this.updateHelper();
|
|
19558
19640
|
}
|
|
19559
|
-
else if (_this.resizeBtnStat.tableBox) {
|
|
19641
|
+
else if (_this.resizeBtnStat.tableBox && !isNullOrUndefined(tableReBox)) {
|
|
19560
19642
|
if (!Browser.isDevice) {
|
|
19561
19643
|
EventHandler.remove(_this.contentModule.getEditPanel(), 'mouseover', _this.resizeHelper);
|
|
19562
19644
|
}
|
|
@@ -19978,7 +20060,7 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
19978
20060
|
/**
|
|
19979
20061
|
* Dialog Renderer
|
|
19980
20062
|
*/
|
|
19981
|
-
var DialogRenderer = /** @
|
|
20063
|
+
var DialogRenderer = /** @class */ (function () {
|
|
19982
20064
|
function DialogRenderer(parent) {
|
|
19983
20065
|
this.parent = parent;
|
|
19984
20066
|
}
|
|
@@ -20199,25 +20281,25 @@ var executeGroup = {
|
|
|
20199
20281
|
}
|
|
20200
20282
|
};
|
|
20201
20283
|
|
|
20202
|
-
var __extends$5 = (undefined && undefined.__extends) || (function () {
|
|
20203
|
-
var extendStatics = function (d, b) {
|
|
20204
|
-
extendStatics = Object.setPrototypeOf ||
|
|
20205
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
20206
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
20207
|
-
return extendStatics(d, b);
|
|
20208
|
-
};
|
|
20209
|
-
return function (d, b) {
|
|
20210
|
-
extendStatics(d, b);
|
|
20211
|
-
function __() { this.constructor = d; }
|
|
20212
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
20213
|
-
};
|
|
20214
|
-
})();
|
|
20215
|
-
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
20216
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20217
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20218
|
-
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;
|
|
20219
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20220
|
-
};
|
|
20284
|
+
var __extends$5 = (undefined && undefined.__extends) || (function () {
|
|
20285
|
+
var extendStatics = function (d, b) {
|
|
20286
|
+
extendStatics = Object.setPrototypeOf ||
|
|
20287
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
20288
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
20289
|
+
return extendStatics(d, b);
|
|
20290
|
+
};
|
|
20291
|
+
return function (d, b) {
|
|
20292
|
+
extendStatics(d, b);
|
|
20293
|
+
function __() { this.constructor = d; }
|
|
20294
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
20295
|
+
};
|
|
20296
|
+
})();
|
|
20297
|
+
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
20298
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20299
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20300
|
+
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;
|
|
20301
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20302
|
+
};
|
|
20221
20303
|
var predefinedItems = ['Bold', 'Italic', 'Underline', '|', 'Formats', 'Alignments',
|
|
20222
20304
|
'OrderedList', 'UnorderedList', '|', 'CreateLink', 'Image', '|', 'SourceCode', 'Undo', 'Redo'];
|
|
20223
20305
|
var fontFamily = [
|
|
@@ -20270,7 +20352,7 @@ var backgroundColor = {
|
|
|
20270
20352
|
/**
|
|
20271
20353
|
* Configures the toolbar settings of the RichTextEditor.
|
|
20272
20354
|
*/
|
|
20273
|
-
var ToolbarSettings$1 = /** @
|
|
20355
|
+
var ToolbarSettings$1 = /** @class */ (function (_super) {
|
|
20274
20356
|
__extends$5(ToolbarSettings$$1, _super);
|
|
20275
20357
|
function ToolbarSettings$$1() {
|
|
20276
20358
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -20295,7 +20377,7 @@ var ToolbarSettings$1 = /** @__PURE__ @class */ (function (_super) {
|
|
|
20295
20377
|
/**
|
|
20296
20378
|
* Configures the image settings of the RichTextEditor.
|
|
20297
20379
|
*/
|
|
20298
|
-
var ImageSettings = /** @
|
|
20380
|
+
var ImageSettings = /** @class */ (function (_super) {
|
|
20299
20381
|
__extends$5(ImageSettings, _super);
|
|
20300
20382
|
function ImageSettings() {
|
|
20301
20383
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -20347,7 +20429,7 @@ var ImageSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
20347
20429
|
/**
|
|
20348
20430
|
* Configures the file manager settings of the RichTextEditor.
|
|
20349
20431
|
*/
|
|
20350
|
-
var FileManagerSettings = /** @
|
|
20432
|
+
var FileManagerSettings = /** @class */ (function (_super) {
|
|
20351
20433
|
__extends$5(FileManagerSettings, _super);
|
|
20352
20434
|
function FileManagerSettings() {
|
|
20353
20435
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -20405,7 +20487,7 @@ var FileManagerSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
20405
20487
|
], FileManagerSettings.prototype, "view", void 0);
|
|
20406
20488
|
return FileManagerSettings;
|
|
20407
20489
|
}(ChildProperty));
|
|
20408
|
-
var TableSettings = /** @
|
|
20490
|
+
var TableSettings = /** @class */ (function (_super) {
|
|
20409
20491
|
__extends$5(TableSettings, _super);
|
|
20410
20492
|
function TableSettings() {
|
|
20411
20493
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -20430,7 +20512,7 @@ var TableSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
20430
20512
|
/**
|
|
20431
20513
|
* Configures the quick toolbar settings of the RichTextEditor.
|
|
20432
20514
|
*/
|
|
20433
|
-
var QuickToolbarSettings = /** @
|
|
20515
|
+
var QuickToolbarSettings = /** @class */ (function (_super) {
|
|
20434
20516
|
__extends$5(QuickToolbarSettings, _super);
|
|
20435
20517
|
function QuickToolbarSettings() {
|
|
20436
20518
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -20461,7 +20543,7 @@ var QuickToolbarSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
20461
20543
|
/**
|
|
20462
20544
|
* Configures the Paste Cleanup settings of the RichTextEditor.
|
|
20463
20545
|
*/
|
|
20464
|
-
var PasteCleanupSettings = /** @
|
|
20546
|
+
var PasteCleanupSettings = /** @class */ (function (_super) {
|
|
20465
20547
|
__extends$5(PasteCleanupSettings, _super);
|
|
20466
20548
|
function PasteCleanupSettings() {
|
|
20467
20549
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -20489,7 +20571,7 @@ var PasteCleanupSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
20489
20571
|
/**
|
|
20490
20572
|
* Configures the font family settings of the RichTextEditor.
|
|
20491
20573
|
*/
|
|
20492
|
-
var FontFamily = /** @
|
|
20574
|
+
var FontFamily = /** @class */ (function (_super) {
|
|
20493
20575
|
__extends$5(FontFamily, _super);
|
|
20494
20576
|
function FontFamily() {
|
|
20495
20577
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -20508,7 +20590,7 @@ var FontFamily = /** @__PURE__ @class */ (function (_super) {
|
|
|
20508
20590
|
/**
|
|
20509
20591
|
* Configures the font size settings of the RichTextEditor.
|
|
20510
20592
|
*/
|
|
20511
|
-
var FontSize = /** @
|
|
20593
|
+
var FontSize = /** @class */ (function (_super) {
|
|
20512
20594
|
__extends$5(FontSize, _super);
|
|
20513
20595
|
function FontSize() {
|
|
20514
20596
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -20527,7 +20609,7 @@ var FontSize = /** @__PURE__ @class */ (function (_super) {
|
|
|
20527
20609
|
/**
|
|
20528
20610
|
* Configures the format settings of the RichTextEditor.
|
|
20529
20611
|
*/
|
|
20530
|
-
var Format = /** @
|
|
20612
|
+
var Format = /** @class */ (function (_super) {
|
|
20531
20613
|
__extends$5(Format, _super);
|
|
20532
20614
|
function Format() {
|
|
20533
20615
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -20546,7 +20628,7 @@ var Format = /** @__PURE__ @class */ (function (_super) {
|
|
|
20546
20628
|
/**
|
|
20547
20629
|
* Configures the font Color settings of the RichTextEditor.
|
|
20548
20630
|
*/
|
|
20549
|
-
var FontColor = /** @
|
|
20631
|
+
var FontColor = /** @class */ (function (_super) {
|
|
20550
20632
|
__extends$5(FontColor, _super);
|
|
20551
20633
|
function FontColor() {
|
|
20552
20634
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -20571,7 +20653,7 @@ var FontColor = /** @__PURE__ @class */ (function (_super) {
|
|
|
20571
20653
|
/**
|
|
20572
20654
|
* Configures the background Color settings of the RichTextEditor.
|
|
20573
20655
|
*/
|
|
20574
|
-
var BackgroundColor = /** @
|
|
20656
|
+
var BackgroundColor = /** @class */ (function (_super) {
|
|
20575
20657
|
__extends$5(BackgroundColor, _super);
|
|
20576
20658
|
function BackgroundColor() {
|
|
20577
20659
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -20594,29 +20676,29 @@ var BackgroundColor = /** @__PURE__ @class */ (function (_super) {
|
|
|
20594
20676
|
return BackgroundColor;
|
|
20595
20677
|
}(ChildProperty));
|
|
20596
20678
|
|
|
20597
|
-
var __extends$6 = (undefined && undefined.__extends) || (function () {
|
|
20598
|
-
var extendStatics = function (d, b) {
|
|
20599
|
-
extendStatics = Object.setPrototypeOf ||
|
|
20600
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
20601
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
20602
|
-
return extendStatics(d, b);
|
|
20603
|
-
};
|
|
20604
|
-
return function (d, b) {
|
|
20605
|
-
extendStatics(d, b);
|
|
20606
|
-
function __() { this.constructor = d; }
|
|
20607
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
20608
|
-
};
|
|
20609
|
-
})();
|
|
20610
|
-
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
20611
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20612
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20613
|
-
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;
|
|
20614
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20615
|
-
};
|
|
20679
|
+
var __extends$6 = (undefined && undefined.__extends) || (function () {
|
|
20680
|
+
var extendStatics = function (d, b) {
|
|
20681
|
+
extendStatics = Object.setPrototypeOf ||
|
|
20682
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
20683
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
20684
|
+
return extendStatics(d, b);
|
|
20685
|
+
};
|
|
20686
|
+
return function (d, b) {
|
|
20687
|
+
extendStatics(d, b);
|
|
20688
|
+
function __() { this.constructor = d; }
|
|
20689
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
20690
|
+
};
|
|
20691
|
+
})();
|
|
20692
|
+
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
20693
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20694
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20695
|
+
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;
|
|
20696
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20697
|
+
};
|
|
20616
20698
|
/**
|
|
20617
20699
|
* Objects used for configuring the iframe resources properties.
|
|
20618
20700
|
*/
|
|
20619
|
-
var Resources = /** @
|
|
20701
|
+
var Resources = /** @class */ (function (_super) {
|
|
20620
20702
|
__extends$6(Resources, _super);
|
|
20621
20703
|
function Resources() {
|
|
20622
20704
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -20632,7 +20714,7 @@ var Resources = /** @__PURE__ @class */ (function (_super) {
|
|
|
20632
20714
|
/**
|
|
20633
20715
|
* Configures the iframe settings of the RTE.
|
|
20634
20716
|
*/
|
|
20635
|
-
var IFrameSettings = /** @
|
|
20717
|
+
var IFrameSettings = /** @class */ (function (_super) {
|
|
20636
20718
|
__extends$6(IFrameSettings, _super);
|
|
20637
20719
|
function IFrameSettings() {
|
|
20638
20720
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -20649,29 +20731,29 @@ var IFrameSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
20649
20731
|
return IFrameSettings;
|
|
20650
20732
|
}(ChildProperty));
|
|
20651
20733
|
|
|
20652
|
-
var __extends$7 = (undefined && undefined.__extends) || (function () {
|
|
20653
|
-
var extendStatics = function (d, b) {
|
|
20654
|
-
extendStatics = Object.setPrototypeOf ||
|
|
20655
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
20656
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
20657
|
-
return extendStatics(d, b);
|
|
20658
|
-
};
|
|
20659
|
-
return function (d, b) {
|
|
20660
|
-
extendStatics(d, b);
|
|
20661
|
-
function __() { this.constructor = d; }
|
|
20662
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
20663
|
-
};
|
|
20664
|
-
})();
|
|
20665
|
-
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
20666
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20667
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20668
|
-
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;
|
|
20669
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20670
|
-
};
|
|
20734
|
+
var __extends$7 = (undefined && undefined.__extends) || (function () {
|
|
20735
|
+
var extendStatics = function (d, b) {
|
|
20736
|
+
extendStatics = Object.setPrototypeOf ||
|
|
20737
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
20738
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
20739
|
+
return extendStatics(d, b);
|
|
20740
|
+
};
|
|
20741
|
+
return function (d, b) {
|
|
20742
|
+
extendStatics(d, b);
|
|
20743
|
+
function __() { this.constructor = d; }
|
|
20744
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
20745
|
+
};
|
|
20746
|
+
})();
|
|
20747
|
+
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
20748
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20749
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20750
|
+
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;
|
|
20751
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20752
|
+
};
|
|
20671
20753
|
/**
|
|
20672
20754
|
* Configures the inlineMode property of the RTE.
|
|
20673
20755
|
*/
|
|
20674
|
-
var InlineMode = /** @
|
|
20756
|
+
var InlineMode = /** @class */ (function (_super) {
|
|
20675
20757
|
__extends$7(InlineMode, _super);
|
|
20676
20758
|
function InlineMode() {
|
|
20677
20759
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -20685,36 +20767,36 @@ var InlineMode = /** @__PURE__ @class */ (function (_super) {
|
|
|
20685
20767
|
return InlineMode;
|
|
20686
20768
|
}(ChildProperty));
|
|
20687
20769
|
|
|
20688
|
-
var __extends$4 = (undefined && undefined.__extends) || (function () {
|
|
20689
|
-
var extendStatics = function (d, b) {
|
|
20690
|
-
extendStatics = Object.setPrototypeOf ||
|
|
20691
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
20692
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
20693
|
-
return extendStatics(d, b);
|
|
20694
|
-
};
|
|
20695
|
-
return function (d, b) {
|
|
20696
|
-
extendStatics(d, b);
|
|
20697
|
-
function __() { this.constructor = d; }
|
|
20698
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
20699
|
-
};
|
|
20700
|
-
})();
|
|
20701
|
-
var __assign = (undefined && undefined.__assign) || function () {
|
|
20702
|
-
__assign = Object.assign || function(t) {
|
|
20703
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
20704
|
-
s = arguments[i];
|
|
20705
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
20706
|
-
t[p] = s[p];
|
|
20707
|
-
}
|
|
20708
|
-
return t;
|
|
20709
|
-
};
|
|
20710
|
-
return __assign.apply(this, arguments);
|
|
20711
|
-
};
|
|
20712
|
-
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
20713
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20714
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20715
|
-
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;
|
|
20716
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20717
|
-
};
|
|
20770
|
+
var __extends$4 = (undefined && undefined.__extends) || (function () {
|
|
20771
|
+
var extendStatics = function (d, b) {
|
|
20772
|
+
extendStatics = Object.setPrototypeOf ||
|
|
20773
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
20774
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
20775
|
+
return extendStatics(d, b);
|
|
20776
|
+
};
|
|
20777
|
+
return function (d, b) {
|
|
20778
|
+
extendStatics(d, b);
|
|
20779
|
+
function __() { this.constructor = d; }
|
|
20780
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
20781
|
+
};
|
|
20782
|
+
})();
|
|
20783
|
+
var __assign = (undefined && undefined.__assign) || function () {
|
|
20784
|
+
__assign = Object.assign || function(t) {
|
|
20785
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
20786
|
+
s = arguments[i];
|
|
20787
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
20788
|
+
t[p] = s[p];
|
|
20789
|
+
}
|
|
20790
|
+
return t;
|
|
20791
|
+
};
|
|
20792
|
+
return __assign.apply(this, arguments);
|
|
20793
|
+
};
|
|
20794
|
+
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
20795
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20796
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20797
|
+
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;
|
|
20798
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20799
|
+
};
|
|
20718
20800
|
/**
|
|
20719
20801
|
* Represents the Rich Text Editor component.
|
|
20720
20802
|
* ```html
|
|
@@ -20725,7 +20807,7 @@ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
20725
20807
|
* </script>
|
|
20726
20808
|
* ```
|
|
20727
20809
|
*/
|
|
20728
|
-
var RichTextEditor = /** @
|
|
20810
|
+
var RichTextEditor = /** @class */ (function (_super) {
|
|
20729
20811
|
__extends$4(RichTextEditor, _super);
|
|
20730
20812
|
function RichTextEditor(options, element) {
|
|
20731
20813
|
var _this = _super.call(this, options, element) || this;
|
|
@@ -21187,6 +21269,17 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
21187
21269
|
this.autoResize();
|
|
21188
21270
|
};
|
|
21189
21271
|
RichTextEditor.prototype.keyUp = function (e) {
|
|
21272
|
+
if (this.editorMode === "HTML") {
|
|
21273
|
+
var range = this.getRange();
|
|
21274
|
+
if (Browser.userAgent.indexOf('Firefox') != -1 && range.startContainer.nodeName === '#text' &&
|
|
21275
|
+
range.startContainer.parentElement === this.inputElement) {
|
|
21276
|
+
var range_1 = this.getRange();
|
|
21277
|
+
var tempElem = this.createElement('p');
|
|
21278
|
+
range_1.startContainer.parentElement.insertBefore(tempElem, range_1.startContainer);
|
|
21279
|
+
tempElem.appendChild(range_1.startContainer);
|
|
21280
|
+
this.formatter.editorManager.nodeSelection.setSelectionText(this.contentModule.getDocument(), tempElem.childNodes[0], tempElem.childNodes[0], tempElem.childNodes[0].textContent.length, tempElem.childNodes[0].textContent.length);
|
|
21281
|
+
}
|
|
21282
|
+
}
|
|
21190
21283
|
this.notify(keyUp, { member: 'keyup', args: e });
|
|
21191
21284
|
if (e.code === 'KeyX' && e.which === 88 && e.keyCode === 88 && e.ctrlKey && (this.inputElement.innerHTML === '' ||
|
|
21192
21285
|
this.inputElement.innerHTML === '<br>')) {
|
|
@@ -21197,7 +21290,8 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
21197
21290
|
&& ((e.key !== 'shift' && !e.ctrlKey) && e.key && e.key.length === 1 || allowedKeys)) && !this.inlineMode.enable) {
|
|
21198
21291
|
this.formatter.onKeyHandler(this, e);
|
|
21199
21292
|
}
|
|
21200
|
-
if (this.inputElement && this.inputElement.textContent.length !== 0
|
|
21293
|
+
if (this.inputElement && this.inputElement.textContent.length !== 0
|
|
21294
|
+
|| this.element.querySelectorAll('.e-toolbar-item.e-active').length > 0) {
|
|
21201
21295
|
this.notify(toolbarRefresh, { args: e });
|
|
21202
21296
|
}
|
|
21203
21297
|
if (!isNullOrUndefined(this.placeholder)) {
|
|
@@ -21998,7 +22092,9 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
21998
22092
|
var item = compiledTemplate[i];
|
|
21999
22093
|
append([item], this.element);
|
|
22000
22094
|
}
|
|
22001
|
-
|
|
22095
|
+
if (this.element.innerHTML.trim() !== '') {
|
|
22096
|
+
this.setProperties({ value: this.element.innerHTML.trim() });
|
|
22097
|
+
}
|
|
22002
22098
|
}
|
|
22003
22099
|
}
|
|
22004
22100
|
else {
|
|
@@ -22192,11 +22288,16 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
22192
22288
|
};
|
|
22193
22289
|
RichTextEditor.prototype.resizeHandler = function () {
|
|
22194
22290
|
var isExpand = false;
|
|
22291
|
+
if (!document.body.contains(this.element)) {
|
|
22292
|
+
document.defaultView.removeEventListener('resize', this.onResizeHandler, true);
|
|
22293
|
+
return;
|
|
22294
|
+
}
|
|
22195
22295
|
if (this.toolbarSettings.enable && !this.inlineMode.enable) {
|
|
22196
22296
|
this.toolbarModule.refreshToolbarOverflow();
|
|
22197
22297
|
isExpand = this.toolbarModule.baseToolbar.toolbarObj.element.classList.contains(CLS_EXPAND_OPEN);
|
|
22198
22298
|
}
|
|
22199
22299
|
this.setContentHeight('', isExpand);
|
|
22300
|
+
this.notify(windowResize, null);
|
|
22200
22301
|
};
|
|
22201
22302
|
RichTextEditor.prototype.scrollHandler = function (e) {
|
|
22202
22303
|
this.notify(scroll, { args: e });
|
|
@@ -22272,6 +22373,9 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
22272
22373
|
return value;
|
|
22273
22374
|
};
|
|
22274
22375
|
RichTextEditor.prototype.updateValueOnIdle = function () {
|
|
22376
|
+
if (!isNullOrUndefined(this.tableModule) && !isNullOrUndefined(this.inputElement.querySelector('.e-table-box.e-rbox-select'))) {
|
|
22377
|
+
return;
|
|
22378
|
+
}
|
|
22275
22379
|
this.setProperties({ value: this.getUpdatedValue() }, true);
|
|
22276
22380
|
this.valueContainer.value = this.value;
|
|
22277
22381
|
this.invokeChangeEvent();
|
|
@@ -22810,5 +22914,5 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
22810
22914
|
* Rich Text Editor component exported items
|
|
22811
22915
|
*/
|
|
22812
22916
|
|
|
22813
|
-
export { Toolbar$2 as Toolbar, KeyboardEvents$1 as KeyboardEvents, BaseToolbar, BaseQuickToolbar, QuickToolbar, Count, ColorPickerInput, MarkdownToolbarStatus, ExecCommandCallBack, ToolbarAction, MarkdownEditor, HtmlEditor, PasteCleanup, Resize, DropDownButtons, FileManager$1 as FileManager, FullScreen, setAttributes, HtmlToolbarStatus, XhtmlValidation, HTMLFormatter, Formatter, MarkdownFormatter, ContentRender, Render, ToolbarRenderer, Link, Image, ViewSource, Table, DialogRenderer, IframeContentRender, MarkdownRender, PopupRenderer, RichTextEditor, RenderType, ToolbarType, executeGroup, created, destroyed, load, initialLoad, contentChanged, initialEnd, iframeMouseDown, destroy, toolbarClick, toolbarRefresh, refreshBegin, toolbarUpdated, bindOnEnd, renderColorPicker, htmlToolbarClick, markdownToolbarClick, destroyColorPicker, modelChanged, keyUp, keyDown, mouseUp, toolbarCreated, toolbarRenderComplete, enableFullScreen, disableFullScreen, dropDownSelect, beforeDropDownItemRender, execCommandCallBack, imageToolbarAction, linkToolbarAction, resizeStart, onResize, resizeStop, undo, redo, insertLink, unLink, editLink, openLink, actionBegin, actionComplete, toolbarStatusUpdate, actionSuccess, updateToolbarItem, insertImage, insertCompleted, imageLeft, imageRight, imageCenter, imageBreak, imageInline, imageLink, imageAlt, imageDelete, imageCaption, imageSize, sourceCode, updateSource, toolbarOpen, beforeDropDownOpen, selectionSave, selectionRestore, expandPopupClick, count, contentFocus, contentBlur, mouseDown, sourceCodeMouseDown, editAreaClick, scroll, contentscroll, colorPickerChanged, tableColorPickerChanged, focusChange, selectAll$1 as selectAll, selectRange, getSelectedHtml, renderInlineToolbar, paste, imgModule, rtlMode, createTable, docClick, tableToolbarAction, checkUndo, readOnlyMode, pasteClean, beforeDialogOpen, dialogOpen, beforeDialogClose, dialogClose, beforeQuickToolbarOpen, quickToolbarOpen, quickToolbarClose, popupHide, imageSelected, imageUploading, imageUploadSuccess, imageUploadFailed, imageRemoving, afterImageDelete, drop, xhtmlValidation, beforeImageUpload, resizeInitialized, renderFileManager, beforeImageDrop, CLS_RTE, CLS_RTL, CLS_CONTENT, CLS_DISABLED, CLS_SCRIPT_SHEET, CLS_STYLE_SHEET, CLS_TOOLBAR, CLS_TB_FIXED, CLS_TB_FLOAT, CLS_TB_ABS_FLOAT, CLS_INLINE, CLS_TB_INLINE, CLS_RTE_EXPAND_TB, CLS_FULL_SCREEN, CLS_QUICK_TB, CLS_POP, CLS_QUICK_POP, CLS_QUICK_DROPDOWN, CLS_IMAGE_POP, CLS_INLINE_POP, CLS_INLINE_DROPDOWN, CLS_DROPDOWN_POPUP, CLS_DROPDOWN_ICONS, CLS_DROPDOWN_ITEMS, CLS_DROPDOWN_BTN, CLS_RTE_CONTENT, CLS_TB_ITEM, CLS_TB_EXTENDED, CLS_TB_WRAP, CLS_POPUP, CLS_SEPARATOR, CLS_MINIMIZE, CLS_MAXIMIZE, CLS_BACK, CLS_SHOW, CLS_HIDE, CLS_VISIBLE, CLS_FOCUS, CLS_RM_WHITE_SPACE, CLS_IMGRIGHT, CLS_IMGLEFT, CLS_IMGCENTER, CLS_IMGBREAK, CLS_CAPTION, CLS_RTE_CAPTION, CLS_CAPINLINE, CLS_IMGINLINE, CLS_COUNT, CLS_WARNING, CLS_ERROR, CLS_ICONS, CLS_ACTIVE, CLS_EXPAND_OPEN, CLS_RTE_ELEMENTS, CLS_TB_BTN, CLS_HR_SEPARATOR, CLS_TB_IOS_FIX, CLS_TB_STATIC, CLS_FORMATS_TB_BTN, CLS_FONT_NAME_TB_BTN, CLS_FONT_SIZE_TB_BTN, CLS_FONT_COLOR_TARGET, CLS_BACKGROUND_COLOR_TARGET, CLS_COLOR_CONTENT, CLS_FONT_COLOR_DROPDOWN, CLS_BACKGROUND_COLOR_DROPDOWN, CLS_COLOR_PALETTE, CLS_FONT_COLOR_PICKER, CLS_BACKGROUND_COLOR_PICKER, CLS_RTE_READONLY, CLS_TABLE_SEL, CLS_TB_DASH_BOR, CLS_TB_ALT_BOR, CLS_TB_COL_RES, CLS_TB_ROW_RES, CLS_TB_BOX_RES, CLS_RTE_HIDDEN, CLS_RTE_PASTE_KEEP_FORMAT, CLS_RTE_PASTE_REMOVE_FORMAT, CLS_RTE_PASTE_PLAIN_FORMAT, CLS_RTE_PASTE_OK, CLS_RTE_PASTE_CANCEL, CLS_RTE_DIALOG_MIN_HEIGHT, CLS_RTE_RES_HANDLE, CLS_RTE_RES_EAST, CLS_RTE_IMAGE, CLS_RESIZE, CLS_IMG_FOCUS, CLS_RTE_DRAG_IMAGE, CLS_RTE_UPLOAD_POPUP, CLS_POPUP_OPEN, CLS_IMG_RESIZE, CLS_DROPAREA, CLS_IMG_INNER, CLS_UPLOAD_FILES, CLS_RTE_DIALOG_UPLOAD, CLS_RTE_RES_CNT, CLS_CUSTOM_TILE, CLS_NOCOLOR_ITEM, CLS_TABLE, CLS_TABLE_BORDER, CLS_RTE_TABLE_RESIZE, CLS_RTE_FIXED_TB_EXPAND, getIndex, hasClass, getDropDownValue, isIDevice, getFormattedFontSize, pageYOffset, getTooltipText, setToolbarStatus, getCollection, getTBarItemsIndex, updateUndoRedoStatus, dispatchEvent, parseHtml, getTextNodesUnder, toObjectLowerCase, getEditValue, updateTextNode, isEditableValueEmpty, decode, sanitizeHelper, convertToBlob, ServiceLocator, RendererFactory, EditorManager, IMAGE, TABLE, LINK, INSERT_ROW, INSERT_COLUMN, DELETEROW, DELETECOLUMN, REMOVETABLE, TABLEHEADER, TABLE_VERTICAL_ALIGN, ALIGNMENT_TYPE, INDENT_TYPE, DEFAULT_TAG, BLOCK_TAGS, IGNORE_BLOCK_TAGS, TABLE_BLOCK_TAGS, SELECTION_TYPE, INSERTHTML_TYPE, INSERT_TEXT_TYPE, CLEAR_TYPE, CLASS_IMAGE_RIGHT, CLASS_IMAGE_LEFT, CLASS_IMAGE_CENTER, CLASS_IMAGE_BREAK, CLASS_CAPTION, CLASS_RTE_CAPTION, CLASS_CAPTION_INLINE, CLASS_IMAGE_INLINE, Lists, markerClassName, DOMNode, Alignments, Indents, Formats, LinkCommand, InsertMethods, InsertTextExec, InsertHtmlExec, InsertHtml, IsFormatted, MsWordPaste, NodeCutter, ImageCommand, SelectionCommands, SelectionBasedExec, ClearFormatExec, UndoRedoManager, TableCommand, statusCollection, ToolbarStatus, NodeSelection, MarkdownParser, LISTS_COMMAND, selectionCommand, LINK_COMMAND, CLEAR_COMMAND, MD_TABLE, ClearFormat, MDLists, MDFormats, MarkdownSelection, UndoRedoCommands, MDSelectionFormats, MDLink, MDTable, markdownFormatTags, markdownSelectionTags, markdownListsTags, htmlKeyConfig, markdownKeyConfig, pasteCleanupGroupingTags, listConversionFilters, selfClosingTags, KEY_DOWN, ACTION, FORMAT_TYPE, KEY_DOWN_HANDLER, LIST_TYPE, KEY_UP_HANDLER, KEY_UP, MODEL_CHANGED_PLUGIN, MODEL_CHANGED, MS_WORD_CLEANUP_PLUGIN, MS_WORD_CLEANUP };
|
|
22917
|
+
export { Toolbar$2 as Toolbar, KeyboardEvents$1 as KeyboardEvents, BaseToolbar, BaseQuickToolbar, QuickToolbar, Count, ColorPickerInput, MarkdownToolbarStatus, ExecCommandCallBack, ToolbarAction, MarkdownEditor, HtmlEditor, PasteCleanup, Resize, DropDownButtons, FileManager$1 as FileManager, FullScreen, setAttributes, HtmlToolbarStatus, XhtmlValidation, HTMLFormatter, Formatter, MarkdownFormatter, ContentRender, Render, ToolbarRenderer, Link, Image, ViewSource, Table, DialogRenderer, IframeContentRender, MarkdownRender, PopupRenderer, RichTextEditor, RenderType, ToolbarType, executeGroup, created, destroyed, load, initialLoad, contentChanged, initialEnd, iframeMouseDown, destroy, toolbarClick, toolbarRefresh, refreshBegin, toolbarUpdated, bindOnEnd, renderColorPicker, htmlToolbarClick, markdownToolbarClick, destroyColorPicker, modelChanged, keyUp, keyDown, mouseUp, toolbarCreated, toolbarRenderComplete, enableFullScreen, disableFullScreen, dropDownSelect, beforeDropDownItemRender, execCommandCallBack, imageToolbarAction, linkToolbarAction, windowResize, resizeStart, onResize, resizeStop, undo, redo, insertLink, unLink, editLink, openLink, actionBegin, actionComplete, toolbarStatusUpdate, actionSuccess, updateToolbarItem, insertImage, insertCompleted, imageLeft, imageRight, imageCenter, imageBreak, imageInline, imageLink, imageAlt, imageDelete, imageCaption, imageSize, sourceCode, updateSource, toolbarOpen, beforeDropDownOpen, selectionSave, selectionRestore, expandPopupClick, count, contentFocus, contentBlur, mouseDown, sourceCodeMouseDown, editAreaClick, scroll, contentscroll, colorPickerChanged, tableColorPickerChanged, focusChange, selectAll$1 as selectAll, selectRange, getSelectedHtml, renderInlineToolbar, paste, imgModule, rtlMode, createTable, docClick, tableToolbarAction, checkUndo, readOnlyMode, pasteClean, beforeDialogOpen, dialogOpen, beforeDialogClose, dialogClose, beforeQuickToolbarOpen, quickToolbarOpen, quickToolbarClose, popupHide, imageSelected, imageUploading, imageUploadSuccess, imageUploadFailed, imageRemoving, afterImageDelete, drop, xhtmlValidation, beforeImageUpload, resizeInitialized, renderFileManager, beforeImageDrop, CLS_RTE, CLS_RTL, CLS_CONTENT, CLS_DISABLED, CLS_SCRIPT_SHEET, CLS_STYLE_SHEET, CLS_TOOLBAR, CLS_TB_FIXED, CLS_TB_FLOAT, CLS_TB_ABS_FLOAT, CLS_INLINE, CLS_TB_INLINE, CLS_RTE_EXPAND_TB, CLS_FULL_SCREEN, CLS_QUICK_TB, CLS_POP, CLS_QUICK_POP, CLS_QUICK_DROPDOWN, CLS_IMAGE_POP, CLS_INLINE_POP, CLS_INLINE_DROPDOWN, CLS_DROPDOWN_POPUP, CLS_DROPDOWN_ICONS, CLS_DROPDOWN_ITEMS, CLS_DROPDOWN_BTN, CLS_RTE_CONTENT, CLS_TB_ITEM, CLS_TB_EXTENDED, CLS_TB_WRAP, CLS_POPUP, CLS_SEPARATOR, CLS_MINIMIZE, CLS_MAXIMIZE, CLS_BACK, CLS_SHOW, CLS_HIDE, CLS_VISIBLE, CLS_FOCUS, CLS_RM_WHITE_SPACE, CLS_IMGRIGHT, CLS_IMGLEFT, CLS_IMGCENTER, CLS_IMGBREAK, CLS_CAPTION, CLS_RTE_CAPTION, CLS_CAPINLINE, CLS_IMGINLINE, CLS_COUNT, CLS_WARNING, CLS_ERROR, CLS_ICONS, CLS_ACTIVE, CLS_EXPAND_OPEN, CLS_RTE_ELEMENTS, CLS_TB_BTN, CLS_HR_SEPARATOR, CLS_TB_IOS_FIX, CLS_TB_STATIC, CLS_FORMATS_TB_BTN, CLS_FONT_NAME_TB_BTN, CLS_FONT_SIZE_TB_BTN, CLS_FONT_COLOR_TARGET, CLS_BACKGROUND_COLOR_TARGET, CLS_COLOR_CONTENT, CLS_FONT_COLOR_DROPDOWN, CLS_BACKGROUND_COLOR_DROPDOWN, CLS_COLOR_PALETTE, CLS_FONT_COLOR_PICKER, CLS_BACKGROUND_COLOR_PICKER, CLS_RTE_READONLY, CLS_TABLE_SEL, CLS_TB_DASH_BOR, CLS_TB_ALT_BOR, CLS_TB_COL_RES, CLS_TB_ROW_RES, CLS_TB_BOX_RES, CLS_RTE_HIDDEN, CLS_RTE_PASTE_KEEP_FORMAT, CLS_RTE_PASTE_REMOVE_FORMAT, CLS_RTE_PASTE_PLAIN_FORMAT, CLS_RTE_PASTE_OK, CLS_RTE_PASTE_CANCEL, CLS_RTE_DIALOG_MIN_HEIGHT, CLS_RTE_RES_HANDLE, CLS_RTE_RES_EAST, CLS_RTE_IMAGE, CLS_RESIZE, CLS_IMG_FOCUS, CLS_RTE_DRAG_IMAGE, CLS_RTE_UPLOAD_POPUP, CLS_POPUP_OPEN, CLS_IMG_RESIZE, CLS_DROPAREA, CLS_IMG_INNER, CLS_UPLOAD_FILES, CLS_RTE_DIALOG_UPLOAD, CLS_RTE_RES_CNT, CLS_CUSTOM_TILE, CLS_NOCOLOR_ITEM, CLS_TABLE, CLS_TABLE_BORDER, CLS_RTE_TABLE_RESIZE, CLS_RTE_FIXED_TB_EXPAND, getIndex, hasClass, getDropDownValue, isIDevice, getFormattedFontSize, pageYOffset, getTooltipText, setToolbarStatus, getCollection, getTBarItemsIndex, updateUndoRedoStatus, dispatchEvent, parseHtml, getTextNodesUnder, toObjectLowerCase, getEditValue, updateTextNode, isEditableValueEmpty, decode, sanitizeHelper, convertToBlob, ServiceLocator, RendererFactory, EditorManager, IMAGE, TABLE, LINK, INSERT_ROW, INSERT_COLUMN, DELETEROW, DELETECOLUMN, REMOVETABLE, TABLEHEADER, TABLE_VERTICAL_ALIGN, ALIGNMENT_TYPE, INDENT_TYPE, DEFAULT_TAG, BLOCK_TAGS, IGNORE_BLOCK_TAGS, TABLE_BLOCK_TAGS, SELECTION_TYPE, INSERTHTML_TYPE, INSERT_TEXT_TYPE, CLEAR_TYPE, CLASS_IMAGE_RIGHT, CLASS_IMAGE_LEFT, CLASS_IMAGE_CENTER, CLASS_IMAGE_BREAK, CLASS_CAPTION, CLASS_RTE_CAPTION, CLASS_CAPTION_INLINE, CLASS_IMAGE_INLINE, Lists, markerClassName, DOMNode, Alignments, Indents, Formats, LinkCommand, InsertMethods, InsertTextExec, InsertHtmlExec, InsertHtml, IsFormatted, MsWordPaste, NodeCutter, ImageCommand, SelectionCommands, SelectionBasedExec, ClearFormatExec, UndoRedoManager, TableCommand, statusCollection, ToolbarStatus, NodeSelection, MarkdownParser, LISTS_COMMAND, selectionCommand, LINK_COMMAND, CLEAR_COMMAND, MD_TABLE, ClearFormat, MDLists, MDFormats, MarkdownSelection, UndoRedoCommands, MDSelectionFormats, MDLink, MDTable, markdownFormatTags, markdownSelectionTags, markdownListsTags, htmlKeyConfig, markdownKeyConfig, pasteCleanupGroupingTags, listConversionFilters, selfClosingTags, KEY_DOWN, ACTION, FORMAT_TYPE, KEY_DOWN_HANDLER, LIST_TYPE, KEY_UP_HANDLER, KEY_UP, MODEL_CHANGED_PLUGIN, MODEL_CHANGED, MS_WORD_CLEANUP_PLUGIN, MS_WORD_CLEANUP };
|
|
22814
22918
|
//# sourceMappingURL=ej2-richtexteditor.es5.js.map
|