@syncfusion/ej2-richtexteditor 23.2.5 → 23.2.7-52849

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 (221) hide show
  1. package/.github/PULL_REQUEST_TEMPLATE/Bug.md +40 -40
  2. package/.github/PULL_REQUEST_TEMPLATE/Feature.md +27 -27
  3. package/CHANGELOG.md +1751 -1713
  4. package/README.md +76 -76
  5. package/dist/ej2-richtexteditor.umd.min.js +1 -10
  6. package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
  7. package/dist/es6/ej2-richtexteditor.es2015.js +349 -199
  8. package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
  9. package/dist/es6/ej2-richtexteditor.es5.js +459 -309
  10. package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
  11. package/helpers/e2e/index.js +3 -3
  12. package/helpers/e2e/rte-helper.js +13 -13
  13. package/license +9 -9
  14. package/package.json +74 -74
  15. package/src/common/interface.d.ts +7 -7
  16. package/src/editor-manager/base/classes.d.ts +1 -1
  17. package/src/editor-manager/base/classes.js +1 -1
  18. package/src/editor-manager/base/editor-manager.d.ts +3 -3
  19. package/src/editor-manager/base/editor-manager.js +3 -3
  20. package/src/editor-manager/base/enum.d.ts +2 -2
  21. package/src/editor-manager/base/interface.d.ts +10 -9
  22. package/src/editor-manager/base/types.d.ts +1 -1
  23. package/src/editor-manager/plugin/alignments.d.ts +2 -2
  24. package/src/editor-manager/plugin/alignments.js +2 -2
  25. package/src/editor-manager/plugin/audio.d.ts +3 -3
  26. package/src/editor-manager/plugin/audio.js +3 -3
  27. package/src/editor-manager/plugin/clearformat-exec.d.ts +2 -2
  28. package/src/editor-manager/plugin/clearformat-exec.js +2 -2
  29. package/src/editor-manager/plugin/clearformat.d.ts +1 -1
  30. package/src/editor-manager/plugin/clearformat.js +1 -1
  31. package/src/editor-manager/plugin/dom-node.d.ts +34 -34
  32. package/src/editor-manager/plugin/dom-node.js +34 -34
  33. package/src/editor-manager/plugin/format-painter-actions.d.ts +1 -1
  34. package/src/editor-manager/plugin/format-painter-actions.js +1 -1
  35. package/src/editor-manager/plugin/formats.d.ts +2 -2
  36. package/src/editor-manager/plugin/formats.js +2 -2
  37. package/src/editor-manager/plugin/image.d.ts +3 -3
  38. package/src/editor-manager/plugin/image.js +3 -3
  39. package/src/editor-manager/plugin/indents.d.ts +2 -2
  40. package/src/editor-manager/plugin/indents.js +2 -2
  41. package/src/editor-manager/plugin/insert-methods.d.ts +4 -4
  42. package/src/editor-manager/plugin/insert-methods.js +4 -4
  43. package/src/editor-manager/plugin/insert-text.d.ts +2 -2
  44. package/src/editor-manager/plugin/insert-text.js +2 -2
  45. package/src/editor-manager/plugin/inserthtml-exec.d.ts +2 -2
  46. package/src/editor-manager/plugin/inserthtml-exec.js +2 -2
  47. package/src/editor-manager/plugin/inserthtml.d.ts +2 -2
  48. package/src/editor-manager/plugin/inserthtml.js +5 -3
  49. package/src/editor-manager/plugin/isformatted.d.ts +8 -8
  50. package/src/editor-manager/plugin/isformatted.js +8 -8
  51. package/src/editor-manager/plugin/link.d.ts +2 -2
  52. package/src/editor-manager/plugin/link.js +4 -2
  53. package/src/editor-manager/plugin/lists.d.ts +2 -2
  54. package/src/editor-manager/plugin/lists.js +2 -2
  55. package/src/editor-manager/plugin/ms-word-clean-up.d.ts +1 -1
  56. package/src/editor-manager/plugin/ms-word-clean-up.js +7 -3
  57. package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
  58. package/src/editor-manager/plugin/nodecutter.js +6 -6
  59. package/src/editor-manager/plugin/selection-commands.d.ts +1 -1
  60. package/src/editor-manager/plugin/selection-commands.js +1 -1
  61. package/src/editor-manager/plugin/selection-exec.d.ts +2 -2
  62. package/src/editor-manager/plugin/selection-exec.js +2 -2
  63. package/src/editor-manager/plugin/table.d.ts +2 -2
  64. package/src/editor-manager/plugin/table.js +2 -2
  65. package/src/editor-manager/plugin/toolbar-status.d.ts +2 -2
  66. package/src/editor-manager/plugin/toolbar-status.js +2 -2
  67. package/src/editor-manager/plugin/undo.d.ts +6 -6
  68. package/src/editor-manager/plugin/undo.js +6 -6
  69. package/src/editor-manager/plugin/video.d.ts +3 -3
  70. package/src/editor-manager/plugin/video.js +3 -3
  71. package/src/global.d.ts +1 -0
  72. package/src/markdown-parser/base/interface.d.ts +10 -10
  73. package/src/markdown-parser/base/markdown-parser.d.ts +3 -3
  74. package/src/markdown-parser/base/markdown-parser.js +3 -3
  75. package/src/markdown-parser/base/types.d.ts +1 -1
  76. package/src/markdown-parser/plugin/clearformat.d.ts +2 -2
  77. package/src/markdown-parser/plugin/clearformat.js +2 -2
  78. package/src/markdown-parser/plugin/formats.d.ts +2 -2
  79. package/src/markdown-parser/plugin/formats.js +2 -2
  80. package/src/markdown-parser/plugin/insert-text.d.ts +2 -2
  81. package/src/markdown-parser/plugin/insert-text.js +2 -2
  82. package/src/markdown-parser/plugin/link.d.ts +2 -2
  83. package/src/markdown-parser/plugin/link.js +2 -2
  84. package/src/markdown-parser/plugin/markdown-selection.d.ts +14 -14
  85. package/src/markdown-parser/plugin/markdown-selection.js +14 -14
  86. package/src/markdown-parser/plugin/md-selection-formats.d.ts +1 -1
  87. package/src/markdown-parser/plugin/md-selection-formats.js +1 -1
  88. package/src/markdown-parser/plugin/table.d.ts +3 -3
  89. package/src/markdown-parser/plugin/table.js +3 -3
  90. package/src/markdown-parser/plugin/undo.d.ts +6 -6
  91. package/src/markdown-parser/plugin/undo.js +6 -6
  92. package/src/rich-text-editor/actions/base-quick-toolbar.d.ts +9 -9
  93. package/src/rich-text-editor/actions/base-quick-toolbar.js +9 -9
  94. package/src/rich-text-editor/actions/base-toolbar.d.ts +3 -3
  95. package/src/rich-text-editor/actions/base-toolbar.js +3 -3
  96. package/src/rich-text-editor/actions/color-picker.d.ts +2 -2
  97. package/src/rich-text-editor/actions/color-picker.js +2 -2
  98. package/src/rich-text-editor/actions/count.d.ts +3 -3
  99. package/src/rich-text-editor/actions/count.js +3 -3
  100. package/src/rich-text-editor/actions/dropdown-buttons.d.ts +2 -2
  101. package/src/rich-text-editor/actions/dropdown-buttons.js +2 -2
  102. package/src/rich-text-editor/actions/emoji-picker.d.ts +1 -1
  103. package/src/rich-text-editor/actions/emoji-picker.js +1 -1
  104. package/src/rich-text-editor/actions/enter-key.js +1 -1
  105. package/src/rich-text-editor/actions/full-screen.d.ts +3 -3
  106. package/src/rich-text-editor/actions/full-screen.js +3 -3
  107. package/src/rich-text-editor/actions/html-editor.d.ts +3 -3
  108. package/src/rich-text-editor/actions/html-editor.js +13 -5
  109. package/src/rich-text-editor/actions/keyboard-model.d.ts +16 -16
  110. package/src/rich-text-editor/actions/keyboard.d.ts +1 -1
  111. package/src/rich-text-editor/actions/keyboard.js +20 -20
  112. package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
  113. package/src/rich-text-editor/actions/markdown-editor.js +2 -2
  114. package/src/rich-text-editor/actions/paste-clean-up.d.ts +1 -1
  115. package/src/rich-text-editor/actions/paste-clean-up.js +6 -4
  116. package/src/rich-text-editor/actions/quick-toolbar.d.ts +9 -9
  117. package/src/rich-text-editor/actions/quick-toolbar.js +13 -10
  118. package/src/rich-text-editor/actions/toolbar.d.ts +13 -14
  119. package/src/rich-text-editor/actions/toolbar.js +13 -21
  120. package/src/rich-text-editor/actions/xhtml-validation.d.ts +1 -1
  121. package/src/rich-text-editor/actions/xhtml-validation.js +1 -1
  122. package/src/rich-text-editor/base/classes.d.ts +125 -120
  123. package/src/rich-text-editor/base/classes.js +125 -120
  124. package/src/rich-text-editor/base/constant.d.ts +149 -149
  125. package/src/rich-text-editor/base/constant.js +149 -149
  126. package/src/rich-text-editor/base/enum.d.ts +1 -1
  127. package/src/rich-text-editor/base/enum.js +1 -1
  128. package/src/rich-text-editor/base/interface.d.ts +50 -49
  129. package/src/rich-text-editor/base/interface.js +1 -1
  130. package/src/rich-text-editor/base/rich-text-editor-model.d.ts +891 -891
  131. package/src/rich-text-editor/base/rich-text-editor.d.ts +72 -60
  132. package/src/rich-text-editor/base/rich-text-editor.js +112 -76
  133. package/src/rich-text-editor/base/util.d.ts +1 -1
  134. package/src/rich-text-editor/base/util.js +1 -1
  135. package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
  136. package/src/rich-text-editor/formatter/formatter.js +8 -8
  137. package/src/rich-text-editor/formatter/html-formatter.d.ts +2 -2
  138. package/src/rich-text-editor/formatter/html-formatter.js +15 -15
  139. package/src/rich-text-editor/formatter/markdown-formatter.d.ts +2 -2
  140. package/src/rich-text-editor/formatter/markdown-formatter.js +15 -15
  141. package/src/rich-text-editor/models/default-locale.js +1 -0
  142. package/src/rich-text-editor/models/iframe-settings-model.d.ts +26 -26
  143. package/src/rich-text-editor/models/iframe-settings.js +19 -19
  144. package/src/rich-text-editor/models/inline-mode-model.d.ts +11 -11
  145. package/src/rich-text-editor/models/inline-mode.js +19 -19
  146. package/src/rich-text-editor/models/toolbar-settings-model.d.ts +760 -760
  147. package/src/rich-text-editor/models/toolbar-settings.js +19 -19
  148. package/src/rich-text-editor/renderer/audio-module.d.ts +1 -1
  149. package/src/rich-text-editor/renderer/audio-module.js +1 -2
  150. package/src/rich-text-editor/renderer/content-renderer.d.ts +6 -6
  151. package/src/rich-text-editor/renderer/content-renderer.js +6 -6
  152. package/src/rich-text-editor/renderer/dialog-renderer.d.ts +3 -2
  153. package/src/rich-text-editor/renderer/dialog-renderer.js +13 -2
  154. package/src/rich-text-editor/renderer/iframe-content-renderer.d.ts +4 -4
  155. package/src/rich-text-editor/renderer/iframe-content-renderer.js +17 -17
  156. package/src/rich-text-editor/renderer/image-module.d.ts +1 -1
  157. package/src/rich-text-editor/renderer/image-module.js +19 -12
  158. package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
  159. package/src/rich-text-editor/renderer/link-module.js +3 -2
  160. package/src/rich-text-editor/renderer/markdown-renderer.d.ts +6 -6
  161. package/src/rich-text-editor/renderer/markdown-renderer.js +6 -6
  162. package/src/rich-text-editor/renderer/popup-renderer.d.ts +5 -5
  163. package/src/rich-text-editor/renderer/popup-renderer.js +5 -5
  164. package/src/rich-text-editor/renderer/render.d.ts +2 -2
  165. package/src/rich-text-editor/renderer/render.js +2 -2
  166. package/src/rich-text-editor/renderer/table-module.d.ts +2 -1
  167. package/src/rich-text-editor/renderer/table-module.js +10 -2
  168. package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +9 -9
  169. package/src/rich-text-editor/renderer/toolbar-renderer.js +88 -19
  170. package/src/rich-text-editor/renderer/video-module.d.ts +1 -1
  171. package/src/rich-text-editor/renderer/video-module.js +2 -3
  172. package/src/rich-text-editor/renderer/view-source.d.ts +6 -6
  173. package/src/rich-text-editor/renderer/view-source.js +15 -14
  174. package/src/rich-text-editor/services/renderer-factory.d.ts +3 -3
  175. package/src/rich-text-editor/services/renderer-factory.js +3 -3
  176. package/src/rich-text-editor/services/service-locator.d.ts +3 -3
  177. package/src/rich-text-editor/services/service-locator.js +3 -3
  178. package/src/selection/selection.d.ts +22 -22
  179. package/src/selection/selection.js +22 -22
  180. package/styles/_all.scss +1 -1
  181. package/styles/material3-dark.scss +1 -1
  182. package/styles/material3.scss +1 -1
  183. package/styles/rich-text-editor/_all.scss +2 -2
  184. package/styles/rich-text-editor/_bootstrap-dark-definition.scss +277 -277
  185. package/styles/rich-text-editor/_bootstrap-definition.scss +334 -334
  186. package/styles/rich-text-editor/_bootstrap4-definition.scss +460 -460
  187. package/styles/rich-text-editor/_bootstrap5-definition.scss +262 -262
  188. package/styles/rich-text-editor/_fabric-dark-definition.scss +259 -259
  189. package/styles/rich-text-editor/_fabric-definition.scss +257 -257
  190. package/styles/rich-text-editor/_fluent-definition.scss +263 -263
  191. package/styles/rich-text-editor/_fusionnew-definition.scss +261 -261
  192. package/styles/rich-text-editor/_highcontrast-definition.scss +257 -257
  193. package/styles/rich-text-editor/_highcontrast-light-definition.scss +257 -257
  194. package/styles/rich-text-editor/_layout.scss +2072 -2072
  195. package/styles/rich-text-editor/_material-dark-definition.scss +262 -262
  196. package/styles/rich-text-editor/_material-definition.scss +260 -260
  197. package/styles/rich-text-editor/_material3-definition.scss +262 -262
  198. package/styles/rich-text-editor/_tailwind-definition.scss +257 -257
  199. package/styles/rich-text-editor/_theme.scss +837 -837
  200. package/styles/rich-text-editor/icons/_bootstrap-dark.scss +349 -349
  201. package/styles/rich-text-editor/icons/_bootstrap.scss +349 -349
  202. package/styles/rich-text-editor/icons/_bootstrap4.scss +349 -349
  203. package/styles/rich-text-editor/icons/_bootstrap5.scss +348 -348
  204. package/styles/rich-text-editor/icons/_fabric-dark.scss +349 -349
  205. package/styles/rich-text-editor/icons/_fabric.scss +349 -349
  206. package/styles/rich-text-editor/icons/_fluent.scss +348 -348
  207. package/styles/rich-text-editor/icons/_fusionnew.scss +348 -348
  208. package/styles/rich-text-editor/icons/_highcontrast-light.scss +349 -349
  209. package/styles/rich-text-editor/icons/_highcontrast.scss +349 -349
  210. package/styles/rich-text-editor/icons/_material-dark.scss +349 -349
  211. package/styles/rich-text-editor/icons/_material.scss +349 -349
  212. package/styles/rich-text-editor/icons/_material3.scss +348 -348
  213. package/styles/rich-text-editor/icons/_tailwind.scss +348 -348
  214. package/styles/rich-text-editor/material3-dark.scss +1 -1
  215. package/styles/rich-text-editor/material3.scss +1 -1
  216. package/.eslintrc.json +0 -260
  217. package/dist/ej2-richtexteditor.min.js +0 -10
  218. package/dist/global/ej2-richtexteditor.min.js +0 -11
  219. package/dist/global/ej2-richtexteditor.min.js.map +0 -1
  220. package/dist/global/index.d.ts +0 -14
  221. package/tslint.json +0 -111
@@ -1358,6 +1358,11 @@ var CLS_RTE_TB_ENABLED = 'e-rte-toolbar-enabled';
1358
1358
  * @deprecated
1359
1359
  */
1360
1360
  var CLS_RTE_RES_WEST = 'e-south-west';
1361
+ /**
1362
+ * @hidden
1363
+ * @deprecated
1364
+ */
1365
+ var CLS_RTE_SOURCE_CODE_TXTAREA = 'e-rte-srctextarea';
1361
1366
 
1362
1367
  /**
1363
1368
  * Defines types of Render
@@ -2597,6 +2602,7 @@ var defaultLocale = {
2597
2602
  'emojiPickerTypeToFind': 'Type to find',
2598
2603
  'emojiPickerNoResultFound': 'No results found',
2599
2604
  'emojiPickerTrySomethingElse': 'Try something else',
2605
+ 'linkAriaLabel': 'Open in new window',
2600
2606
  };
2601
2607
  var toolsLocale = {
2602
2608
  'alignments': 'alignments',
@@ -3314,7 +3320,7 @@ function updateDropDownFontFormatLocale(self) {
3314
3320
  * @hidden
3315
3321
  * @deprecated
3316
3322
  */
3317
- var ToolbarRenderer = /** @__PURE__ @class */ (function () {
3323
+ var ToolbarRenderer = /** @class */ (function () {
3318
3324
  /**
3319
3325
  * Constructor for toolbar renderer module
3320
3326
  *
@@ -3334,7 +3340,7 @@ var ToolbarRenderer = /** @__PURE__ @class */ (function () {
3334
3340
  };
3335
3341
  ToolbarRenderer.prototype.destroyTooltip = function () {
3336
3342
  if (!isNullOrUndefined(document.querySelector('.e-tooltip-wrap')) && !isNullOrUndefined(document.querySelector(' [data-tooltip-id]'))) {
3337
- var tooltipTargetEle = document.querySelector('#' + (this.parent.element).id + ' [data-tooltip-id]');
3343
+ var tooltipTargetEle = this.parent.element.querySelector('[data-tooltip-id]');
3338
3344
  var event_1 = new MouseEvent('mouseleave', { bubbles: true, cancelable: true });
3339
3345
  tooltipTargetEle.dispatchEvent(event_1);
3340
3346
  }
@@ -3495,17 +3501,86 @@ var ToolbarRenderer = /** @__PURE__ @class */ (function () {
3495
3501
  return;
3496
3502
  }
3497
3503
  // eslint-disable-next-line
3498
- for (var index = 0; index < args.element.childNodes.length; index++) {
3499
- var divNode = _this.parent.createElement('div');
3500
- divNode.innerHTML = dropDown.content.trim();
3501
- if (divNode.textContent.trim() !== ''
3502
- && args.element.childNodes[index].textContent.trim() === divNode.textContent.trim()) {
3503
- if (!args.element.childNodes[index].classList.contains('e-active')) {
3504
- addClass([args.element.childNodes[index]], 'e-active');
3504
+ // Table styles dropdown preselect
3505
+ if (proxy.parent.editorMode !== 'Markdown') {
3506
+ var startNode = proxy.parent.getRange().startContainer.parentElement;
3507
+ var tableEle = startNode.closest('table');
3508
+ var trow = startNode.closest('tr');
3509
+ if (!isNullOrUndefined(tableEle) && tableEle.classList.contains('e-dashed-border')) {
3510
+ for (var index = 0; index < args.element.childNodes.length; index++) {
3511
+ if (args.element.childNodes[index].classList.contains('e-dashed-borders')) {
3512
+ addClass([args.element.childNodes[index]], 'e-active');
3513
+ }
3505
3514
  }
3506
3515
  }
3507
- else {
3508
- removeClass([args.element.childNodes[index]], 'e-active');
3516
+ else if (!isNullOrUndefined(tableEle) && !tableEle.classList.contains('e-dashed-border') && tableEle.classList.contains('e-alternate-rows') && window.getComputedStyle(trow).backgroundColor !== '') {
3517
+ for (var index = 0; index < args.element.childNodes.length; index++) {
3518
+ if (args.element.childNodes[index].classList.contains('e-alternate-rows')) {
3519
+ addClass([args.element.childNodes[index]], 'e-active');
3520
+ }
3521
+ }
3522
+ }
3523
+ //Alignments preselect
3524
+ var alignEle = proxy.parent.getRange().startContainer;
3525
+ while (alignEle !== proxy.parent.element.querySelector('.e-content') && !isNullOrUndefined(alignEle.parentElement)) {
3526
+ if (alignEle.nodeName === '#text') {
3527
+ alignEle = alignEle.parentElement;
3528
+ }
3529
+ var alignStyle = window.getComputedStyle(alignEle).textAlign;
3530
+ if (args.items[0].command === 'Alignments') {
3531
+ if ((args.items[0].text === 'Align Left' && (alignStyle === 'left') || alignStyle === 'start')) {
3532
+ addClass([args.element.childNodes[0]], 'e-active');
3533
+ break;
3534
+ }
3535
+ else if (args.items[1].text === 'Align Center' && alignStyle === 'center') {
3536
+ addClass([args.element.childNodes[1]], 'e-active');
3537
+ break;
3538
+ }
3539
+ else if (args.items[2].text === 'Align Right' && alignStyle === 'right') {
3540
+ addClass([args.element.childNodes[2]], 'e-active');
3541
+ break;
3542
+ }
3543
+ else if (args.items[3].text === 'Align Justify' && alignStyle === 'justify') {
3544
+ addClass([args.element.childNodes[3]], 'e-active');
3545
+ break;
3546
+ }
3547
+ }
3548
+ alignEle = alignEle.parentElement;
3549
+ }
3550
+ //image preselect
3551
+ var imageEle = startNode.closest('img') ? startNode.closest('img') : startNode.querySelector('img');
3552
+ if (args.items[0].command === 'Images') {
3553
+ if (!isNullOrUndefined(imageEle)) {
3554
+ var index = void 0;
3555
+ if (imageEle.classList.contains('e-imgleft') || imageEle.classList.contains('e-imginline')) {
3556
+ index = 0;
3557
+ }
3558
+ else if (imageEle.classList.contains('e-imgcenter') || imageEle.classList.contains('e-imgbreak')) {
3559
+ index = 1;
3560
+ }
3561
+ else if (imageEle.classList.contains('e-imgright')) {
3562
+ index = 2;
3563
+ }
3564
+ if (!isNullOrUndefined(args.element.childNodes[index])) {
3565
+ addClass([args.element.childNodes[index]], 'e-active');
3566
+ }
3567
+ }
3568
+ }
3569
+ //Formats preselect
3570
+ if (args.items[0].command === 'Formats') {
3571
+ for (var index = 0; index < args.element.childNodes.length; index++) {
3572
+ var divNode = _this.parent.createElement('div');
3573
+ divNode.innerHTML = dropDown.content.trim();
3574
+ if (divNode.textContent.trim() !== ''
3575
+ && args.element.childNodes[index].textContent.trim() === divNode.textContent.trim()) {
3576
+ if (!args.element.childNodes[index].classList.contains('e-active')) {
3577
+ addClass([args.element.childNodes[index]], 'e-active');
3578
+ }
3579
+ }
3580
+ else {
3581
+ removeClass([args.element.childNodes[index]], 'e-active');
3582
+ }
3583
+ }
3509
3584
  }
3510
3585
  }
3511
3586
  proxy.parent.notify(beforeDropDownOpen, args);
@@ -3924,7 +3999,7 @@ var ToolbarRenderer = /** @__PURE__ @class */ (function () {
3924
3999
  /**
3925
4000
  * `Toolbar` module is used to handle Toolbar actions.
3926
4001
  */
3927
- var BaseToolbar = /** @__PURE__ @class */ (function () {
4002
+ var BaseToolbar = /** @class */ (function () {
3928
4003
  function BaseToolbar(parent, serviceLocator) {
3929
4004
  this.tools = {};
3930
4005
  this.parent = parent;
@@ -4133,7 +4208,7 @@ var BaseToolbar = /** @__PURE__ @class */ (function () {
4133
4208
  /**
4134
4209
  * `Toolbar` module is used to handle Toolbar actions.
4135
4210
  */
4136
- var DropDownButtons = /** @__PURE__ @class */ (function () {
4211
+ var DropDownButtons = /** @class */ (function () {
4137
4212
  function DropDownButtons(parent, serviceLocator) {
4138
4213
  this.parent = parent;
4139
4214
  this.locator = serviceLocator;
@@ -4658,7 +4733,7 @@ var DropDownButtons = /** @__PURE__ @class */ (function () {
4658
4733
  * @hidden
4659
4734
  * @deprecated
4660
4735
  */
4661
- var ServiceLocator = /** @__PURE__ @class */ (function () {
4736
+ var ServiceLocator = /** @class */ (function () {
4662
4737
  function ServiceLocator() {
4663
4738
  this.services = {};
4664
4739
  }
@@ -4702,7 +4777,7 @@ var ServiceLocator = /** @__PURE__ @class */ (function () {
4702
4777
  * @hidden
4703
4778
  * @deprecated
4704
4779
  */
4705
- var RendererFactory = /** @__PURE__ @class */ (function () {
4780
+ var RendererFactory = /** @class */ (function () {
4706
4781
  function RendererFactory() {
4707
4782
  this.rendererMap = {};
4708
4783
  }
@@ -4745,7 +4820,7 @@ var RendererFactory = /** @__PURE__ @class */ (function () {
4745
4820
  /**
4746
4821
  * `ToolbarAction` module is used to toolbar click action
4747
4822
  */
4748
- var ToolbarAction = /** @__PURE__ @class */ (function () {
4823
+ var ToolbarAction = /** @class */ (function () {
4749
4824
  function ToolbarAction(parent) {
4750
4825
  this.parent = parent;
4751
4826
  this.addEventListener();
@@ -4819,7 +4894,7 @@ var ToolbarAction = /** @__PURE__ @class */ (function () {
4819
4894
  /**
4820
4895
  * `Toolbar` module is used to handle Toolbar actions.
4821
4896
  */
4822
- var Toolbar$2 = /** @__PURE__ @class */ (function () {
4897
+ var Toolbar$2 = /** @class */ (function () {
4823
4898
  function Toolbar$$1(parent, serviceLocator) {
4824
4899
  this.tools = {};
4825
4900
  this.parent = parent;
@@ -5362,12 +5437,6 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
5362
5437
  }
5363
5438
  }
5364
5439
  };
5365
- Toolbar$$1.prototype.tbKeydownHandler = function (e) {
5366
- if (e.target.classList.contains('e-dropdown-btn') ||
5367
- e.target.getAttribute('id') === this.parent.getID() + '_toolbar_CreateTable') {
5368
- e.target.setAttribute('tabindex', '0');
5369
- }
5370
- };
5371
5440
  Toolbar$$1.prototype.toolbarClickHandler = function (e) {
5372
5441
  var trg = closest(e.originalEvent.target, '.e-hor-nav');
5373
5442
  if (trg && this.parent.toolbarSettings.type === ToolbarType.Expand && !isNullOrUndefined(trg)) {
@@ -5397,11 +5466,9 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
5397
5466
  return;
5398
5467
  }
5399
5468
  EventHandler.add(this.tbElement, 'focusin', this.tbFocusHandler, this);
5400
- EventHandler.add(this.tbElement, 'keydown', this.tbKeydownHandler, this);
5401
5469
  };
5402
5470
  Toolbar$$1.prototype.unWireEvents = function () {
5403
5471
  EventHandler.remove(this.tbElement, 'focusin', this.tbFocusHandler);
5404
- EventHandler.remove(this.tbElement, 'keydown', this.tbKeydownHandler);
5405
5472
  };
5406
5473
  Toolbar$$1.prototype.addEventListener = function () {
5407
5474
  if (this.parent.isDestroyed) {
@@ -5527,25 +5594,25 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
5527
5594
  return Toolbar$$1;
5528
5595
  }());
5529
5596
 
5530
- var __extends = (undefined && undefined.__extends) || (function () {
5531
- var extendStatics = function (d, b) {
5532
- extendStatics = Object.setPrototypeOf ||
5533
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5534
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5535
- return extendStatics(d, b);
5536
- };
5537
- return function (d, b) {
5538
- extendStatics(d, b);
5539
- function __() { this.constructor = d; }
5540
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
5541
- };
5542
- })();
5543
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
5544
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
5545
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5546
- 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;
5547
- return c > 3 && r && Object.defineProperty(target, key, r), r;
5548
- };
5597
+ var __extends = (undefined && undefined.__extends) || (function () {
5598
+ var extendStatics = function (d, b) {
5599
+ extendStatics = Object.setPrototypeOf ||
5600
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5601
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5602
+ return extendStatics(d, b);
5603
+ };
5604
+ return function (d, b) {
5605
+ extendStatics(d, b);
5606
+ function __() { this.constructor = d; }
5607
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
5608
+ };
5609
+ })();
5610
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
5611
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
5612
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5613
+ 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;
5614
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
5615
+ };
5549
5616
  var keyCode = {
5550
5617
  'backspace': 8,
5551
5618
  'tab': 9,
@@ -5613,7 +5680,7 @@ var keyCode = {
5613
5680
  * @hidden
5614
5681
  * @deprecated
5615
5682
  */
5616
- var KeyboardEvents$1 = /** @__PURE__ @class */ (function (_super) {
5683
+ var KeyboardEvents$1 = /** @class */ (function (_super) {
5617
5684
  __extends(KeyboardEvents$$1, _super);
5618
5685
  /**
5619
5686
  * Initializes the KeyboardEvents
@@ -5756,7 +5823,7 @@ var KeyboardEvents$1 = /** @__PURE__ @class */ (function (_super) {
5756
5823
  /**
5757
5824
  * `Color Picker` module is used to handle ColorPicker actions.
5758
5825
  */
5759
- var ColorPickerInput = /** @__PURE__ @class */ (function () {
5826
+ var ColorPickerInput = /** @class */ (function () {
5760
5827
  function ColorPickerInput(parent, serviceLocator) {
5761
5828
  this.tools = {};
5762
5829
  this.parent = parent;
@@ -5999,7 +6066,7 @@ var ColorPickerInput = /** @__PURE__ @class */ (function () {
5999
6066
  /**
6000
6067
  * `Quick toolbar` module is used to handle Quick toolbar actions.
6001
6068
  */
6002
- var BaseQuickToolbar = /** @__PURE__ @class */ (function () {
6069
+ var BaseQuickToolbar = /** @class */ (function () {
6003
6070
  function BaseQuickToolbar(parent, locator) {
6004
6071
  this.parent = parent;
6005
6072
  this.locator = locator;
@@ -6434,7 +6501,7 @@ var BaseQuickToolbar = /** @__PURE__ @class */ (function () {
6434
6501
  * @hidden
6435
6502
  * @deprecated
6436
6503
  */
6437
- var PopupRenderer = /** @__PURE__ @class */ (function () {
6504
+ var PopupRenderer = /** @class */ (function () {
6438
6505
  /**
6439
6506
  * Constructor for popup renderer module
6440
6507
  *
@@ -6503,7 +6570,7 @@ var PopupRenderer = /** @__PURE__ @class */ (function () {
6503
6570
  /**
6504
6571
  * `Quick toolbar` module is used to handle Quick toolbar actions.
6505
6572
  */
6506
- var QuickToolbar = /** @__PURE__ @class */ (function () {
6573
+ var QuickToolbar = /** @class */ (function () {
6507
6574
  function QuickToolbar(parent, locator) {
6508
6575
  this.parent = parent;
6509
6576
  this.locator = locator;
@@ -6644,7 +6711,7 @@ var QuickToolbar = /** @__PURE__ @class */ (function () {
6644
6711
  * @deprecated
6645
6712
  */
6646
6713
  QuickToolbar.prototype.showInlineQTBar = function (x, y, target) {
6647
- if (this.parent.readonly || target.tagName.toLowerCase() === 'img') {
6714
+ if (isNullOrUndefined(this.parent) || this.parent.readonly || target.tagName.toLowerCase() === 'img') {
6648
6715
  return;
6649
6716
  }
6650
6717
  this.inlineQTBar.showPopup(x, y, target);
@@ -7014,6 +7081,9 @@ var QuickToolbar = /** @__PURE__ @class */ (function () {
7014
7081
  this.parent.off(rtlMode, this.setRtl);
7015
7082
  this.parent.off(bindCssClass, this.setCssClass);
7016
7083
  this.parent.off(hidePopup, this.hideQuickToolbars);
7084
+ if (this.deBouncer) {
7085
+ clearTimeout(this.deBouncer);
7086
+ }
7017
7087
  };
7018
7088
  /**
7019
7089
  * Called internally if any of the property value changed.
@@ -7069,7 +7139,7 @@ var QuickToolbar = /** @__PURE__ @class */ (function () {
7069
7139
  /**
7070
7140
  * `Count` module is used to handle Count actions.
7071
7141
  */
7072
- var Count = /** @__PURE__ @class */ (function () {
7142
+ var Count = /** @class */ (function () {
7073
7143
  function Count(parent, serviceLocator) {
7074
7144
  this.parent = parent;
7075
7145
  this.locator = serviceLocator;
@@ -7197,7 +7267,7 @@ var Count = /** @__PURE__ @class */ (function () {
7197
7267
  * @hidden
7198
7268
  * @deprecated
7199
7269
  */
7200
- var MarkdownSelection = /** @__PURE__ @class */ (function () {
7270
+ var MarkdownSelection = /** @class */ (function () {
7201
7271
  function MarkdownSelection() {
7202
7272
  }
7203
7273
  /**
@@ -7594,7 +7664,7 @@ function getDefaultMDTbStatus() {
7594
7664
  /**
7595
7665
  * MarkdownToolbarStatus module for refresh the toolbar status
7596
7666
  */
7597
- var MarkdownToolbarStatus = /** @__PURE__ @class */ (function () {
7667
+ var MarkdownToolbarStatus = /** @class */ (function () {
7598
7668
  function MarkdownToolbarStatus(parent) {
7599
7669
  this.toolbarStatus = this.prevToolbarStatus = getDefaultMDTbStatus();
7600
7670
  this.selection = new MarkdownSelection();
@@ -7717,7 +7787,7 @@ var MarkdownToolbarStatus = /** @__PURE__ @class */ (function () {
7717
7787
  /**
7718
7788
  * `ExecCommandCallBack` module is used to run the editor manager command
7719
7789
  */
7720
- var ExecCommandCallBack = /** @__PURE__ @class */ (function () {
7790
+ var ExecCommandCallBack = /** @class */ (function () {
7721
7791
  function ExecCommandCallBack(parent) {
7722
7792
  this.parent = parent;
7723
7793
  this.addEventListener();
@@ -7841,7 +7911,7 @@ var EMOJI_PICKER_ACTIONS = 'emoji_picker_actions';
7841
7911
  * @hidden
7842
7912
  * @deprecated
7843
7913
  */
7844
- var Formatter = /** @__PURE__ @class */ (function () {
7914
+ var Formatter = /** @class */ (function () {
7845
7915
  function Formatter() {
7846
7916
  }
7847
7917
  /**
@@ -8137,7 +8207,7 @@ var INSERT_TEXT_COMMAND = 'insert-text';
8137
8207
  *
8138
8208
  * @hidden
8139
8209
  */
8140
- var MDLists = /** @__PURE__ @class */ (function () {
8210
+ var MDLists = /** @class */ (function () {
8141
8211
  /**
8142
8212
  * Constructor for creating the Lists plugin
8143
8213
  *
@@ -8608,7 +8678,7 @@ var MDLists = /** @__PURE__ @class */ (function () {
8608
8678
  * @hidden
8609
8679
  * @deprecated
8610
8680
  */
8611
- var MDFormats = /** @__PURE__ @class */ (function () {
8681
+ var MDFormats = /** @class */ (function () {
8612
8682
  /**
8613
8683
  * Constructor for creating the Formats plugin
8614
8684
  *
@@ -8836,7 +8906,7 @@ var MDFormats = /** @__PURE__ @class */ (function () {
8836
8906
  * @hidden
8837
8907
  * @deprecated
8838
8908
  */
8839
- var MDSelectionFormats = /** @__PURE__ @class */ (function () {
8909
+ var MDSelectionFormats = /** @class */ (function () {
8840
8910
  function MDSelectionFormats(parent) {
8841
8911
  extend(this, this, parent, true);
8842
8912
  this.selection = this.parent.markdownSelection;
@@ -9295,7 +9365,7 @@ var selfClosingTags = [
9295
9365
  /**
9296
9366
  * `Undo` module is used to handle undo actions.
9297
9367
  */
9298
- var UndoRedoCommands = /** @__PURE__ @class */ (function () {
9368
+ var UndoRedoCommands = /** @class */ (function () {
9299
9369
  function UndoRedoCommands(parent, options) {
9300
9370
  this.undoRedoStack = [];
9301
9371
  this.parent = parent;
@@ -9490,7 +9560,7 @@ var UndoRedoCommands = /** @__PURE__ @class */ (function () {
9490
9560
  * @hidden
9491
9561
  * @deprecated
9492
9562
  */
9493
- var MDLink = /** @__PURE__ @class */ (function () {
9563
+ var MDLink = /** @class */ (function () {
9494
9564
  /**
9495
9565
  * Constructor for creating the Formats plugin
9496
9566
  *
@@ -9541,7 +9611,7 @@ var MDLink = /** @__PURE__ @class */ (function () {
9541
9611
  * @hidden
9542
9612
  * @deprecated
9543
9613
  */
9544
- var MDTable = /** @__PURE__ @class */ (function () {
9614
+ var MDTable = /** @class */ (function () {
9545
9615
  /**
9546
9616
  * Constructor for creating the Formats plugin
9547
9617
  *
@@ -9770,7 +9840,7 @@ var MDTable = /** @__PURE__ @class */ (function () {
9770
9840
  * @hidden
9771
9841
  * @deprecated
9772
9842
  */
9773
- var ClearFormat = /** @__PURE__ @class */ (function () {
9843
+ var ClearFormat = /** @class */ (function () {
9774
9844
  /**
9775
9845
  * Constructor for creating the clear format plugin
9776
9846
  *
@@ -9888,7 +9958,7 @@ var ClearFormat = /** @__PURE__ @class */ (function () {
9888
9958
  * @hidden
9889
9959
  * @deprecated
9890
9960
  */
9891
- var MDInsertText = /** @__PURE__ @class */ (function () {
9961
+ var MDInsertText = /** @class */ (function () {
9892
9962
  /**
9893
9963
  * Constructor for creating the insert text plugin
9894
9964
  *
@@ -9938,7 +10008,7 @@ var MDInsertText = /** @__PURE__ @class */ (function () {
9938
10008
  * @hidden
9939
10009
  * @deprecated
9940
10010
  */
9941
- var MarkdownParser = /** @__PURE__ @class */ (function () {
10011
+ var MarkdownParser = /** @class */ (function () {
9942
10012
  /**
9943
10013
  * Constructor for creating the component
9944
10014
  *
@@ -10034,26 +10104,26 @@ var MarkdownParser = /** @__PURE__ @class */ (function () {
10034
10104
  return MarkdownParser;
10035
10105
  }());
10036
10106
 
10037
- var __extends$1 = (undefined && undefined.__extends) || (function () {
10038
- var extendStatics = function (d, b) {
10039
- extendStatics = Object.setPrototypeOf ||
10040
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
10041
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
10042
- return extendStatics(d, b);
10043
- };
10044
- return function (d, b) {
10045
- extendStatics(d, b);
10046
- function __() { this.constructor = d; }
10047
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
10048
- };
10049
- })();
10107
+ var __extends$1 = (undefined && undefined.__extends) || (function () {
10108
+ var extendStatics = function (d, b) {
10109
+ extendStatics = Object.setPrototypeOf ||
10110
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
10111
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
10112
+ return extendStatics(d, b);
10113
+ };
10114
+ return function (d, b) {
10115
+ extendStatics(d, b);
10116
+ function __() { this.constructor = d; }
10117
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
10118
+ };
10119
+ })();
10050
10120
  /**
10051
10121
  * Markdown adapter
10052
10122
  *
10053
10123
  * @hidden
10054
10124
  * @deprecated
10055
10125
  */
10056
- var MarkdownFormatter = /** @__PURE__ @class */ (function (_super) {
10126
+ var MarkdownFormatter = /** @class */ (function (_super) {
10057
10127
  __extends$1(MarkdownFormatter, _super);
10058
10128
  function MarkdownFormatter(options) {
10059
10129
  var _this = _super.call(this) || this;
@@ -10100,7 +10170,7 @@ var MarkdownFormatter = /** @__PURE__ @class */ (function (_super) {
10100
10170
  * @hidden
10101
10171
  * @deprecated
10102
10172
  */
10103
- var MarkdownRender = /** @__PURE__ @class */ (function () {
10173
+ var MarkdownRender = /** @class */ (function () {
10104
10174
  /**
10105
10175
  * Constructor for content renderer module
10106
10176
  *
@@ -10183,7 +10253,7 @@ var MarkdownRender = /** @__PURE__ @class */ (function () {
10183
10253
  /**
10184
10254
  * `MarkdownEditor` module is used to markdown editor
10185
10255
  */
10186
- var MarkdownEditor = /** @__PURE__ @class */ (function () {
10256
+ var MarkdownEditor = /** @class */ (function () {
10187
10257
  function MarkdownEditor(parent, serviceLocator) {
10188
10258
  this.parent = parent;
10189
10259
  this.locator = serviceLocator;
@@ -10455,7 +10525,7 @@ var SELF_CLOSING_TAGS = ['area', 'base', 'br', 'embed', 'hr', 'img', 'input', 'p
10455
10525
  /**
10456
10526
  * `Selection` module is used to handle RTE Selections.
10457
10527
  */
10458
- var NodeSelection = /** @__PURE__ @class */ (function () {
10528
+ var NodeSelection = /** @class */ (function () {
10459
10529
  function NodeSelection() {
10460
10530
  this.startNodeName = [];
10461
10531
  this.endNodeName = [];
@@ -10905,7 +10975,7 @@ var markerClassName = {
10905
10975
  * @hidden
10906
10976
  * @deprecated
10907
10977
  */
10908
- var DOMNode = /** @__PURE__ @class */ (function () {
10978
+ var DOMNode = /** @class */ (function () {
10909
10979
  /**
10910
10980
  * Constructor for creating the DOMNode plugin
10911
10981
  *
@@ -11683,7 +11753,7 @@ var DOMNode = /** @__PURE__ @class */ (function () {
11683
11753
  * @hidden
11684
11754
  * @deprecated
11685
11755
  */
11686
- var Lists = /** @__PURE__ @class */ (function () {
11756
+ var Lists = /** @class */ (function () {
11687
11757
  /**
11688
11758
  * Constructor for creating the Lists plugin
11689
11759
  *
@@ -12550,7 +12620,7 @@ var Lists = /** @__PURE__ @class */ (function () {
12550
12620
  *
12551
12621
  * @hidden
12552
12622
  */
12553
- var InsertMethods = /** @__PURE__ @class */ (function () {
12623
+ var InsertMethods = /** @class */ (function () {
12554
12624
  function InsertMethods() {
12555
12625
  }
12556
12626
  /**
@@ -12627,7 +12697,7 @@ var InsertMethods = /** @__PURE__ @class */ (function () {
12627
12697
  * @hidden
12628
12698
  * @deprecated
12629
12699
  */
12630
- var NodeCutter = /** @__PURE__ @class */ (function () {
12700
+ var NodeCutter = /** @class */ (function () {
12631
12701
  function NodeCutter() {
12632
12702
  this.enterAction = 'P';
12633
12703
  this.position = -1;
@@ -12836,7 +12906,7 @@ var NodeCutter = /** @__PURE__ @class */ (function () {
12836
12906
  * @hidden
12837
12907
  * @deprecated
12838
12908
  */
12839
- var Formats = /** @__PURE__ @class */ (function () {
12909
+ var Formats = /** @class */ (function () {
12840
12910
  /**
12841
12911
  * Constructor for creating the Formats plugin
12842
12912
  *
@@ -13205,7 +13275,7 @@ var Formats = /** @__PURE__ @class */ (function () {
13205
13275
  * @hidden
13206
13276
  * @deprecated
13207
13277
  */
13208
- var InsertHtml = /** @__PURE__ @class */ (function () {
13278
+ var InsertHtml = /** @class */ (function () {
13209
13279
  function InsertHtml() {
13210
13280
  }
13211
13281
  InsertHtml.Insert = function (docElement, insertNode, editNode, isExternal, enterAction) {
@@ -13683,7 +13753,9 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
13683
13753
  InsertHtml.findDetachEmptyElem = function (element) {
13684
13754
  var removableElement;
13685
13755
  if (!isNullOrUndefined(element.parentElement)) {
13686
- if (element.parentElement.textContent.trim() === '' && element.parentElement.contentEditable !== 'true' &&
13756
+ var hasNbsp = element.parentElement.textContent.length > 0 && element.parentElement.textContent.match(/\u00a0/g)
13757
+ && element.parentElement.textContent.match(/\u00a0/g).length > 0;
13758
+ if (!hasNbsp && element.parentElement.textContent.trim() === '' && element.parentElement.contentEditable !== 'true' &&
13687
13759
  isNullOrUndefined(element.parentElement.querySelector('img'))) {
13688
13760
  removableElement = this.findDetachEmptyElem(element.parentElement);
13689
13761
  }
@@ -13749,7 +13821,7 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
13749
13821
  * @hidden
13750
13822
  * @deprecated
13751
13823
  */
13752
- var LinkCommand = /** @__PURE__ @class */ (function () {
13824
+ var LinkCommand = /** @class */ (function () {
13753
13825
  /**
13754
13826
  * Constructor for creating the Formats plugin
13755
13827
  *
@@ -13798,9 +13870,11 @@ var LinkCommand = /** @__PURE__ @class */ (function () {
13798
13870
  }
13799
13871
  if (!isNullOrUndefined(e.item.target)) {
13800
13872
  anchorEle.setAttribute('target', e.item.target);
13873
+ anchorEle.setAttribute('aria-label', e.item.ariaLabel);
13801
13874
  }
13802
13875
  else {
13803
13876
  anchorEle.removeAttribute('target');
13877
+ anchorEle.removeAttribute('aria-label');
13804
13878
  }
13805
13879
  if (linkText === e.item.text) {
13806
13880
  e.item.selection.setSelectionText(this.parent.currentDocument, anchorEle, anchorEle, 1, 1);
@@ -14050,7 +14124,7 @@ var LinkCommand = /** @__PURE__ @class */ (function () {
14050
14124
  * @hidden
14051
14125
  * @deprecated
14052
14126
  */
14053
- var Alignments = /** @__PURE__ @class */ (function () {
14127
+ var Alignments = /** @class */ (function () {
14054
14128
  /**
14055
14129
  * Constructor for creating the Formats plugin
14056
14130
  *
@@ -14153,7 +14227,7 @@ var Alignments = /** @__PURE__ @class */ (function () {
14153
14227
  * @hidden
14154
14228
  * @deprecated
14155
14229
  */
14156
- var Indents = /** @__PURE__ @class */ (function () {
14230
+ var Indents = /** @class */ (function () {
14157
14231
  /**
14158
14232
  * Constructor for creating the Formats plugin
14159
14233
  *
@@ -14289,7 +14363,7 @@ var CLASS_VIDEO_INLINE = 'e-video-inline';
14289
14363
  * @hidden
14290
14364
  * @deprecated
14291
14365
  */
14292
- var ImageCommand = /** @__PURE__ @class */ (function () {
14366
+ var ImageCommand = /** @class */ (function () {
14293
14367
  /**
14294
14368
  * Constructor for creating the Formats plugin
14295
14369
  *
@@ -14654,7 +14728,7 @@ var ImageCommand = /** @__PURE__ @class */ (function () {
14654
14728
  * @hidden
14655
14729
  * @deprecated
14656
14730
  */
14657
- var AudioCommand = /** @__PURE__ @class */ (function () {
14731
+ var AudioCommand = /** @class */ (function () {
14658
14732
  /**
14659
14733
  * Constructor for creating the Audio plugin
14660
14734
  *
@@ -14783,7 +14857,7 @@ var AudioCommand = /** @__PURE__ @class */ (function () {
14783
14857
  * @hidden
14784
14858
  * @deprecated
14785
14859
  */
14786
- var VideoCommand = /** @__PURE__ @class */ (function () {
14860
+ var VideoCommand = /** @class */ (function () {
14787
14861
  /**
14788
14862
  * Constructor for creating the Video plugin
14789
14863
  *
@@ -15031,7 +15105,7 @@ var VideoCommand = /** @__PURE__ @class */ (function () {
15031
15105
  * @hidden
15032
15106
  * @deprecated
15033
15107
  */
15034
- var TableCommand = /** @__PURE__ @class */ (function () {
15108
+ var TableCommand = /** @class */ (function () {
15035
15109
  /**
15036
15110
  * Constructor for creating the Formats plugin
15037
15111
  *
@@ -15966,7 +16040,7 @@ var TableCommand = /** @__PURE__ @class */ (function () {
15966
16040
 
15967
16041
  return TableCommand;
15968
16042
  }());
15969
- var MinMax = /** @__PURE__ @class */ (function () {
16043
+ var MinMax = /** @class */ (function () {
15970
16044
  function MinMax() {
15971
16045
  }
15972
16046
  return MinMax;
@@ -15978,7 +16052,7 @@ var MinMax = /** @__PURE__ @class */ (function () {
15978
16052
  * @hidden
15979
16053
  * @deprecated
15980
16054
  */
15981
- var IsFormatted = /** @__PURE__ @class */ (function () {
16055
+ var IsFormatted = /** @class */ (function () {
15982
16056
  function IsFormatted() {
15983
16057
  }
15984
16058
  /**
@@ -16228,7 +16302,7 @@ var IsFormatted = /** @__PURE__ @class */ (function () {
16228
16302
  /**
16229
16303
  * `Selection` module is used to handle RTE Selections.
16230
16304
  */
16231
- var SelectionCommands = /** @__PURE__ @class */ (function () {
16305
+ var SelectionCommands = /** @class */ (function () {
16232
16306
  function SelectionCommands() {
16233
16307
  }
16234
16308
  /**
@@ -16960,7 +17034,7 @@ var SelectionCommands = /** @__PURE__ @class */ (function () {
16960
17034
  * @hidden
16961
17035
  * @deprecated
16962
17036
  */
16963
- var SelectionBasedExec = /** @__PURE__ @class */ (function () {
17037
+ var SelectionBasedExec = /** @class */ (function () {
16964
17038
  /**
16965
17039
  * Constructor for creating the Formats plugin
16966
17040
  *
@@ -17009,7 +17083,7 @@ var SelectionBasedExec = /** @__PURE__ @class */ (function () {
17009
17083
  * @hidden
17010
17084
  * @deprecated
17011
17085
  */
17012
- var InsertHtmlExec = /** @__PURE__ @class */ (function () {
17086
+ var InsertHtmlExec = /** @class */ (function () {
17013
17087
  /**
17014
17088
  * Constructor for creating the Formats plugin
17015
17089
  *
@@ -17056,7 +17130,7 @@ var InsertHtmlExec = /** @__PURE__ @class */ (function () {
17056
17130
  /**
17057
17131
  * `Clear Format` module is used to handle Clear Format.
17058
17132
  */
17059
- var ClearFormat$1 = /** @__PURE__ @class */ (function () {
17133
+ var ClearFormat$1 = /** @class */ (function () {
17060
17134
  function ClearFormat() {
17061
17135
  }
17062
17136
  /**
@@ -17309,7 +17383,7 @@ var ClearFormat$1 = /** @__PURE__ @class */ (function () {
17309
17383
  * @hidden
17310
17384
  * @deprecated
17311
17385
  */
17312
- var ClearFormatExec = /** @__PURE__ @class */ (function () {
17386
+ var ClearFormatExec = /** @class */ (function () {
17313
17387
  /**
17314
17388
  * Constructor for creating the Formats plugin
17315
17389
  *
@@ -17354,7 +17428,7 @@ var ClearFormatExec = /** @__PURE__ @class */ (function () {
17354
17428
  /**
17355
17429
  * `Undo` module is used to handle undo actions.
17356
17430
  */
17357
- var UndoRedoManager = /** @__PURE__ @class */ (function () {
17431
+ var UndoRedoManager = /** @class */ (function () {
17358
17432
  function UndoRedoManager(parent, options) {
17359
17433
  this.undoRedoStack = [];
17360
17434
  this.parent = parent;
@@ -17586,7 +17660,7 @@ var UndoRedoManager = /** @__PURE__ @class */ (function () {
17586
17660
  * @hidden
17587
17661
  * @deprecated
17588
17662
  */
17589
- var MsWordPaste = /** @__PURE__ @class */ (function () {
17663
+ var MsWordPaste = /** @class */ (function () {
17590
17664
  function MsWordPaste(parent) {
17591
17665
  this.olData = [
17592
17666
  'decimal',
@@ -17936,7 +18010,9 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
17936
18010
  isNullOrUndefined(allElements[i].nextElementSibling)))) {
17937
18011
  var detachableElement = this.findDetachElem(allElements[i]);
17938
18012
  var brElement = createElement('br');
17939
- if (!isNullOrUndefined(detachableElement.parentElement)) {
18013
+ var hasNbsp = detachableElement.textContent.length > 0 && detachableElement.textContent.match(/\u00a0/g)
18014
+ && detachableElement.textContent.match(/\u00a0/g).length > 0;
18015
+ if (!hasNbsp && !isNullOrUndefined(detachableElement.parentElement)) {
17940
18016
  detachableElement.parentElement.insertBefore(brElement, detachableElement);
17941
18017
  detach(detachableElement);
17942
18018
  }
@@ -17975,7 +18051,9 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
17975
18051
  MsWordPaste.prototype.findDetachEmptyElem = function (element) {
17976
18052
  var removableElement;
17977
18053
  if (!isNullOrUndefined(element.parentElement)) {
17978
- if (element.parentElement.textContent.trim() === '' &&
18054
+ var hasNbsp = element.parentElement.textContent.length > 0 && element.parentElement.textContent.match(/\u00a0/g)
18055
+ && element.parentElement.textContent.match(/\u00a0/g).length > 0;
18056
+ if (!hasNbsp && element.parentElement.textContent.trim() === '' &&
17979
18057
  element.parentElement.getAttribute('id') !== 'MSWord-Content' &&
17980
18058
  !(this.hasParentWithClass(element, 'MsoListParagraph')) &&
17981
18059
  isNullOrUndefined(element.parentElement.querySelector('img'))) {
@@ -18521,7 +18599,7 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
18521
18599
  * @hidden
18522
18600
  * @deprecated
18523
18601
  */
18524
- var InsertTextExec = /** @__PURE__ @class */ (function () {
18602
+ var InsertTextExec = /** @class */ (function () {
18525
18603
  /**
18526
18604
  * Constructor for creating the InsertText plugin
18527
18605
  *
@@ -18559,7 +18637,7 @@ var InsertTextExec = /** @__PURE__ @class */ (function () {
18559
18637
  * @deprecated
18560
18638
  */
18561
18639
  var statusCollection = getDefaultHtmlTbStatus();
18562
- var ToolbarStatus = /** @__PURE__ @class */ (function () {
18640
+ var ToolbarStatus = /** @class */ (function () {
18563
18641
  function ToolbarStatus() {
18564
18642
  }
18565
18643
  /**
@@ -18913,7 +18991,7 @@ var ToolbarStatus = /** @__PURE__ @class */ (function () {
18913
18991
  return ToolbarStatus;
18914
18992
  }());
18915
18993
 
18916
- var EmojiPickerAction = /** @__PURE__ @class */ (function () {
18994
+ var EmojiPickerAction = /** @class */ (function () {
18917
18995
  function EmojiPickerAction(parent) {
18918
18996
  this.parent = parent;
18919
18997
  this.addEventListener();
@@ -18977,7 +19055,7 @@ var EmojiPickerAction = /** @__PURE__ @class */ (function () {
18977
19055
  * Base export
18978
19056
  */
18979
19057
 
18980
- var FormatPainterActions = /** @__PURE__ @class */ (function () {
19058
+ var FormatPainterActions = /** @class */ (function () {
18981
19059
  function FormatPainterActions(parent, options) {
18982
19060
  this.INVALID_TAGS = ['A', 'AUDIO', 'IMG', 'VIDEO', 'IFRAME'];
18983
19061
  this.parent = parent;
@@ -19602,7 +19680,7 @@ var FormatPainterActions = /** @__PURE__ @class */ (function () {
19602
19680
  * @hidden
19603
19681
  * @deprecated
19604
19682
  */
19605
- var EditorManager = /** @__PURE__ @class */ (function () {
19683
+ var EditorManager = /** @class */ (function () {
19606
19684
  /**
19607
19685
  * Constructor for creating the component
19608
19686
  *
@@ -19789,26 +19867,26 @@ var EditorManager = /** @__PURE__ @class */ (function () {
19789
19867
  return EditorManager;
19790
19868
  }());
19791
19869
 
19792
- var __extends$2 = (undefined && undefined.__extends) || (function () {
19793
- var extendStatics = function (d, b) {
19794
- extendStatics = Object.setPrototypeOf ||
19795
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19796
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
19797
- return extendStatics(d, b);
19798
- };
19799
- return function (d, b) {
19800
- extendStatics(d, b);
19801
- function __() { this.constructor = d; }
19802
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
19803
- };
19804
- })();
19870
+ var __extends$2 = (undefined && undefined.__extends) || (function () {
19871
+ var extendStatics = function (d, b) {
19872
+ extendStatics = Object.setPrototypeOf ||
19873
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19874
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
19875
+ return extendStatics(d, b);
19876
+ };
19877
+ return function (d, b) {
19878
+ extendStatics(d, b);
19879
+ function __() { this.constructor = d; }
19880
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
19881
+ };
19882
+ })();
19805
19883
  /**
19806
19884
  * HTML adapter
19807
19885
  *
19808
19886
  * @hidden
19809
19887
  * @deprecated
19810
19888
  */
19811
- var HTMLFormatter = /** @__PURE__ @class */ (function (_super) {
19889
+ var HTMLFormatter = /** @class */ (function (_super) {
19812
19890
  __extends$2(HTMLFormatter, _super);
19813
19891
  function HTMLFormatter(options) {
19814
19892
  var _this = _super.call(this) || this;
@@ -19849,7 +19927,7 @@ var HTMLFormatter = /** @__PURE__ @class */ (function (_super) {
19849
19927
  /**
19850
19928
  * HtmlToolbarStatus module for refresh the toolbar status
19851
19929
  */
19852
- var HtmlToolbarStatus = /** @__PURE__ @class */ (function () {
19930
+ var HtmlToolbarStatus = /** @class */ (function () {
19853
19931
  function HtmlToolbarStatus(parent) {
19854
19932
  this.parent = parent;
19855
19933
  this.toolbarStatus = this.prevToolbarStatus = getDefaultHtmlTbStatus();
@@ -19896,7 +19974,7 @@ var HtmlToolbarStatus = /** @__PURE__ @class */ (function () {
19896
19974
  * @hidden
19897
19975
  * @deprecated
19898
19976
  */
19899
- var ContentRender = /** @__PURE__ @class */ (function () {
19977
+ var ContentRender = /** @class */ (function () {
19900
19978
  /**
19901
19979
  * Constructor for content renderer module
19902
19980
  *
@@ -19984,19 +20062,19 @@ var ContentRender = /** @__PURE__ @class */ (function () {
19984
20062
  return ContentRender;
19985
20063
  }());
19986
20064
 
19987
- var __extends$3 = (undefined && undefined.__extends) || (function () {
19988
- var extendStatics = function (d, b) {
19989
- extendStatics = Object.setPrototypeOf ||
19990
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19991
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
19992
- return extendStatics(d, b);
19993
- };
19994
- return function (d, b) {
19995
- extendStatics(d, b);
19996
- function __() { this.constructor = d; }
19997
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
19998
- };
19999
- })();
20065
+ var __extends$3 = (undefined && undefined.__extends) || (function () {
20066
+ var extendStatics = function (d, b) {
20067
+ extendStatics = Object.setPrototypeOf ||
20068
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
20069
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
20070
+ return extendStatics(d, b);
20071
+ };
20072
+ return function (d, b) {
20073
+ extendStatics(d, b);
20074
+ function __() { this.constructor = d; }
20075
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
20076
+ };
20077
+ })();
20000
20078
  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, .e-rte-audio, .e-rte-video {border: 0;cursor: pointer;display:\n block;float: none;height: auto;margin: 5px auto;max-width: 100%;position: relative;}\n .e-rte-image.e-imginline, .e-rte-audio.e-audio-inline, .e-rte-video.e-video-inline {display: inline-block;float: none;max-width: calc(100% - (2 * 5px));padding: 1px;vertical-align: bottom;}\n .e-rte-image.e-imgcenter, .e-rte-video.e-video-center {cursor: pointer;display: block;float: none;margin: 5px auto;max-width: 100%;position: relative;}\n .e-rte-image.e-imgright, .e-rte-video.e-video-right { float: right; margin: 0 auto;margin-left: 5px;text-align: right;}\n .e-rte-image.e-imgleft, .e-rte-video.e-video-left {float: left;margin: 0 auto;margin-right: 5px;text-align: left;}\n .e-img-caption { display: inline-block; float: none; margin: 5px auto; max-width: 100%;position: relative;}\n .e-img-caption.e-caption-inline {display: inline-block;float: none;\n margin: 5px auto;margin-left: 5px;margin-right: 5px;max-width: calc(100% - (2 * 5px));\n position: relativetext-align: center;vertical-align: bottom;}\n .e-img-inner {box-sizing: border-box;display: block;font-size: 16px;font-weight: initial;\n margin: auto;opacity: .9;text-align: center;width: 100%;}\n .e-img-wrap {display: inline-block;margin: auto;padding: 0;text-align: center;width: 100%;}\n .e-imgleft, .e-video-left {float: left;margin: 0 5px 0 0;text-align: left;}\n .e-imgright, .e-video-right {float: right;margin: 0 0 0 5px;text-align: right;}\n .e-imgcenter, .e-video-center {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 , .e-audio-inline, .e-video-inline {display: inline-block;float: none;margin-left: 5px;margin-right: 5px;\n max-width: calc(100% - (2 * 5px));vertical-align: bottom;}\n .e-imgbreak, .e-audio-break, .e-video-break {border: 0;cursor: pointer;\n display: block;float: none;height: auto;margin: 5px auto;max-width: 100%;position: relative;}\n .e-rte-image.e-img-focus:not(.e-resize), .e-audio-focus:not(.e-resize), .e-video-focus:not(.e-resize) {border: solid 2px #4a90e2;}\n img.e-img-focus::selection, audio.e-audio-focus::selection, .e-video-focus::selection { background: transparent;color: transparent;}\n span.e-rte-imageboxmark { width: 10px; height: 10px; position: absolute; display: block;\n background: #4a90e2; border: 1px solid #fff; z-index: 1000;}\n .e-mob-rte.e-mob-span span.e-rte-imageboxmark { background: #4a90e2; border: 1px solid #fff; }\n .e-mob-rte span.e-rte-imageboxmark { background: #fff; border: 1px solid #4a90e2;\n border-radius: 15px; height: 20px; width: 20px; }\n .e-mob-rte.e-mob-span span.e-rte-imageboxmark { background: #4a90e2; border: 1px solid #fff; }\n .e-rte-content .e-content img.e-resize, .e-rte-content .e-content video.e-resize { z-index: 1000; }\n .e-img-caption .e-img-inner { outline: 0; }\n .e-img-caption a:focus-visible { outline: none; }\n .e-img-caption .e-rte-image.e-imgright, .e-img-caption .e-rte-image.e-imgleft { float: none; margin: 0;}\n body{box-sizing: border-box;min-height: 100px;outline: 0 solid transparent;\n overflow-x: auto;padding: 16px;position: relative;text-align: inherit;z-index: 2;}\n p{margin: 0 0 10px;margin-bottom: 10px;}\n li{margin-bottom: 10px;}\n h1{font-size: 2.17em;font-weight: 400;line-height: 1;margin: 10px 0;}\n h2{font-size: 1.74em;font-weight: 400;margin: 10px 0;}\n h3{font-size: 1.31em;font-weight: 400;margin: 10px 0;}\n h4{font-size: 16px;font-weight: 400;line-height: 1.5;margin: 0;}\n h5{font-size: 00.8em;font-weight: 400;margin: 0;}\n h6{font-size: 00.65em;font-weight: 400;margin: 0;}\n blockquote{margin: 10px 0;margin-left: 0;padding-left: 5px;border-left: solid 2px #5c5c5c;}\n pre{background-color: inherit;border: 0;border-radius: 0;color: #333;\n font-size: inherit;line-height: inherit;margin: 0 0 10px;overflow: visible;padding: 0;\n white-space: pre-wrap;word-break: inherit;word-wrap: break-word;}\n strong, b{font-weight: 700;}\n a{text-decoration: none;user-select: auto;}\n a:hover{text-decoration: underline;};\n p:last-child, pre:last-child, blockquote:last-child{margin-bottom: 0;}\n h3+h4, h4+h5, h5+h6{margin-top: 00.6em;}\n ul:last-child{margin-bottom: 0;}\n table { border-collapse: collapse; empty-cells: show;}\n table td,table th {border: 1px solid #BDBDBD; height: 20px; padding: 2px 5px; vertical-align: middle;}\n table.e-alternate-border tbody tr:nth-child(2n) {background-color: #F5F5F5;}\n table th {background-color: #E0E0E0;}\n table.e-dashed-border td,table.e-dashed-border th { border: 1px dashed #BDBDBD} \n table .e-cell-select {border: 1px double #4a90e2;}\n span.e-table-box { cursor: nwse-resize; display: block; height: 10px; position: absolute; width: 10px; }\n span.e-table-box.e-rmob {height: 14px;width: 14px;}\n .e-row-resize, .e-column-resize { background-color: transparent; background-repeat: repeat;\n bottom: 0;cursor: col-resize;height: 1px;overflow: visible;position: absolute;width: 1px; }\n .e-row-resize { cursor: row-resize; height: 1px;}\n .e-table-rhelper { cursor: col-resize; opacity: .87;position: absolute;}\n .e-table-rhelper.e-column-helper { width: 1px; }\n .e-table-rhelper.e-row-helper {height: 1px;}\n .e-reicon::before { border-bottom: 6px solid transparent; border-right: 6px solid;\n border-top: 6px solid transparent; content: ''; display: block; height: 0;\n position: absolute; right: 4px; top: 4px; width: 20px; }\n .e-reicon::after { border-bottom: 6px solid transparent; border-left: 6px solid;\n border-top: 6px solid transparent; content: ''; display: block;\n height: 0; left: 4px; position: absolute; top: 4px; width: 20px; z-index: 3; }\n .e-row-helper.e-reicon::after { top: 10px; transform: rotate(90deg); }\n .e-row-helper.e-reicon::before { left: 4px; top: -20px; transform: rotate(90deg); }\n span.e-table-box { background-color: #ffffff; border: 1px solid #BDBDBD; }\n span.e-table-box.e-rbox-select { background-color: #BDBDBD; border: 1px solid #BDBDBD; }\n .e-table-rhelper { background-color: #4a90e2;}\n .e-rtl { direction: rtl; }\n .e-rte-placeholder::before { content: attr(placeholder); opacity: 0.54; overflow: hidden; padding-top: 16px; position: absolute; text-align: start; top: 0; z-index: 1; }\n </style>\n </head>";
20001
20079
  /**
20002
20080
  * Content module is used to render Rich Text Editor content
@@ -20004,7 +20082,7 @@ var IFRAMEHEADER = "\n<!DOCTYPE html> \n <html>\n <head>\n
20004
20082
  * @hidden
20005
20083
  * @deprecated
20006
20084
  */
20007
- var IframeContentRender = /** @__PURE__ @class */ (function (_super) {
20085
+ var IframeContentRender = /** @class */ (function (_super) {
20008
20086
  __extends$3(IframeContentRender, _super);
20009
20087
  function IframeContentRender() {
20010
20088
  return _super !== null && _super.apply(this, arguments) || this;
@@ -20076,7 +20154,7 @@ var IframeContentRender = /** @__PURE__ @class */ (function (_super) {
20076
20154
  /**
20077
20155
  * XhtmlValidation module called when set enableXhtml as true
20078
20156
  */
20079
- var XhtmlValidation = /** @__PURE__ @class */ (function () {
20157
+ var XhtmlValidation = /** @class */ (function () {
20080
20158
  function XhtmlValidation(parent) {
20081
20159
  this.parent = parent;
20082
20160
  this.addEventListener();
@@ -20247,7 +20325,7 @@ var XhtmlValidation = /** @__PURE__ @class */ (function () {
20247
20325
  /**
20248
20326
  * `HtmlEditor` module is used to HTML editor
20249
20327
  */
20250
- var HtmlEditor = /** @__PURE__ @class */ (function () {
20328
+ var HtmlEditor = /** @class */ (function () {
20251
20329
  function HtmlEditor(parent, serviceLocator) {
20252
20330
  this.rangeCollection = [];
20253
20331
  this.isImageDelete = false;
@@ -20658,8 +20736,13 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
20658
20736
  this.parent.formatter.editorManager.nodeSelection.setCursorPoint(this.parent.contentModule.getDocument(), this.deleteRangeElement, this.deleteRangeElement.childNodes.length);
20659
20737
  this.isImageDelete = false;
20660
20738
  }
20661
- if (this.deleteRangeElement.querySelector('BR')) {
20662
- detach(this.deleteRangeElement.querySelector('BR'));
20739
+ var brNode = this.deleteRangeElement.querySelector('BR');
20740
+ if (brNode && brNode.classList.contains('e-rte-image-remove-focus')) {
20741
+ removeClass([brNode], ['e-rte-image-focus']);
20742
+ return;
20743
+ }
20744
+ else if (brNode) {
20745
+ detach(brNode);
20663
20746
  }
20664
20747
  if (!isNullOrUndefined(this.deleteRangeElement) && (this.deleteOldRangeElement.tagName !== 'OL' && this.deleteOldRangeElement.tagName !== 'UL')
20665
20748
  && this.deleteOldRangeElement !== this.deleteRangeElement) {
@@ -21030,6 +21113,9 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
21030
21113
  */
21031
21114
  HtmlEditor.prototype.onPropertyChanged = function (e) {
21032
21115
  // On property code change here
21116
+ if (!isNullOrUndefined(e) && !isNullOrUndefined(e.newProp.toolbarSettings) && !isNullOrUndefined(e.newProp.toolbarSettings.enable)) {
21117
+ this.toolbarUpdate = new HtmlToolbarStatus(this.parent);
21118
+ }
21033
21119
  if (!isNullOrUndefined(e.newProp.formatter)) {
21034
21120
  var editElement = this.contentRenderer.getEditPanel();
21035
21121
  var option = { undoRedoSteps: this.parent.undoRedoSteps,
@@ -21086,7 +21172,7 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
21086
21172
  /**
21087
21173
  * PasteCleanup module called when pasting content in RichTextEditor
21088
21174
  */
21089
- var PasteCleanup = /** @__PURE__ @class */ (function () {
21175
+ var PasteCleanup = /** @class */ (function () {
21090
21176
  function PasteCleanup(parent, serviceLocator) {
21091
21177
  this.inlineNode = ['a', 'abbr', 'acronym', 'audio', 'b', 'bdi', 'bdo', 'big', 'br', 'button',
21092
21178
  'canvas', 'cite', 'code', 'data', 'datalist', 'del', 'dfn', 'em', 'embed', 'font', 'i', 'iframe', 'img', 'input',
@@ -21258,7 +21344,7 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
21258
21344
  }
21259
21345
  else {
21260
21346
  var contentWithSpace = this.makeSpace(enterSplitText[i]);
21261
- contentInnerElem += '<p>' + contentWithSpace.trim() + '</p>';
21347
+ contentInnerElem += (i === 0 ? '<span>' : '<p>') + contentWithSpace.trim() + (i === 0 ? '</span>' : '</p>');
21262
21348
  }
21263
21349
  }
21264
21350
  return contentInnerElem;
@@ -21339,7 +21425,7 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
21339
21425
  var popupEle = this.parent.createElement('div');
21340
21426
  this.parent.element.appendChild(popupEle);
21341
21427
  var contentEle = this.parent.createElement('input', {
21342
- id: this.parent.element.id + '_upload', attrs: { type: 'File', name: 'UploadFiles' }
21428
+ id: this.parent.getID() + '_upload', attrs: { type: 'File', name: 'UploadFiles' }
21343
21429
  });
21344
21430
  var offsetY = this.parent.iframeSettings.enable ? -50 : -90;
21345
21431
  this.popupObj = new Popup(popupEle, {
@@ -21967,7 +22053,9 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
21967
22053
  PasteCleanup.prototype.findDetachEmptyElem = function (element) {
21968
22054
  var removableElement;
21969
22055
  if (!isNullOrUndefined(element.parentElement)) {
21970
- if (element.parentElement.textContent.trim() === '' &&
22056
+ var hasNbsp = element.parentElement.textContent.length > 0 && element.parentElement.textContent.match(/\u00a0/g)
22057
+ && element.parentElement.textContent.match(/\u00a0/g).length > 0;
22058
+ if (!hasNbsp && element.parentElement.textContent.trim() === '' &&
21971
22059
  element.parentElement.getAttribute('class') !== 'pasteContent') {
21972
22060
  removableElement = this.findDetachEmptyElem(element.parentElement);
21973
22061
  }
@@ -22113,7 +22201,7 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
22113
22201
  /**
22114
22202
  * `Resize` module is used to resize the editor
22115
22203
  */
22116
- var Resize = /** @__PURE__ @class */ (function () {
22204
+ var Resize = /** @class */ (function () {
22117
22205
  function Resize(parent) {
22118
22206
  this.parent = parent;
22119
22207
  this.addEventListener();
@@ -22246,7 +22334,7 @@ var Resize = /** @__PURE__ @class */ (function () {
22246
22334
  /**
22247
22335
  * `FileManager` module is used to display the directories and images inside the editor.
22248
22336
  */
22249
- var FileManager$1 = /** @__PURE__ @class */ (function () {
22337
+ var FileManager$1 = /** @class */ (function () {
22250
22338
  function FileManager$$1(parent, locator) {
22251
22339
  FileManager.Inject(ContextMenu, DetailsView, NavigationPane, Toolbar$1);
22252
22340
  this.parent = parent;
@@ -22496,7 +22584,7 @@ var FileManager$1 = /** @__PURE__ @class */ (function () {
22496
22584
  /**
22497
22585
  * `FullScreen` module is used to maximize and minimize screen
22498
22586
  */
22499
- var FullScreen = /** @__PURE__ @class */ (function () {
22587
+ var FullScreen = /** @class */ (function () {
22500
22588
  function FullScreen(parent) {
22501
22589
  this.parent = parent;
22502
22590
  this.addEventListener();
@@ -22726,7 +22814,7 @@ function setAttributes(htmlAttributes, rte, isFrame, initial) {
22726
22814
  }
22727
22815
  }
22728
22816
 
22729
- var FormatPainter = /** @__PURE__ @class */ (function () {
22817
+ var FormatPainter = /** @class */ (function () {
22730
22818
  function FormatPainter(parent) {
22731
22819
  this.isSticky = false;
22732
22820
  this.isActive = false;
@@ -22881,7 +22969,7 @@ var FormatPainter = /** @__PURE__ @class */ (function () {
22881
22969
  return FormatPainter;
22882
22970
  }());
22883
22971
 
22884
- var EmojiPicker = /** @__PURE__ @class */ (function () {
22972
+ var EmojiPicker = /** @class */ (function () {
22885
22973
  function EmojiPicker(parent, serviceLocator) {
22886
22974
  this.parent = parent;
22887
22975
  this.locator = serviceLocator;
@@ -23689,7 +23777,7 @@ var EmojiPicker = /** @__PURE__ @class */ (function () {
23689
23777
  * @hidden
23690
23778
  * @deprecated
23691
23779
  */
23692
- var Render = /** @__PURE__ @class */ (function () {
23780
+ var Render = /** @class */ (function () {
23693
23781
  /**
23694
23782
  * Constructor for render module
23695
23783
  *
@@ -23788,7 +23876,7 @@ var Render = /** @__PURE__ @class */ (function () {
23788
23876
  /**
23789
23877
  * `Link` module is used to handle undo actions.
23790
23878
  */
23791
- var Link = /** @__PURE__ @class */ (function () {
23879
+ var Link = /** @class */ (function () {
23792
23880
  function Link(parent, serviceLocator) {
23793
23881
  this.parent = parent;
23794
23882
  this.rteID = parent.element.id;
@@ -24144,6 +24232,7 @@ var Link = /** @__PURE__ @class */ (function () {
24144
24232
  linkTitle = linkEle.querySelector('.e-rte-linkTitle').value;
24145
24233
  }
24146
24234
  var target = (this.selfLink.checkBoxObj.checked) ? '_blank' : null;
24235
+ var linkLabel = (this.selfLink.checkBoxObj.checked) ? this.selfLink.i10n.getConstant('linkAriaLabel') : null;
24147
24236
  if (linkUrl === '') {
24148
24237
  this.selfLink.checkUrl(true);
24149
24238
  return;
@@ -24174,7 +24263,7 @@ var Link = /** @__PURE__ @class */ (function () {
24174
24263
  this.selectParent = proxy.parent.formatter.editorManager.nodeSelection.getParentNodeCollection(range);
24175
24264
  }
24176
24265
  var value = {
24177
- url: linkUrl, text: linkText, title: linkTitle, target: target,
24266
+ url: linkUrl, text: linkText, title: linkTitle, target: target, ariaLabel: linkLabel,
24178
24267
  selection: this.selection, selectParent: this.selectParent
24179
24268
  };
24180
24269
  if (document.body.contains(proxy.dialogObj.element)) {
@@ -24327,7 +24416,7 @@ var Link = /** @__PURE__ @class */ (function () {
24327
24416
  /**
24328
24417
  * `Image` module is used to handle image actions.
24329
24418
  */
24330
- var Image$1 = /** @__PURE__ @class */ (function () {
24419
+ var Image$1 = /** @class */ (function () {
24331
24420
  function Image(parent, serviceLocator) {
24332
24421
  this.isImgUploaded = false;
24333
24422
  this.isAllowedTypes = true;
@@ -25015,13 +25104,22 @@ var Image$1 = /** @__PURE__ @class */ (function () {
25015
25104
  }
25016
25105
  }
25017
25106
  }
25018
- else if ((range.startContainer.nodeType === 1 &&
25019
- range.startContainer.querySelector('.' + CLS_CAPTION + '.' + CLS_CAPINLINE))) {
25020
- detach(range.startContainer.querySelector('.' + CLS_CAPTION + '.' + CLS_CAPINLINE));
25021
- }
25022
- else if (range.startContainer.nodeType === 1 &&
25023
- range.startContainer.querySelector('.' + CLS_CAPTION + '.' + CLS_IMGBREAK)) {
25024
- detach(range.startContainer.querySelector('.' + CLS_CAPTION + '.' + CLS_IMGBREAK));
25107
+ else if (range.startContainer.nodeType === 1) {
25108
+ if (range.startContainer.querySelector('.' + CLS_CAPTION + '.' + CLS_CAPINLINE)) {
25109
+ detach(range.startContainer.querySelector('.' + CLS_CAPTION + '.' + CLS_CAPINLINE));
25110
+ }
25111
+ else if (range.startContainer.querySelector('.' + CLS_CAPTION + '.' + CLS_IMGBREAK)) {
25112
+ detach(range.startContainer.querySelector('.' + CLS_CAPTION + '.' + CLS_IMGBREAK));
25113
+ }
25114
+ else if (range.startContainer.classList.contains('e-img-wrap') && closest(range.startContainer, '.' + CLS_CAPTION)) {
25115
+ var parentElem = range.startContainer.parentElement.parentElement;
25116
+ detach(closest(range.startContainer, '.' + CLS_CAPTION));
25117
+ if (parentElem && parentElem.textContent.trim() === '') {
25118
+ var brElem = this.parent.createElement('br');
25119
+ brElem.classList.add('e-rte-image-remove-focus');
25120
+ parentElem.appendChild(brElem);
25121
+ }
25122
+ }
25025
25123
  }
25026
25124
  }
25027
25125
  break;
@@ -25323,7 +25421,6 @@ var Image$1 = /** @__PURE__ @class */ (function () {
25323
25421
  width: '290px',
25324
25422
  header: this.parent.localeObj.getConstant('imageInsertLinkHeader'),
25325
25423
  content: linkWrap,
25326
- position: { X: 'center', Y: 'center' },
25327
25424
  buttons: [{
25328
25425
  // eslint-disable-next-line
25329
25426
  click: function (e) {
@@ -25373,7 +25470,7 @@ var Image$1 = /** @__PURE__ @class */ (function () {
25373
25470
  alt: inputAlt
25374
25471
  };
25375
25472
  this.dialogObj.setProperties({
25376
- height: 'inherit', width: '290px', header: altHeader, content: altWrap, position: { X: 'center', Y: 'center' },
25473
+ height: 'inherit', width: '290px', header: altHeader, content: altWrap,
25377
25474
  buttons: [{
25378
25475
  // eslint-disable-next-line
25379
25476
  click: function (e) {
@@ -25600,7 +25697,7 @@ var Image$1 = /** @__PURE__ @class */ (function () {
25600
25697
  var dialogContent = this.imgsizeInput(e);
25601
25698
  var selectObj_1 = { args: e.args, selfImage: this, selection: e.selection, selectNode: e.selectNode };
25602
25699
  this.dialogObj.setProperties({
25603
- height: (Browser.isDevice) ? '300px' : 'inherit', width: '290px', header: imgSizeHeader, content: dialogContent, position: { X: 'center', Y: 'center' },
25700
+ height: (Browser.isDevice) ? '300px' : 'inherit', width: '290px', header: imgSizeHeader, content: dialogContent,
25604
25701
  buttons: [{
25605
25702
  // eslint-disable-next-line
25606
25703
  click: function (e) {
@@ -25666,7 +25763,6 @@ var Image$1 = /** @__PURE__ @class */ (function () {
25666
25763
  enableRtl: this.parent.enableRtl,
25667
25764
  locale: this.parent.locale,
25668
25765
  showCloseIcon: true, closeOnEscape: true, width: (Browser.isDevice) ? '290px' : '340px',
25669
- position: { X: 'center', Y: (Browser.isDevice) ? 'center' : 'top' },
25670
25766
  isModal: Browser.isDevice,
25671
25767
  buttons: [{
25672
25768
  click: this.insertImageUrl.bind(selectObj),
@@ -26615,7 +26711,7 @@ var Image$1 = /** @__PURE__ @class */ (function () {
26615
26711
  /**
26616
26712
  * `Audio` module is used to handle audio actions.
26617
26713
  */
26618
- var Audio = /** @__PURE__ @class */ (function () {
26714
+ var Audio = /** @class */ (function () {
26619
26715
  function Audio(parent, serviceLocator) {
26620
26716
  this.isAudioUploaded = false;
26621
26717
  this.isAllowedTypes = true;
@@ -27160,7 +27256,6 @@ var Audio = /** @__PURE__ @class */ (function () {
27160
27256
  enableRtl: this.parent.enableRtl,
27161
27257
  locale: this.parent.locale,
27162
27258
  showCloseIcon: true, closeOnEscape: true, width: (Browser.isDevice) ? '290px' : '340px',
27163
- position: { X: 'center', Y: (Browser.isDevice) ? 'center' : 'top' },
27164
27259
  isModal: Browser.isDevice,
27165
27260
  buttons: [{
27166
27261
  click: this.insertAudioUrl.bind(selectObj),
@@ -27457,7 +27552,7 @@ var Audio = /** @__PURE__ @class */ (function () {
27457
27552
  return Audio;
27458
27553
  }());
27459
27554
 
27460
- var Video = /** @__PURE__ @class */ (function () {
27555
+ var Video = /** @class */ (function () {
27461
27556
  function Video(parent, serviceLocator) {
27462
27557
  this.isVideoUploaded = false;
27463
27558
  this.isAllowedTypes = true;
@@ -27593,7 +27688,7 @@ var Video = /** @__PURE__ @class */ (function () {
27593
27688
  var dialogContent = this.vidsizeInput(e);
27594
27689
  var selectObj_1 = { args: e.args, selfVideo: this, selection: e.selection, selectNode: e.selectNode };
27595
27690
  this.dialogObj.setProperties({
27596
- height: 'inherit', width: '290px', header: vidSizeHeader, content: dialogContent, position: { X: 'center', Y: 'center' },
27691
+ height: 'inherit', width: '290px', header: vidSizeHeader, content: dialogContent,
27597
27692
  buttons: [{
27598
27693
  // eslint-disable-next-line
27599
27694
  click: function (e) {
@@ -28498,7 +28593,6 @@ var Video = /** @__PURE__ @class */ (function () {
28498
28593
  enableRtl: this.parent.enableRtl,
28499
28594
  locale: this.parent.locale,
28500
28595
  showCloseIcon: true, closeOnEscape: true, width: (Browser.isDevice) ? '290px' : '340px',
28501
- position: { X: 'center', Y: (Browser.isDevice) ? 'center' : 'top' },
28502
28596
  isModal: Browser.isDevice,
28503
28597
  buttons: [{
28504
28598
  click: this.insertVideoUrl.bind(selectObj),
@@ -28868,7 +28962,7 @@ var Video = /** @__PURE__ @class */ (function () {
28868
28962
  * @hidden
28869
28963
  * @deprecated
28870
28964
  */
28871
- var ViewSource = /** @__PURE__ @class */ (function () {
28965
+ var ViewSource = /** @class */ (function () {
28872
28966
  /**
28873
28967
  * Constructor for view source module
28874
28968
  *
@@ -28902,7 +28996,7 @@ var ViewSource = /** @__PURE__ @class */ (function () {
28902
28996
  this.parent.formatter.editorManager.observer.off(KEY_DOWN_HANDLER, this.onKeyDown);
28903
28997
  };
28904
28998
  ViewSource.prototype.getSourceCode = function () {
28905
- return this.parent.createElement('textarea', { className: 'e-rte-srctextarea' + ' ' + this.parent.cssClass });
28999
+ return this.parent.createElement('textarea', { className: CLS_RTE_SOURCE_CODE_TXTAREA + ' ' + this.parent.cssClass });
28906
29000
  };
28907
29001
  ViewSource.prototype.wireEvent = function (element) {
28908
29002
  this.keyboardModule = new KeyboardEvents$1(element, {
@@ -28936,9 +29030,10 @@ var ViewSource = /** @__PURE__ @class */ (function () {
28936
29030
  event.preventDefault();
28937
29031
  break;
28938
29032
  case 'toolbar-focus':
28939
- if (this.parent.toolbarSettings.enable) {
28940
- var selector = '.e-toolbar-item[title] [tabindex]';
28941
- this.parent.toolbarModule.baseToolbar.toolbarObj.element.querySelector(selector).focus();
29033
+ if (this.parent.toolbarSettings.enable && this.parent.getToolbarElement()) {
29034
+ var firstActiveItem = this.parent.getToolbarElement().querySelector('.e-toolbar-item:not(.e-overlay)[title]');
29035
+ firstActiveItem.firstElementChild.removeAttribute('tabindex');
29036
+ firstActiveItem.firstElementChild.focus();
28942
29037
  }
28943
29038
  break;
28944
29039
  }
@@ -28980,13 +29075,13 @@ var ViewSource = /** @__PURE__ @class */ (function () {
28980
29075
  this.parent.updateValueData();
28981
29076
  if (this.parent.iframeSettings.enable) {
28982
29077
  var rteContent = void 0;
28983
- if (isNullOrUndefined(this.parent.element.querySelector('#' + this.parent.element.id + '_source-view'))) {
29078
+ if (isNullOrUndefined(this.parent.element.querySelector('#' + this.parent.getID() + '_source-view'))) {
28984
29079
  rteContent = this.parent.createElement('div', {
28985
- className: 'e-source-content', id: this.parent.element.id + '_source-view'
29080
+ className: 'e-source-content', id: this.parent.getID() + '_source-view'
28986
29081
  });
28987
29082
  }
28988
29083
  else {
28989
- rteContent = this.parent.element.querySelector('#' + this.parent.element.id + '_source-view');
29084
+ rteContent = this.parent.element.querySelector('#' + this.parent.getID() + '_source-view');
28990
29085
  }
28991
29086
  rteContent.appendChild(this.previewElement);
28992
29087
  this.parent.element.appendChild(rteContent);
@@ -29137,7 +29232,7 @@ var ViewSource = /** @__PURE__ @class */ (function () {
29137
29232
  /**
29138
29233
  * `Table` module is used to handle table actions.
29139
29234
  */
29140
- var Table = /** @__PURE__ @class */ (function () {
29235
+ var Table = /** @class */ (function () {
29141
29236
  function Table(parent, serviceLocator) {
29142
29237
  this.ensureInsideTableList = true;
29143
29238
  this.pageX = null;
@@ -29167,6 +29262,7 @@ var Table = /** @__PURE__ @class */ (function () {
29167
29262
  this.parent.on(tableToolbarAction, this.onToolbarAction, this);
29168
29263
  this.parent.on(dropDownSelect, this.dropdownSelect, this);
29169
29264
  this.parent.on(keyDown, this.keyDown, this);
29265
+ this.parent.on(keyUp, this.keyUp, this);
29170
29266
  this.parent.on(mouseUp, this.selectionTable, this);
29171
29267
  this.parent.on(tableModulekeyUp, this.tableModulekeyUp, this);
29172
29268
  this.parent.on(bindCssClass, this.setCssClass, this);
@@ -29189,6 +29285,7 @@ var Table = /** @__PURE__ @class */ (function () {
29189
29285
  this.parent.off(dropDownSelect, this.dropdownSelect);
29190
29286
  this.parent.off(mouseDown, this.cellSelect);
29191
29287
  this.parent.off(tableColorPickerChanged, this.setBGColor);
29288
+ this.parent.off(keyUp, this.keyUp);
29192
29289
  this.parent.off(keyDown, this.keyDown);
29193
29290
  this.parent.off(mouseUp, this.selectionTable);
29194
29291
  this.parent.off(tableModulekeyUp, this.tableModulekeyUp);
@@ -29293,6 +29390,12 @@ var Table = /** @__PURE__ @class */ (function () {
29293
29390
  this.parent.formatter.process(this.parent, e, e, { selection: selectCell, subCommand: e.item.subCommand });
29294
29391
  this.hideTableQuickToolbar();
29295
29392
  };
29393
+ Table.prototype.keyUp = function (e) {
29394
+ var target = e.args.target;
29395
+ if (e.args.key.toLocaleLowerCase() === 'escape' && target && target.classList && (this.popupObj && !closest(target, '[id=' + "'" + this.popupObj.element.id + "'" + ']')) && this.popupObj) {
29396
+ this.popupObj.hide();
29397
+ }
29398
+ };
29296
29399
  Table.prototype.keyDown = function (e) {
29297
29400
  var event = e.args;
29298
29401
  // eslint-disable-next-line
@@ -30478,7 +30581,7 @@ var Table = /** @__PURE__ @class */ (function () {
30478
30581
  value: 3,
30479
30582
  placeholder: tableRow,
30480
30583
  floatLabelType: 'Auto',
30481
- max: 50,
30584
+ max: 1000,
30482
30585
  enableRtl: this.parent.enableRtl, locale: this.parent.locale,
30483
30586
  cssClass: this.parent.cssClass
30484
30587
  });
@@ -30669,7 +30772,7 @@ var Table = /** @__PURE__ @class */ (function () {
30669
30772
  /**
30670
30773
  * Dialog Renderer
30671
30774
  */
30672
- var DialogRenderer = /** @__PURE__ @class */ (function () {
30775
+ var DialogRenderer = /** @class */ (function () {
30673
30776
  function DialogRenderer(parent) {
30674
30777
  this.parent = parent;
30675
30778
  this.addEventListener();
@@ -30700,6 +30803,7 @@ var DialogRenderer = /** @__PURE__ @class */ (function () {
30700
30803
  var dlgObj;
30701
30804
  e.beforeOpen = this.beforeOpen.bind(this);
30702
30805
  e.open = this.open.bind(this);
30806
+ e.position = { X: 'center', Y: this.getDialogPosition() };
30703
30807
  if (isNullOrUndefined(e.close)) {
30704
30808
  e.close = this.close.bind(this);
30705
30809
  }
@@ -30744,6 +30848,16 @@ var DialogRenderer = /** @__PURE__ @class */ (function () {
30744
30848
  }
30745
30849
  });
30746
30850
  };
30851
+ DialogRenderer.prototype.getDialogPosition = function () {
30852
+ var distanceFromVisibleTop = this.parent.element.getBoundingClientRect().top;
30853
+ if (distanceFromVisibleTop < 0) {
30854
+ distanceFromVisibleTop = Math.abs(distanceFromVisibleTop);
30855
+ return distanceFromVisibleTop.toString();
30856
+ }
30857
+ else {
30858
+ return 'top';
30859
+ }
30860
+ };
30747
30861
  /**
30748
30862
  * dialog close method
30749
30863
  *
@@ -30955,29 +31069,29 @@ var executeGroup = {
30955
31069
  }
30956
31070
  };
30957
31071
 
30958
- var __extends$5 = (undefined && undefined.__extends) || (function () {
30959
- var extendStatics = function (d, b) {
30960
- extendStatics = Object.setPrototypeOf ||
30961
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
30962
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
30963
- return extendStatics(d, b);
30964
- };
30965
- return function (d, b) {
30966
- extendStatics(d, b);
30967
- function __() { this.constructor = d; }
30968
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
30969
- };
30970
- })();
30971
- var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
30972
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
30973
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
30974
- 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;
30975
- return c > 3 && r && Object.defineProperty(target, key, r), r;
30976
- };
31072
+ var __extends$5 = (undefined && undefined.__extends) || (function () {
31073
+ var extendStatics = function (d, b) {
31074
+ extendStatics = Object.setPrototypeOf ||
31075
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
31076
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
31077
+ return extendStatics(d, b);
31078
+ };
31079
+ return function (d, b) {
31080
+ extendStatics(d, b);
31081
+ function __() { this.constructor = d; }
31082
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
31083
+ };
31084
+ })();
31085
+ var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
31086
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
31087
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
31088
+ 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;
31089
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
31090
+ };
30977
31091
  /**
30978
31092
  * Configures the toolbar settings of the RichTextEditor.
30979
31093
  */
30980
- var ToolbarSettings$1 = /** @__PURE__ @class */ (function (_super) {
31094
+ var ToolbarSettings$1 = /** @class */ (function (_super) {
30981
31095
  __extends$5(ToolbarSettings$$1, _super);
30982
31096
  function ToolbarSettings$$1() {
30983
31097
  return _super !== null && _super.apply(this, arguments) || this;
@@ -31002,7 +31116,7 @@ var ToolbarSettings$1 = /** @__PURE__ @class */ (function (_super) {
31002
31116
  /**
31003
31117
  * Configures the image settings of the RichTextEditor.
31004
31118
  */
31005
- var ImageSettings = /** @__PURE__ @class */ (function (_super) {
31119
+ var ImageSettings = /** @class */ (function (_super) {
31006
31120
  __extends$5(ImageSettings, _super);
31007
31121
  function ImageSettings() {
31008
31122
  return _super !== null && _super.apply(this, arguments) || this;
@@ -31054,7 +31168,7 @@ var ImageSettings = /** @__PURE__ @class */ (function (_super) {
31054
31168
  /**
31055
31169
  * Configures the audio settings of the RichTextEditor.
31056
31170
  */
31057
- var AudioSettings = /** @__PURE__ @class */ (function (_super) {
31171
+ var AudioSettings = /** @class */ (function (_super) {
31058
31172
  __extends$5(AudioSettings, _super);
31059
31173
  function AudioSettings() {
31060
31174
  return _super !== null && _super.apply(this, arguments) || this;
@@ -31082,7 +31196,7 @@ var AudioSettings = /** @__PURE__ @class */ (function (_super) {
31082
31196
  /**
31083
31197
  * Configures the video settings of the RichTextEditor.
31084
31198
  */
31085
- var VideoSettings = /** @__PURE__ @class */ (function (_super) {
31199
+ var VideoSettings = /** @class */ (function (_super) {
31086
31200
  __extends$5(VideoSettings, _super);
31087
31201
  function VideoSettings() {
31088
31202
  return _super !== null && _super.apply(this, arguments) || this;
@@ -31134,7 +31248,7 @@ var VideoSettings = /** @__PURE__ @class */ (function (_super) {
31134
31248
  /**
31135
31249
  * Configures the file manager settings of the RichTextEditor.
31136
31250
  */
31137
- var FileManagerSettings = /** @__PURE__ @class */ (function (_super) {
31251
+ var FileManagerSettings = /** @class */ (function (_super) {
31138
31252
  __extends$5(FileManagerSettings, _super);
31139
31253
  function FileManagerSettings() {
31140
31254
  return _super !== null && _super.apply(this, arguments) || this;
@@ -31195,7 +31309,7 @@ var FileManagerSettings = /** @__PURE__ @class */ (function (_super) {
31195
31309
  ], FileManagerSettings.prototype, "view", void 0);
31196
31310
  return FileManagerSettings;
31197
31311
  }(ChildProperty));
31198
- var TableSettings = /** @__PURE__ @class */ (function (_super) {
31312
+ var TableSettings = /** @class */ (function (_super) {
31199
31313
  __extends$5(TableSettings, _super);
31200
31314
  function TableSettings() {
31201
31315
  return _super !== null && _super.apply(this, arguments) || this;
@@ -31220,7 +31334,7 @@ var TableSettings = /** @__PURE__ @class */ (function (_super) {
31220
31334
  /**
31221
31335
  * Configures the quick toolbar settings of the RichTextEditor.
31222
31336
  */
31223
- var QuickToolbarSettings = /** @__PURE__ @class */ (function (_super) {
31337
+ var QuickToolbarSettings = /** @class */ (function (_super) {
31224
31338
  __extends$5(QuickToolbarSettings, _super);
31225
31339
  function QuickToolbarSettings() {
31226
31340
  return _super !== null && _super.apply(this, arguments) || this;
@@ -31257,7 +31371,7 @@ var QuickToolbarSettings = /** @__PURE__ @class */ (function (_super) {
31257
31371
  /**
31258
31372
  * Configure the format painter settings of the Rich Text Editor.
31259
31373
  */
31260
- var FormatPainterSettings = /** @__PURE__ @class */ (function (_super) {
31374
+ var FormatPainterSettings = /** @class */ (function (_super) {
31261
31375
  __extends$5(FormatPainterSettings, _super);
31262
31376
  function FormatPainterSettings() {
31263
31377
  return _super !== null && _super.apply(this, arguments) || this;
@@ -31273,7 +31387,7 @@ var FormatPainterSettings = /** @__PURE__ @class */ (function (_super) {
31273
31387
  /**
31274
31388
  * Specifies the emoji picker options in Rich Text Editor with the following properties.
31275
31389
  */
31276
- var EmojiSettings = /** @__PURE__ @class */ (function (_super) {
31390
+ var EmojiSettings = /** @class */ (function (_super) {
31277
31391
  __extends$5(EmojiSettings, _super);
31278
31392
  function EmojiSettings() {
31279
31393
  return _super !== null && _super.apply(this, arguments) || this;
@@ -31289,7 +31403,7 @@ var EmojiSettings = /** @__PURE__ @class */ (function (_super) {
31289
31403
  /**
31290
31404
  * Configures the Paste Cleanup settings of the RichTextEditor.
31291
31405
  */
31292
- var PasteCleanupSettings = /** @__PURE__ @class */ (function (_super) {
31406
+ var PasteCleanupSettings = /** @class */ (function (_super) {
31293
31407
  __extends$5(PasteCleanupSettings, _super);
31294
31408
  function PasteCleanupSettings() {
31295
31409
  return _super !== null && _super.apply(this, arguments) || this;
@@ -31317,7 +31431,7 @@ var PasteCleanupSettings = /** @__PURE__ @class */ (function (_super) {
31317
31431
  /**
31318
31432
  * Configures the font family settings of the RichTextEditor.
31319
31433
  */
31320
- var FontFamily = /** @__PURE__ @class */ (function (_super) {
31434
+ var FontFamily = /** @class */ (function (_super) {
31321
31435
  __extends$5(FontFamily, _super);
31322
31436
  function FontFamily() {
31323
31437
  return _super !== null && _super.apply(this, arguments) || this;
@@ -31336,7 +31450,7 @@ var FontFamily = /** @__PURE__ @class */ (function (_super) {
31336
31450
  /**
31337
31451
  * Configures the font size settings of the RichTextEditor.
31338
31452
  */
31339
- var FontSize = /** @__PURE__ @class */ (function (_super) {
31453
+ var FontSize = /** @class */ (function (_super) {
31340
31454
  __extends$5(FontSize, _super);
31341
31455
  function FontSize() {
31342
31456
  return _super !== null && _super.apply(this, arguments) || this;
@@ -31355,7 +31469,7 @@ var FontSize = /** @__PURE__ @class */ (function (_super) {
31355
31469
  /**
31356
31470
  * Configures the format settings of the RichTextEditor.
31357
31471
  */
31358
- var Format = /** @__PURE__ @class */ (function (_super) {
31472
+ var Format = /** @class */ (function (_super) {
31359
31473
  __extends$5(Format, _super);
31360
31474
  function Format() {
31361
31475
  return _super !== null && _super.apply(this, arguments) || this;
@@ -31374,7 +31488,7 @@ var Format = /** @__PURE__ @class */ (function (_super) {
31374
31488
  /**
31375
31489
  * Configures the font Color settings of the RichTextEditor.
31376
31490
  */
31377
- var FontColor = /** @__PURE__ @class */ (function (_super) {
31491
+ var FontColor = /** @class */ (function (_super) {
31378
31492
  __extends$5(FontColor, _super);
31379
31493
  function FontColor() {
31380
31494
  return _super !== null && _super.apply(this, arguments) || this;
@@ -31399,7 +31513,7 @@ var FontColor = /** @__PURE__ @class */ (function (_super) {
31399
31513
  /**
31400
31514
  * Configures the background Color settings of the RichTextEditor.
31401
31515
  */
31402
- var BackgroundColor = /** @__PURE__ @class */ (function (_super) {
31516
+ var BackgroundColor = /** @class */ (function (_super) {
31403
31517
  __extends$5(BackgroundColor, _super);
31404
31518
  function BackgroundColor() {
31405
31519
  return _super !== null && _super.apply(this, arguments) || this;
@@ -31424,7 +31538,7 @@ var BackgroundColor = /** @__PURE__ @class */ (function (_super) {
31424
31538
  /**
31425
31539
  * Configures the numberFormatList settings of the RichTextEditor.
31426
31540
  */
31427
- var NumberFormatList = /** @__PURE__ @class */ (function (_super) {
31541
+ var NumberFormatList = /** @class */ (function (_super) {
31428
31542
  __extends$5(NumberFormatList, _super);
31429
31543
  function NumberFormatList() {
31430
31544
  return _super !== null && _super.apply(this, arguments) || this;
@@ -31437,7 +31551,7 @@ var NumberFormatList = /** @__PURE__ @class */ (function (_super) {
31437
31551
  /**
31438
31552
  * Configures the bulletFormatList settings of the RichTextEditor.
31439
31553
  */
31440
- var BulletFormatList = /** @__PURE__ @class */ (function (_super) {
31554
+ var BulletFormatList = /** @class */ (function (_super) {
31441
31555
  __extends$5(BulletFormatList, _super);
31442
31556
  function BulletFormatList() {
31443
31557
  return _super !== null && _super.apply(this, arguments) || this;
@@ -31448,29 +31562,29 @@ var BulletFormatList = /** @__PURE__ @class */ (function (_super) {
31448
31562
  return BulletFormatList;
31449
31563
  }(ChildProperty));
31450
31564
 
31451
- var __extends$6 = (undefined && undefined.__extends) || (function () {
31452
- var extendStatics = function (d, b) {
31453
- extendStatics = Object.setPrototypeOf ||
31454
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
31455
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
31456
- return extendStatics(d, b);
31457
- };
31458
- return function (d, b) {
31459
- extendStatics(d, b);
31460
- function __() { this.constructor = d; }
31461
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
31462
- };
31463
- })();
31464
- var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
31465
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
31466
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
31467
- 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;
31468
- return c > 3 && r && Object.defineProperty(target, key, r), r;
31469
- };
31565
+ var __extends$6 = (undefined && undefined.__extends) || (function () {
31566
+ var extendStatics = function (d, b) {
31567
+ extendStatics = Object.setPrototypeOf ||
31568
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
31569
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
31570
+ return extendStatics(d, b);
31571
+ };
31572
+ return function (d, b) {
31573
+ extendStatics(d, b);
31574
+ function __() { this.constructor = d; }
31575
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
31576
+ };
31577
+ })();
31578
+ var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
31579
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
31580
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
31581
+ 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;
31582
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
31583
+ };
31470
31584
  /**
31471
31585
  * Objects used for configuring the iframe resources properties.
31472
31586
  */
31473
- var Resources = /** @__PURE__ @class */ (function (_super) {
31587
+ var Resources = /** @class */ (function (_super) {
31474
31588
  __extends$6(Resources, _super);
31475
31589
  function Resources() {
31476
31590
  return _super !== null && _super.apply(this, arguments) || this;
@@ -31486,7 +31600,7 @@ var Resources = /** @__PURE__ @class */ (function (_super) {
31486
31600
  /**
31487
31601
  * Configures the iframe settings of the RTE.
31488
31602
  */
31489
- var IFrameSettings = /** @__PURE__ @class */ (function (_super) {
31603
+ var IFrameSettings = /** @class */ (function (_super) {
31490
31604
  __extends$6(IFrameSettings, _super);
31491
31605
  function IFrameSettings() {
31492
31606
  return _super !== null && _super.apply(this, arguments) || this;
@@ -31503,29 +31617,29 @@ var IFrameSettings = /** @__PURE__ @class */ (function (_super) {
31503
31617
  return IFrameSettings;
31504
31618
  }(ChildProperty));
31505
31619
 
31506
- var __extends$7 = (undefined && undefined.__extends) || (function () {
31507
- var extendStatics = function (d, b) {
31508
- extendStatics = Object.setPrototypeOf ||
31509
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
31510
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
31511
- return extendStatics(d, b);
31512
- };
31513
- return function (d, b) {
31514
- extendStatics(d, b);
31515
- function __() { this.constructor = d; }
31516
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
31517
- };
31518
- })();
31519
- var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
31520
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
31521
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
31522
- 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;
31523
- return c > 3 && r && Object.defineProperty(target, key, r), r;
31524
- };
31620
+ var __extends$7 = (undefined && undefined.__extends) || (function () {
31621
+ var extendStatics = function (d, b) {
31622
+ extendStatics = Object.setPrototypeOf ||
31623
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
31624
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
31625
+ return extendStatics(d, b);
31626
+ };
31627
+ return function (d, b) {
31628
+ extendStatics(d, b);
31629
+ function __() { this.constructor = d; }
31630
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
31631
+ };
31632
+ })();
31633
+ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
31634
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
31635
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
31636
+ 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;
31637
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
31638
+ };
31525
31639
  /**
31526
31640
  * Configures the inlineMode property of the RTE.
31527
31641
  */
31528
- var InlineMode = /** @__PURE__ @class */ (function (_super) {
31642
+ var InlineMode = /** @class */ (function (_super) {
31529
31643
  __extends$7(InlineMode, _super);
31530
31644
  function InlineMode() {
31531
31645
  return _super !== null && _super.apply(this, arguments) || this;
@@ -31542,7 +31656,7 @@ var InlineMode = /** @__PURE__ @class */ (function (_super) {
31542
31656
  /**
31543
31657
  * `EnterKey` module is used to handle enter key press actions.
31544
31658
  */
31545
- var EnterKeyAction = /** @__PURE__ @class */ (function () {
31659
+ var EnterKeyAction = /** @class */ (function () {
31546
31660
  function EnterKeyAction(parent) {
31547
31661
  this.parent = parent;
31548
31662
  this.addEventListener();
@@ -31937,7 +32051,7 @@ var EnterKeyAction = /** @__PURE__ @class */ (function () {
31937
32051
  var newElem = void 0;
31938
32052
  var outerBRElem = _this.parent.createElement('br');
31939
32053
  if (_this.range.startOffset === 0 && _this.range.endOffset === 0 &&
31940
- !isNullOrUndefined(currentParent.previousSibling) && currentParent.previousSibling.nodeName === 'BR') {
32054
+ !isNullOrUndefined(currentParent.previousSibling) && currentParent.previousSibling.nodeName === 'BR' && currentParent.nodeName !== 'P' && currentParent.nodeName !== 'DIV') {
31941
32055
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
31942
32056
  newElem = _this.parent.formatter.editorManager.nodeCutter.SplitNode(_this.range, currentParent, false).cloneNode(true);
31943
32057
  _this.parent.formatter.editorManager.domNode.insertAfter(outerBRElem, currentParent);
@@ -32033,36 +32147,36 @@ var EnterKeyAction = /** @__PURE__ @class */ (function () {
32033
32147
  return EnterKeyAction;
32034
32148
  }());
32035
32149
 
32036
- var __extends$4 = (undefined && undefined.__extends) || (function () {
32037
- var extendStatics = function (d, b) {
32038
- extendStatics = Object.setPrototypeOf ||
32039
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
32040
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
32041
- return extendStatics(d, b);
32042
- };
32043
- return function (d, b) {
32044
- extendStatics(d, b);
32045
- function __() { this.constructor = d; }
32046
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
32047
- };
32048
- })();
32049
- var __assign = (undefined && undefined.__assign) || function () {
32050
- __assign = Object.assign || function(t) {
32051
- for (var s, i = 1, n = arguments.length; i < n; i++) {
32052
- s = arguments[i];
32053
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
32054
- t[p] = s[p];
32055
- }
32056
- return t;
32057
- };
32058
- return __assign.apply(this, arguments);
32059
- };
32060
- var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
32061
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
32062
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
32063
- 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;
32064
- return c > 3 && r && Object.defineProperty(target, key, r), r;
32065
- };
32150
+ var __extends$4 = (undefined && undefined.__extends) || (function () {
32151
+ var extendStatics = function (d, b) {
32152
+ extendStatics = Object.setPrototypeOf ||
32153
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
32154
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
32155
+ return extendStatics(d, b);
32156
+ };
32157
+ return function (d, b) {
32158
+ extendStatics(d, b);
32159
+ function __() { this.constructor = d; }
32160
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
32161
+ };
32162
+ })();
32163
+ var __assign = (undefined && undefined.__assign) || function () {
32164
+ __assign = Object.assign || function(t) {
32165
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
32166
+ s = arguments[i];
32167
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
32168
+ t[p] = s[p];
32169
+ }
32170
+ return t;
32171
+ };
32172
+ return __assign.apply(this, arguments);
32173
+ };
32174
+ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
32175
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
32176
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
32177
+ 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;
32178
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
32179
+ };
32066
32180
  /**
32067
32181
  * Represents the Rich Text Editor component.
32068
32182
  * ```html
@@ -32073,7 +32187,7 @@ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators,
32073
32187
  * </script>
32074
32188
  * ```
32075
32189
  */
32076
- var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
32190
+ var RichTextEditor = /** @class */ (function (_super) {
32077
32191
  __extends$4(RichTextEditor, _super);
32078
32192
  function RichTextEditor(options, element) {
32079
32193
  var _this = _super.call(this, options, element) || this;
@@ -32768,10 +32882,10 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
32768
32882
  }
32769
32883
  switch (e.action) {
32770
32884
  case 'toolbar-focus':
32771
- if (this.toolbarSettings.enable) {
32772
- // eslint-disable-next-line
32773
- var selector = '.e-toolbar-item[title] [tabindex]';
32774
- this.toolbarModule.baseToolbar.toolbarObj.element.querySelector(selector).focus();
32885
+ if (this.toolbarSettings.enable && this.getToolbarElement()) {
32886
+ var firstActiveItem = this.getToolbarElement().querySelector('.e-toolbar-item:not(.e-overlay)[title]');
32887
+ firstActiveItem.firstElementChild.removeAttribute('tabindex');
32888
+ firstActiveItem.firstElementChild.focus();
32775
32889
  }
32776
32890
  break;
32777
32891
  case 'escape':
@@ -34134,15 +34248,10 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
34134
34248
  }
34135
34249
  EventHandler.add(document, 'mousedown', this.onDocumentClick, this);
34136
34250
  }
34137
- if (!isNullOrUndefined(this.getToolbarElement())) {
34138
- var toolbarItem = this.getToolbarElement().querySelectorAll('input,select,button,a,[tabindex]');
34139
- for (var i = 0; i < toolbarItem.length; i++) {
34140
- if ((!toolbarItem[i].classList.contains('e-rte-dropdown-btn') &&
34141
- !toolbarItem[i].classList.contains('e-insert-table-btn')) &&
34142
- (!toolbarItem[i].hasAttribute('tabindex') ||
34143
- toolbarItem[i].getAttribute('tabindex') !== '-1')) {
34144
- toolbarItem[i].setAttribute('tabindex', '-1');
34145
- }
34251
+ if (!this.readonly) {
34252
+ var currentFocus = this.getCurrentFocus(e);
34253
+ if (currentFocus === 'editArea' || currentFocus === 'textArea' || currentFocus === 'sourceCode') {
34254
+ this.resetToolbarTabIndex();
34146
34255
  }
34147
34256
  }
34148
34257
  };
@@ -34259,6 +34368,9 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
34259
34368
  else {
34260
34369
  this.isRTE = true;
34261
34370
  }
34371
+ if (!this.readonly && this.getCurrentFocus(e) === 'outside') {
34372
+ this.resetToolbarTabIndex();
34373
+ }
34262
34374
  };
34263
34375
  /**
34264
34376
  * invokeChangeEvent method
@@ -34513,6 +34625,44 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
34513
34625
  }
34514
34626
  this.unWireScrollElementsEvents();
34515
34627
  };
34628
+ /**
34629
+ *
34630
+ * @param e Focus event
34631
+ * @returns string Returns the current focus either `editArea` or `toolbar` or `textArea` or `sourceCode` or `outside` of the RichTextEditor.
34632
+ * @hidden
34633
+ */
34634
+ RichTextEditor.prototype.getCurrentFocus = function (e) {
34635
+ if (e.target === this.inputElement && document.activeElement === this.inputElement) {
34636
+ return 'editArea';
34637
+ }
34638
+ else if (e.target === this.getToolbarElement() || (!isNullOrUndefined(e.relatedTarget) && closest(e.relatedTarget, '.e-rte-toolbar') === this.getToolbarElement())) {
34639
+ return 'toolbar';
34640
+ }
34641
+ else if (e.target === this.valueContainer && document.activeElement === this.valueContainer) {
34642
+ return 'textArea';
34643
+ }
34644
+ else if (!isNullOrUndefined(e.target) && e.target.classList.contains(CLS_RTE_SOURCE_CODE_TXTAREA) && document.activeElement === e.target) {
34645
+ return 'sourceCode';
34646
+ }
34647
+ return 'outside';
34648
+ };
34649
+ /**
34650
+ * @param {FocusEvent} e - specifies the event.
34651
+ * @hidden
34652
+ */
34653
+ RichTextEditor.prototype.resetToolbarTabIndex = function () {
34654
+ if (this.getToolbarElement()) {
34655
+ var toolbarItem = this.getToolbarElement().querySelectorAll('input,select,button,a,[tabindex]');
34656
+ for (var i = 0; i < toolbarItem.length; i++) {
34657
+ if ((!toolbarItem[i].classList.contains('e-rte-dropdown-btn') &&
34658
+ !toolbarItem[i].classList.contains('e-insert-table-btn')) &&
34659
+ (!toolbarItem[i].hasAttribute('tabindex') ||
34660
+ toolbarItem[i].getAttribute('tabindex') !== '-1')) {
34661
+ toolbarItem[i].setAttribute('tabindex', '-1');
34662
+ }
34663
+ }
34664
+ }
34665
+ };
34516
34666
  __decorate$1([
34517
34667
  Complex({}, ToolbarSettings$1)
34518
34668
  ], RichTextEditor.prototype, "toolbarSettings", void 0);
@@ -34817,5 +34967,5 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
34817
34967
  * Rich Text Editor component exported items
34818
34968
  */
34819
34969
 
34820
- 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, FormatPainter, EmojiPicker, HTMLFormatter, Formatter, MarkdownFormatter, ContentRender, Render, ToolbarRenderer, Link, Image$1 as Image, Audio, Video, ViewSource, Table, DialogRenderer, IframeContentRender, MarkdownRender, PopupRenderer, RichTextEditor, RenderType, ToolbarType, DialogType, executeGroup, created, destroyed, tableclass, load, initialLoad, contentChanged, initialEnd, iframeMouseDown, destroy, toolbarClick, toolbarRefresh, refreshBegin, toolbarUpdated, bindOnEnd, renderColorPicker, htmlToolbarClick, markdownToolbarClick, destroyColorPicker, modelChanged, tableModulekeyUp, keyUp, keyDown, mouseUp, toolbarCreated, toolbarRenderComplete, enableFullScreen, disableFullScreen, dropDownSelect, beforeDropDownItemRender, execCommandCallBack, imageToolbarAction, audioToolbarAction, videoToolbarAction, linkToolbarAction, windowResize, resizeStart, onResize, resizeStop, undo, redo, insertLink, unLink, editLink, openLink, actionBegin, actionComplete, updatedToolbarStatus, actionSuccess, updateToolbarItem, insertImage, insertAudio, insertVideo, insertCompleted, imageLeft, imageRight, imageCenter, imageBreak, imageInline, imageLink, imageAlt, imageDelete, audioDelete, videoDelete, imageCaption, imageSize, videoSize, 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, moduleDestroy, pasteClean, enterHandler, beforeDialogOpen, clearDialogObj, dialogOpen, beforeDialogClose, dialogClose, beforeQuickToolbarOpen, quickToolbarOpen, quickToolbarClose, popupHide, imageSelected, imageUploading, imageUploadSuccess, imageUploadFailed, imageRemoving, fileSelected, fileUploading, fileUploadSuccess, fileUploadFailed, fileRemoving, afterImageDelete, afterMediaDelete, drop, xhtmlValidation, beforeImageUpload, beforeFileUpload, resizeInitialized, renderFileManager, beforeImageDrop, dynamicModule, beforePasteCleanup, afterPasteCleanup, updateTbItemsStatus, showLinkDialog, closeLinkDialog, showImageDialog, showAudioDialog, showVideoDialog, closeImageDialog, closeAudioDialog, closeVideoDialog, showTableDialog, closeTableDialog, bindCssClass, formatPainterClick, formatPainterDoubleClick, emojiPicker, maximizeMinimizeClick, hidePopup, blockEmptyNodes, inlineEmptyNodes, 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_TB_STATIC, CLS_QUICK_POP, CLS_QUICK_DROPDOWN, CLS_IMAGE_POP, CLS_TEXT_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_AUDIOBREAK, CLS_CLICKELEM, CLS_VID_CLICK_ELEM, CLS_AUDIOWRAP, CLS_VIDEOWRAP, CLS_VIDEOBREAK, CLS_CAPTION, CLS_RTE_CAPTION, CLS_CAPINLINE, CLS_IMGINLINE, CLS_AUDIOINLINE, CLS_VIDEOINLINE, 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_LIST_PRIMARY_CONTENT, CLS_NUMBERFORMATLIST_TB_BTN, CLS_BULLETFORMATLIST_TB_BTN, CLS_FORMATS_TB_BTN, CLS_FONT_NAME_TB_BTN, CLS_FONT_SIZE_TB_BTN, CLS_ALIGN_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_AUD_FOCUS, CLS_VID_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, CLS_RTE_TB_ENABLED, CLS_RTE_RES_WEST, getIndex, hasClass, getDropDownValue, isIDevice, getFormattedFontSize, pageYOffset, getTooltipText, setToolbarStatus, getCollection, getTBarItemsIndex, updateUndoRedoStatus, dispatchEvent, parseHtml, getTextNodesUnder, toObjectLowerCase, getEditValue, updateTextNode, getDefaultValue, isEditableValueEmpty, decode, sanitizeHelper, convertToBlob, getLocaleFontFormat, updateDropDownFontFormatLocale, ServiceLocator, RendererFactory, EditorManager, IMAGE, AUDIO, VIDEO, TABLE, LINK, INSERT_ROW, INSERT_COLUMN, DELETEROW, DELETECOLUMN, REMOVETABLE, TABLEHEADER, TABLE_VERTICAL_ALIGN, TABLE_MERGE, TABLE_VERTICAL_SPLIT, TABLE_HORIZONTAL_SPLIT, TABLE_MOVE, ALIGNMENT_TYPE, INDENT_TYPE, DEFAULT_TAG, BLOCK_TAGS, IGNORE_BLOCK_TAGS, TABLE_BLOCK_TAGS, SELECTION_TYPE, INSERTHTML_TYPE, INSERT_TEXT_TYPE, CLEAR_TYPE, SELF_CLOSING_TAGS, CLASS_IMAGE_RIGHT, CLASS_IMAGE_LEFT, CLASS_IMAGE_CENTER, CLASS_VIDEO_RIGHT, CLASS_VIDEO_LEFT, CLASS_VIDEO_CENTER, CLASS_IMAGE_BREAK, CLASS_AUDIO_BREAK, CLASS_VIDEO_BREAK, CLASS_CAPTION, CLASS_RTE_CAPTION, CLASS_CAPTION_INLINE, CLASS_IMAGE_INLINE, CLASS_AUDIO_INLINE, CLASS_CLICK_ELEM, CLASS_VIDEO_CLICK_ELEM, CLASS_AUDIO, CLASS_VIDEO, CLASS_AUDIO_WRAP, CLASS_VIDEO_WRAP, CLASS_EMBED_VIDEO_WRAP, CLASS_AUDIO_FOCUS, CLASS_VIDEO_FOCUS, CLASS_VIDEO_INLINE, Lists, markerClassName, DOMNode, Alignments, Indents, Formats, LinkCommand, InsertMethods, InsertTextExec, InsertHtmlExec, InsertHtml, IsFormatted, MsWordPaste, NodeCutter, ImageCommand, AudioCommand, VideoCommand, SelectionCommands, SelectionBasedExec, ClearFormatExec, UndoRedoManager, TableCommand, statusCollection, ToolbarStatus, FormatPainterActions, EmojiPickerAction, NodeSelection, MarkdownParser, LISTS_COMMAND, selectionCommand, LINK_COMMAND, CLEAR_COMMAND, MD_TABLE, INSERT_TEXT_COMMAND, 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, ON_BEGIN, SPACE_ACTION, FORMAT_PAINTER_ACTIONS, EMOJI_PICKER_ACTIONS };
34970
+ 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, FormatPainter, EmojiPicker, HTMLFormatter, Formatter, MarkdownFormatter, ContentRender, Render, ToolbarRenderer, Link, Image$1 as Image, Audio, Video, ViewSource, Table, DialogRenderer, IframeContentRender, MarkdownRender, PopupRenderer, RichTextEditor, RenderType, ToolbarType, DialogType, executeGroup, created, destroyed, tableclass, load, initialLoad, contentChanged, initialEnd, iframeMouseDown, destroy, toolbarClick, toolbarRefresh, refreshBegin, toolbarUpdated, bindOnEnd, renderColorPicker, htmlToolbarClick, markdownToolbarClick, destroyColorPicker, modelChanged, tableModulekeyUp, keyUp, keyDown, mouseUp, toolbarCreated, toolbarRenderComplete, enableFullScreen, disableFullScreen, dropDownSelect, beforeDropDownItemRender, execCommandCallBack, imageToolbarAction, audioToolbarAction, videoToolbarAction, linkToolbarAction, windowResize, resizeStart, onResize, resizeStop, undo, redo, insertLink, unLink, editLink, openLink, actionBegin, actionComplete, updatedToolbarStatus, actionSuccess, updateToolbarItem, insertImage, insertAudio, insertVideo, insertCompleted, imageLeft, imageRight, imageCenter, imageBreak, imageInline, imageLink, imageAlt, imageDelete, audioDelete, videoDelete, imageCaption, imageSize, videoSize, 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, moduleDestroy, pasteClean, enterHandler, beforeDialogOpen, clearDialogObj, dialogOpen, beforeDialogClose, dialogClose, beforeQuickToolbarOpen, quickToolbarOpen, quickToolbarClose, popupHide, imageSelected, imageUploading, imageUploadSuccess, imageUploadFailed, imageRemoving, fileSelected, fileUploading, fileUploadSuccess, fileUploadFailed, fileRemoving, afterImageDelete, afterMediaDelete, drop, xhtmlValidation, beforeImageUpload, beforeFileUpload, resizeInitialized, renderFileManager, beforeImageDrop, dynamicModule, beforePasteCleanup, afterPasteCleanup, updateTbItemsStatus, showLinkDialog, closeLinkDialog, showImageDialog, showAudioDialog, showVideoDialog, closeImageDialog, closeAudioDialog, closeVideoDialog, showTableDialog, closeTableDialog, bindCssClass, formatPainterClick, formatPainterDoubleClick, emojiPicker, maximizeMinimizeClick, hidePopup, blockEmptyNodes, inlineEmptyNodes, 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_TB_STATIC, CLS_QUICK_POP, CLS_QUICK_DROPDOWN, CLS_IMAGE_POP, CLS_TEXT_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_AUDIOBREAK, CLS_CLICKELEM, CLS_VID_CLICK_ELEM, CLS_AUDIOWRAP, CLS_VIDEOWRAP, CLS_VIDEOBREAK, CLS_CAPTION, CLS_RTE_CAPTION, CLS_CAPINLINE, CLS_IMGINLINE, CLS_AUDIOINLINE, CLS_VIDEOINLINE, 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_LIST_PRIMARY_CONTENT, CLS_NUMBERFORMATLIST_TB_BTN, CLS_BULLETFORMATLIST_TB_BTN, CLS_FORMATS_TB_BTN, CLS_FONT_NAME_TB_BTN, CLS_FONT_SIZE_TB_BTN, CLS_ALIGN_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_AUD_FOCUS, CLS_VID_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, CLS_RTE_TB_ENABLED, CLS_RTE_RES_WEST, CLS_RTE_SOURCE_CODE_TXTAREA, getIndex, hasClass, getDropDownValue, isIDevice, getFormattedFontSize, pageYOffset, getTooltipText, setToolbarStatus, getCollection, getTBarItemsIndex, updateUndoRedoStatus, dispatchEvent, parseHtml, getTextNodesUnder, toObjectLowerCase, getEditValue, updateTextNode, getDefaultValue, isEditableValueEmpty, decode, sanitizeHelper, convertToBlob, getLocaleFontFormat, updateDropDownFontFormatLocale, ServiceLocator, RendererFactory, EditorManager, IMAGE, AUDIO, VIDEO, TABLE, LINK, INSERT_ROW, INSERT_COLUMN, DELETEROW, DELETECOLUMN, REMOVETABLE, TABLEHEADER, TABLE_VERTICAL_ALIGN, TABLE_MERGE, TABLE_VERTICAL_SPLIT, TABLE_HORIZONTAL_SPLIT, TABLE_MOVE, ALIGNMENT_TYPE, INDENT_TYPE, DEFAULT_TAG, BLOCK_TAGS, IGNORE_BLOCK_TAGS, TABLE_BLOCK_TAGS, SELECTION_TYPE, INSERTHTML_TYPE, INSERT_TEXT_TYPE, CLEAR_TYPE, SELF_CLOSING_TAGS, CLASS_IMAGE_RIGHT, CLASS_IMAGE_LEFT, CLASS_IMAGE_CENTER, CLASS_VIDEO_RIGHT, CLASS_VIDEO_LEFT, CLASS_VIDEO_CENTER, CLASS_IMAGE_BREAK, CLASS_AUDIO_BREAK, CLASS_VIDEO_BREAK, CLASS_CAPTION, CLASS_RTE_CAPTION, CLASS_CAPTION_INLINE, CLASS_IMAGE_INLINE, CLASS_AUDIO_INLINE, CLASS_CLICK_ELEM, CLASS_VIDEO_CLICK_ELEM, CLASS_AUDIO, CLASS_VIDEO, CLASS_AUDIO_WRAP, CLASS_VIDEO_WRAP, CLASS_EMBED_VIDEO_WRAP, CLASS_AUDIO_FOCUS, CLASS_VIDEO_FOCUS, CLASS_VIDEO_INLINE, Lists, markerClassName, DOMNode, Alignments, Indents, Formats, LinkCommand, InsertMethods, InsertTextExec, InsertHtmlExec, InsertHtml, IsFormatted, MsWordPaste, NodeCutter, ImageCommand, AudioCommand, VideoCommand, SelectionCommands, SelectionBasedExec, ClearFormatExec, UndoRedoManager, TableCommand, statusCollection, ToolbarStatus, FormatPainterActions, EmojiPickerAction, NodeSelection, MarkdownParser, LISTS_COMMAND, selectionCommand, LINK_COMMAND, CLEAR_COMMAND, MD_TABLE, INSERT_TEXT_COMMAND, 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, ON_BEGIN, SPACE_ACTION, FORMAT_PAINTER_ACTIONS, EMOJI_PICKER_ACTIONS };
34821
34971
  //# sourceMappingURL=ej2-richtexteditor.es5.js.map