@syncfusion/ej2-richtexteditor 18.4.34 → 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.
Files changed (92) hide show
  1. package/CHANGELOG.md +782 -718
  2. package/README.md +67 -67
  3. package/dist/ej2-richtexteditor.umd.min.js +1 -1
  4. package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-richtexteditor.es2015.js +271 -153
  6. package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
  7. package/dist/es6/ej2-richtexteditor.es5.js +393 -275
  8. package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
  9. package/helpers/e2e/index.js +3 -3
  10. package/license +9 -9
  11. package/package.json +76 -53
  12. package/src/editor-manager/plugin/image.js +2 -1
  13. package/src/editor-manager/plugin/inserthtml.js +14 -10
  14. package/src/editor-manager/plugin/link.js +6 -6
  15. package/src/editor-manager/plugin/lists.js +6 -2
  16. package/src/editor-manager/plugin/ms-word-clean-up.js +22 -6
  17. package/src/editor-manager/plugin/selection-commands.d.ts +1 -0
  18. package/src/editor-manager/plugin/selection-commands.js +34 -3
  19. package/src/editor-manager/plugin/table.js +2 -1
  20. package/src/global.d.ts +1 -0
  21. package/src/rich-text-editor/actions/full-screen.d.ts +0 -1
  22. package/src/rich-text-editor/actions/full-screen.js +6 -4
  23. package/src/rich-text-editor/actions/keyboard-model.d.ts +13 -13
  24. package/src/rich-text-editor/actions/keyboard.js +21 -20
  25. package/src/rich-text-editor/actions/resize.js +3 -0
  26. package/src/rich-text-editor/base/constant.d.ts +5 -0
  27. package/src/rich-text-editor/base/constant.js +5 -0
  28. package/src/rich-text-editor/base/rich-text-editor-model.d.ts +701 -701
  29. package/src/rich-text-editor/base/rich-text-editor.js +61 -36
  30. package/src/rich-text-editor/formatter/html-formatter.js +13 -13
  31. package/src/rich-text-editor/formatter/markdown-formatter.js +13 -13
  32. package/src/rich-text-editor/models/iframe-settings-model.d.ts +21 -21
  33. package/src/rich-text-editor/models/iframe-settings.js +19 -19
  34. package/src/rich-text-editor/models/inline-mode-model.d.ts +9 -9
  35. package/src/rich-text-editor/models/inline-mode.js +19 -19
  36. package/src/rich-text-editor/models/toolbar-settings-model.d.ts +328 -328
  37. package/src/rich-text-editor/models/toolbar-settings.js +19 -19
  38. package/src/rich-text-editor/renderer/iframe-content-renderer.js +13 -13
  39. package/src/rich-text-editor/renderer/image-module.d.ts +2 -0
  40. package/src/rich-text-editor/renderer/image-module.js +28 -8
  41. package/src/rich-text-editor/renderer/table-module.js +6 -1
  42. package/styles/_all.scss +2 -2
  43. package/styles/bootstrap-dark.css +22 -1
  44. package/styles/bootstrap.css +22 -1
  45. package/styles/bootstrap4.css +22 -1
  46. package/styles/bootstrap5-dark.css +0 -0
  47. package/styles/bootstrap5-dark.scss +0 -0
  48. package/styles/bootstrap5.css +0 -0
  49. package/styles/bootstrap5.scss +0 -0
  50. package/styles/fabric-dark.css +22 -1
  51. package/styles/fabric.css +22 -1
  52. package/styles/highcontrast-light.css +22 -1
  53. package/styles/highcontrast.css +22 -1
  54. package/styles/material-dark.css +22 -1
  55. package/styles/material.css +22 -1
  56. package/styles/rich-text-editor/_all.scss +2 -2
  57. package/styles/rich-text-editor/_bootstrap-dark-definition.scss +151 -151
  58. package/styles/rich-text-editor/_bootstrap-definition.scss +184 -184
  59. package/styles/rich-text-editor/_bootstrap4-definition.scss +307 -307
  60. package/styles/rich-text-editor/_fabric-dark-definition.scss +150 -150
  61. package/styles/rich-text-editor/_fabric-definition.scss +148 -148
  62. package/styles/rich-text-editor/_highcontrast-definition.scss +148 -148
  63. package/styles/rich-text-editor/_highcontrast-light-definition.scss +148 -148
  64. package/styles/rich-text-editor/_layout.scss +1416 -1405
  65. package/styles/rich-text-editor/_material-dark-definition.scss +151 -151
  66. package/styles/rich-text-editor/_material-definition.scss +150 -150
  67. package/styles/rich-text-editor/_theme.scss +499 -489
  68. package/styles/rich-text-editor/bootstrap-dark.css +22 -1
  69. package/styles/rich-text-editor/bootstrap.css +22 -1
  70. package/styles/rich-text-editor/bootstrap4.css +22 -1
  71. package/styles/rich-text-editor/fabric-dark.css +22 -1
  72. package/styles/rich-text-editor/fabric.css +22 -1
  73. package/styles/rich-text-editor/highcontrast-light.css +22 -1
  74. package/styles/rich-text-editor/highcontrast.css +22 -1
  75. package/styles/rich-text-editor/icons/_bootstrap-dark.scss +289 -289
  76. package/styles/rich-text-editor/icons/_bootstrap.scss +288 -288
  77. package/styles/rich-text-editor/icons/_bootstrap4.scss +288 -288
  78. package/styles/rich-text-editor/icons/_fabric-dark.scss +288 -288
  79. package/styles/rich-text-editor/icons/_fabric.scss +288 -288
  80. package/styles/rich-text-editor/icons/_highcontrast-light.scss +288 -288
  81. package/styles/rich-text-editor/icons/_highcontrast.scss +288 -288
  82. package/styles/rich-text-editor/icons/_material-dark.scss +288 -288
  83. package/styles/rich-text-editor/icons/_material.scss +288 -288
  84. package/styles/rich-text-editor/material-dark.css +22 -1
  85. package/styles/rich-text-editor/material.css +22 -1
  86. package/styles/tailwind-dark.css +0 -0
  87. package/styles/tailwind-dark.scss +0 -0
  88. package/styles/tailwind.css +0 -0
  89. package/styles/tailwind.scss +0 -0
  90. package/dist/global/ej2-richtexteditor.min.js +0 -2
  91. package/dist/global/ej2-richtexteditor.min.js.map +0 -1
  92. package/dist/global/index.d.ts +0 -5
@@ -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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function (_super) {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function (_super) {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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.closest('ul') || startNode.closest('ol')) {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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 : lastSelectionNode;
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
- this.placeCursorEnd(lastSelectionNode, node, nodeSelection, docElement, editNode);
10648
- lastSelectionNode.classList.remove('lastNode');
10649
- if (lastSelectionNode.classList.length === 0) {
10650
- lastSelectionNode.removeAttribute('class');
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 = /** @__PURE__ @class */ (function () {
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.parentElement.nodeName === 'A') {
10845
- var anchorEle = currentNode.parentElement;
10846
- currentNode.parentElement.parentElement.insertBefore(anchorEle.firstChild, anchorEle);
10847
- currentNode.parentElement.removeChild(anchorEle);
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.parentElement) || txtArray.length === 0 || i === 0 || i === txtArray.length - 1) {
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.parentElement;
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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
- this.parent.nodeSelection.getSelectedNodes(this.parent.currentDocument)[0].previousElementSibling;
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 = /** @__PURE__ @class */ (function () {
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) / e.item.columns;
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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
- domSelection.endOffset = domSelection.startOffset = 1;
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
- save.restore();
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) ? isFormatted.getFormattedNode(cursorNodes[0], format, endNode) : null;
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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
- if (elem.firstElementChild.textContent.trim() === '' &&
13536
- !isNullOrUndefined(elem.firstElementChild.firstElementChild) &&
13537
- elem.firstElementChild.firstElementChild.nodeName === 'IMG') {
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
- pushContent = elem.firstElementChild.textContent.trim();
13544
- this.listContents.push(pushContent);
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(elem.firstElementChild);
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function (_super) {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function (_super) {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
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 = /** @__PURE__ @class */ (function () {
15690
+ var Resize = /** @class */ (function () {
15628
15691
  function Resize(parent) {
15629
15692
  this.parent = parent;
15630
15693
  this.addEventListener();
@@ -15679,6 +15742,9 @@ var Resize = /** @__PURE__ @class */ (function () {
15679
15742
  this.parent.element.style.height = eventType.clientY - boundRect.top + 'px';
15680
15743
  this.parent.element.style.width = eventType.clientX - boundRect.left + 'px';
15681
15744
  }
15745
+ if (!this.parent.toolbarSettings.enable) {
15746
+ this.parent.setContentHeight('', false);
15747
+ }
15682
15748
  this.parent.refreshUI();
15683
15749
  };
15684
15750
  Resize.prototype.stopResize = function (e) {
@@ -15740,7 +15806,7 @@ var Resize = /** @__PURE__ @class */ (function () {
15740
15806
  /**
15741
15807
  * `FileManager` module is used to display the directories and images inside the editor.
15742
15808
  */
15743
- var FileManager$1 = /** @__PURE__ @class */ (function () {
15809
+ var FileManager$1 = /** @class */ (function () {
15744
15810
  function FileManager$$1(parent, locator) {
15745
15811
  FileManager.Inject(ContextMenu, DetailsView, NavigationPane, Toolbar$1);
15746
15812
  this.parent = parent;
@@ -15967,7 +16033,7 @@ var FileManager$1 = /** @__PURE__ @class */ (function () {
15967
16033
  /**
15968
16034
  * `FullScreen` module is used to maximize and minimize screen
15969
16035
  */
15970
- var FullScreen = /** @__PURE__ @class */ (function () {
16036
+ var FullScreen = /** @class */ (function () {
15971
16037
  function FullScreen(parent) {
15972
16038
  this.parent = parent;
15973
16039
  this.addEventListener();
@@ -15978,7 +16044,8 @@ var FullScreen = /** @__PURE__ @class */ (function () {
15978
16044
  * @deprecated
15979
16045
  */
15980
16046
  FullScreen.prototype.showFullScreen = function (event) {
15981
- if (this.parent.toolbarSettings.enable === true && this.parent.editorMode !== 'Markdown') {
16047
+ if (this.parent.toolbarSettings.enable === true && this.parent.editorMode !== 'Markdown'
16048
+ && !isNullOrUndefined(this.parent.quickToolbarModule)) {
15982
16049
  this.parent.quickToolbarModule.hideQuickToolbars();
15983
16050
  }
15984
16051
  this.scrollableParent = getScrollableParent(this.parent.element);
@@ -16014,7 +16081,8 @@ var FullScreen = /** @__PURE__ @class */ (function () {
16014
16081
  * @deprecated
16015
16082
  */
16016
16083
  FullScreen.prototype.hideFullScreen = function (event) {
16017
- if (this.parent.toolbarSettings.enable === true && this.parent.editorMode !== 'Markdown') {
16084
+ if (this.parent.toolbarSettings.enable === true && this.parent.editorMode !== 'Markdown'
16085
+ && !isNullOrUndefined(this.parent.quickToolbarModule)) {
16018
16086
  this.parent.quickToolbarModule.hideQuickToolbars();
16019
16087
  }
16020
16088
  if (this.parent.element.classList.contains(CLS_FULL_SCREEN)) {
@@ -16154,7 +16222,7 @@ function setAttributes(htmlAttributes, rte, isFrame, initial) {
16154
16222
  * @hidden
16155
16223
  * @deprecated
16156
16224
  */
16157
- var Render = /** @__PURE__ @class */ (function () {
16225
+ var Render = /** @class */ (function () {
16158
16226
  /**
16159
16227
  * Constructor for render module
16160
16228
  */
@@ -16227,7 +16295,7 @@ var Render = /** @__PURE__ @class */ (function () {
16227
16295
  /**
16228
16296
  * `Link` module is used to handle undo actions.
16229
16297
  */
16230
- var Link = /** @__PURE__ @class */ (function () {
16298
+ var Link = /** @class */ (function () {
16231
16299
  function Link(parent, serviceLocator) {
16232
16300
  this.parent = parent;
16233
16301
  this.rteID = parent.element.id;
@@ -16680,7 +16748,7 @@ var Link = /** @__PURE__ @class */ (function () {
16680
16748
  /**
16681
16749
  * `Image` module is used to handle image actions.
16682
16750
  */
16683
- var Image = /** @__PURE__ @class */ (function () {
16751
+ var Image = /** @class */ (function () {
16684
16752
  function Image(parent, serviceLocator) {
16685
16753
  this.isImgUploaded = false;
16686
16754
  this.pageX = null;
@@ -16700,6 +16768,7 @@ var Image = /** @__PURE__ @class */ (function () {
16700
16768
  this.parent.on(keyDown, this.onKeyDown, this);
16701
16769
  this.parent.on(keyUp, this.onKeyUp, this);
16702
16770
  this.parent.on(insertImage, this.insertImage, this);
16771
+ this.parent.on(windowResize, this.onWindowResize, this);
16703
16772
  this.parent.on(insertCompleted, this.showImageQuickToolbar, this);
16704
16773
  this.parent.on(imageToolbarAction, this.onToolbarAction, this);
16705
16774
  this.parent.on(imageCaption, this.caption, this);
@@ -16720,6 +16789,7 @@ var Image = /** @__PURE__ @class */ (function () {
16720
16789
  }
16721
16790
  this.parent.off(keyDown, this.onKeyDown);
16722
16791
  this.parent.off(keyUp, this.onKeyUp);
16792
+ this.parent.off(windowResize, this.onWindowResize);
16723
16793
  this.parent.off(insertImage, this.insertImage);
16724
16794
  this.parent.off(insertCompleted, this.showImageQuickToolbar);
16725
16795
  this.parent.off(imageCaption, this.caption);
@@ -16807,6 +16877,7 @@ var Image = /** @__PURE__ @class */ (function () {
16807
16877
  return;
16808
16878
  }
16809
16879
  var target = ele ? ele : e.target;
16880
+ this.prevSelectedImgEle = this.imgEle;
16810
16881
  if (target.tagName === 'IMG') {
16811
16882
  this.parent.preventDefaultResize(e);
16812
16883
  var img = target;
@@ -16941,7 +17012,6 @@ var Image = /** @__PURE__ @class */ (function () {
16941
17012
  Image.prototype.calcPos = function (elem) {
16942
17013
  var ignoreOffset = ['TD', 'TH', 'TABLE', 'A'];
16943
17014
  var parentOffset = { top: 0, left: 0 };
16944
- var offset = elem.getBoundingClientRect();
16945
17015
  var doc = elem.ownerDocument;
16946
17016
  var offsetParent = ((elem.offsetParent && (elem.offsetParent.classList.contains('e-img-caption') ||
16947
17017
  ignoreOffset.indexOf(elem.offsetParent.tagName) > -1)) ?
@@ -16955,8 +17025,8 @@ var Image = /** @__PURE__ @class */ (function () {
16955
17025
  parentOffset = offsetParent.getBoundingClientRect();
16956
17026
  }
16957
17027
  return {
16958
- top: offset.top - parentOffset.top,
16959
- left: offset.left - parentOffset.left
17028
+ top: elem.offsetTop,
17029
+ left: elem.offsetLeft
16960
17030
  };
16961
17031
  };
16962
17032
  Image.prototype.setAspectRatio = function (img, expectedX, expectedY) {
@@ -17011,6 +17081,11 @@ var Image = /** @__PURE__ @class */ (function () {
17011
17081
  }
17012
17082
  }
17013
17083
  };
17084
+ Image.prototype.onWindowResize = function () {
17085
+ if (!isNullOrUndefined(this.contentModule.getEditPanel().querySelector('.e-img-resize'))) {
17086
+ this.cancelResizeAction();
17087
+ }
17088
+ };
17014
17089
  Image.prototype.pixToPerc = function (expected, parentEle) {
17015
17090
  return expected / parseFloat(getComputedStyle(parentEle).width) * 100;
17016
17091
  };
@@ -17023,7 +17098,8 @@ var Image = /** @__PURE__ @class */ (function () {
17023
17098
  }
17024
17099
  else {
17025
17100
  if ((parseInt(_this.parent.insertImageSettings.minWidth, 10) >= parseInt(width, 10) ||
17026
- parseInt(_this.parent.getInsertImgMaxWidth(), 10) <= parseInt(width, 10))) {
17101
+ (parseInt(_this.parent.getInsertImgMaxWidth(), 10) <= parseInt(width, 10) &&
17102
+ isNullOrUndefined(_this.imgEle.style.width)))) {
17027
17103
  return;
17028
17104
  }
17029
17105
  if (!_this.parent.insertImageSettings.resizeByPercent &&
@@ -17648,7 +17724,11 @@ var Image = /** @__PURE__ @class */ (function () {
17648
17724
  }
17649
17725
  };
17650
17726
  Image.prototype.imageRemovePost = function (src) {
17651
- var ajax = new Ajax(this.parent.insertImageSettings.removeUrl, 'POST', true, null);
17727
+ var removeUrl = this.parent.insertImageSettings.removeUrl;
17728
+ if (isNullOrUndefined(removeUrl) || removeUrl === '') {
17729
+ return;
17730
+ }
17731
+ var ajax = new Ajax(removeUrl, 'POST', true, null);
17652
17732
  var formData = new FormData();
17653
17733
  formData.append(name, src);
17654
17734
  ajax.send(formData);
@@ -17880,9 +17960,16 @@ var Image = /** @__PURE__ @class */ (function () {
17880
17960
  this.contentModule.getEditPanel().contains(this.imgResizeDiv)) {
17881
17961
  this.cancelResizeAction();
17882
17962
  }
17883
- if (target.tagName !== 'IMG' && this.contentModule.getEditPanel().querySelector('.e-img-resize')) {
17884
- this.removeResizeEle();
17885
- this.contentModule.getEditPanel().querySelector('img').style.outline = '';
17963
+ if (this.contentModule.getEditPanel().querySelector('.e-img-resize')) {
17964
+ if (target.tagName !== 'IMG') {
17965
+ this.removeResizeEle();
17966
+ }
17967
+ if (target.tagName !== 'IMG' && !isNullOrUndefined(this.imgEle)) {
17968
+ this.imgEle.style.outline = '';
17969
+ }
17970
+ else if (!isNullOrUndefined(this.prevSelectedImgEle) && this.prevSelectedImgEle !== target) {
17971
+ this.prevSelectedImgEle.style.outline = '';
17972
+ }
17886
17973
  }
17887
17974
  };
17888
17975
  Image.prototype.removeResizeEle = function () {
@@ -18611,6 +18698,7 @@ var Image = /** @__PURE__ @class */ (function () {
18611
18698
  * @deprecated
18612
18699
  */
18613
18700
  Image.prototype.destroy = function () {
18701
+ this.prevSelectedImgEle = undefined;
18614
18702
  this.removeEventListener();
18615
18703
  };
18616
18704
  /**
@@ -18627,7 +18715,7 @@ var Image = /** @__PURE__ @class */ (function () {
18627
18715
  * @hidden
18628
18716
  * @deprecated
18629
18717
  */
18630
- var ViewSource = /** @__PURE__ @class */ (function () {
18718
+ var ViewSource = /** @class */ (function () {
18631
18719
  /**
18632
18720
  * Constructor for view source module
18633
18721
  */
@@ -18854,7 +18942,7 @@ var ViewSource = /** @__PURE__ @class */ (function () {
18854
18942
  /**
18855
18943
  * `Table` module is used to handle table actions.
18856
18944
  */
18857
- var Table = /** @__PURE__ @class */ (function () {
18945
+ var Table = /** @class */ (function () {
18858
18946
  function Table(parent, serviceLocator) {
18859
18947
  this.ensureInsideTableList = true;
18860
18948
  this.pageX = null;
@@ -19294,6 +19382,11 @@ var Table = /** @__PURE__ @class */ (function () {
19294
19382
  }
19295
19383
  var target = e.target || e.targetTouches[0].target;
19296
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
+ }
19297
19390
  if (target.nodeName === 'TABLE' || target.nodeName === 'TD' || target.nodeName === 'TH') {
19298
19391
  this.curTable = (closestTable && this.parent.contentModule.getEditPanel().contains(closestTable))
19299
19392
  && (target.nodeName === 'TD' || target.nodeName === 'TH') ?
@@ -19545,7 +19638,7 @@ var Table = /** @__PURE__ @class */ (function () {
19545
19638
  'px; left:' + (_this.calcPos(_this.curTable).left + tableWidth - 4) + 'px;';
19546
19639
  _this.updateHelper();
19547
19640
  }
19548
- else if (_this.resizeBtnStat.tableBox) {
19641
+ else if (_this.resizeBtnStat.tableBox && !isNullOrUndefined(tableReBox)) {
19549
19642
  if (!Browser.isDevice) {
19550
19643
  EventHandler.remove(_this.contentModule.getEditPanel(), 'mouseover', _this.resizeHelper);
19551
19644
  }
@@ -19967,7 +20060,7 @@ var Table = /** @__PURE__ @class */ (function () {
19967
20060
  /**
19968
20061
  * Dialog Renderer
19969
20062
  */
19970
- var DialogRenderer = /** @__PURE__ @class */ (function () {
20063
+ var DialogRenderer = /** @class */ (function () {
19971
20064
  function DialogRenderer(parent) {
19972
20065
  this.parent = parent;
19973
20066
  }
@@ -20188,25 +20281,25 @@ var executeGroup = {
20188
20281
  }
20189
20282
  };
20190
20283
 
20191
- var __extends$5 = (undefined && undefined.__extends) || (function () {
20192
- var extendStatics = function (d, b) {
20193
- extendStatics = Object.setPrototypeOf ||
20194
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
20195
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
20196
- return extendStatics(d, b);
20197
- };
20198
- return function (d, b) {
20199
- extendStatics(d, b);
20200
- function __() { this.constructor = d; }
20201
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
20202
- };
20203
- })();
20204
- var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
20205
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
20206
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20207
- 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;
20208
- return c > 3 && r && Object.defineProperty(target, key, r), r;
20209
- };
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
+ };
20210
20303
  var predefinedItems = ['Bold', 'Italic', 'Underline', '|', 'Formats', 'Alignments',
20211
20304
  'OrderedList', 'UnorderedList', '|', 'CreateLink', 'Image', '|', 'SourceCode', 'Undo', 'Redo'];
20212
20305
  var fontFamily = [
@@ -20259,7 +20352,7 @@ var backgroundColor = {
20259
20352
  /**
20260
20353
  * Configures the toolbar settings of the RichTextEditor.
20261
20354
  */
20262
- var ToolbarSettings$1 = /** @__PURE__ @class */ (function (_super) {
20355
+ var ToolbarSettings$1 = /** @class */ (function (_super) {
20263
20356
  __extends$5(ToolbarSettings$$1, _super);
20264
20357
  function ToolbarSettings$$1() {
20265
20358
  return _super !== null && _super.apply(this, arguments) || this;
@@ -20284,7 +20377,7 @@ var ToolbarSettings$1 = /** @__PURE__ @class */ (function (_super) {
20284
20377
  /**
20285
20378
  * Configures the image settings of the RichTextEditor.
20286
20379
  */
20287
- var ImageSettings = /** @__PURE__ @class */ (function (_super) {
20380
+ var ImageSettings = /** @class */ (function (_super) {
20288
20381
  __extends$5(ImageSettings, _super);
20289
20382
  function ImageSettings() {
20290
20383
  return _super !== null && _super.apply(this, arguments) || this;
@@ -20336,7 +20429,7 @@ var ImageSettings = /** @__PURE__ @class */ (function (_super) {
20336
20429
  /**
20337
20430
  * Configures the file manager settings of the RichTextEditor.
20338
20431
  */
20339
- var FileManagerSettings = /** @__PURE__ @class */ (function (_super) {
20432
+ var FileManagerSettings = /** @class */ (function (_super) {
20340
20433
  __extends$5(FileManagerSettings, _super);
20341
20434
  function FileManagerSettings() {
20342
20435
  return _super !== null && _super.apply(this, arguments) || this;
@@ -20394,7 +20487,7 @@ var FileManagerSettings = /** @__PURE__ @class */ (function (_super) {
20394
20487
  ], FileManagerSettings.prototype, "view", void 0);
20395
20488
  return FileManagerSettings;
20396
20489
  }(ChildProperty));
20397
- var TableSettings = /** @__PURE__ @class */ (function (_super) {
20490
+ var TableSettings = /** @class */ (function (_super) {
20398
20491
  __extends$5(TableSettings, _super);
20399
20492
  function TableSettings() {
20400
20493
  return _super !== null && _super.apply(this, arguments) || this;
@@ -20419,7 +20512,7 @@ var TableSettings = /** @__PURE__ @class */ (function (_super) {
20419
20512
  /**
20420
20513
  * Configures the quick toolbar settings of the RichTextEditor.
20421
20514
  */
20422
- var QuickToolbarSettings = /** @__PURE__ @class */ (function (_super) {
20515
+ var QuickToolbarSettings = /** @class */ (function (_super) {
20423
20516
  __extends$5(QuickToolbarSettings, _super);
20424
20517
  function QuickToolbarSettings() {
20425
20518
  return _super !== null && _super.apply(this, arguments) || this;
@@ -20450,7 +20543,7 @@ var QuickToolbarSettings = /** @__PURE__ @class */ (function (_super) {
20450
20543
  /**
20451
20544
  * Configures the Paste Cleanup settings of the RichTextEditor.
20452
20545
  */
20453
- var PasteCleanupSettings = /** @__PURE__ @class */ (function (_super) {
20546
+ var PasteCleanupSettings = /** @class */ (function (_super) {
20454
20547
  __extends$5(PasteCleanupSettings, _super);
20455
20548
  function PasteCleanupSettings() {
20456
20549
  return _super !== null && _super.apply(this, arguments) || this;
@@ -20478,7 +20571,7 @@ var PasteCleanupSettings = /** @__PURE__ @class */ (function (_super) {
20478
20571
  /**
20479
20572
  * Configures the font family settings of the RichTextEditor.
20480
20573
  */
20481
- var FontFamily = /** @__PURE__ @class */ (function (_super) {
20574
+ var FontFamily = /** @class */ (function (_super) {
20482
20575
  __extends$5(FontFamily, _super);
20483
20576
  function FontFamily() {
20484
20577
  return _super !== null && _super.apply(this, arguments) || this;
@@ -20497,7 +20590,7 @@ var FontFamily = /** @__PURE__ @class */ (function (_super) {
20497
20590
  /**
20498
20591
  * Configures the font size settings of the RichTextEditor.
20499
20592
  */
20500
- var FontSize = /** @__PURE__ @class */ (function (_super) {
20593
+ var FontSize = /** @class */ (function (_super) {
20501
20594
  __extends$5(FontSize, _super);
20502
20595
  function FontSize() {
20503
20596
  return _super !== null && _super.apply(this, arguments) || this;
@@ -20516,7 +20609,7 @@ var FontSize = /** @__PURE__ @class */ (function (_super) {
20516
20609
  /**
20517
20610
  * Configures the format settings of the RichTextEditor.
20518
20611
  */
20519
- var Format = /** @__PURE__ @class */ (function (_super) {
20612
+ var Format = /** @class */ (function (_super) {
20520
20613
  __extends$5(Format, _super);
20521
20614
  function Format() {
20522
20615
  return _super !== null && _super.apply(this, arguments) || this;
@@ -20535,7 +20628,7 @@ var Format = /** @__PURE__ @class */ (function (_super) {
20535
20628
  /**
20536
20629
  * Configures the font Color settings of the RichTextEditor.
20537
20630
  */
20538
- var FontColor = /** @__PURE__ @class */ (function (_super) {
20631
+ var FontColor = /** @class */ (function (_super) {
20539
20632
  __extends$5(FontColor, _super);
20540
20633
  function FontColor() {
20541
20634
  return _super !== null && _super.apply(this, arguments) || this;
@@ -20560,7 +20653,7 @@ var FontColor = /** @__PURE__ @class */ (function (_super) {
20560
20653
  /**
20561
20654
  * Configures the background Color settings of the RichTextEditor.
20562
20655
  */
20563
- var BackgroundColor = /** @__PURE__ @class */ (function (_super) {
20656
+ var BackgroundColor = /** @class */ (function (_super) {
20564
20657
  __extends$5(BackgroundColor, _super);
20565
20658
  function BackgroundColor() {
20566
20659
  return _super !== null && _super.apply(this, arguments) || this;
@@ -20583,29 +20676,29 @@ var BackgroundColor = /** @__PURE__ @class */ (function (_super) {
20583
20676
  return BackgroundColor;
20584
20677
  }(ChildProperty));
20585
20678
 
20586
- var __extends$6 = (undefined && undefined.__extends) || (function () {
20587
- var extendStatics = function (d, b) {
20588
- extendStatics = Object.setPrototypeOf ||
20589
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
20590
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
20591
- return extendStatics(d, b);
20592
- };
20593
- return function (d, b) {
20594
- extendStatics(d, b);
20595
- function __() { this.constructor = d; }
20596
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
20597
- };
20598
- })();
20599
- var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
20600
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
20601
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20602
- 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;
20603
- return c > 3 && r && Object.defineProperty(target, key, r), r;
20604
- };
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
+ };
20605
20698
  /**
20606
20699
  * Objects used for configuring the iframe resources properties.
20607
20700
  */
20608
- var Resources = /** @__PURE__ @class */ (function (_super) {
20701
+ var Resources = /** @class */ (function (_super) {
20609
20702
  __extends$6(Resources, _super);
20610
20703
  function Resources() {
20611
20704
  return _super !== null && _super.apply(this, arguments) || this;
@@ -20621,7 +20714,7 @@ var Resources = /** @__PURE__ @class */ (function (_super) {
20621
20714
  /**
20622
20715
  * Configures the iframe settings of the RTE.
20623
20716
  */
20624
- var IFrameSettings = /** @__PURE__ @class */ (function (_super) {
20717
+ var IFrameSettings = /** @class */ (function (_super) {
20625
20718
  __extends$6(IFrameSettings, _super);
20626
20719
  function IFrameSettings() {
20627
20720
  return _super !== null && _super.apply(this, arguments) || this;
@@ -20638,29 +20731,29 @@ var IFrameSettings = /** @__PURE__ @class */ (function (_super) {
20638
20731
  return IFrameSettings;
20639
20732
  }(ChildProperty));
20640
20733
 
20641
- var __extends$7 = (undefined && undefined.__extends) || (function () {
20642
- var extendStatics = function (d, b) {
20643
- extendStatics = Object.setPrototypeOf ||
20644
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
20645
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
20646
- return extendStatics(d, b);
20647
- };
20648
- return function (d, b) {
20649
- extendStatics(d, b);
20650
- function __() { this.constructor = d; }
20651
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
20652
- };
20653
- })();
20654
- var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
20655
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
20656
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20657
- 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;
20658
- return c > 3 && r && Object.defineProperty(target, key, r), r;
20659
- };
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
+ };
20660
20753
  /**
20661
20754
  * Configures the inlineMode property of the RTE.
20662
20755
  */
20663
- var InlineMode = /** @__PURE__ @class */ (function (_super) {
20756
+ var InlineMode = /** @class */ (function (_super) {
20664
20757
  __extends$7(InlineMode, _super);
20665
20758
  function InlineMode() {
20666
20759
  return _super !== null && _super.apply(this, arguments) || this;
@@ -20674,36 +20767,36 @@ var InlineMode = /** @__PURE__ @class */ (function (_super) {
20674
20767
  return InlineMode;
20675
20768
  }(ChildProperty));
20676
20769
 
20677
- var __extends$4 = (undefined && undefined.__extends) || (function () {
20678
- var extendStatics = function (d, b) {
20679
- extendStatics = Object.setPrototypeOf ||
20680
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
20681
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
20682
- return extendStatics(d, b);
20683
- };
20684
- return function (d, b) {
20685
- extendStatics(d, b);
20686
- function __() { this.constructor = d; }
20687
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
20688
- };
20689
- })();
20690
- var __assign = (undefined && undefined.__assign) || function () {
20691
- __assign = Object.assign || function(t) {
20692
- for (var s, i = 1, n = arguments.length; i < n; i++) {
20693
- s = arguments[i];
20694
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
20695
- t[p] = s[p];
20696
- }
20697
- return t;
20698
- };
20699
- return __assign.apply(this, arguments);
20700
- };
20701
- var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
20702
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
20703
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20704
- 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;
20705
- return c > 3 && r && Object.defineProperty(target, key, r), r;
20706
- };
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
+ };
20707
20800
  /**
20708
20801
  * Represents the Rich Text Editor component.
20709
20802
  * ```html
@@ -20714,7 +20807,7 @@ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators,
20714
20807
  * </script>
20715
20808
  * ```
20716
20809
  */
20717
- var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
20810
+ var RichTextEditor = /** @class */ (function (_super) {
20718
20811
  __extends$4(RichTextEditor, _super);
20719
20812
  function RichTextEditor(options, element) {
20720
20813
  var _this = _super.call(this, options, element) || this;
@@ -21176,6 +21269,17 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
21176
21269
  this.autoResize();
21177
21270
  };
21178
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
+ }
21179
21283
  this.notify(keyUp, { member: 'keyup', args: e });
21180
21284
  if (e.code === 'KeyX' && e.which === 88 && e.keyCode === 88 && e.ctrlKey && (this.inputElement.innerHTML === '' ||
21181
21285
  this.inputElement.innerHTML === '<br>')) {
@@ -21186,11 +21290,14 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
21186
21290
  && ((e.key !== 'shift' && !e.ctrlKey) && e.key && e.key.length === 1 || allowedKeys)) && !this.inlineMode.enable) {
21187
21291
  this.formatter.onKeyHandler(this, e);
21188
21292
  }
21189
- 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) {
21190
21295
  this.notify(toolbarRefresh, { args: e });
21191
21296
  }
21192
21297
  if (!isNullOrUndefined(this.placeholder)) {
21193
- this.setPlaceHolder();
21298
+ if (!(e.key === 'Enter' && e.keyCode === 13) && this.inputElement.innerHTML === '<p><br></p>') {
21299
+ this.setPlaceHolder();
21300
+ }
21194
21301
  }
21195
21302
  };
21196
21303
  /**
@@ -21375,7 +21482,9 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
21375
21482
  return;
21376
21483
  }
21377
21484
  if (this.element.offsetParent === null) {
21378
- this.toolbarModule.destroy();
21485
+ if (!isNullOrUndefined(this.toolbarModule)) {
21486
+ this.toolbarModule.destroy();
21487
+ }
21379
21488
  return;
21380
21489
  }
21381
21490
  this.notify(destroy, {});
@@ -21755,8 +21864,7 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
21755
21864
  this.placeHolderWrapper.innerHTML = this.placeholder;
21756
21865
  if (this.inputElement.textContent.length === 0 &&
21757
21866
  !isNullOrUndefined(this.inputElement.firstChild) && this.inputElement.firstChild.nodeName === 'P' &&
21758
- !isNullOrUndefined(this.inputElement.firstChild.firstChild) && this.inputElement.firstChild.firstChild.nodeName === 'BR' &&
21759
- this.inputElement.innerHTML !== '<p><br></p><p><br></p>') {
21867
+ !isNullOrUndefined(this.inputElement.firstChild.firstChild) && this.inputElement.firstChild.firstChild.nodeName === 'BR') {
21760
21868
  this.placeHolderWrapper.style.display = 'block';
21761
21869
  }
21762
21870
  else {
@@ -21984,7 +22092,9 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
21984
22092
  var item = compiledTemplate[i];
21985
22093
  append([item], this.element);
21986
22094
  }
21987
- this.setProperties({ value: this.element.innerHTML.trim() });
22095
+ if (this.element.innerHTML.trim() !== '') {
22096
+ this.setProperties({ value: this.element.innerHTML.trim() });
22097
+ }
21988
22098
  }
21989
22099
  }
21990
22100
  else {
@@ -22178,11 +22288,16 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
22178
22288
  };
22179
22289
  RichTextEditor.prototype.resizeHandler = function () {
22180
22290
  var isExpand = false;
22291
+ if (!document.body.contains(this.element)) {
22292
+ document.defaultView.removeEventListener('resize', this.onResizeHandler, true);
22293
+ return;
22294
+ }
22181
22295
  if (this.toolbarSettings.enable && !this.inlineMode.enable) {
22182
22296
  this.toolbarModule.refreshToolbarOverflow();
22183
22297
  isExpand = this.toolbarModule.baseToolbar.toolbarObj.element.classList.contains(CLS_EXPAND_OPEN);
22184
22298
  }
22185
22299
  this.setContentHeight('', isExpand);
22300
+ this.notify(windowResize, null);
22186
22301
  };
22187
22302
  RichTextEditor.prototype.scrollHandler = function (e) {
22188
22303
  this.notify(scroll, { args: e });
@@ -22258,6 +22373,9 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
22258
22373
  return value;
22259
22374
  };
22260
22375
  RichTextEditor.prototype.updateValueOnIdle = function () {
22376
+ if (!isNullOrUndefined(this.tableModule) && !isNullOrUndefined(this.inputElement.querySelector('.e-table-box.e-rbox-select'))) {
22377
+ return;
22378
+ }
22261
22379
  this.setProperties({ value: this.getUpdatedValue() }, true);
22262
22380
  this.valueContainer.value = this.value;
22263
22381
  this.invokeChangeEvent();
@@ -22796,5 +22914,5 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
22796
22914
  * Rich Text Editor component exported items
22797
22915
  */
22798
22916
 
22799
- 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 };
22800
22918
  //# sourceMappingURL=ej2-richtexteditor.es5.js.map