@syncfusion/ej2-richtexteditor 28.1.38 → 28.1.41-642043

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 (186) hide show
  1. package/.eslintignore +4 -4
  2. package/.eslintrc.json +260 -260
  3. package/README.md +76 -76
  4. package/dist/ej2-richtexteditor.umd.min.js +1 -10
  5. package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
  6. package/dist/es6/ej2-richtexteditor.es2015.js +209 -193
  7. package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
  8. package/dist/es6/ej2-richtexteditor.es5.js +444 -428
  9. package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
  10. package/helpers/e2e/index.js +3 -3
  11. package/helpers/e2e/rte-helper.js +13 -13
  12. package/license +9 -9
  13. package/package.json +85 -85
  14. package/src/common/interface.d.ts +8 -8
  15. package/src/common/util.d.ts +1 -2
  16. package/src/common/util.js +49 -95
  17. package/src/editor-manager/base/classes.d.ts +1 -1
  18. package/src/editor-manager/base/classes.js +1 -1
  19. package/src/editor-manager/base/editor-manager.d.ts +3 -3
  20. package/src/editor-manager/base/editor-manager.js +3 -3
  21. package/src/editor-manager/base/enum.d.ts +2 -2
  22. package/src/editor-manager/base/interface.d.ts +17 -9
  23. package/src/editor-manager/base/types.d.ts +1 -1
  24. package/src/editor-manager/plugin/alignments.d.ts +2 -2
  25. package/src/editor-manager/plugin/alignments.js +2 -2
  26. package/src/editor-manager/plugin/audio.d.ts +3 -3
  27. package/src/editor-manager/plugin/audio.js +3 -3
  28. package/src/editor-manager/plugin/clearformat-exec.d.ts +2 -2
  29. package/src/editor-manager/plugin/clearformat-exec.js +2 -2
  30. package/src/editor-manager/plugin/clearformat.d.ts +1 -1
  31. package/src/editor-manager/plugin/clearformat.js +1 -1
  32. package/src/editor-manager/plugin/dom-node.d.ts +36 -36
  33. package/src/editor-manager/plugin/dom-node.js +36 -36
  34. package/src/editor-manager/plugin/format-painter-actions.d.ts +1 -1
  35. package/src/editor-manager/plugin/format-painter-actions.js +1 -1
  36. package/src/editor-manager/plugin/formats.d.ts +2 -2
  37. package/src/editor-manager/plugin/formats.js +2 -2
  38. package/src/editor-manager/plugin/image.d.ts +3 -3
  39. package/src/editor-manager/plugin/image.js +3 -3
  40. package/src/editor-manager/plugin/indents.d.ts +2 -2
  41. package/src/editor-manager/plugin/indents.js +2 -2
  42. package/src/editor-manager/plugin/insert-methods.d.ts +4 -4
  43. package/src/editor-manager/plugin/insert-methods.js +4 -4
  44. package/src/editor-manager/plugin/insert-text.d.ts +2 -2
  45. package/src/editor-manager/plugin/insert-text.js +2 -2
  46. package/src/editor-manager/plugin/inserthtml-exec.d.ts +2 -2
  47. package/src/editor-manager/plugin/inserthtml-exec.js +2 -2
  48. package/src/editor-manager/plugin/inserthtml.d.ts +2 -2
  49. package/src/editor-manager/plugin/inserthtml.js +5 -5
  50. package/src/editor-manager/plugin/isformatted.d.ts +9 -9
  51. package/src/editor-manager/plugin/isformatted.js +9 -9
  52. package/src/editor-manager/plugin/link.d.ts +2 -2
  53. package/src/editor-manager/plugin/link.js +2 -2
  54. package/src/editor-manager/plugin/lists.d.ts +3 -2
  55. package/src/editor-manager/plugin/lists.js +15 -3
  56. package/src/editor-manager/plugin/ms-word-clean-up.d.ts +1 -1
  57. package/src/editor-manager/plugin/ms-word-clean-up.js +1 -1
  58. package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
  59. package/src/editor-manager/plugin/nodecutter.js +6 -6
  60. package/src/editor-manager/plugin/selection-commands.d.ts +1 -1
  61. package/src/editor-manager/plugin/selection-commands.js +1 -1
  62. package/src/editor-manager/plugin/selection-exec.d.ts +2 -2
  63. package/src/editor-manager/plugin/selection-exec.js +2 -2
  64. package/src/editor-manager/plugin/table.d.ts +2 -2
  65. package/src/editor-manager/plugin/table.js +2 -2
  66. package/src/editor-manager/plugin/toolbar-status.d.ts +2 -2
  67. package/src/editor-manager/plugin/toolbar-status.js +2 -2
  68. package/src/editor-manager/plugin/undo.d.ts +6 -6
  69. package/src/editor-manager/plugin/undo.js +6 -6
  70. package/src/editor-manager/plugin/video.d.ts +3 -3
  71. package/src/editor-manager/plugin/video.js +3 -3
  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 +34 -3
  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 +26 -4
  109. package/src/rich-text-editor/actions/keyboard.d.ts +1 -1
  110. package/src/rich-text-editor/actions/keyboard.js +20 -20
  111. package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
  112. package/src/rich-text-editor/actions/markdown-editor.js +2 -2
  113. package/src/rich-text-editor/actions/paste-clean-up.d.ts +1 -1
  114. package/src/rich-text-editor/actions/paste-clean-up.js +23 -32
  115. package/src/rich-text-editor/actions/quick-toolbar.d.ts +9 -9
  116. package/src/rich-text-editor/actions/quick-toolbar.js +9 -9
  117. package/src/rich-text-editor/actions/resize.d.ts +2 -0
  118. package/src/rich-text-editor/actions/resize.js +13 -2
  119. package/src/rich-text-editor/actions/toolbar.d.ts +13 -13
  120. package/src/rich-text-editor/actions/toolbar.js +13 -13
  121. package/src/rich-text-editor/actions/xhtml-validation.d.ts +1 -1
  122. package/src/rich-text-editor/actions/xhtml-validation.js +1 -1
  123. package/src/rich-text-editor/base/classes.d.ts +125 -125
  124. package/src/rich-text-editor/base/classes.js +125 -125
  125. package/src/rich-text-editor/base/constant.d.ts +158 -158
  126. package/src/rich-text-editor/base/constant.js +158 -158
  127. package/src/rich-text-editor/base/enum.d.ts +1 -1
  128. package/src/rich-text-editor/base/enum.js +1 -1
  129. package/src/rich-text-editor/base/interface.d.ts +51 -51
  130. package/src/rich-text-editor/base/interface.js +1 -1
  131. package/src/rich-text-editor/base/rich-text-editor-model.d.ts +1 -1
  132. package/src/rich-text-editor/base/rich-text-editor.d.ts +62 -62
  133. package/src/rich-text-editor/base/rich-text-editor.js +64 -65
  134. package/src/rich-text-editor/base/util.d.ts +1 -1
  135. package/src/rich-text-editor/base/util.js +1 -1
  136. package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
  137. package/src/rich-text-editor/formatter/formatter.js +8 -8
  138. package/src/rich-text-editor/formatter/html-formatter.d.ts +2 -2
  139. package/src/rich-text-editor/formatter/html-formatter.js +15 -15
  140. package/src/rich-text-editor/formatter/markdown-formatter.d.ts +2 -2
  141. package/src/rich-text-editor/formatter/markdown-formatter.js +15 -15
  142. package/src/rich-text-editor/models/iframe-settings.js +19 -19
  143. package/src/rich-text-editor/models/inline-mode.js +19 -19
  144. package/src/rich-text-editor/models/slash-menu-settings.js +19 -19
  145. package/src/rich-text-editor/models/toolbar-settings.js +19 -19
  146. package/src/rich-text-editor/renderer/audio-module.d.ts +1 -1
  147. package/src/rich-text-editor/renderer/audio-module.js +1 -1
  148. package/src/rich-text-editor/renderer/content-renderer.d.ts +6 -6
  149. package/src/rich-text-editor/renderer/content-renderer.js +6 -6
  150. package/src/rich-text-editor/renderer/dialog-renderer.d.ts +2 -2
  151. package/src/rich-text-editor/renderer/dialog-renderer.js +2 -2
  152. package/src/rich-text-editor/renderer/iframe-content-renderer.d.ts +4 -4
  153. package/src/rich-text-editor/renderer/iframe-content-renderer.js +17 -17
  154. package/src/rich-text-editor/renderer/image-module.d.ts +1 -1
  155. package/src/rich-text-editor/renderer/image-module.js +1 -1
  156. package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
  157. package/src/rich-text-editor/renderer/link-module.js +3 -3
  158. package/src/rich-text-editor/renderer/markdown-renderer.d.ts +6 -6
  159. package/src/rich-text-editor/renderer/markdown-renderer.js +6 -6
  160. package/src/rich-text-editor/renderer/popup-renderer.d.ts +5 -5
  161. package/src/rich-text-editor/renderer/popup-renderer.js +5 -5
  162. package/src/rich-text-editor/renderer/render.d.ts +2 -2
  163. package/src/rich-text-editor/renderer/render.js +2 -2
  164. package/src/rich-text-editor/renderer/table-module.d.ts +3 -2
  165. package/src/rich-text-editor/renderer/table-module.js +15 -18
  166. package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +9 -9
  167. package/src/rich-text-editor/renderer/toolbar-renderer.js +9 -10
  168. package/src/rich-text-editor/renderer/video-module.d.ts +1 -1
  169. package/src/rich-text-editor/renderer/video-module.js +1 -1
  170. package/src/rich-text-editor/renderer/view-source.d.ts +5 -5
  171. package/src/rich-text-editor/renderer/view-source.js +5 -5
  172. package/src/rich-text-editor/services/renderer-factory.d.ts +3 -3
  173. package/src/rich-text-editor/services/renderer-factory.js +3 -3
  174. package/src/rich-text-editor/services/service-locator.d.ts +3 -3
  175. package/src/rich-text-editor/services/service-locator.js +3 -3
  176. package/src/selection/selection.d.ts +22 -22
  177. package/src/selection/selection.js +22 -22
  178. package/styles/material3-dark.scss +1 -1
  179. package/styles/material3.scss +1 -1
  180. package/styles/rich-text-editor/material3-dark.scss +1 -1
  181. package/styles/rich-text-editor/material3.scss +1 -1
  182. package/dist/ej2-richtexteditor.min.js +0 -10
  183. package/dist/global/ej2-richtexteditor.min.js +0 -11
  184. package/dist/global/ej2-richtexteditor.min.js.map +0 -1
  185. package/dist/global/index.d.ts +0 -14
  186. package/tslint.json +0 -111
@@ -1,4 +1,4 @@
1
- import { isNullOrUndefined, Browser, addClass, removeClass, selectAll as selectAll$1, createElement, detach, SanitizeHtmlHelper, extend, EventHandler, closest, getInstance, formatUnit, select, Ajax, Property, Event as Event$1, NotifyPropertyChanges, Base, ChildProperty, KeyboardEvents as KeyboardEvents$1, setStyleAttribute, getUniqueID, append, debounce, Observer, prepend, attributes, getComponent, getEnumValue, Complex, print, L10n, compile, Touch, Component } from '@syncfusion/ej2-base';
1
+ import { isNullOrUndefined, Browser, addClass, removeClass, selectAll as selectAll$1, createElement, detach, SanitizeHtmlHelper, extend, EventHandler, closest, getInstance, formatUnit, select, Ajax, Property, Event as Event$1, NotifyPropertyChanges, Base, getComponent, ChildProperty, KeyboardEvents as KeyboardEvents$1, setStyleAttribute, getUniqueID, append, debounce, Observer, prepend, attributes, getEnumValue, Complex, print, L10n, compile, Touch, Component } from '@syncfusion/ej2-base';
2
2
  import { Toolbar as Toolbar$1 } from '@syncfusion/ej2-navigations';
3
3
  import { DropDownButton } from '@syncfusion/ej2-splitbuttons';
4
4
  import { Tooltip, Popup, Dialog, isCollide, getScrollableParent } from '@syncfusion/ej2-popups';
@@ -3742,7 +3742,7 @@ function updateDropDownFontFormatLocale(self) {
3742
3742
  * @hidden
3743
3743
  * @deprecated
3744
3744
  */
3745
- var ContentRender = /** @__PURE__ @class */ (function () {
3745
+ var ContentRender = /** @class */ (function () {
3746
3746
  /**
3747
3747
  * Constructor for content renderer module
3748
3748
  *
@@ -3839,7 +3839,7 @@ var ContentRender = /** @__PURE__ @class */ (function () {
3839
3839
  * @hidden
3840
3840
  * @deprecated
3841
3841
  */
3842
- var Render = /** @__PURE__ @class */ (function () {
3842
+ var Render = /** @class */ (function () {
3843
3843
  /**
3844
3844
  * Constructor for render module
3845
3845
  *
@@ -3938,7 +3938,7 @@ var Render = /** @__PURE__ @class */ (function () {
3938
3938
  * @hidden
3939
3939
  * @deprecated
3940
3940
  */
3941
- var IsFormatted = /** @__PURE__ @class */ (function () {
3941
+ var IsFormatted = /** @class */ (function () {
3942
3942
  function IsFormatted() {
3943
3943
  }
3944
3944
  /**
@@ -4307,7 +4307,7 @@ var ALLOWED_TABLE_BLOCK_TAGS = ['article', 'aside', 'blockquote', 'body', 'canva
4307
4307
  /**
4308
4308
  * `Selection` module is used to handle RTE Selections.
4309
4309
  */
4310
- var NodeSelection = /** @__PURE__ @class */ (function () {
4310
+ var NodeSelection = /** @class */ (function () {
4311
4311
  function NodeSelection(editElement) {
4312
4312
  this.startNodeName = [];
4313
4313
  this.endNodeName = [];
@@ -4795,11 +4795,6 @@ var NodeSelection = /** @__PURE__ @class */ (function () {
4795
4795
  /**
4796
4796
  * Defines common util methods used by Rich Text Editor.
4797
4797
  */
4798
- var inlineNode$1 = ['a', 'abbr', 'acronym', 'audio', 'b', 'bdi', 'bdo', 'big', 'br', 'button',
4799
- 'canvas', 'cite', 'code', 'data', 'datalist', 'del', 'dfn', 'em', 'embed', 'font', 'i', 'iframe', 'img', 'input',
4800
- 'ins', 'kbd', 'label', 'map', 'mark', 'meter', 'noscript', 'object', 'output', 'picture', 'progress',
4801
- 'q', 'ruby', 's', 'samp', 'script', 'select', 'slot', 'small', 'span', 'strong', 'strike', 'sub', 'sup', 'svg',
4802
- 'template', 'textarea', 'time', 'u', 'tt', 'var', 'video', 'wbr'];
4803
4798
  /**
4804
4799
  * @returns {void}
4805
4800
  * @hidden
@@ -4827,109 +4822,68 @@ function setEditFrameFocus(editableElement, selector) {
4827
4822
  }
4828
4823
  /**
4829
4824
  * @param {string} value - specifies the string value
4830
- * @param {string} enterAction - specifies the enter key action API
4831
4825
  * @returns {void}
4832
4826
  * @hidden
4833
4827
  */
4834
- function updateTextNode$1(value, enterAction) {
4835
- var tempNode = document.createElement('div');
4836
- tempNode.innerHTML = value;
4837
- tempNode.setAttribute('class', 'tempDiv');
4828
+ function updateTextNode$1(value) {
4838
4829
  var resultElm = document.createElement('div');
4839
- var childNodes = tempNode.childNodes;
4840
- if (childNodes.length > 0) {
4841
- var isPreviousInlineElem = void 0;
4842
- var previousParent = void 0;
4843
- var paraElm = void 0;
4844
- while (tempNode.firstChild) {
4845
- if ((tempNode.firstChild.nodeName === '#text' &&
4846
- (tempNode.firstChild.textContent.indexOf('\n') < 0 || tempNode.firstChild.textContent.trim() !== '')) ||
4847
- inlineNode$1.indexOf(tempNode.firstChild.nodeName.toLocaleLowerCase()) >= 0) {
4848
- if (!isPreviousInlineElem) {
4849
- if (enterAction === 'BR') {
4850
- resultElm.appendChild(tempNode.firstChild);
4851
- previousParent = resultElm;
4852
- }
4853
- else {
4854
- paraElm = createElement('p');
4855
- resultElm.appendChild(paraElm);
4856
- paraElm.appendChild(tempNode.firstChild);
4857
- previousParent = paraElm;
4858
- isPreviousInlineElem = true;
4859
- }
4860
- }
4861
- else {
4862
- previousParent.appendChild(tempNode.firstChild);
4863
- previousParent = paraElm;
4864
- isPreviousInlineElem = true;
4865
- }
4830
+ resultElm.innerHTML = value;
4831
+ var tableElm = resultElm.querySelectorAll('table');
4832
+ for (var i = 0; i < tableElm.length; i++) {
4833
+ if (tableElm[i].classList.length > 0 &&
4834
+ !tableElm[i].classList.contains('e-rte-table') && !tableElm[i].classList.contains('e-rte-custom-table')) {
4835
+ tableElm[i].classList.add('e-rte-paste-table');
4836
+ if (tableElm[i].classList.contains('e-rte-paste-word-table')) {
4837
+ tableElm[i].classList.remove('e-rte-paste-word-table');
4838
+ continue; // Skiping the removal of the border if the source is from word.
4866
4839
  }
4867
- else if (tempNode.firstChild.nodeName === '#text' && (tempNode.firstChild.textContent === '\n' ||
4868
- (tempNode.firstChild.textContent.indexOf('\n') >= 0 && tempNode.firstChild.textContent.trim() === ''))) {
4869
- detach(tempNode.firstChild);
4870
- }
4871
- else {
4872
- resultElm.appendChild(tempNode.firstChild);
4873
- isPreviousInlineElem = false;
4874
- }
4875
- }
4876
- var tableElm = resultElm.querySelectorAll('table');
4877
- for (var i = 0; i < tableElm.length; i++) {
4878
- if (tableElm[i].classList.length > 0 &&
4879
- !tableElm[i].classList.contains('e-rte-table') && !tableElm[i].classList.contains('e-rte-custom-table')) {
4880
- tableElm[i].classList.add('e-rte-paste-table');
4881
- if (tableElm[i].classList.contains('e-rte-paste-word-table')) {
4882
- tableElm[i].classList.remove('e-rte-paste-word-table');
4883
- continue; // Skiping the removal of the border if the source is from word.
4840
+ else if (tableElm[i].classList.contains('e-rte-paste-excel-table')) {
4841
+ tableElm[i].classList.remove('e-rte-paste-excel-table');
4842
+ if (tableElm[i].getAttribute('border') === '0') {
4843
+ tableElm[i].removeAttribute('border');
4884
4844
  }
4885
- else if (tableElm[i].classList.contains('e-rte-paste-excel-table')) {
4886
- tableElm[i].classList.remove('e-rte-paste-excel-table');
4887
- if (tableElm[i].getAttribute('border') === '0') {
4888
- tableElm[i].removeAttribute('border');
4845
+ var tdElm = tableElm[i].querySelectorAll('td');
4846
+ for (var j = 0; j < tdElm.length; j++) {
4847
+ if (tdElm[j].style.borderLeft === 'none') {
4848
+ tdElm[j].style.removeProperty('border-left');
4889
4849
  }
4890
- var tdElm = tableElm[i].querySelectorAll('td');
4891
- for (var j = 0; j < tdElm.length; j++) {
4892
- if (tdElm[j].style.borderLeft === 'none') {
4893
- tdElm[j].style.removeProperty('border-left');
4894
- }
4895
- if (tdElm[j].style.borderRight === 'none') {
4896
- tdElm[j].style.removeProperty('border-right');
4897
- }
4898
- if (tdElm[j].style.borderBottom === 'none') {
4899
- tdElm[j].style.removeProperty('border-bottom');
4900
- }
4901
- if (tdElm[j].style.borderTop === 'none') {
4902
- tdElm[j].style.removeProperty('border-top');
4903
- }
4904
- if (tdElm[j].style.border === 'none') {
4905
- tdElm[j].style.removeProperty('border');
4906
- }
4850
+ if (tdElm[j].style.borderRight === 'none') {
4851
+ tdElm[j].style.removeProperty('border-right');
4852
+ }
4853
+ if (tdElm[j].style.borderBottom === 'none') {
4854
+ tdElm[j].style.removeProperty('border-bottom');
4855
+ }
4856
+ if (tdElm[j].style.borderTop === 'none') {
4857
+ tdElm[j].style.removeProperty('border-top');
4858
+ }
4859
+ if (tdElm[j].style.border === 'none') {
4860
+ tdElm[j].style.removeProperty('border');
4907
4861
  }
4908
- }
4909
- else if (tableElm[i].classList.contains('e-rte-paste-onenote-table')) {
4910
- tableElm[i].classList.remove('e-rte-paste-onenote-table');
4911
- continue;
4912
- }
4913
- else if (tableElm[i].classList.contains('e-rte-paste-html-table')) {
4914
- tableElm[i].classList.remove('e-rte-paste-html-table');
4915
- continue;
4916
4862
  }
4917
4863
  }
4918
- }
4919
- var imageElm = resultElm.querySelectorAll('img');
4920
- for (var i = 0; i < imageElm.length; i++) {
4921
- if (imageElm[i].classList.contains('e-rte-image-unsupported')) {
4922
- continue; // Should not add the class if the image is Broken.
4923
- }
4924
- if (!imageElm[i].classList.contains('e-rte-image')) {
4925
- imageElm[i].classList.add('e-rte-image');
4864
+ else if (tableElm[i].classList.contains('e-rte-paste-onenote-table')) {
4865
+ tableElm[i].classList.remove('e-rte-paste-onenote-table');
4866
+ continue;
4926
4867
  }
4927
- if (!(imageElm[i].classList.contains('e-imginline') ||
4928
- imageElm[i].classList.contains('e-imgbreak'))) {
4929
- imageElm[i].classList.add('e-imginline');
4868
+ else if (tableElm[i].classList.contains('e-rte-paste-html-table')) {
4869
+ tableElm[i].classList.remove('e-rte-paste-html-table');
4870
+ continue;
4930
4871
  }
4931
4872
  }
4932
4873
  }
4874
+ var imageElm = resultElm.querySelectorAll('img');
4875
+ for (var i = 0; i < imageElm.length; i++) {
4876
+ if (imageElm[i].classList.contains('e-rte-image-unsupported')) {
4877
+ continue; // Should not add the class if the image is Broken.
4878
+ }
4879
+ if (!imageElm[i].classList.contains('e-rte-image')) {
4880
+ imageElm[i].classList.add('e-rte-image');
4881
+ }
4882
+ if (!(imageElm[i].classList.contains('e-imginline') ||
4883
+ imageElm[i].classList.contains('e-imgbreak'))) {
4884
+ imageElm[i].classList.add('e-imginline');
4885
+ }
4886
+ }
4933
4887
  return resultElm.innerHTML;
4934
4888
  }
4935
4889
  /**
@@ -5126,7 +5080,7 @@ function removeClassWithAttr(elements, classes) {
5126
5080
  * @deprecated
5127
5081
  */
5128
5082
  var statusCollection = getDefaultHtmlTbStatus();
5129
- var ToolbarStatus = /** @__PURE__ @class */ (function () {
5083
+ var ToolbarStatus = /** @class */ (function () {
5130
5084
  function ToolbarStatus() {
5131
5085
  }
5132
5086
  /**
@@ -5524,7 +5478,7 @@ var ToolbarStatus = /** @__PURE__ @class */ (function () {
5524
5478
  * @hidden
5525
5479
  * @deprecated
5526
5480
  */
5527
- var ToolbarRenderer = /** @__PURE__ @class */ (function () {
5481
+ var ToolbarRenderer = /** @class */ (function () {
5528
5482
  /**
5529
5483
  * Constructor for toolbar renderer module
5530
5484
  *
@@ -6154,7 +6108,6 @@ var ToolbarRenderer = /** @__PURE__ @class */ (function () {
6154
6108
  var proxy = this;
6155
6109
  var value;
6156
6110
  var colorPicker = new ColorPicker({
6157
- enablePersistence: this.parent.enablePersistence,
6158
6111
  enableRtl: this.parent.enableRtl,
6159
6112
  inline: true,
6160
6113
  value: null,
@@ -6279,7 +6232,7 @@ var ToolbarRenderer = /** @__PURE__ @class */ (function () {
6279
6232
  /**
6280
6233
  * `Link` module is used to handle undo actions.
6281
6234
  */
6282
- var Link = /** @__PURE__ @class */ (function () {
6235
+ var Link = /** @class */ (function () {
6283
6236
  function Link(parent, serviceLocator) {
6284
6237
  this.parent = parent;
6285
6238
  this.rteID = parent.element.id;
@@ -6667,10 +6620,10 @@ var Link = /** @__PURE__ @class */ (function () {
6667
6620
  }
6668
6621
  if (!this.selfLink.isUrl(linkUrl)) {
6669
6622
  if (this.selfLink.parent.editorMode === 'Markdown') {
6670
- linkText = (linkText !== '') ? linkText : '';
6623
+ linkText = (linkText.trim() !== '') ? linkText : '';
6671
6624
  }
6672
6625
  else {
6673
- linkText = (linkText === '') ? linkUrl : linkText;
6626
+ linkText = (linkText.trim() === '') ? linkUrl : linkText;
6674
6627
  }
6675
6628
  if (!this.selfLink.parent.enableAutoUrl) {
6676
6629
  linkUrl = linkUrl.indexOf('http') > -1 ? linkUrl : 'http://' + linkUrl;
@@ -7015,7 +6968,7 @@ var mentionRestrictKeys = [
7015
6968
  /**
7016
6969
  * `Image` module is used to handle image actions.
7017
6970
  */
7018
- var Image$1 = /** @__PURE__ @class */ (function () {
6971
+ var Image$1 = /** @class */ (function () {
7019
6972
  function Image(parent, serviceLocator) {
7020
6973
  this.isImgUploaded = false;
7021
6974
  this.isAllowedTypes = true;
@@ -9507,7 +9460,7 @@ var Image$1 = /** @__PURE__ @class */ (function () {
9507
9460
  /**
9508
9461
  * `Audio` module is used to handle audio actions.
9509
9462
  */
9510
- var Audio = /** @__PURE__ @class */ (function () {
9463
+ var Audio = /** @class */ (function () {
9511
9464
  function Audio(parent, serviceLocator) {
9512
9465
  this.isAudioUploaded = false;
9513
9466
  this.isAllowedTypes = true;
@@ -10404,7 +10357,7 @@ var Audio = /** @__PURE__ @class */ (function () {
10404
10357
  return Audio;
10405
10358
  }());
10406
10359
 
10407
- var Video = /** @__PURE__ @class */ (function () {
10360
+ var Video = /** @class */ (function () {
10408
10361
  function Video(parent, serviceLocator) {
10409
10362
  this.isVideoUploaded = false;
10410
10363
  this.isAllowedTypes = true;
@@ -12048,25 +12001,25 @@ var DESTROY = 'destroy';
12048
12001
  */
12049
12002
  var INTERNAL_DESTROY = 'internal_destroy';
12050
12003
 
12051
- var __extends = (undefined && undefined.__extends) || (function () {
12052
- var extendStatics = function (d, b) {
12053
- extendStatics = Object.setPrototypeOf ||
12054
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
12055
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
12056
- return extendStatics(d, b);
12057
- };
12058
- return function (d, b) {
12059
- extendStatics(d, b);
12060
- function __() { this.constructor = d; }
12061
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12062
- };
12063
- })();
12064
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
12065
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
12066
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
12067
- 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;
12068
- return c > 3 && r && Object.defineProperty(target, key, r), r;
12069
- };
12004
+ var __extends = (undefined && undefined.__extends) || (function () {
12005
+ var extendStatics = function (d, b) {
12006
+ extendStatics = Object.setPrototypeOf ||
12007
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
12008
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
12009
+ return extendStatics(d, b);
12010
+ };
12011
+ return function (d, b) {
12012
+ extendStatics(d, b);
12013
+ function __() { this.constructor = d; }
12014
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12015
+ };
12016
+ })();
12017
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
12018
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
12019
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
12020
+ 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;
12021
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
12022
+ };
12070
12023
  var keyCode = {
12071
12024
  'backspace': 8,
12072
12025
  'tab': 9,
@@ -12137,7 +12090,7 @@ var keyCode = {
12137
12090
  * @hidden
12138
12091
  * @deprecated
12139
12092
  */
12140
- var KeyboardEvents = /** @__PURE__ @class */ (function (_super) {
12093
+ var KeyboardEvents = /** @class */ (function (_super) {
12141
12094
  __extends(KeyboardEvents, _super);
12142
12095
  /**
12143
12096
  * Initializes the KeyboardEvents
@@ -12283,7 +12236,7 @@ var KeyboardEvents = /** @__PURE__ @class */ (function (_super) {
12283
12236
  * @hidden
12284
12237
  * @deprecated
12285
12238
  */
12286
- var ViewSource = /** @__PURE__ @class */ (function () {
12239
+ var ViewSource = /** @class */ (function () {
12287
12240
  /**
12288
12241
  * Constructor for view source module
12289
12242
  *
@@ -12522,7 +12475,7 @@ var ViewSource = /** @__PURE__ @class */ (function () {
12522
12475
  /**
12523
12476
  * `Table` module is used to handle table actions.
12524
12477
  */
12525
- var Table = /** @__PURE__ @class */ (function () {
12478
+ var Table = /** @class */ (function () {
12526
12479
  function Table(parent, serviceLocator) {
12527
12480
  this.ensureInsideTableList = true;
12528
12481
  this.pageX = null;
@@ -12556,7 +12509,6 @@ var Table = /** @__PURE__ @class */ (function () {
12556
12509
  this.parent.on(tableToolbarAction, this.onToolbarAction, this);
12557
12510
  this.parent.on(dropDownSelect, this.dropdownSelect, this);
12558
12511
  this.parent.on(keyDown, this.keyDown, this);
12559
- this.parent.on(keyUp, this.keyUp, this);
12560
12512
  this.parent.on(tableModulekeyUp, this.tableModulekeyUp, this);
12561
12513
  this.parent.on(bindCssClass, this.setCssClass, this);
12562
12514
  this.parent.on(destroy, this.destroy, this);
@@ -12577,7 +12529,6 @@ var Table = /** @__PURE__ @class */ (function () {
12577
12529
  this.parent.off(mouseDown, this.cellSelect);
12578
12530
  this.parent.off(tableColorPickerChanged, this.setBGColor);
12579
12531
  this.parent.off(keyDown, this.keyDown);
12580
- this.parent.off(keyUp, this.keyUp);
12581
12532
  this.parent.off(tableModulekeyUp, this.tableModulekeyUp);
12582
12533
  this.parent.off(bindCssClass, this.setCssClass);
12583
12534
  this.parent.off(destroy, this.destroy);
@@ -12674,20 +12625,6 @@ var Table = /** @__PURE__ @class */ (function () {
12674
12625
  this.parent.formatter.process(this.parent, e, e, { selection: selectCell, subCommand: e.item.subCommand });
12675
12626
  this.hideTableQuickToolbar();
12676
12627
  };
12677
- Table.prototype.keyUp = function (e) {
12678
- var target = e.args.target;
12679
- if (e.args.key.toLocaleLowerCase() === 'escape' && target && target.classList && (this.popupObj && !closest(target, '[id=' + '\'' + this.popupObj.element.id + '\'' + ']')) && this.popupObj) {
12680
- var createTableToolbarBtn = this.popupObj.relateTo;
12681
- if (createTableToolbarBtn.nodeName !== 'BUTTON') {
12682
- createTableToolbarBtn = createTableToolbarBtn.querySelector('span.e-create-table');
12683
- createTableToolbarBtn = createTableToolbarBtn.parentElement;
12684
- }
12685
- this.popupObj.hide();
12686
- if (createTableToolbarBtn) {
12687
- createTableToolbarBtn.focus();
12688
- }
12689
- }
12690
- };
12691
12628
  Table.prototype.keyDown = function (e) {
12692
12629
  var event = e.args;
12693
12630
  // eslint-disable-next-line
@@ -14266,6 +14203,8 @@ var Table = /** @__PURE__ @class */ (function () {
14266
14203
  var header = '1X1';
14267
14204
  var insertbtn = this.l10n.getConstant('inserttablebtn');
14268
14205
  this.dlgDiv = this.parent.createElement('div', { className: 'e-rte-table-popup' + this.parent.getCssClass(true), id: this.rteID + '_table' });
14206
+ this.createTablePopupBoundFn = this.createTablePopupKeyDown.bind(this);
14207
+ this.dlgDiv.addEventListener('keydown', this.createTablePopupBoundFn);
14269
14208
  this.tblHeader = this.parent.createElement('div', { className: 'e-rte-popup-header' + this.parent.getCssClass(true) });
14270
14209
  this.tblHeader.innerHTML = header;
14271
14210
  this.dlgDiv.appendChild(this.tblHeader);
@@ -14303,6 +14242,7 @@ var Table = /** @__PURE__ @class */ (function () {
14303
14242
  // eslint-disable-next-line
14304
14243
  close: function (event) {
14305
14244
  EventHandler.remove(btnEle, 'click', _this.insertTableDialog);
14245
+ _this.dlgDiv.removeEventListener('keydown', _this.createTablePopupBoundFn);
14306
14246
  detach(btnEle);
14307
14247
  if (_this.createTableButton && !_this.createTableButton.isDestroyed) {
14308
14248
  _this.createTableButton.destroy();
@@ -14686,6 +14626,7 @@ var Table = /** @__PURE__ @class */ (function () {
14686
14626
  this.createTableButton.destroy();
14687
14627
  this.createTableButton = null;
14688
14628
  }
14629
+ this.createTablePopupBoundFn = null;
14689
14630
  this.isDestroyed = true;
14690
14631
  };
14691
14632
  /**
@@ -14712,13 +14653,22 @@ var Table = /** @__PURE__ @class */ (function () {
14712
14653
  'px; left:' + (tablePosition.left + parseInt(getComputedStyle(this.curTable).width, 10) - 4) + 'px;';
14713
14654
  }
14714
14655
  };
14656
+ Table.prototype.createTablePopupKeyDown = function (e) {
14657
+ if (e.key === 'Escape') {
14658
+ var popupRootElem = e.target.closest('.e-rte-table-popup');
14659
+ var popup = getComponent(popupRootElem, 'popup');
14660
+ var tableToolbarButton = popup.relateTo;
14661
+ popup.hide();
14662
+ tableToolbarButton.focus({ preventScroll: true });
14663
+ }
14664
+ };
14715
14665
  return Table;
14716
14666
  }());
14717
14667
 
14718
14668
  /**
14719
14669
  * Dialog Renderer
14720
14670
  */
14721
- var DialogRenderer = /** @__PURE__ @class */ (function () {
14671
+ var DialogRenderer = /** @class */ (function () {
14722
14672
  function DialogRenderer(parent) {
14723
14673
  this.parent = parent;
14724
14674
  this.addEventListener();
@@ -14838,19 +14788,19 @@ var DialogRenderer = /** @__PURE__ @class */ (function () {
14838
14788
 
14839
14789
  var IFRAME_EDITOR_STYLES = "\n@charset \"UTF-8\";\n\n* {\n box-sizing: border-box;\n}\n\nhtml {\n height: auto;\n}\n\nhtml, body {\n margin: 0;\n}\n\nbody {\n color: #333;\n word-wrap: break-word;\n}\n\n.e-content {\n background: unset;\n min-height: 100px;\n outline: 0 solid transparent;\n padding: 16px;\n position: relative;\n overflow-x: auto;\n font-weight: normal;\n line-height: 1.5;\n font-size: 14px;\n text-align: inherit;\n font-family: \"Roboto\", \"Segoe UI\", \"GeezaPro\", \"DejaVu Serif\", \"sans-serif\", \"-apple-system\", \"BlinkMacSystemFont\";\n}\n\n.e-content p {\n margin: 0 0 10px;\n margin-bottom: 10px;\n}\n\n.e-content h1 {\n font-size: 2.857em;\n font-weight: 600;\n line-height: 1.2;\n margin: 10px 0;\n}\n\n.e-content h2 {\n font-size: 2.285em;\n font-weight: 600;\n line-height: 1.2;\n margin: 10px 0;\n}\n\n.e-content h3 {\n font-size: 2em;\n font-weight: 600;\n line-height: 1.2;\n margin: 10px 0;\n}\n\n.e-content h4 {\n font-size: 1.714em;\n font-weight: 600;\n line-height: 1.2;\n margin: 10px 0;\n}\n\n.e-content h5 {\n font-size: 1.428em;\n font-weight: 600;\n line-height: 1.2;\n margin: 10px 0;\n}\n\n.e-content h6 {\n font-size: 1.142em;\n font-weight: 600;\n line-height: 1.5;\n margin: 10px 0;\n}\n\n.e-content blockquote {\n margin: 10px 0;\n padding-left: 12px;\n border-left: 2px solid #5c5c5c;\n}\n\n.e-rtl.e-content blockquote {\n padding-left: 0;\n padding-right: 12px;\n}\n\n.e-content pre {\n border: 0;\n border-radius: 0;\n color: #333;\n font-size: inherit;\n line-height: inherit;\n margin: 0 0 10px;\n overflow: visible;\n padding: 0;\n white-space: pre-wrap;\n word-break: inherit;\n word-wrap: break-word;\n}\n\n.e-content code {\n background: #9d9d9d26;\n color: #ed484c;\n}\n\n.e-content strong,\n.e-content b {\n font-weight: bold;\n}\n\n.e-content a {\n text-decoration: none;\n user-select: auto;\n}\n\n.e-content a:hover {\n text-decoration: underline;\n}\n\n.e-content li {\n margin-bottom: 10px;\n}\n\n.e-content li ol,\n.e-content li ul {\n margin-block-start: 10px;\n}\n\n.e-content ul {\n list-style-type: disc;\n}\n\n.e-content ul ul,\n.e-content ol ul {\n list-style-type: circle;\n}\n\n.e-content ul ul ul,\n.e-content ol ul ul,\n.e-content ul ol ul,\n.e-content ol ol ul {\n list-style-type: square;\n}\n\n.e-content p:last-child,\n.e-content pre:last-child,\n.e-content blockquote:last-child {\n margin-bottom: 0;\n}\n\n.e-content h3 + h4,\n.e-content h4 + h5,\n.e-content h5 + h6 {\n margin-top: 0.6em;\n}\n\n.e-content ul:last-child {\n margin-bottom: 0;\n}\n\n.e-content table {\n margin-bottom: 10px;\n border-collapse: collapse;\n empty-cells: show;\n}\n\n.e-content table.e-cell-select {\n position: relative;\n}\n\n.e-content table.e-cell-select::after {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n border: 2px solid #4a90e2;\n pointer-events: none;\n}\n\ntable .e-cell-select {\n border: 1px double #4a90e2 !important;\n}\n\n.e-content table.e-rte-table th {\n background-color: #E0E0E0;\n}\n\n.e-rte-table td,\n.e-rte-table th {\n border: 1px solid #BDBDBD;\n height: 20px;\n min-width: 20px;\n padding: 2px 5px;\n}\n\n.e-rte-table td.e-cell-select.e-multi-cells-select,\n.e-rte-table th.e-cell-select.e-multi-cells-select {\n position: relative;\n}\n\n.e-rte-table td.e-cell-select.e-multi-cells-select::after,\n.e-rte-table th.e-cell-select.e-multi-cells-select::after {\n background-color: rgba(13, 110, 253, 0.08);\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n bottom: 0;\n pointer-events: none;\n right: 0;\n}\n\ntable td.e-multi-cells-select ::selection,\ntable th.e-multi-cells-select ::selection {\n background-color: transparent;\n}\n\ntd.e-multi-cells-select,\nth.e-multi-cells-select {\n user-select: none !important;\n}\n\n.e-rte-table.e-dashed-border td,\n.e-rte-table.e-dashed-border th {\n border-style: dashed;\n}\n\n.e-rte-table.e-alternate-border tbody tr:nth-child(2n) {\n background-color: #F5F5F5;\n}\n\n.e-rte-image,\n.e-rte-audio,\n.e-rte-video {\n border: 0;\n cursor: pointer;\n display: block;\n float: none;\n margin: auto;\n max-width: 100%;\n position: relative;\n}\n\n.e-rte-image.e-imginline,\n.e-rte-audio.e-audio-inline,\n.e-rte-video.e-video-inline {\n margin-left: 5px;\n margin-right: 5px;\n display: inline-block;\n float: none;\n max-width: 100%;\n padding: 1px;\n vertical-align: bottom;\n}\n\n.e-rte-image.e-imgcenter,\n.e-rte-video.e-video-center {\n cursor: pointer;\n display: block;\n float: none;\n margin: 5px auto;\n max-width: 100%;\n position: relative;\n}\n\n.e-rte-image.e-imgright,\n.e-rte-video.e-video-right {\n float: right;\n margin: 0 auto;\n margin-left: 5px;\n text-align: right;\n}\n\n.e-rte-image.e-imgleft,\n.e-rte-video.e-video-left {\n float: left;\n margin: 0 auto;\n margin-right: 5px;\n text-align: left;\n}\n\n.e-rte-img-caption {\n display: inline-block;\n margin: 5px auto;\n max-width: 100%;\n position: relative;\n}\n\n.e-rte-img-caption.e-caption-inline {\n display: inline-block;\n margin: 5px auto;\n margin-left: 5px;\n margin-right: 5px;\n max-width: calc(100% - (2 * 5px));\n position: relative;\n text-align: center;\n vertical-align: bottom;\n}\n\n.e-rte-img-caption.e-imgcenter {\n display: contents;\n margin-left: auto;\n margin-right: auto;\n}\n\n.e-rte-img-caption.e-imgright {\n display: contents;\n margin-left: auto;\n margin-right: 0;\n}\n\n.e-rte-img-caption.e-imgleft {\n display: contents;\n margin-left: 0;\n margin-right: auto;\n}\n\n.e-img-caption.e-rte-img-caption.e-imgbreak {\n display: contents;\n}\n\n.e-rte-img-caption .e-img-inner {\n display: block;\n font-size: 16px;\n font-weight: initial;\n margin: auto;\n opacity: .9;\n position: relative;\n text-align: center;\n width: 100%;\n}\n\n.e-img-wrap {\n display: inline-block;\n margin: auto;\n padding: 0;\n text-align: center;\n width: 100%;\n}\n\n.e-imgleft,\n.e-video-left {\n float: left;\n margin: 0 5px 0 0;\n text-align: left;\n}\n\n.e-imgright,\n.e-video-right {\n float: right;\n margin: 0 0 0 5px;\n text-align: right;\n}\n\n.e-imgcenter,\n.e-video-center {\n cursor: pointer;\n display: block;\n float: none;\n height: auto;\n margin: 5px auto;\n max-width: 100%;\n position: relative;\n}\n\n.e-control img:not(.e-resize) {\n border: 2px solid transparent;\n z-index: 1000\n}\n\n.e-imginline,\n.e-audio-inline,\n.e-video-inline {\n display: inline-block;\n float: none;\n margin-left: 5px;\n margin-right: 5px;\n vertical-align: bottom;\n}\n\n.e-imgbreak,\n.e-audio-break,\n.e-video-break {\n border: 0;\n cursor: pointer;\n display: block;\n float: none;\n height: auto;\n margin: 5px auto;\n max-width: 100%;\n position: relative;\n}\n\n.e-rte-image.e-img-focus:not(.e-resize),\n.e-audio-focus:not(.e-resize),\n.e-video-focus:not(.e-resize) {\n border: solid 2px #4a90e2;\n}\n\nimg.e-img-focus::selection,\naudio.e-audio-focus::selection,\n.e-video-focus::selection {\n background: transparent;\n color: transparent;\n}\n\nspan.e-rte-imageboxmark,\nspan.e-rte-videoboxmark {\n width: 10px;\n height: 10px;\n position: absolute;\n display: block;\n background: #4a90e2;\n border: 1px solid #fff;\n z-index: 1000;\n}\n\n.e-mob-rte.e-mob-span span.e-rte-imageboxmark,\n.e-mob-rte.e-mob-span span.e-rte-videoboxmark {\n background: #4a90e2;\n border: 1px solid #fff;\n}\n\n.e-mob-rte span.e-rte-imageboxmark,\n.e-mob-rte span.e-rte-videoboxmark {\n background: #fff;\n border: 1px solid #4a90e2;\n border-radius: 15px;\n height: 20px;\n width: 20px;\n}\n\n.e-mob-rte.e-mob-span span.e-rte-imageboxmark,\n.e-mob-rte.e-mob-span span.e-rte-videoboxmark {\n background: #4a90e2;\n border: 1px solid #fff;\n}\n\n.e-content img.e-resize,\n.e-content video.e-resize {\n z-index: 1000;\n}\n\n.e-img-caption .e-img-inner {\n outline: 0;\n}\n\n.e-rte-img-caption.e-imgleft .e-img-inner {\n float: left;\n text-align: left;\n}\n\n.e-rte-img-caption.e-imgright .e-img-inner {\n float: right;\n text-align: right;\n}\n\n.e-rte-img-caption.e-imgleft .e-img-wrap,\n.e-rte-img-caption.e-imgright .e-img-wrap {\n display: contents;\n}\n\n.e-img-caption a:focus-visible {\n outline: none;\n}\n\n.e-rte-img-caption .e-rte-image.e-imgright {\n margin-left: auto;\n margin-right: 0;\n}\n\n.e-rte-img-caption .e-rte-image.e-imgleft {\n margin: 0;\n}\n\nspan.e-table-box {\n cursor: nwse-resize;\n display: block;\n height: 10px;\n position: absolute;\n width: 10px;\n background-color: #ffffff;\n border: 1px solid #BDBDBD;\n}\n\nspan.e-table-box.e-rmob {\n height: 14px;\n width: 14px;\n background-color: #BDBDBD;\n border: 1px solid #BDBDBD;\n}\n\n.e-row-resize,\n.e-column-resize {\n background-color: transparent;\n background-repeat: repeat;\n bottom: 0;\n cursor: col-resize;\n height: 1px;\n overflow: visible;\n position: absolute;\n width: 1px;\n}\n\n.e-row-resize {\n cursor: row-resize;\n height: 1px;\n}\n\n.e-table-rhelper {\n cursor: col-resize;\n opacity: .87;\n position: absolute;\n}\n\n.e-table-rhelper.e-column-helper {\n width: 1px;\n}\n\n.e-table-rhelper.e-row-helper {\n height: 1px;\n}\n\n.e-reicon::before {\n border-bottom: 6px solid transparent;\n border-right: 6px solid;\n border-top: 6px solid transparent;\n content: '';\n display: block;\n height: 0;\n position: absolute;\n right: 4px;\n top: 4px;\n width: 20px;\n}\n\n.e-reicon::after {\n border-bottom: 6px solid transparent;\n border-left: 6px solid;\n border-top: 6px solid transparent;\n content: '';\n display: block;\n height: 0;\n left: 4px;\n position: absolute;\n top: 4px;\n width: 20px;\n z-index: 3;\n}\n\n.e-row-helper.e-reicon::after {\n top: 10px;\n transform: rotate(90deg);\n}\n\n.e-row-helper.e-reicon::before {\n left: 4px;\n top: -20px;\n transform: rotate(90deg);\n}\n\n\n.e-table-rhelper {\n background-color: #4a90e2;\n}\n\n.e-rtl {\n direction: rtl;\n}\n\n.e-rte-placeholder::before {\n content: attr(placeholder);\n opacity: 0.54;\n overflow: hidden;\n padding-top: 16px;\n position: absolute;\n text-align: start;\n top: 0;\n z-index: 1;\n}\n\n.e-resize-enabled,\n.e-count-enabled {\n padding-bottom: 0px;\n}\n";
14840
14790
 
14841
- var __extends$1 = (undefined && undefined.__extends) || (function () {
14842
- var extendStatics = function (d, b) {
14843
- extendStatics = Object.setPrototypeOf ||
14844
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
14845
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
14846
- return extendStatics(d, b);
14847
- };
14848
- return function (d, b) {
14849
- extendStatics(d, b);
14850
- function __() { this.constructor = d; }
14851
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14852
- };
14853
- })();
14791
+ var __extends$1 = (undefined && undefined.__extends) || (function () {
14792
+ var extendStatics = function (d, b) {
14793
+ extendStatics = Object.setPrototypeOf ||
14794
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
14795
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
14796
+ return extendStatics(d, b);
14797
+ };
14798
+ return function (d, b) {
14799
+ extendStatics(d, b);
14800
+ function __() { this.constructor = d; }
14801
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14802
+ };
14803
+ })();
14854
14804
  var IFRAMEHEADER = "\n <!DOCTYPE html> \n <html>\n <head>\n <meta charset='utf-8' /> \n <style>" +
14855
14805
  IFRAME_EDITOR_STYLES.replace(/[\n\t]/g, '') + "\n </style>\n </head>\n";
14856
14806
  /**
@@ -14859,7 +14809,7 @@ var IFRAMEHEADER = "\n <!DOCTYPE html> \n <html>\n <head>\n
14859
14809
  * @hidden
14860
14810
  * @deprecated
14861
14811
  */
14862
- var IframeContentRender = /** @__PURE__ @class */ (function (_super) {
14812
+ var IframeContentRender = /** @class */ (function (_super) {
14863
14813
  __extends$1(IframeContentRender, _super);
14864
14814
  function IframeContentRender() {
14865
14815
  return _super !== null && _super.apply(this, arguments) || this;
@@ -14967,7 +14917,7 @@ var IframeContentRender = /** @__PURE__ @class */ (function (_super) {
14967
14917
  * @hidden
14968
14918
  * @deprecated
14969
14919
  */
14970
- var MarkdownRender = /** @__PURE__ @class */ (function () {
14920
+ var MarkdownRender = /** @class */ (function () {
14971
14921
  /**
14972
14922
  * Constructor for content renderer module
14973
14923
  *
@@ -15053,7 +15003,7 @@ var MarkdownRender = /** @__PURE__ @class */ (function () {
15053
15003
  * @hidden
15054
15004
  * @deprecated
15055
15005
  */
15056
- var PopupRenderer = /** @__PURE__ @class */ (function () {
15006
+ var PopupRenderer = /** @class */ (function () {
15057
15007
  /**
15058
15008
  * Constructor for popup renderer module
15059
15009
  *
@@ -15119,29 +15069,29 @@ var PopupRenderer = /** @__PURE__ @class */ (function () {
15119
15069
  return PopupRenderer;
15120
15070
  }());
15121
15071
 
15122
- var __extends$2 = (undefined && undefined.__extends) || (function () {
15123
- var extendStatics = function (d, b) {
15124
- extendStatics = Object.setPrototypeOf ||
15125
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
15126
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
15127
- return extendStatics(d, b);
15128
- };
15129
- return function (d, b) {
15130
- extendStatics(d, b);
15131
- function __() { this.constructor = d; }
15132
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15133
- };
15134
- })();
15135
- var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
15136
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
15137
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
15138
- 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;
15139
- return c > 3 && r && Object.defineProperty(target, key, r), r;
15140
- };
15072
+ var __extends$2 = (undefined && undefined.__extends) || (function () {
15073
+ var extendStatics = function (d, b) {
15074
+ extendStatics = Object.setPrototypeOf ||
15075
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
15076
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
15077
+ return extendStatics(d, b);
15078
+ };
15079
+ return function (d, b) {
15080
+ extendStatics(d, b);
15081
+ function __() { this.constructor = d; }
15082
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15083
+ };
15084
+ })();
15085
+ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
15086
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
15087
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
15088
+ 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;
15089
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
15090
+ };
15141
15091
  /**
15142
15092
  * Configures the slash menu settings of the RichTextEditor.
15143
15093
  */
15144
- var SlashMenuSettings = /** @__PURE__ @class */ (function (_super) {
15094
+ var SlashMenuSettings = /** @class */ (function (_super) {
15145
15095
  __extends$2(SlashMenuSettings, _super);
15146
15096
  function SlashMenuSettings() {
15147
15097
  return _super !== null && _super.apply(this, arguments) || this;
@@ -15261,7 +15211,7 @@ var injectibleSlashMenuDataModel = [
15261
15211
  }
15262
15212
  ];
15263
15213
 
15264
- var SlashMenu = /** @__PURE__ @class */ (function () {
15214
+ var SlashMenu = /** @class */ (function () {
15265
15215
  function SlashMenu(options, serviceLocator) {
15266
15216
  this.parent = options;
15267
15217
  this.currentDocument = this.parent.element.ownerDocument;
@@ -15471,7 +15421,7 @@ var SlashMenu = /** @__PURE__ @class */ (function () {
15471
15421
  /**
15472
15422
  * `Toolbar` module is used to handle Toolbar actions.
15473
15423
  */
15474
- var BaseToolbar = /** @__PURE__ @class */ (function () {
15424
+ var BaseToolbar = /** @class */ (function () {
15475
15425
  function BaseToolbar(parent, serviceLocator) {
15476
15426
  this.tools = {};
15477
15427
  this.parent = parent;
@@ -15709,7 +15659,7 @@ var BaseToolbar = /** @__PURE__ @class */ (function () {
15709
15659
  /**
15710
15660
  * `Toolbar` module is used to handle Toolbar actions.
15711
15661
  */
15712
- var DropDownButtons = /** @__PURE__ @class */ (function () {
15662
+ var DropDownButtons = /** @class */ (function () {
15713
15663
  function DropDownButtons(parent, serviceLocator) {
15714
15664
  this.parent = parent;
15715
15665
  this.locator = serviceLocator;
@@ -16244,7 +16194,7 @@ var DropDownButtons = /** @__PURE__ @class */ (function () {
16244
16194
  /**
16245
16195
  * `ToolbarAction` module is used to toolbar click action
16246
16196
  */
16247
- var ToolbarAction = /** @__PURE__ @class */ (function () {
16197
+ var ToolbarAction = /** @class */ (function () {
16248
16198
  function ToolbarAction(parent) {
16249
16199
  this.parent = parent;
16250
16200
  this.addEventListener();
@@ -16316,7 +16266,7 @@ var ToolbarAction = /** @__PURE__ @class */ (function () {
16316
16266
  /**
16317
16267
  * `Color Picker` module is used to handle ColorPicker actions.
16318
16268
  */
16319
- var ColorPickerInput = /** @__PURE__ @class */ (function () {
16269
+ var ColorPickerInput = /** @class */ (function () {
16320
16270
  function ColorPickerInput(parent, serviceLocator) {
16321
16271
  this.tools = {};
16322
16272
  this.parent = parent;
@@ -16571,7 +16521,7 @@ var ColorPickerInput = /** @__PURE__ @class */ (function () {
16571
16521
  /**
16572
16522
  * `Toolbar` module is used to handle Toolbar actions.
16573
16523
  */
16574
- var Toolbar = /** @__PURE__ @class */ (function () {
16524
+ var Toolbar = /** @class */ (function () {
16575
16525
  function Toolbar(parent, serviceLocator) {
16576
16526
  this.tools = {};
16577
16527
  this.parent = parent;
@@ -17193,7 +17143,7 @@ var Toolbar = /** @__PURE__ @class */ (function () {
17193
17143
  /**
17194
17144
  * `Quick toolbar` module is used to handle Quick toolbar actions.
17195
17145
  */
17196
- var BaseQuickToolbar = /** @__PURE__ @class */ (function () {
17146
+ var BaseQuickToolbar = /** @class */ (function () {
17197
17147
  function BaseQuickToolbar(parent, locator) {
17198
17148
  this.parent = parent;
17199
17149
  this.locator = locator;
@@ -17716,7 +17666,7 @@ var BaseQuickToolbar = /** @__PURE__ @class */ (function () {
17716
17666
  /**
17717
17667
  * `Quick toolbar` module is used to handle Quick toolbar actions.
17718
17668
  */
17719
- var QuickToolbar = /** @__PURE__ @class */ (function () {
17669
+ var QuickToolbar = /** @class */ (function () {
17720
17670
  function QuickToolbar(parent, locator) {
17721
17671
  this.debounceTimeout = 1000;
17722
17672
  this.parent = parent;
@@ -18328,7 +18278,7 @@ var QuickToolbar = /** @__PURE__ @class */ (function () {
18328
18278
  /**
18329
18279
  * `Count` module is used to handle Count actions.
18330
18280
  */
18331
- var Count = /** @__PURE__ @class */ (function () {
18281
+ var Count = /** @class */ (function () {
18332
18282
  function Count(parent, serviceLocator) {
18333
18283
  this.parent = parent;
18334
18284
  this.locator = serviceLocator;
@@ -18472,7 +18422,7 @@ var Count = /** @__PURE__ @class */ (function () {
18472
18422
  * @hidden
18473
18423
  * @deprecated
18474
18424
  */
18475
- var MarkdownSelection = /** @__PURE__ @class */ (function () {
18425
+ var MarkdownSelection = /** @class */ (function () {
18476
18426
  function MarkdownSelection() {
18477
18427
  }
18478
18428
  /**
@@ -18687,7 +18637,7 @@ var MarkdownSelection = /** @__PURE__ @class */ (function () {
18687
18637
  /**
18688
18638
  * MarkdownToolbarStatus module for refresh the toolbar status
18689
18639
  */
18690
- var MarkdownToolbarStatus = /** @__PURE__ @class */ (function () {
18640
+ var MarkdownToolbarStatus = /** @class */ (function () {
18691
18641
  function MarkdownToolbarStatus(parent) {
18692
18642
  this.toolbarStatus = this.prevToolbarStatus = getDefaultMDTbStatus();
18693
18643
  this.selection = new MarkdownSelection();
@@ -18810,7 +18760,7 @@ var MarkdownToolbarStatus = /** @__PURE__ @class */ (function () {
18810
18760
  /**
18811
18761
  * `ExecCommandCallBack` module is used to run the editor manager command
18812
18762
  */
18813
- var ExecCommandCallBack = /** @__PURE__ @class */ (function () {
18763
+ var ExecCommandCallBack = /** @class */ (function () {
18814
18764
  function ExecCommandCallBack(parent) {
18815
18765
  this.parent = parent;
18816
18766
  this.addEventListener();
@@ -18840,7 +18790,7 @@ var ExecCommandCallBack = /** @__PURE__ @class */ (function () {
18840
18790
  * @hidden
18841
18791
  * @deprecated
18842
18792
  */
18843
- var Formatter = /** @__PURE__ @class */ (function () {
18793
+ var Formatter = /** @class */ (function () {
18844
18794
  function Formatter() {
18845
18795
  }
18846
18796
  /**
@@ -19155,7 +19105,7 @@ var INSERT_TEXT_COMMAND = 'insert-text';
19155
19105
  *
19156
19106
  * @hidden
19157
19107
  */
19158
- var MDLists = /** @__PURE__ @class */ (function () {
19108
+ var MDLists = /** @class */ (function () {
19159
19109
  /**
19160
19110
  * Constructor for creating the Lists plugin
19161
19111
  *
@@ -19635,7 +19585,7 @@ var MDLists = /** @__PURE__ @class */ (function () {
19635
19585
  * @hidden
19636
19586
  * @deprecated
19637
19587
  */
19638
- var MDFormats = /** @__PURE__ @class */ (function () {
19588
+ var MDFormats = /** @class */ (function () {
19639
19589
  /**
19640
19590
  * Constructor for creating the Formats plugin
19641
19591
  *
@@ -19870,7 +19820,7 @@ var MDFormats = /** @__PURE__ @class */ (function () {
19870
19820
  * @hidden
19871
19821
  * @deprecated
19872
19822
  */
19873
- var MDSelectionFormats = /** @__PURE__ @class */ (function () {
19823
+ var MDSelectionFormats = /** @class */ (function () {
19874
19824
  function MDSelectionFormats(parent) {
19875
19825
  extend(this, this, parent, true);
19876
19826
  this.selection = this.parent.markdownSelection;
@@ -20207,7 +20157,7 @@ var MDSelectionFormats = /** @__PURE__ @class */ (function () {
20207
20157
  /**
20208
20158
  * `Undo` module is used to handle undo actions.
20209
20159
  */
20210
- var UndoRedoCommands = /** @__PURE__ @class */ (function () {
20160
+ var UndoRedoCommands = /** @class */ (function () {
20211
20161
  function UndoRedoCommands(parent, options) {
20212
20162
  this.undoRedoStack = [];
20213
20163
  this.parent = parent;
@@ -20404,7 +20354,7 @@ var UndoRedoCommands = /** @__PURE__ @class */ (function () {
20404
20354
  * @hidden
20405
20355
  * @deprecated
20406
20356
  */
20407
- var MDLink = /** @__PURE__ @class */ (function () {
20357
+ var MDLink = /** @class */ (function () {
20408
20358
  /**
20409
20359
  * Constructor for creating the Formats plugin
20410
20360
  *
@@ -20463,7 +20413,7 @@ var MDLink = /** @__PURE__ @class */ (function () {
20463
20413
  * @hidden
20464
20414
  * @deprecated
20465
20415
  */
20466
- var MDTable = /** @__PURE__ @class */ (function () {
20416
+ var MDTable = /** @class */ (function () {
20467
20417
  /**
20468
20418
  * Constructor for creating the Formats plugin
20469
20419
  *
@@ -20693,7 +20643,7 @@ var MDTable = /** @__PURE__ @class */ (function () {
20693
20643
  * @hidden
20694
20644
  * @deprecated
20695
20645
  */
20696
- var ClearFormat = /** @__PURE__ @class */ (function () {
20646
+ var ClearFormat = /** @class */ (function () {
20697
20647
  /**
20698
20648
  * Constructor for creating the clear format plugin
20699
20649
  *
@@ -20817,7 +20767,7 @@ var ClearFormat = /** @__PURE__ @class */ (function () {
20817
20767
  * @hidden
20818
20768
  * @deprecated
20819
20769
  */
20820
- var MDInsertText = /** @__PURE__ @class */ (function () {
20770
+ var MDInsertText = /** @class */ (function () {
20821
20771
  /**
20822
20772
  * Constructor for creating the insert text plugin
20823
20773
  *
@@ -20875,7 +20825,7 @@ var MDInsertText = /** @__PURE__ @class */ (function () {
20875
20825
  * @hidden
20876
20826
  * @deprecated
20877
20827
  */
20878
- var MarkdownParser = /** @__PURE__ @class */ (function () {
20828
+ var MarkdownParser = /** @class */ (function () {
20879
20829
  /**
20880
20830
  * Constructor for creating the component
20881
20831
  *
@@ -20980,26 +20930,26 @@ var MarkdownParser = /** @__PURE__ @class */ (function () {
20980
20930
  return MarkdownParser;
20981
20931
  }());
20982
20932
 
20983
- var __extends$3 = (undefined && undefined.__extends) || (function () {
20984
- var extendStatics = function (d, b) {
20985
- extendStatics = Object.setPrototypeOf ||
20986
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
20987
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
20988
- return extendStatics(d, b);
20989
- };
20990
- return function (d, b) {
20991
- extendStatics(d, b);
20992
- function __() { this.constructor = d; }
20993
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
20994
- };
20995
- })();
20933
+ var __extends$3 = (undefined && undefined.__extends) || (function () {
20934
+ var extendStatics = function (d, b) {
20935
+ extendStatics = Object.setPrototypeOf ||
20936
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
20937
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
20938
+ return extendStatics(d, b);
20939
+ };
20940
+ return function (d, b) {
20941
+ extendStatics(d, b);
20942
+ function __() { this.constructor = d; }
20943
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
20944
+ };
20945
+ })();
20996
20946
  /**
20997
20947
  * Markdown adapter
20998
20948
  *
20999
20949
  * @hidden
21000
20950
  * @deprecated
21001
20951
  */
21002
- var MarkdownFormatter = /** @__PURE__ @class */ (function (_super) {
20952
+ var MarkdownFormatter = /** @class */ (function (_super) {
21003
20953
  __extends$3(MarkdownFormatter, _super);
21004
20954
  function MarkdownFormatter(options) {
21005
20955
  var _this = _super.call(this) || this;
@@ -21043,7 +20993,7 @@ var MarkdownFormatter = /** @__PURE__ @class */ (function (_super) {
21043
20993
  /**
21044
20994
  * `MarkdownEditor` module is used to markdown editor
21045
20995
  */
21046
- var MarkdownEditor = /** @__PURE__ @class */ (function () {
20996
+ var MarkdownEditor = /** @class */ (function () {
21047
20997
  function MarkdownEditor(parent, serviceLocator) {
21048
20998
  this.parent = parent;
21049
20999
  this.locator = serviceLocator;
@@ -21222,7 +21172,7 @@ var MarkdownEditor = /** @__PURE__ @class */ (function () {
21222
21172
  *
21223
21173
  * @hidden
21224
21174
  */
21225
- var InsertMethods = /** @__PURE__ @class */ (function () {
21175
+ var InsertMethods = /** @class */ (function () {
21226
21176
  function InsertMethods() {
21227
21177
  }
21228
21178
  /**
@@ -21299,7 +21249,7 @@ var InsertMethods = /** @__PURE__ @class */ (function () {
21299
21249
  * @hidden
21300
21250
  * @deprecated
21301
21251
  */
21302
- var NodeCutter = /** @__PURE__ @class */ (function () {
21252
+ var NodeCutter = /** @class */ (function () {
21303
21253
  function NodeCutter() {
21304
21254
  this.enterAction = 'P';
21305
21255
  this.position = -1;
@@ -21516,7 +21466,7 @@ var NodeCutter = /** @__PURE__ @class */ (function () {
21516
21466
  * @hidden
21517
21467
  * @deprecated
21518
21468
  */
21519
- var InsertHtml = /** @__PURE__ @class */ (function () {
21469
+ var InsertHtml = /** @class */ (function () {
21520
21470
  function InsertHtml() {
21521
21471
  }
21522
21472
  InsertHtml.Insert = function (docElement, insertNode, editNode, isExternal, enterAction) {
@@ -21903,7 +21853,7 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
21903
21853
  nodeSelection.setSelectionText(docElement, lastSelectionNode, lastSelectionNode, 0, 0);
21904
21854
  }
21905
21855
  else {
21906
- this.cursorPos(lastSelectionNode, node, nodeSelection, docElement, editNode, enterAction);
21856
+ this.cursorPos(lastSelectionNode, node, nodeSelection, docElement, editNode);
21907
21857
  }
21908
21858
  this.alignCheck(editNode);
21909
21859
  this.listCleanUp(nodeSelection, docElement);
@@ -22167,9 +22117,9 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
22167
22117
  }
22168
22118
  }
22169
22119
  };
22170
- InsertHtml.cursorPos = function (lastSelectionNode, node, nodeSelection, docElement, editNode, enterAction) {
22120
+ InsertHtml.cursorPos = function (lastSelectionNode, node, nodeSelection, docElement, editNode) {
22171
22121
  lastSelectionNode.classList.add('lastNode');
22172
- editNode.innerHTML = updateTextNode$1(editNode.innerHTML, enterAction);
22122
+ editNode.innerHTML = updateTextNode$1(editNode.innerHTML);
22173
22123
  lastSelectionNode = editNode.querySelector('.lastNode');
22174
22124
  if (!isNullOrUndefined(lastSelectionNode)) {
22175
22125
  this.placeCursorEnd(lastSelectionNode, node, nodeSelection, docElement, editNode);
@@ -22337,7 +22287,7 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
22337
22287
  /**
22338
22288
  * Utilities to handle the table cell selection
22339
22289
  */
22340
- var TableSelection = /** @__PURE__ @class */ (function () {
22290
+ var TableSelection = /** @class */ (function () {
22341
22291
  function TableSelection(root, currentDocument) {
22342
22292
  this.BLOCK_TAGS = ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'li', 'pre', 'td', 'th', 'div', 'hr', 'section', 'figure'];
22343
22293
  this.BASIC_FORMATS = ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'pre'];
@@ -22572,7 +22522,7 @@ var markerClassName = {
22572
22522
  * @hidden
22573
22523
  * @deprecated
22574
22524
  */
22575
- var DOMNode = /** @__PURE__ @class */ (function () {
22525
+ var DOMNode = /** @class */ (function () {
22576
22526
  /**
22577
22527
  * Constructor for creating the DOMNode plugin
22578
22528
  *
@@ -23604,7 +23554,7 @@ var DOMNode = /** @__PURE__ @class */ (function () {
23604
23554
  * @hidden
23605
23555
  * @deprecated
23606
23556
  */
23607
- var Lists = /** @__PURE__ @class */ (function () {
23557
+ var Lists = /** @class */ (function () {
23608
23558
  /**
23609
23559
  * Constructor for creating the Lists plugin
23610
23560
  *
@@ -23657,6 +23607,17 @@ var Lists = /** @__PURE__ @class */ (function () {
23657
23607
  }
23658
23608
  return false;
23659
23609
  };
23610
+ Lists.prototype.createAutoList = function (enterKey, shiftEnterKey) {
23611
+ var autoListRules = {
23612
+ BR: { BR: true, P: true, DIV: true },
23613
+ P: { BR: false, P: true, DIV: true },
23614
+ DIV: { BR: false, P: true, DIV: true }
23615
+ };
23616
+ if (autoListRules[enterKey] && autoListRules[enterKey][shiftEnterKey] !== undefined) {
23617
+ return autoListRules[enterKey][shiftEnterKey];
23618
+ }
23619
+ return false;
23620
+ };
23660
23621
  Lists.prototype.spaceList = function (e) {
23661
23622
  var range = this.parent.nodeSelection.getRange(this.parent.currentDocument);
23662
23623
  this.saveSelection = this.parent.nodeSelection.save(range, this.parent.currentDocument);
@@ -23672,7 +23633,8 @@ var Lists = /** @__PURE__ @class */ (function () {
23672
23633
  var startElementOLTest = this.testCurrentList(range);
23673
23634
  var preElementOLTest = this.testList(preElement);
23674
23635
  var nextElementOLTest = this.testList(nextElement);
23675
- if (!preElementOLTest && !nextElementOLTest && preElemULStart !== '*' && nextElemULStart !== '*') {
23636
+ var nextElementBRTest = range.startContainer.previousElementSibling && range.startContainer.previousElementSibling.tagName === 'BR';
23637
+ if (!preElementOLTest && !nextElementOLTest && preElemULStart !== '*' && nextElemULStart !== '*' && (this.createAutoList(e.enterKey, e.shiftEnterKey) || !nextElementBRTest)) {
23676
23638
  var brElement = createElement('br');
23677
23639
  if (startElementOLTest) {
23678
23640
  range.startContainer.textContent = range.startContainer.textContent.slice(range.startOffset, range.startContainer.textContent.length);
@@ -24618,7 +24580,7 @@ var Lists = /** @__PURE__ @class */ (function () {
24618
24580
  * @hidden
24619
24581
  * @deprecated
24620
24582
  */
24621
- var Formats = /** @__PURE__ @class */ (function () {
24583
+ var Formats = /** @class */ (function () {
24622
24584
  /**
24623
24585
  * Constructor for creating the Formats plugin
24624
24586
  *
@@ -25152,7 +25114,7 @@ var Formats = /** @__PURE__ @class */ (function () {
25152
25114
  /**
25153
25115
  * DOMTreeMethods - A `TreeWalkder` API implementation to get the block and text nodes in the selection.
25154
25116
  */
25155
- var DOMMethods = /** @__PURE__ @class */ (function () {
25117
+ var DOMMethods = /** @class */ (function () {
25156
25118
  function DOMMethods(editElement) {
25157
25119
  this.directRangeElems = ['IMG', 'TABLE', 'AUDIO', 'VIDEO', 'HR'];
25158
25120
  this.BLOCK_TAGS = ['address', 'article', 'aside', 'audio', 'blockquote',
@@ -25382,7 +25344,7 @@ var DOMMethods = /** @__PURE__ @class */ (function () {
25382
25344
  * @hidden
25383
25345
  * @deprecated
25384
25346
  */
25385
- var LinkCommand = /** @__PURE__ @class */ (function () {
25347
+ var LinkCommand = /** @class */ (function () {
25386
25348
  /**
25387
25349
  * Constructor for creating the Formats plugin
25388
25350
  *
@@ -25799,7 +25761,7 @@ var LinkCommand = /** @__PURE__ @class */ (function () {
25799
25761
  * @hidden
25800
25762
  * @deprecated
25801
25763
  */
25802
- var Alignments = /** @__PURE__ @class */ (function () {
25764
+ var Alignments = /** @class */ (function () {
25803
25765
  /**
25804
25766
  * Constructor for creating the Formats plugin
25805
25767
  *
@@ -25914,7 +25876,7 @@ var Alignments = /** @__PURE__ @class */ (function () {
25914
25876
  * @hidden
25915
25877
  * @deprecated
25916
25878
  */
25917
- var Indents = /** @__PURE__ @class */ (function () {
25879
+ var Indents = /** @class */ (function () {
25918
25880
  /**
25919
25881
  * Constructor for creating the Formats plugin
25920
25882
  *
@@ -26061,7 +26023,7 @@ var CLASS_VIDEO_INLINE = 'e-video-inline';
26061
26023
  * @hidden
26062
26024
  * @deprecated
26063
26025
  */
26064
- var ImageCommand = /** @__PURE__ @class */ (function () {
26026
+ var ImageCommand = /** @class */ (function () {
26065
26027
  /**
26066
26028
  * Constructor for creating the Formats plugin
26067
26029
  *
@@ -26466,7 +26428,7 @@ var ImageCommand = /** @__PURE__ @class */ (function () {
26466
26428
  * @hidden
26467
26429
  * @deprecated
26468
26430
  */
26469
- var AudioCommand = /** @__PURE__ @class */ (function () {
26431
+ var AudioCommand = /** @class */ (function () {
26470
26432
  /**
26471
26433
  * Constructor for creating the Audio plugin
26472
26434
  *
@@ -26619,7 +26581,7 @@ var AudioCommand = /** @__PURE__ @class */ (function () {
26619
26581
  * @hidden
26620
26582
  * @deprecated
26621
26583
  */
26622
- var VideoCommand = /** @__PURE__ @class */ (function () {
26584
+ var VideoCommand = /** @class */ (function () {
26623
26585
  /**
26624
26586
  * Constructor for creating the Video plugin
26625
26587
  *
@@ -26939,7 +26901,7 @@ var VideoCommand = /** @__PURE__ @class */ (function () {
26939
26901
  * @hidden
26940
26902
  * @deprecated
26941
26903
  */
26942
- var TableCommand = /** @__PURE__ @class */ (function () {
26904
+ var TableCommand = /** @class */ (function () {
26943
26905
  /**
26944
26906
  * Constructor for creating the Formats plugin
26945
26907
  *
@@ -27996,7 +27958,7 @@ var TableCommand = /** @__PURE__ @class */ (function () {
27996
27958
  };
27997
27959
  return TableCommand;
27998
27960
  }());
27999
- var MinMax = /** @__PURE__ @class */ (function () {
27961
+ var MinMax = /** @class */ (function () {
28000
27962
  function MinMax() {
28001
27963
  }
28002
27964
  return MinMax;
@@ -28005,7 +27967,7 @@ var MinMax = /** @__PURE__ @class */ (function () {
28005
27967
  /**
28006
27968
  * `Selection` module is used to handle RTE Selections.
28007
27969
  */
28008
- var SelectionCommands = /** @__PURE__ @class */ (function () {
27970
+ var SelectionCommands = /** @class */ (function () {
28009
27971
  function SelectionCommands() {
28010
27972
  }
28011
27973
  /**
@@ -29042,7 +29004,7 @@ var SelectionCommands = /** @__PURE__ @class */ (function () {
29042
29004
  * @hidden
29043
29005
  * @deprecated
29044
29006
  */
29045
- var SelectionBasedExec = /** @__PURE__ @class */ (function () {
29007
+ var SelectionBasedExec = /** @class */ (function () {
29046
29008
  /**
29047
29009
  * Constructor for creating the Formats plugin
29048
29010
  *
@@ -29100,7 +29062,7 @@ var SelectionBasedExec = /** @__PURE__ @class */ (function () {
29100
29062
  * @hidden
29101
29063
  * @deprecated
29102
29064
  */
29103
- var InsertHtmlExec = /** @__PURE__ @class */ (function () {
29065
+ var InsertHtmlExec = /** @class */ (function () {
29104
29066
  /**
29105
29067
  * Constructor for creating the Formats plugin
29106
29068
  *
@@ -29155,7 +29117,7 @@ var InsertHtmlExec = /** @__PURE__ @class */ (function () {
29155
29117
  /**
29156
29118
  * `Clear Format` module is used to handle Clear Format.
29157
29119
  */
29158
- var ClearFormat$1 = /** @__PURE__ @class */ (function () {
29120
+ var ClearFormat$1 = /** @class */ (function () {
29159
29121
  function ClearFormat() {
29160
29122
  }
29161
29123
  /**
@@ -29417,7 +29379,7 @@ var ClearFormat$1 = /** @__PURE__ @class */ (function () {
29417
29379
  * @hidden
29418
29380
  * @deprecated
29419
29381
  */
29420
- var ClearFormatExec = /** @__PURE__ @class */ (function () {
29382
+ var ClearFormatExec = /** @class */ (function () {
29421
29383
  /**
29422
29384
  * Constructor for creating the Formats plugin
29423
29385
  *
@@ -29471,7 +29433,7 @@ var ClearFormatExec = /** @__PURE__ @class */ (function () {
29471
29433
  /**
29472
29434
  * `Undo` module is used to handle undo actions.
29473
29435
  */
29474
- var UndoRedoManager = /** @__PURE__ @class */ (function () {
29436
+ var UndoRedoManager = /** @class */ (function () {
29475
29437
  function UndoRedoManager(parent, options) {
29476
29438
  this.undoRedoStack = [];
29477
29439
  this.parent = parent;
@@ -29737,7 +29699,7 @@ var UndoRedoManager = /** @__PURE__ @class */ (function () {
29737
29699
  * @hidden
29738
29700
  * @deprecated
29739
29701
  */
29740
- var MsWordPaste = /** @__PURE__ @class */ (function () {
29702
+ var MsWordPaste = /** @class */ (function () {
29741
29703
  function MsWordPaste(parent) {
29742
29704
  this.olData = [
29743
29705
  'decimal',
@@ -30868,7 +30830,7 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
30868
30830
  * @hidden
30869
30831
  * @deprecated
30870
30832
  */
30871
- var InsertTextExec = /** @__PURE__ @class */ (function () {
30833
+ var InsertTextExec = /** @class */ (function () {
30872
30834
  /**
30873
30835
  * Constructor for creating the InsertText plugin
30874
30836
  *
@@ -30907,7 +30869,7 @@ var InsertTextExec = /** @__PURE__ @class */ (function () {
30907
30869
  return InsertTextExec;
30908
30870
  }());
30909
30871
 
30910
- var EmojiPickerAction = /** @__PURE__ @class */ (function () {
30872
+ var EmojiPickerAction = /** @class */ (function () {
30911
30873
  function EmojiPickerAction(parent) {
30912
30874
  this.parent = parent;
30913
30875
  this.addEventListener();
@@ -30992,7 +30954,7 @@ var EmojiPickerAction = /** @__PURE__ @class */ (function () {
30992
30954
  return EmojiPickerAction;
30993
30955
  }());
30994
30956
 
30995
- var FormatPainterActions = /** @__PURE__ @class */ (function () {
30957
+ var FormatPainterActions = /** @class */ (function () {
30996
30958
  function FormatPainterActions(parent, options) {
30997
30959
  this.INVALID_TAGS = ['A', 'AUDIO', 'IMG', 'VIDEO', 'IFRAME'];
30998
30960
  this.parent = parent;
@@ -31637,7 +31599,7 @@ var FormatPainterActions = /** @__PURE__ @class */ (function () {
31637
31599
  * @hidden
31638
31600
  * @deprecated
31639
31601
  */
31640
- var EditorManager = /** @__PURE__ @class */ (function () {
31602
+ var EditorManager = /** @class */ (function () {
31641
31603
  /**
31642
31604
  * Constructor for creating the component
31643
31605
  *
@@ -31987,26 +31949,26 @@ var EditorManager = /** @__PURE__ @class */ (function () {
31987
31949
  return EditorManager;
31988
31950
  }());
31989
31951
 
31990
- var __extends$4 = (undefined && undefined.__extends) || (function () {
31991
- var extendStatics = function (d, b) {
31992
- extendStatics = Object.setPrototypeOf ||
31993
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
31994
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
31995
- return extendStatics(d, b);
31996
- };
31997
- return function (d, b) {
31998
- extendStatics(d, b);
31999
- function __() { this.constructor = d; }
32000
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
32001
- };
32002
- })();
31952
+ var __extends$4 = (undefined && undefined.__extends) || (function () {
31953
+ var extendStatics = function (d, b) {
31954
+ extendStatics = Object.setPrototypeOf ||
31955
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
31956
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
31957
+ return extendStatics(d, b);
31958
+ };
31959
+ return function (d, b) {
31960
+ extendStatics(d, b);
31961
+ function __() { this.constructor = d; }
31962
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
31963
+ };
31964
+ })();
32003
31965
  /**
32004
31966
  * HTML adapter
32005
31967
  *
32006
31968
  * @hidden
32007
31969
  * @deprecated
32008
31970
  */
32009
- var HTMLFormatter = /** @__PURE__ @class */ (function (_super) {
31971
+ var HTMLFormatter = /** @class */ (function (_super) {
32010
31972
  __extends$4(HTMLFormatter, _super);
32011
31973
  function HTMLFormatter(options) {
32012
31974
  var _this = _super.call(this) || this;
@@ -32047,7 +32009,7 @@ var HTMLFormatter = /** @__PURE__ @class */ (function (_super) {
32047
32009
  /**
32048
32010
  * HtmlToolbarStatus module for refresh the toolbar status
32049
32011
  */
32050
- var HtmlToolbarStatus = /** @__PURE__ @class */ (function () {
32012
+ var HtmlToolbarStatus = /** @class */ (function () {
32051
32013
  function HtmlToolbarStatus(parent) {
32052
32014
  this.parent = parent;
32053
32015
  this.toolbarStatus = this.prevToolbarStatus = getDefaultHtmlTbStatus();
@@ -32093,7 +32055,7 @@ var HtmlToolbarStatus = /** @__PURE__ @class */ (function () {
32093
32055
  /**
32094
32056
  * XhtmlValidation module called when set enableXhtml as true
32095
32057
  */
32096
- var XhtmlValidation = /** @__PURE__ @class */ (function () {
32058
+ var XhtmlValidation = /** @class */ (function () {
32097
32059
  function XhtmlValidation(parent) {
32098
32060
  this.parent = parent;
32099
32061
  this.addEventListener();
@@ -32264,7 +32226,7 @@ var XhtmlValidation = /** @__PURE__ @class */ (function () {
32264
32226
  /**
32265
32227
  * `HtmlEditor` module is used to HTML editor
32266
32228
  */
32267
- var HtmlEditor = /** @__PURE__ @class */ (function () {
32229
+ var HtmlEditor = /** @class */ (function () {
32268
32230
  function HtmlEditor(parent, serviceLocator) {
32269
32231
  this.rangeCollection = [];
32270
32232
  this.isImageDelete = false;
@@ -32679,7 +32641,9 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
32679
32641
  var eventArgs_1 = {
32680
32642
  callBack: null,
32681
32643
  event: e.args,
32682
- name: 'keydown-handler'
32644
+ name: 'keydown-handler',
32645
+ enterKey: this.parent.enterKey,
32646
+ shiftEnterKey: this.parent.shiftEnterKey
32683
32647
  };
32684
32648
  var actionBeginArgs = {
32685
32649
  cancel: false,
@@ -32815,6 +32779,26 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
32815
32779
  if (isNullOrUndefined(this.oldRangeElement)) {
32816
32780
  return;
32817
32781
  }
32782
+ else if (findBlockElement[0].previousSibling) {
32783
+ var prevSibling = findBlockElement[0].previousSibling;
32784
+ var currentElement = findBlockElement[0];
32785
+ if (prevSibling.textContent.trim()) {
32786
+ if (prevSibling.lastChild.nodeName === 'BR') {
32787
+ prevSibling.removeChild(prevSibling.lastChild);
32788
+ }
32789
+ var cursorpointer = prevSibling.lastChild.textContent.length;
32790
+ var lastChild = prevSibling.lastChild;
32791
+ var childNodes = Array.from(currentElement.childNodes);
32792
+ for (var i = 0; i < childNodes.length; i++) {
32793
+ prevSibling.appendChild(childNodes[i].cloneNode(true));
32794
+ }
32795
+ this.parent.formatter.editorManager.nodeSelection.setCursorPoint(this.parent.contentModule.getDocument(), lastChild, cursorpointer);
32796
+ currentElement.parentNode.removeChild(currentElement);
32797
+ }
32798
+ else {
32799
+ prevSibling.parentNode.removeChild(prevSibling);
32800
+ }
32801
+ }
32818
32802
  else {
32819
32803
  if (this.oldRangeElement.tagName === 'OL' || this.oldRangeElement.tagName === 'UL') {
32820
32804
  this.oldRangeElement = this.oldRangeElement.lastElementChild.lastElementChild
@@ -33421,7 +33405,7 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
33421
33405
  /**
33422
33406
  * PasteCleanup module called when pasting content in RichTextEditor
33423
33407
  */
33424
- var PasteCleanup = /** @__PURE__ @class */ (function () {
33408
+ var PasteCleanup = /** @class */ (function () {
33425
33409
  function PasteCleanup(parent, serviceLocator) {
33426
33410
  this.inlineNode = ['a', 'abbr', 'acronym', 'audio', 'b', 'bdi', 'bdo', 'big', 'br', 'button',
33427
33411
  'canvas', 'cite', 'code', 'data', 'datalist', 'del', 'dfn', 'em', 'embed', 'font', 'i', 'iframe', 'img', 'input',
@@ -33596,28 +33580,6 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
33596
33580
  value = tempDivElem.innerHTML;
33597
33581
  var isValueNotEmpty = tempDivElem.textContent !== '' || !isNullOrUndefined(tempDivElem.querySelector('img')) ||
33598
33582
  !isNullOrUndefined(tempDivElem.querySelector('table'));
33599
- var imgElements = tempDivElem.querySelectorAll('img');
33600
- var base_1 = this.parent.contentModule.getDocument().location.origin;
33601
- imgElements.forEach(function (imgElement) {
33602
- var imageFileFormat;
33603
- var imgElementSrc = imgElement.getAttribute('src');
33604
- if (!isNullOrUndefined(imgElementSrc) && imgElementSrc !== '') {
33605
- if (imgElementSrc.indexOf('base64') > -1 && imgElementSrc.indexOf('data:') > -1) {
33606
- imageFileFormat = imgElementSrc.split(';')[0].split('/')[1];
33607
- }
33608
- else {
33609
- var parsedUrl = imgElementSrc.indexOf('http') > -1 ? new URL(imgElementSrc) : new URL(imgElementSrc, base_1);
33610
- var path = parsedUrl.pathname;
33611
- imageFileFormat = path.split('.').pop().toLowerCase();
33612
- }
33613
- if (!isNullOrUndefined(imageFileFormat) &&
33614
- allowedTypes.every(function (type) { return imageFileFormat !== type.substring(1).toLowerCase(); }) &&
33615
- imgElementSrc.indexOf('blob') === -1) {
33616
- detach(imgElement);
33617
- }
33618
- }
33619
- });
33620
- value = tempDivElem.innerHTML;
33621
33583
  this.parent.notify(cleanupResizeElements, {
33622
33584
  value: value,
33623
33585
  callBack: function (currentValue) {
@@ -33867,7 +33829,11 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
33867
33829
  this.parent.inputElement.contentEditable = 'true';
33868
33830
  detach(imgElem);
33869
33831
  if (popupObj) {
33870
- popupObj.close();
33832
+ this.parent.isBlur = false;
33833
+ popupObj.destroy();
33834
+ if (!isNullOrUndefined(popupObj.element)) {
33835
+ detach(popupObj.element);
33836
+ }
33871
33837
  }
33872
33838
  this.parent.trigger(imageUploadFailed, e);
33873
33839
  if (uploadObj && document.body.contains(uploadObj.element)) {
@@ -33884,7 +33850,7 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
33884
33850
  this.parent.trigger(imageUploadSuccess, e, function (e) {
33885
33851
  if (!isNullOrUndefined(_this.parent.insertImageSettings.path)) {
33886
33852
  var url = _this.parent.insertImageSettings.path + e.file.name;
33887
- if (!_this.parent.inputElement.contains(imgElem)) {
33853
+ if (!_this.parent.inputElement.contains(imgElem) && imgElem.id) {
33888
33854
  var imgHtmlElems = _this.parent.inputElement.querySelectorAll('#' + imgElem.id);
33889
33855
  for (var i = 0; i < imgHtmlElems.length; i++) {
33890
33856
  var imgHtmlElem = imgHtmlElems[i];
@@ -33909,13 +33875,22 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
33909
33875
  });
33910
33876
  }
33911
33877
  this.popupCloseTime = setTimeout(function () {
33912
- popupObj.close();
33913
- if (!_this.parent.inputElement.contains(imgElem)) {
33914
- var imgHtmlElems = _this.parent.inputElement.querySelectorAll('#' + imgElem.id);
33915
- for (var i = 0; i < imgHtmlElems.length; i++) {
33916
- var imgHtmlElem = imgHtmlElems[i];
33917
- if (imgHtmlElem && imgHtmlElem.style && imgHtmlElem.style.opacity === '0.5') {
33918
- imgHtmlElem.style.opacity = '1';
33878
+ if (popupObj) {
33879
+ _this.parent.isBlur = false;
33880
+ popupObj.destroy();
33881
+ if (!isNullOrUndefined(popupObj.element)) {
33882
+ detach(popupObj.element);
33883
+ }
33884
+ }
33885
+ if (!_this.parent.inputElement.contains(imgElem) && (imgElem.id || imgElem.alt)) {
33886
+ var selector = imgElem.id ? "#" + imgElem.id : "[alt=\"" + imgElem.alt + "\"]";
33887
+ if (selector) {
33888
+ var imgHtmlElems = _this.parent.inputElement.querySelectorAll(selector);
33889
+ for (var i = 0; i < imgHtmlElems.length; i++) {
33890
+ var imgHtmlElem = imgHtmlElems[i];
33891
+ if (imgHtmlElem && imgHtmlElem.style && imgHtmlElem.style.opacity === '0.5') {
33892
+ imgHtmlElem.style.opacity = '1';
33893
+ }
33919
33894
  }
33920
33895
  }
33921
33896
  }
@@ -34689,7 +34664,7 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
34689
34664
  /**
34690
34665
  * `Resize` module is used to resize the editor
34691
34666
  */
34692
- var Resize = /** @__PURE__ @class */ (function () {
34667
+ var Resize = /** @class */ (function () {
34693
34668
  function Resize(parent) {
34694
34669
  this.parent = parent;
34695
34670
  this.addEventListener();
@@ -34721,13 +34696,24 @@ var Resize = /** @__PURE__ @class */ (function () {
34721
34696
  this.iframeElement = this.parent.contentModule.getDocument().querySelectorAll('iframe');
34722
34697
  if (!isNullOrUndefined(this.iframeElement)) {
34723
34698
  this.iframeElement.forEach(function (iframe) {
34724
- EventHandler.add(iframe.contentDocument, 'mouseup', _this.stopResize, _this);
34699
+ EventHandler.add(iframe, 'load', _this.onIFrameLoad, _this);
34725
34700
  });
34726
34701
  }
34727
34702
  this.touchStartEvent = (Browser.info.name === 'msie') ? 'pointerdown' : 'touchstart';
34728
34703
  EventHandler.add(this.resizer, 'mousedown', this.resizeStart, this);
34729
34704
  EventHandler.add(this.resizer, this.touchStartEvent, this.resizeStart, this);
34730
34705
  };
34706
+ Resize.prototype.onIFrameLoad = function (e) {
34707
+ var iframe = e.target;
34708
+ if (iframe.nodeName === 'IFRAME' && iframe.contentDocument) {
34709
+ EventHandler.add(iframe.contentDocument, 'mouseup', this.stopResize, this);
34710
+ }
34711
+ };
34712
+ Resize.prototype.removeMouseUpEventListener = function (iframe) {
34713
+ if (iframe.contentDocument) {
34714
+ EventHandler.remove(iframe.contentDocument, 'mouseup', this.stopResize);
34715
+ }
34716
+ };
34731
34717
  Resize.prototype.resizeStart = function (e) {
34732
34718
  var _this = this;
34733
34719
  this.isResizing = false;
@@ -34834,7 +34820,7 @@ var Resize = /** @__PURE__ @class */ (function () {
34834
34820
  }
34835
34821
  if (!isNullOrUndefined(this.iframeElement)) {
34836
34822
  this.iframeElement.forEach(function (iframe) {
34837
- EventHandler.remove(iframe.contentDocument, 'mouseup', _this.stopResize);
34823
+ _this.removeMouseUpEventListener(iframe);
34838
34824
  });
34839
34825
  }
34840
34826
  if (this.resizer) {
@@ -34868,7 +34854,7 @@ var Resize = /** @__PURE__ @class */ (function () {
34868
34854
  /**
34869
34855
  * `FileManager` module is used to display the directories and images inside the editor.
34870
34856
  */
34871
- var FileManager = /** @__PURE__ @class */ (function () {
34857
+ var FileManager = /** @class */ (function () {
34872
34858
  function FileManager(parent, locator) {
34873
34859
  FileManager$1.Inject(ContextMenu, DetailsView, NavigationPane, Toolbar$2);
34874
34860
  this.parent = parent;
@@ -35125,7 +35111,7 @@ var FileManager = /** @__PURE__ @class */ (function () {
35125
35111
  /**
35126
35112
  * `FullScreen` module is used to maximize and minimize screen
35127
35113
  */
35128
- var FullScreen = /** @__PURE__ @class */ (function () {
35114
+ var FullScreen = /** @class */ (function () {
35129
35115
  function FullScreen(parent) {
35130
35116
  this.parent = parent;
35131
35117
  this.addEventListener();
@@ -35347,7 +35333,7 @@ function setAttributes(htmlAttributes, rte, isFrame, initial) {
35347
35333
  }
35348
35334
  }
35349
35335
 
35350
- var FormatPainter = /** @__PURE__ @class */ (function () {
35336
+ var FormatPainter = /** @class */ (function () {
35351
35337
  function FormatPainter(parent) {
35352
35338
  this.isSticky = false;
35353
35339
  this.isActive = false;
@@ -35506,7 +35492,7 @@ var FormatPainter = /** @__PURE__ @class */ (function () {
35506
35492
  return FormatPainter;
35507
35493
  }());
35508
35494
 
35509
- var EmojiPicker = /** @__PURE__ @class */ (function () {
35495
+ var EmojiPicker = /** @class */ (function () {
35510
35496
  function EmojiPicker(parent, serviceLocator) {
35511
35497
  this.noResultsFoundCount = 0;
35512
35498
  this.parent = parent;
@@ -36387,7 +36373,7 @@ var EmojiPicker = /** @__PURE__ @class */ (function () {
36387
36373
  /**
36388
36374
  * ImportExport module called when import and export content in RichTextEditor
36389
36375
  */
36390
- var ImportExport = /** @__PURE__ @class */ (function () {
36376
+ var ImportExport = /** @class */ (function () {
36391
36377
  function ImportExport(parent) {
36392
36378
  this.parent = parent;
36393
36379
  this.addEventListener();
@@ -36706,7 +36692,7 @@ var executeGroup = {
36706
36692
  * @hidden
36707
36693
  * @deprecated
36708
36694
  */
36709
- var ServiceLocator = /** @__PURE__ @class */ (function () {
36695
+ var ServiceLocator = /** @class */ (function () {
36710
36696
  function ServiceLocator() {
36711
36697
  this.services = {};
36712
36698
  }
@@ -36753,7 +36739,7 @@ var ServiceLocator = /** @__PURE__ @class */ (function () {
36753
36739
  * @hidden
36754
36740
  * @deprecated
36755
36741
  */
36756
- var RendererFactory = /** @__PURE__ @class */ (function () {
36742
+ var RendererFactory = /** @class */ (function () {
36757
36743
  function RendererFactory() {
36758
36744
  this.rendererMap = {};
36759
36745
  }
@@ -36796,29 +36782,29 @@ var RendererFactory = /** @__PURE__ @class */ (function () {
36796
36782
  return RendererFactory;
36797
36783
  }());
36798
36784
 
36799
- var __extends$5 = (undefined && undefined.__extends) || (function () {
36800
- var extendStatics = function (d, b) {
36801
- extendStatics = Object.setPrototypeOf ||
36802
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
36803
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
36804
- return extendStatics(d, b);
36805
- };
36806
- return function (d, b) {
36807
- extendStatics(d, b);
36808
- function __() { this.constructor = d; }
36809
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
36810
- };
36811
- })();
36812
- var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
36813
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
36814
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
36815
- 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;
36816
- return c > 3 && r && Object.defineProperty(target, key, r), r;
36817
- };
36785
+ var __extends$5 = (undefined && undefined.__extends) || (function () {
36786
+ var extendStatics = function (d, b) {
36787
+ extendStatics = Object.setPrototypeOf ||
36788
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
36789
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
36790
+ return extendStatics(d, b);
36791
+ };
36792
+ return function (d, b) {
36793
+ extendStatics(d, b);
36794
+ function __() { this.constructor = d; }
36795
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
36796
+ };
36797
+ })();
36798
+ var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
36799
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
36800
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
36801
+ 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;
36802
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
36803
+ };
36818
36804
  /**
36819
36805
  * Configures the toolbar settings of the RichTextEditor.
36820
36806
  */
36821
- var ToolbarSettings = /** @__PURE__ @class */ (function (_super) {
36807
+ var ToolbarSettings = /** @class */ (function (_super) {
36822
36808
  __extends$5(ToolbarSettings, _super);
36823
36809
  function ToolbarSettings() {
36824
36810
  return _super !== null && _super.apply(this, arguments) || this;
@@ -36843,7 +36829,7 @@ var ToolbarSettings = /** @__PURE__ @class */ (function (_super) {
36843
36829
  /**
36844
36830
  * Configures the importWord settings of the RichTextEditor.
36845
36831
  */
36846
- var ImportWord = /** @__PURE__ @class */ (function (_super) {
36832
+ var ImportWord = /** @class */ (function (_super) {
36847
36833
  __extends$5(ImportWord, _super);
36848
36834
  function ImportWord() {
36849
36835
  return _super !== null && _super.apply(this, arguments) || this;
@@ -36856,7 +36842,7 @@ var ImportWord = /** @__PURE__ @class */ (function (_super) {
36856
36842
  /**
36857
36843
  * Configures the export word of the RichTextEditor.
36858
36844
  */
36859
- var ExportWord = /** @__PURE__ @class */ (function (_super) {
36845
+ var ExportWord = /** @class */ (function (_super) {
36860
36846
  __extends$5(ExportWord, _super);
36861
36847
  function ExportWord() {
36862
36848
  return _super !== null && _super.apply(this, arguments) || this;
@@ -36875,7 +36861,7 @@ var ExportWord = /** @__PURE__ @class */ (function (_super) {
36875
36861
  /**
36876
36862
  * Configures the export settings of the RichTextEditor.
36877
36863
  */
36878
- var ExportPdf = /** @__PURE__ @class */ (function (_super) {
36864
+ var ExportPdf = /** @class */ (function (_super) {
36879
36865
  __extends$5(ExportPdf, _super);
36880
36866
  function ExportPdf() {
36881
36867
  return _super !== null && _super.apply(this, arguments) || this;
@@ -36894,7 +36880,7 @@ var ExportPdf = /** @__PURE__ @class */ (function (_super) {
36894
36880
  /**
36895
36881
  * Configures the image settings of the RichTextEditor.
36896
36882
  */
36897
- var ImageSettings = /** @__PURE__ @class */ (function (_super) {
36883
+ var ImageSettings = /** @class */ (function (_super) {
36898
36884
  __extends$5(ImageSettings, _super);
36899
36885
  function ImageSettings() {
36900
36886
  return _super !== null && _super.apply(this, arguments) || this;
@@ -36946,7 +36932,7 @@ var ImageSettings = /** @__PURE__ @class */ (function (_super) {
36946
36932
  /**
36947
36933
  * Configures the audio settings of the RichTextEditor.
36948
36934
  */
36949
- var AudioSettings = /** @__PURE__ @class */ (function (_super) {
36935
+ var AudioSettings = /** @class */ (function (_super) {
36950
36936
  __extends$5(AudioSettings, _super);
36951
36937
  function AudioSettings() {
36952
36938
  return _super !== null && _super.apply(this, arguments) || this;
@@ -36974,7 +36960,7 @@ var AudioSettings = /** @__PURE__ @class */ (function (_super) {
36974
36960
  /**
36975
36961
  * Configures the video settings of the RichTextEditor.
36976
36962
  */
36977
- var VideoSettings = /** @__PURE__ @class */ (function (_super) {
36963
+ var VideoSettings = /** @class */ (function (_super) {
36978
36964
  __extends$5(VideoSettings, _super);
36979
36965
  function VideoSettings() {
36980
36966
  return _super !== null && _super.apply(this, arguments) || this;
@@ -37026,7 +37012,7 @@ var VideoSettings = /** @__PURE__ @class */ (function (_super) {
37026
37012
  /**
37027
37013
  * Configures the file manager settings of the RichTextEditor.
37028
37014
  */
37029
- var FileManagerSettings = /** @__PURE__ @class */ (function (_super) {
37015
+ var FileManagerSettings = /** @class */ (function (_super) {
37030
37016
  __extends$5(FileManagerSettings, _super);
37031
37017
  function FileManagerSettings() {
37032
37018
  return _super !== null && _super.apply(this, arguments) || this;
@@ -37087,7 +37073,7 @@ var FileManagerSettings = /** @__PURE__ @class */ (function (_super) {
37087
37073
  ], FileManagerSettings.prototype, "view", void 0);
37088
37074
  return FileManagerSettings;
37089
37075
  }(ChildProperty));
37090
- var TableSettings = /** @__PURE__ @class */ (function (_super) {
37076
+ var TableSettings = /** @class */ (function (_super) {
37091
37077
  __extends$5(TableSettings, _super);
37092
37078
  function TableSettings() {
37093
37079
  return _super !== null && _super.apply(this, arguments) || this;
@@ -37112,7 +37098,7 @@ var TableSettings = /** @__PURE__ @class */ (function (_super) {
37112
37098
  /**
37113
37099
  * Configures the quick toolbar settings of the RichTextEditor.
37114
37100
  */
37115
- var QuickToolbarSettings = /** @__PURE__ @class */ (function (_super) {
37101
+ var QuickToolbarSettings = /** @class */ (function (_super) {
37116
37102
  __extends$5(QuickToolbarSettings, _super);
37117
37103
  function QuickToolbarSettings() {
37118
37104
  return _super !== null && _super.apply(this, arguments) || this;
@@ -37149,7 +37135,7 @@ var QuickToolbarSettings = /** @__PURE__ @class */ (function (_super) {
37149
37135
  /**
37150
37136
  * Configure the format painter settings of the Rich Text Editor.
37151
37137
  */
37152
- var FormatPainterSettings = /** @__PURE__ @class */ (function (_super) {
37138
+ var FormatPainterSettings = /** @class */ (function (_super) {
37153
37139
  __extends$5(FormatPainterSettings, _super);
37154
37140
  function FormatPainterSettings() {
37155
37141
  return _super !== null && _super.apply(this, arguments) || this;
@@ -37165,7 +37151,7 @@ var FormatPainterSettings = /** @__PURE__ @class */ (function (_super) {
37165
37151
  /**
37166
37152
  * Specifies the emoji picker options in Rich Text Editor with the following properties.
37167
37153
  */
37168
- var EmojiSettings = /** @__PURE__ @class */ (function (_super) {
37154
+ var EmojiSettings = /** @class */ (function (_super) {
37169
37155
  __extends$5(EmojiSettings, _super);
37170
37156
  function EmojiSettings() {
37171
37157
  return _super !== null && _super.apply(this, arguments) || this;
@@ -37181,7 +37167,7 @@ var EmojiSettings = /** @__PURE__ @class */ (function (_super) {
37181
37167
  /**
37182
37168
  * Configures the Paste Cleanup settings of the RichTextEditor.
37183
37169
  */
37184
- var PasteCleanupSettings = /** @__PURE__ @class */ (function (_super) {
37170
+ var PasteCleanupSettings = /** @class */ (function (_super) {
37185
37171
  __extends$5(PasteCleanupSettings, _super);
37186
37172
  function PasteCleanupSettings() {
37187
37173
  return _super !== null && _super.apply(this, arguments) || this;
@@ -37209,7 +37195,7 @@ var PasteCleanupSettings = /** @__PURE__ @class */ (function (_super) {
37209
37195
  /**
37210
37196
  * Configures the font family settings of the RichTextEditor.
37211
37197
  */
37212
- var FontFamily = /** @__PURE__ @class */ (function (_super) {
37198
+ var FontFamily = /** @class */ (function (_super) {
37213
37199
  __extends$5(FontFamily, _super);
37214
37200
  function FontFamily() {
37215
37201
  return _super !== null && _super.apply(this, arguments) || this;
@@ -37228,7 +37214,7 @@ var FontFamily = /** @__PURE__ @class */ (function (_super) {
37228
37214
  /**
37229
37215
  * Configures the font size settings of the RichTextEditor.
37230
37216
  */
37231
- var FontSize = /** @__PURE__ @class */ (function (_super) {
37217
+ var FontSize = /** @class */ (function (_super) {
37232
37218
  __extends$5(FontSize, _super);
37233
37219
  function FontSize() {
37234
37220
  return _super !== null && _super.apply(this, arguments) || this;
@@ -37247,7 +37233,7 @@ var FontSize = /** @__PURE__ @class */ (function (_super) {
37247
37233
  /**
37248
37234
  * Configures the format settings of the RichTextEditor.
37249
37235
  */
37250
- var Format = /** @__PURE__ @class */ (function (_super) {
37236
+ var Format = /** @class */ (function (_super) {
37251
37237
  __extends$5(Format, _super);
37252
37238
  function Format() {
37253
37239
  return _super !== null && _super.apply(this, arguments) || this;
@@ -37266,7 +37252,7 @@ var Format = /** @__PURE__ @class */ (function (_super) {
37266
37252
  /**
37267
37253
  * Configures the font Color settings of the RichTextEditor.
37268
37254
  */
37269
- var FontColor = /** @__PURE__ @class */ (function (_super) {
37255
+ var FontColor = /** @class */ (function (_super) {
37270
37256
  __extends$5(FontColor, _super);
37271
37257
  function FontColor() {
37272
37258
  return _super !== null && _super.apply(this, arguments) || this;
@@ -37291,7 +37277,7 @@ var FontColor = /** @__PURE__ @class */ (function (_super) {
37291
37277
  /**
37292
37278
  * Configures the background Color settings of the RichTextEditor.
37293
37279
  */
37294
- var BackgroundColor = /** @__PURE__ @class */ (function (_super) {
37280
+ var BackgroundColor = /** @class */ (function (_super) {
37295
37281
  __extends$5(BackgroundColor, _super);
37296
37282
  function BackgroundColor() {
37297
37283
  return _super !== null && _super.apply(this, arguments) || this;
@@ -37316,7 +37302,7 @@ var BackgroundColor = /** @__PURE__ @class */ (function (_super) {
37316
37302
  /**
37317
37303
  * Configures the numberFormatList settings of the RichTextEditor.
37318
37304
  */
37319
- var NumberFormatList = /** @__PURE__ @class */ (function (_super) {
37305
+ var NumberFormatList = /** @class */ (function (_super) {
37320
37306
  __extends$5(NumberFormatList, _super);
37321
37307
  function NumberFormatList() {
37322
37308
  return _super !== null && _super.apply(this, arguments) || this;
@@ -37329,7 +37315,7 @@ var NumberFormatList = /** @__PURE__ @class */ (function (_super) {
37329
37315
  /**
37330
37316
  * Configures the bulletFormatList settings of the RichTextEditor.
37331
37317
  */
37332
- var BulletFormatList = /** @__PURE__ @class */ (function (_super) {
37318
+ var BulletFormatList = /** @class */ (function (_super) {
37333
37319
  __extends$5(BulletFormatList, _super);
37334
37320
  function BulletFormatList() {
37335
37321
  return _super !== null && _super.apply(this, arguments) || this;
@@ -37340,29 +37326,29 @@ var BulletFormatList = /** @__PURE__ @class */ (function (_super) {
37340
37326
  return BulletFormatList;
37341
37327
  }(ChildProperty));
37342
37328
 
37343
- var __extends$6 = (undefined && undefined.__extends) || (function () {
37344
- var extendStatics = function (d, b) {
37345
- extendStatics = Object.setPrototypeOf ||
37346
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
37347
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
37348
- return extendStatics(d, b);
37349
- };
37350
- return function (d, b) {
37351
- extendStatics(d, b);
37352
- function __() { this.constructor = d; }
37353
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
37354
- };
37355
- })();
37356
- var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
37357
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
37358
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
37359
- 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;
37360
- return c > 3 && r && Object.defineProperty(target, key, r), r;
37361
- };
37329
+ var __extends$6 = (undefined && undefined.__extends) || (function () {
37330
+ var extendStatics = function (d, b) {
37331
+ extendStatics = Object.setPrototypeOf ||
37332
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
37333
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
37334
+ return extendStatics(d, b);
37335
+ };
37336
+ return function (d, b) {
37337
+ extendStatics(d, b);
37338
+ function __() { this.constructor = d; }
37339
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
37340
+ };
37341
+ })();
37342
+ var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
37343
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
37344
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
37345
+ 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;
37346
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
37347
+ };
37362
37348
  /**
37363
37349
  * Objects used for configuring the iframe resources properties.
37364
37350
  */
37365
- var Resources = /** @__PURE__ @class */ (function (_super) {
37351
+ var Resources = /** @class */ (function (_super) {
37366
37352
  __extends$6(Resources, _super);
37367
37353
  function Resources() {
37368
37354
  return _super !== null && _super.apply(this, arguments) || this;
@@ -37378,7 +37364,7 @@ var Resources = /** @__PURE__ @class */ (function (_super) {
37378
37364
  /**
37379
37365
  * Configures the iframe settings of the RTE.
37380
37366
  */
37381
- var IFrameSettings = /** @__PURE__ @class */ (function (_super) {
37367
+ var IFrameSettings = /** @class */ (function (_super) {
37382
37368
  __extends$6(IFrameSettings, _super);
37383
37369
  function IFrameSettings() {
37384
37370
  return _super !== null && _super.apply(this, arguments) || this;
@@ -37401,29 +37387,29 @@ var IFrameSettings = /** @__PURE__ @class */ (function (_super) {
37401
37387
  return IFrameSettings;
37402
37388
  }(ChildProperty));
37403
37389
 
37404
- var __extends$7 = (undefined && undefined.__extends) || (function () {
37405
- var extendStatics = function (d, b) {
37406
- extendStatics = Object.setPrototypeOf ||
37407
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
37408
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
37409
- return extendStatics(d, b);
37410
- };
37411
- return function (d, b) {
37412
- extendStatics(d, b);
37413
- function __() { this.constructor = d; }
37414
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
37415
- };
37416
- })();
37417
- var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
37418
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
37419
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
37420
- 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;
37421
- return c > 3 && r && Object.defineProperty(target, key, r), r;
37422
- };
37390
+ var __extends$7 = (undefined && undefined.__extends) || (function () {
37391
+ var extendStatics = function (d, b) {
37392
+ extendStatics = Object.setPrototypeOf ||
37393
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
37394
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
37395
+ return extendStatics(d, b);
37396
+ };
37397
+ return function (d, b) {
37398
+ extendStatics(d, b);
37399
+ function __() { this.constructor = d; }
37400
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
37401
+ };
37402
+ })();
37403
+ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
37404
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
37405
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
37406
+ 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;
37407
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
37408
+ };
37423
37409
  /**
37424
37410
  * Configures the inlineMode property of the RTE.
37425
37411
  */
37426
- var InlineMode = /** @__PURE__ @class */ (function (_super) {
37412
+ var InlineMode = /** @class */ (function (_super) {
37427
37413
  __extends$7(InlineMode, _super);
37428
37414
  function InlineMode() {
37429
37415
  return _super !== null && _super.apply(this, arguments) || this;
@@ -37440,7 +37426,7 @@ var InlineMode = /** @__PURE__ @class */ (function (_super) {
37440
37426
  /**
37441
37427
  * `EnterKey` module is used to handle enter key press actions.
37442
37428
  */
37443
- var EnterKeyAction = /** @__PURE__ @class */ (function () {
37429
+ var EnterKeyAction = /** @class */ (function () {
37444
37430
  function EnterKeyAction(parent) {
37445
37431
  this.parent = parent;
37446
37432
  this.addEventListener();
@@ -37588,7 +37574,7 @@ var EnterKeyAction = /** @__PURE__ @class */ (function () {
37588
37574
  if ((_this.parent.enterKey === 'P' && !shiftKey_1) || (_this.parent.enterKey === 'DIV' && !shiftKey_1) ||
37589
37575
  (_this.parent.shiftEnterKey === 'P' && shiftKey_1) ||
37590
37576
  (_this.parent.shiftEnterKey === 'DIV' && shiftKey_1)) {
37591
- if ((_this.range.startOffset === 1 && _this.parent.inputElement.childNodes.length === 1 && _this.parent.inputElement.childNodes[0].nodeName === 'TABLE') || (_this.parent.enterKey === 'BR' && shiftKey_1)) {
37577
+ if ((_this.range.startOffset === 1 && _this.parent.inputElement.childNodes.length === 1 && _this.parent.inputElement.childNodes[0].nodeName === 'TABLE')) {
37592
37578
  var newElem = _this.createInsertElement(shiftKey_1);
37593
37579
  newElem.appendChild(_this.parent.createElement('BR'));
37594
37580
  _this.parent.inputElement.appendChild(newElem);
@@ -37647,8 +37633,9 @@ var EnterKeyAction = /** @__PURE__ @class */ (function () {
37647
37633
  (_this.range.startContainer.nodeName === '#text' && !isNullOrUndefined(_this.range.startContainer.textContent[_this.range.startOffset]) &&
37648
37634
  _this.range.startContainer.textContent[_this.range.startOffset].includes('\u200B') && _this.range.startContainer.textContent[_this.range.startOffset] === '\u200B' &&
37649
37635
  _this.parent.inputElement.textContent[0] !== '\u200B'));
37636
+ var preventEnterkeyShiftKey = (_this.range.startContainer.nodeName === '#text' || _this.range.startContainer.nodeName === 'BR') && (_this.range.startOffset === 0 && _this.range.endOffset === 0) && _this.range.startContainer.parentElement === _this.parent.inputElement && _this.parent.enterKey === 'BR' && shiftKey_1;
37650
37637
  // eslint-disable-next-line max-len
37651
- if (!preventZeroWithSpace && !fireFoxEnterAtMiddle && ((_this.range.startOffset === 0 && _this.range.endOffset === 0) || isFocusedFirst) &&
37638
+ if (!preventEnterkeyShiftKey && !preventZeroWithSpace && !fireFoxEnterAtMiddle && ((_this.range.startOffset === 0 && _this.range.endOffset === 0) || isFocusedFirst) &&
37652
37639
  !(!isNullOrUndefined(_this.range.startContainer.previousSibling) &&
37653
37640
  (_this.range.startContainer.previousSibling.nodeName === 'IMG' || _this.range.startContainer.previousSibling.nodeName === 'BR'))) {
37654
37641
  var isNearBlockLengthZero = void 0;
@@ -37713,7 +37700,7 @@ var EnterKeyAction = /** @__PURE__ @class */ (function () {
37713
37700
  }
37714
37701
  _this.parent.formatter.editorManager.nodeSelection.setCursorPoint(_this.parent.contentModule.getDocument(), insertElem.nextElementSibling, 0);
37715
37702
  }
37716
- else if (nearBlockNode.textContent.length === 0 && !(!isNullOrUndefined(nearBlockNode.childNodes[0]) && nearBlockNode.childNodes[0].nodeName === 'IMG' ||
37703
+ else if (nearBlockNode !== _this.parent.inputElement && nearBlockNode.textContent.length === 0 && !(!isNullOrUndefined(nearBlockNode.childNodes[0]) && nearBlockNode.childNodes[0].nodeName === 'IMG' ||
37717
37704
  (nearBlockNode.querySelectorAll('video').length > 0) || (nearBlockNode.querySelectorAll('audio').length > 0) || (nearBlockNode.querySelectorAll('img').length > 0))) {
37718
37705
  if (!isNullOrUndefined(nearBlockNode.children[0]) && nearBlockNode.children[0].tagName !== 'BR') {
37719
37706
  var newElem = _this.parent.formatter.editorManager.nodeCutter.SplitNode(_this.range, nearBlockNode, false).cloneNode(true);
@@ -37769,6 +37756,36 @@ var EnterKeyAction = /** @__PURE__ @class */ (function () {
37769
37756
  _this.parent.videoModule.hideVideoQuickToolbar();
37770
37757
  }
37771
37758
  }
37759
+ else if (_this.parent.enterKey === 'BR' && shiftKey_1 && _this.range.startContainer.nodeType === Node.TEXT_NODE && _this.range.startContainer.parentElement && _this.range.startContainer.parentElement === _this.parent.inputElement) {
37760
+ var range = _this.range;
37761
+ var startContainer = range.startContainer;
37762
+ var startOffset = range.startOffset;
37763
+ var newElement = _this.parent.createElement(_this.parent.shiftEnterKey);
37764
+ if (startContainer.nodeType === Node.TEXT_NODE && range.endOffset !== 0 && range.startOffset !== 0) {
37765
+ var textNode = startContainer;
37766
+ if (startOffset < textNode.length) {
37767
+ var newTextNode = textNode.splitText(startOffset);
37768
+ newElement.appendChild(newTextNode);
37769
+ }
37770
+ else {
37771
+ newElement.innerHTML = '<br>';
37772
+ }
37773
+ textNode.parentNode.insertBefore(newElement, textNode.nextSibling);
37774
+ _this.parent.formatter.editorManager.nodeSelection.setCursorPoint(_this.parent.contentModule.getDocument(), newElement, 0);
37775
+ }
37776
+ else if (startOffset === 0 && range.endOffset === 0) {
37777
+ newElement.innerHTML = '<br>';
37778
+ if (range.endOffset === startContainer.textContent.length) {
37779
+ var brElement = _this.parent.createElement('br');
37780
+ startContainer.parentNode.insertBefore(brElement, startContainer);
37781
+ }
37782
+ startContainer.parentNode.insertBefore(newElement, startContainer);
37783
+ var cursorTarget = (range.endOffset === startContainer.textContent.length)
37784
+ ? newElement : newElement.nextSibling;
37785
+ startContainer.parentNode.insertBefore(newElement, startContainer);
37786
+ _this.parent.formatter.editorManager.nodeSelection.setCursorPoint(_this.parent.contentModule.getDocument(), cursorTarget, 0);
37787
+ }
37788
+ }
37772
37789
  else {
37773
37790
  var newElem = _this.parent.formatter.editorManager.nodeCutter.SplitNode(_this.range, nearBlockNode, true);
37774
37791
  if (!isNullOrUndefined(newElem.childNodes[0]) && newElem.childNodes[0].nodeName === '#text' &&
@@ -38133,36 +38150,36 @@ var EnterKeyAction = /** @__PURE__ @class */ (function () {
38133
38150
  return EnterKeyAction;
38134
38151
  }());
38135
38152
 
38136
- var __extends$8 = (undefined && undefined.__extends) || (function () {
38137
- var extendStatics = function (d, b) {
38138
- extendStatics = Object.setPrototypeOf ||
38139
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
38140
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
38141
- return extendStatics(d, b);
38142
- };
38143
- return function (d, b) {
38144
- extendStatics(d, b);
38145
- function __() { this.constructor = d; }
38146
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
38147
- };
38148
- })();
38149
- var __assign = (undefined && undefined.__assign) || function () {
38150
- __assign = Object.assign || function(t) {
38151
- for (var s, i = 1, n = arguments.length; i < n; i++) {
38152
- s = arguments[i];
38153
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
38154
- t[p] = s[p];
38155
- }
38156
- return t;
38157
- };
38158
- return __assign.apply(this, arguments);
38159
- };
38160
- var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
38161
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
38162
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
38163
- 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;
38164
- return c > 3 && r && Object.defineProperty(target, key, r), r;
38165
- };
38153
+ var __extends$8 = (undefined && undefined.__extends) || (function () {
38154
+ var extendStatics = function (d, b) {
38155
+ extendStatics = Object.setPrototypeOf ||
38156
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
38157
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
38158
+ return extendStatics(d, b);
38159
+ };
38160
+ return function (d, b) {
38161
+ extendStatics(d, b);
38162
+ function __() { this.constructor = d; }
38163
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
38164
+ };
38165
+ })();
38166
+ var __assign = (undefined && undefined.__assign) || function () {
38167
+ __assign = Object.assign || function(t) {
38168
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
38169
+ s = arguments[i];
38170
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
38171
+ t[p] = s[p];
38172
+ }
38173
+ return t;
38174
+ };
38175
+ return __assign.apply(this, arguments);
38176
+ };
38177
+ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
38178
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
38179
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
38180
+ 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;
38181
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
38182
+ };
38166
38183
  /**
38167
38184
  * Represents the Rich Text Editor component.
38168
38185
  * ```html
@@ -38173,7 +38190,7 @@ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators,
38173
38190
  * </script>
38174
38191
  * ```
38175
38192
  */
38176
- var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
38193
+ var RichTextEditor = /** @class */ (function (_super) {
38177
38194
  __extends$8(RichTextEditor, _super);
38178
38195
  function RichTextEditor(options, element) {
38179
38196
  var _this = _super.call(this, options, element) || this;
@@ -39663,7 +39680,7 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
39663
39680
  this.placeHolderWrapper.innerHTML = this.placeholder;
39664
39681
  if (this.inputElement.textContent.length === 0 && this.inputElement.childNodes.length < 2 && !isNullOrUndefined(this.inputElement.firstChild) && (this.inputElement.firstChild.nodeName === 'BR' ||
39665
39682
  ((this.inputElement.firstChild.nodeName === 'P' || this.inputElement.firstChild.nodeName === 'DIV') && !isNullOrUndefined(this.inputElement.firstChild.firstChild) &&
39666
- this.inputElement.firstChild.firstChild.nodeName === 'BR'))) {
39683
+ this.inputElement.firstChild.childNodes.length < 2 && this.inputElement.firstChild.firstChild.nodeName === 'BR'))) {
39667
39684
  this.placeHolderWrapper.classList.add('enabled');
39668
39685
  }
39669
39686
  else {
@@ -40399,7 +40416,6 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
40399
40416
  var value = this.getUpdatedValue();
40400
40417
  this.setProperties({ value: value });
40401
40418
  this.valueContainer.value = this.value;
40402
- this.notify(toolbarRefresh, { args: e, documentNode: document });
40403
40419
  this.isValueChangeBlurhandler = true;
40404
40420
  this.invokeChangeEvent();
40405
40421
  this.isFocusOut = true;