@syncfusion/ej2-richtexteditor 23.1.40 → 23.1.43

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.
@@ -3358,10 +3358,10 @@ var ToolbarRenderer = /** @__PURE__ @class */ (function () {
3358
3358
  if (!this.parent.enabled) {
3359
3359
  return;
3360
3360
  }
3361
+ this.parent.trigger('toolbarClick', args);
3361
3362
  if (!this.parent.readonly || isNullOrUndefined(args.item)) {
3362
3363
  this.parent.notify(toolbarClick, args);
3363
3364
  }
3364
- this.parent.trigger('toolbarClick', args);
3365
3365
  };
3366
3366
  ToolbarRenderer.prototype.dropDownSelected = function (args) {
3367
3367
  this.parent.notify(dropDownSelect, args);
@@ -3550,6 +3550,7 @@ var ToolbarRenderer = /** @__PURE__ @class */ (function () {
3550
3550
  args.cancel = true;
3551
3551
  return;
3552
3552
  }
3553
+ proxy.parent.notify(selectionRestore, {});
3553
3554
  var element = (args.event) ? args.event.target : null;
3554
3555
  proxy.currentElement = dropDown.element;
3555
3556
  proxy.currentDropdown = dropDown;
@@ -3576,6 +3577,12 @@ var ToolbarRenderer = /** @__PURE__ @class */ (function () {
3576
3577
  }
3577
3578
  args.element.tabIndex = -1;
3578
3579
  dropDown.element.removeAttribute('type');
3580
+ dropDown.element.onmousedown = function () {
3581
+ proxy.parent.notify(selectionSave, {});
3582
+ };
3583
+ dropDown.element.onkeydown = function () {
3584
+ proxy.parent.notify(selectionSave, {});
3585
+ };
3579
3586
  return dropDown;
3580
3587
  };
3581
3588
  // eslint-disable-next-line
@@ -4814,6 +4821,7 @@ var ToolbarAction = /** @__PURE__ @class */ (function () {
4814
4821
  */
4815
4822
  var Toolbar$2 = /** @__PURE__ @class */ (function () {
4816
4823
  function Toolbar$$1(parent, serviceLocator) {
4824
+ this.tools = {};
4817
4825
  this.parent = parent;
4818
4826
  this.isToolbar = false;
4819
4827
  this.locator = serviceLocator;
@@ -7894,20 +7902,20 @@ var Formatter = /** @__PURE__ @class */ (function () {
7894
7902
  }
7895
7903
  if (isNullOrUndefined(args)) {
7896
7904
  var action_1 = event.action;
7905
+ args = {};
7906
+ var items = {
7907
+ originalEvent: event, cancel: false,
7908
+ requestType: action_1 || (event.key + 'Key'),
7909
+ itemCollection: value
7910
+ };
7911
+ extend(args, args, items, true);
7897
7912
  if (action_1 !== 'tab' && action_1 !== 'enter' && action_1 !== 'space' && action_1 !== 'escape') {
7898
- args = {};
7899
7913
  if (self.editorMode === 'Markdown' && action_1 === 'insert-table') {
7900
7914
  value = {
7901
7915
  'headingText': self.localeObj.getConstant('TableHeadingText'),
7902
7916
  'colText': self.localeObj.getConstant('TableColText')
7903
7917
  };
7904
7918
  }
7905
- var items = {
7906
- originalEvent: event, cancel: false,
7907
- requestType: action_1 || (event.key + 'Key'),
7908
- itemCollection: value
7909
- };
7910
- extend(args, args, items, true);
7911
7919
  self.trigger(actionBegin, args, function (actionBeginArgs) {
7912
7920
  if (actionBeginArgs.cancel) {
7913
7921
  if (action_1 === 'paste' || action_1 === 'cut' || action_1 === 'copy') {
@@ -7916,20 +7924,22 @@ var Formatter = /** @__PURE__ @class */ (function () {
7916
7924
  }
7917
7925
  });
7918
7926
  }
7919
- var isTableModule = isNullOrUndefined(self.tableModule) ? true : self.tableModule ?
7920
- self.tableModule.ensureInsideTableList : false;
7921
- if ((event.which === 9 && isTableModule) || event.which !== 9) {
7922
- if (event.which === 13 && self.editorMode === 'HTML') {
7923
- value = {
7924
- 'enterAction': self.enterKey
7925
- };
7927
+ if (!args.cancel) {
7928
+ var isTableModule = isNullOrUndefined(self.tableModule) ? true : self.tableModule ?
7929
+ self.tableModule.ensureInsideTableList : false;
7930
+ if ((event.which === 9 && isTableModule) || event.which !== 9) {
7931
+ if (event.which === 13 && self.editorMode === 'HTML') {
7932
+ value = {
7933
+ 'enterAction': self.enterKey
7934
+ };
7935
+ }
7936
+ this.editorManager.observer.notify((event.type === 'keydown' ? KEY_DOWN : KEY_UP), {
7937
+ event: event,
7938
+ callBack: this.onSuccess.bind(this, self),
7939
+ value: value,
7940
+ enterAction: self.enterKey
7941
+ });
7926
7942
  }
7927
- this.editorManager.observer.notify((event.type === 'keydown' ? KEY_DOWN : KEY_UP), {
7928
- event: event,
7929
- callBack: this.onSuccess.bind(this, self),
7930
- value: value,
7931
- enterAction: self.enterKey
7932
- });
7933
7943
  }
7934
7944
  }
7935
7945
  else if (!isNullOrUndefined(args) && args.item.command && args.item.subCommand && ((args.item.command !== args.item.subCommand
@@ -12659,7 +12669,7 @@ var NodeCutter = /** @__PURE__ @class */ (function () {
12659
12669
  node = parent_1.childNodes[index];
12660
12670
  fragment = this.spliceEmptyNode(fragment, false);
12661
12671
  if (fragment && fragment.childNodes.length > 0) {
12662
- var isEmpty = (fragment.childNodes.length === 1 && fragment.childNodes[0].nodeName !== 'IMG'
12672
+ var isEmpty = (fragment.childNodes.length === 1 && fragment.childNodes[0].nodeName !== 'IMG' && !(fragment.querySelectorAll('img').length > 0)
12663
12673
  && this.isRteElm(fragment) && fragment.textContent === '') ? true : false;
12664
12674
  if (!isEmpty) {
12665
12675
  if (node) {
@@ -13529,6 +13539,11 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
13529
13539
  : lastSelectionNode.previousSibling) : lastSelectionNode;
13530
13540
  while (!isNullOrUndefined(lastSelectionNode) && lastSelectionNode.nodeName !== '#text' && lastSelectionNode.nodeName !== 'IMG' &&
13531
13541
  lastSelectionNode.nodeName !== 'BR' && lastSelectionNode.nodeName !== 'HR') {
13542
+ if (!isNullOrUndefined(lastSelectionNode.lastChild) && (lastSelectionNode.lastChild.nodeName === 'P' &&
13543
+ lastSelectionNode.lastChild.innerHTML === '')) {
13544
+ var lineBreak = createElement('br');
13545
+ lastSelectionNode.lastChild.appendChild(lineBreak);
13546
+ }
13532
13547
  lastSelectionNode = lastSelectionNode.lastChild;
13533
13548
  }
13534
13549
  lastSelectionNode = isNullOrUndefined(lastSelectionNode) ? node : lastSelectionNode;
@@ -13996,7 +14011,7 @@ var LinkCommand = /** @__PURE__ @class */ (function () {
13996
14011
  for (var i = 0; i < blockNodes.length; i++) {
13997
14012
  var linkNode = blockNodes[i].querySelectorAll('a');
13998
14013
  for (var j = 0; j < linkNode.length; j++) {
13999
- if (document.getSelection().containsNode(linkNode[j], true)) {
14014
+ if (this.parent.currentDocument.getSelection().containsNode(linkNode[j], true)) {
14000
14015
  linkNode[j].outerHTML = linkNode[j].innerHTML;
14001
14016
  }
14002
14017
  }
@@ -17855,8 +17870,10 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
17855
17870
  else {
17856
17871
  continue;
17857
17872
  }
17858
- isCroppedImage = this.extractCropValue('cropl', fullImg[i]) > 0 &&
17859
- this.extractCropValue('cropt', fullImg[i]) > 0 ? true : false;
17873
+ isCroppedImage = ((this.extractCropValue('cropl', fullImg[i]) > 0 &&
17874
+ this.extractCropValue('cropt', fullImg[i]) > 0) ||
17875
+ this.extractCropValue('cropr', fullImg[i]) > 0 ||
17876
+ this.extractCropValue('cropb', fullImg[i])) ? true : false;
17860
17877
  if (isCroppedImage) {
17861
17878
  goalWidth = this.extractCropValue('wgoal', fullImg[i]);
17862
17879
  goalHeight = this.extractCropValue('hgoal', fullImg[i]);
@@ -17883,7 +17900,7 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
17883
17900
  };
17884
17901
  MsWordPaste.prototype.extractCropValue = function (crop, rtfData) {
17885
17902
  // eslint-disable-next-line security/detect-non-literal-regexp
17886
- var result = new RegExp('\\\\pic' + crop + '(\\-?\\d+)\\\\').exec(rtfData.replace('\r\n\\', '\\'))[1];
17903
+ var result = new RegExp('\\\\pic' + crop + '(\\-?\\d+)\\\\').exec(rtfData.replace(/\r\n\\/g, '\\').replace(/\n/g, '\\'))[1];
17887
17904
  return parseInt(result, 10);
17888
17905
  };
17889
17906
  MsWordPaste.prototype.removeClassName = function (elm) {
@@ -17922,6 +17939,10 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
17922
17939
  return removableElement;
17923
17940
  };
17924
17941
  MsWordPaste.prototype.removeUnwantedElements = function (elm) {
17942
+ var styleElm = elm.querySelector('style');
17943
+ if (!isNullOrUndefined(styleElm)) {
17944
+ detach(styleElm);
17945
+ }
17925
17946
  var innerElement = elm.innerHTML;
17926
17947
  for (var i = 0; i < this.removableElements.length; i++) {
17927
17948
  // eslint-disable-next-line security/detect-non-literal-regexp
@@ -18219,10 +18240,8 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
18219
18240
  }
18220
18241
  if (!isNullOrUndefined(listNodes[i].getAttribute('style'))) {
18221
18242
  listNodes[i].setAttribute('style', listNodes[i].getAttribute('style').replace('text-align:start;', ''));
18222
- if (listNodes[i].style.textAlign !== '') {
18223
- listNodes[i].setAttribute('style', 'text-align:' + listNodes[i].style.textAlign);
18224
- currentListStyle = listNodes[i].getAttribute('style');
18225
- }
18243
+ listNodes[i].style.textIndent = '';
18244
+ currentListStyle = listNodes[i].getAttribute('style');
18226
18245
  }
18227
18246
  collection.push({
18228
18247
  listType: type, content: tempNode, nestedLevel: level, class: currentClassName,
@@ -18430,8 +18449,7 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
18430
18449
  }
18431
18450
  }
18432
18451
  prevList.setAttribute('class', collection[index].class);
18433
- var currentStyle = prevList.getAttribute('style');
18434
- prevList.setAttribute('style', (!isNullOrUndefined(currentStyle) ? currentStyle : ''));
18452
+ prevList.setAttribute('style', (!isNullOrUndefined(collection[index].listStyle) ? collection[index].listStyle : ''));
18435
18453
  pLevel = collection[index].nestedLevel;
18436
18454
  listCount++;
18437
18455
  if (!isNullOrUndefined(collection[index].start)) {
@@ -18879,7 +18897,7 @@ var EmojiPickerAction = /** @__PURE__ @class */ (function () {
18879
18897
  };
18880
18898
  EmojiPickerAction.prototype.emojiInsert = function (args) {
18881
18899
  var node = document.createTextNode(args.value);
18882
- var selection = window.getSelection();
18900
+ var selection = this.parent.currentDocument.getSelection();
18883
18901
  var range = selection.getRangeAt(0);
18884
18902
  var cursorPos = range.startOffset;
18885
18903
  for (var i = cursorPos - 1; i >= cursorPos - 15; i--) {
@@ -19251,10 +19269,15 @@ var FormatPainterActions = /** @__PURE__ @class */ (function () {
19251
19269
  return this.INVALID_TAGS.indexOf(node.tagName) > -1;
19252
19270
  };
19253
19271
  FormatPainterActions.prototype.findCurrentContext = function (parentElem) {
19254
- if (closest(parentElem, 'p')) {
19272
+ var closestParagraph = closest(parentElem, 'p');
19273
+ var closestList = closest(parentElem, 'li');
19274
+ if (closestParagraph && !closestList) {
19255
19275
  return 'Text';
19256
19276
  }
19257
19277
  else if (closest(parentElem, 'li')) {
19278
+ if (!isNullOrUndefined(closestParagraph) && !isNullOrUndefined(closestList) && closestParagraph.textContent.trim() !== closestList.textContent.trim()) {
19279
+ return 'Text';
19280
+ }
19258
19281
  return 'List';
19259
19282
  }
19260
19283
  else if (closest(parentElem, 'td') || closest(parentElem, 'tr') || closest(parentElem, 'th')) {
@@ -19312,7 +19335,7 @@ var FormatPainterActions = /** @__PURE__ @class */ (function () {
19312
19335
  var cloneElementNode = isNullOrUndefined(cloneListParentNode) ? element : element.firstChild;
19313
19336
  for (var index = 0; index < nodes.length; index++) {
19314
19337
  if (this.INVALID_TAGS.indexOf(nodes[index].nodeName) > -1 ||
19315
- nodes[index].querySelectorAll('a,img,audio,video,iframe').length > 0) {
19338
+ nodes[index].querySelectorAll('img,audio,video,iframe').length > 0) {
19316
19339
  continue;
19317
19340
  }
19318
19341
  var cloneParentNode = cloneElementNode.cloneNode(false);
@@ -20332,7 +20355,7 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
20332
20355
  detach(currentChildNode[i]);
20333
20356
  i--;
20334
20357
  }
20335
- if (focusNode.textContent.replace(regEx, '') === currentChildNode[i].textContent) {
20358
+ if (!isNullOrUndefined(currentChildNode[i]) && focusNode.textContent.replace(regEx, '') === currentChildNode[i].textContent) {
20336
20359
  pointer = focusNode.textContent.length > 1 ?
20337
20360
  (focusNode.textContent === currentChildNode[i].textContent ? pointer :
20338
20361
  pointer - (focusNode.textContent.length - focusNode.textContent.replace(regEx, '').length)) :
@@ -22914,7 +22937,7 @@ var EmojiPicker = /** @__PURE__ @class */ (function () {
22914
22937
  }
22915
22938
  else if (isNullOrUndefined(args.x) && isNullOrUndefined(args.y) && !this.parent.inlineMode.enable && isNullOrUndefined(this.parent.quickToolbarSettings.text)) {
22916
22939
  target = this.parent.inputElement;
22917
- if (window.getSelection().rangeCount > 0) {
22940
+ if (this.parent.contentModule.getDocument().getSelection().rangeCount > 0) {
22918
22941
  var coordinates = this.getCoordinates();
22919
22942
  xValue = coordinates.left;
22920
22943
  yValue = coordinates.top;
@@ -22922,7 +22945,7 @@ var EmojiPicker = /** @__PURE__ @class */ (function () {
22922
22945
  }
22923
22946
  else if (isNullOrUndefined(args.x) && isNullOrUndefined(args.y) && (this.parent.inlineMode.enable || !isNullOrUndefined(this.parent.quickToolbarSettings.text))) {
22924
22947
  this.parent.notify(hidePopup, {});
22925
- if (window.getSelection().rangeCount > 0) {
22948
+ if (this.parent.contentModule.getDocument().getSelection().rangeCount > 0) {
22926
22949
  var coordinates = this.getCoordinates();
22927
22950
  xValue = coordinates.left;
22928
22951
  yValue = coordinates.top;
@@ -23511,7 +23534,7 @@ var EmojiPicker = /** @__PURE__ @class */ (function () {
23511
23534
  };
23512
23535
  EmojiPicker.prototype.onkeyPress = function (e) {
23513
23536
  var originalEvent = e.args;
23514
- var selection = window.getSelection();
23537
+ var selection = this.parent.contentModule.getDocument().getSelection();
23515
23538
  if (selection.rangeCount <= 0) {
23516
23539
  return;
23517
23540
  }
@@ -23541,7 +23564,10 @@ var EmojiPicker = /** @__PURE__ @class */ (function () {
23541
23564
  };
23542
23565
  EmojiPicker.prototype.onkeyUp = function (e) {
23543
23566
  var originalEvent = e.args;
23544
- var selection = window.getSelection();
23567
+ var selection = this.parent.contentModule.getDocument().getSelection();
23568
+ if (selection.rangeCount <= 0) {
23569
+ return;
23570
+ }
23545
23571
  var range = selection.getRangeAt(0);
23546
23572
  var cursorPos = range.startOffset;
23547
23573
  // eslint-disable-next-line
@@ -23564,7 +23590,7 @@ var EmojiPicker = /** @__PURE__ @class */ (function () {
23564
23590
  };
23565
23591
  EmojiPicker.prototype.getCoordinates = function () {
23566
23592
  var coordinates;
23567
- var selection = window.getSelection();
23593
+ var selection = this.parent.contentModule.getDocument().getSelection();
23568
23594
  var range = selection.getRangeAt(0);
23569
23595
  var firstChild;
23570
23596
  if (range.startContainer.nodeName === 'P' || range.startContainer.nodeName === 'DIV') {
@@ -31724,7 +31750,7 @@ var EnterKeyAction = /** @__PURE__ @class */ (function () {
31724
31750
  }
31725
31751
  _this.parent.formatter.editorManager.nodeSelection.setCursorPoint(_this.parent.contentModule.getDocument(), insertElem.nextElementSibling, 0);
31726
31752
  }
31727
- else if (nearBlockNode.textContent.length === 0 && !(!isNullOrUndefined(nearBlockNode.childNodes[0]) && nearBlockNode.childNodes[0].nodeName === 'IMG')) {
31753
+ else if (nearBlockNode.textContent.length === 0 && !(!isNullOrUndefined(nearBlockNode.childNodes[0]) && nearBlockNode.childNodes[0].nodeName === 'IMG') && !(nearBlockNode.querySelectorAll('img').length > 0)) {
31728
31754
  if (!isNullOrUndefined(nearBlockNode.children[0]) && nearBlockNode.children[0].tagName !== 'BR') {
31729
31755
  var newElem = _this.parent.formatter.editorManager.nodeCutter.SplitNode(_this.range, nearBlockNode, false).cloneNode(true);
31730
31756
  _this.parent.formatter.editorManager.domNode.insertAfter(newElem, nearBlockNode);
@@ -32690,13 +32716,14 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
32690
32716
  this.formatter.editorManager.nodeSelection.setCursorPoint(this.contentModule.getDocument(), range.startContainer, range.startOffset);
32691
32717
  }
32692
32718
  }
32693
- var notFormatPainterCopy = !isNullOrUndefined(e.action) && e.action !== 'format-copy';
32694
- if (this.formatter.getUndoRedoStack().length === 0 && notFormatPainterCopy) {
32719
+ var notFormatPainterCopy = isNullOrUndefined(e.action) ? true : (e.action !== 'format-copy' ? true : false);
32720
+ if (this.formatter.getUndoRedoStack().length === 0 && notFormatPainterCopy &&
32721
+ !(e.altKey || e.shiftKey || (e.altKey && e.shiftKey && e.which === 67))) {
32695
32722
  this.formatter.saveData();
32696
32723
  }
32697
32724
  if (e.action !== 'insert-link' &&
32698
32725
  e.action !== 'format-copy' && e.action !== 'format-paste' &&
32699
- (!e.target || (e.target.classList.contains('e-mention') && e.code !== 'Tab')) &&
32726
+ (!e.target || !(e.target.classList.contains('e-mention') && e.code === 'Tab')) &&
32700
32727
  (e.action && e.action !== 'paste' && e.action !== 'space'
32701
32728
  || e.which === 9 || (e.code === 'Backspace' && e.which === 8))) {
32702
32729
  var FormatPainterEscapeAction = false;
@@ -33811,8 +33838,8 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
33811
33838
  }
33812
33839
  else {
33813
33840
  if (target === 'windowResize' && heightPercent) {
33814
- // cntEle hide the borderBottom of RichTextEditor. so removed the 2px of cntEle height.
33815
- heightValue = parseInt(heightValue) - 2 + 'px';
33841
+ //cntEle hide the borderBottom of RichTextEditor. so removed the 2px of cntEle height.
33842
+ heightValue = parseInt(heightValue, 10) - 2 + 'px';
33816
33843
  }
33817
33844
  setStyleAttribute(cntEle, { height: heightValue, marginTop: topValue + 'px' });
33818
33845
  }
@@ -33836,7 +33863,7 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
33836
33863
  * @public
33837
33864
  */
33838
33865
  RichTextEditor.prototype.getHtml = function () {
33839
- var htmlValue = this.contentModule.getEditPanel().innerHTML;
33866
+ var htmlValue = this.removeResizeElement(this.contentModule.getEditPanel().innerHTML);
33840
33867
  return (this.enableXhtml && (htmlValue === '<p><br></p>' || htmlValue === '<div><br></div>' ||
33841
33868
  htmlValue === '<br>') ? null : this.serializeValue(htmlValue));
33842
33869
  };
@@ -33847,7 +33874,7 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
33847
33874
  * @public
33848
33875
  */
33849
33876
  RichTextEditor.prototype.getXhtml = function () {
33850
- var currentValue = this.value;
33877
+ var currentValue = this.removeResizeElement(this.value);
33851
33878
  if (!isNullOrUndefined(currentValue) && this.enableXhtml) {
33852
33879
  currentValue = this.htmlEditorModule.xhtmlValidation.selfEncloseValidation(currentValue);
33853
33880
  }
@@ -34088,14 +34115,11 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
34088
34115
  };
34089
34116
  RichTextEditor.prototype.getUpdatedValue = function () {
34090
34117
  var value;
34091
- if (!isNullOrUndefined(this.tableModule)) {
34092
- this.tableModule.removeResizeElement();
34093
- }
34094
34118
  var getTextArea = this.element.querySelector('.e-rte-srctextarea');
34095
34119
  if (this.editorMode === 'HTML') {
34096
34120
  value = (this.inputElement.innerHTML === '<p><br></p>' || this.inputElement.innerHTML === '<div><br></div>' ||
34097
34121
  this.inputElement.innerHTML === '<br>') ? null : this.enableHtmlEncode ?
34098
- this.encode(decode(this.inputElement.innerHTML)) : this.inputElement.innerHTML;
34122
+ this.encode(decode(this.removeResizeElement(this.inputElement.innerHTML))) : this.inputElement.innerHTML;
34099
34123
  if (getTextArea && getTextArea.style.display === 'block') {
34100
34124
  value = getTextArea.value;
34101
34125
  }
@@ -34104,6 +34128,9 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
34104
34128
  value = this.inputElement.value === '' ? null :
34105
34129
  this.inputElement.value;
34106
34130
  }
34131
+ if (value != null && !this.enableHtmlEncode) {
34132
+ value = this.removeResizeElement(value);
34133
+ }
34107
34134
  return value;
34108
34135
  };
34109
34136
  RichTextEditor.prototype.updateValueOnIdle = function () {
@@ -34119,6 +34146,17 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
34119
34146
  clearTimeout(this.idleInterval);
34120
34147
  this.idleInterval = setTimeout(this.updateValueOnIdle.bind(this), 0);
34121
34148
  };
34149
+ RichTextEditor.prototype.removeResizeElement = function (value) {
34150
+ var valueElementWrapper = document.createElement("div");
34151
+ valueElementWrapper.innerHTML = value;
34152
+ var item = valueElementWrapper.querySelectorAll('.e-column-resize, .e-row-resize, .e-table-box, .e-table-rhelper, .e-img-resize');
34153
+ if (item.length > 0) {
34154
+ for (var i = 0; i < item.length; i++) {
34155
+ detach(item[i]);
34156
+ }
34157
+ }
34158
+ return valueElementWrapper.innerHTML;
34159
+ };
34122
34160
  RichTextEditor.prototype.updateStatus = function (e) {
34123
34161
  if (!isNullOrUndefined(e.html) || !isNullOrUndefined(e.markdown)) {
34124
34162
  var status_1 = this.formatter.editorManager.undoRedoManager.getUndoStatus();
@@ -34167,6 +34205,7 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
34167
34205
  this.notify(focusChange, {});
34168
34206
  var value = this.getUpdatedValue();
34169
34207
  this.setProperties({ value: value });
34208
+ this.valueContainer.value = this.value;
34170
34209
  this.notify(toolbarRefresh, { args: e, documentNode: document });
34171
34210
  this.isValueChangeBlurhandler = true;
34172
34211
  this.invokeChangeEvent();