@syncfusion/ej2-richtexteditor 20.2.46 → 20.2.49

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.
@@ -12562,7 +12562,7 @@ class InsertHtml {
12562
12562
  static getNodeCollection(range, nodeSelection, node) {
12563
12563
  let nodes = [];
12564
12564
  if (range.startOffset === range.endOffset && range.startContainer === range.endContainer &&
12565
- range.startContainer.nodeName != 'BR' &&
12565
+ range.startContainer.nodeName != 'BR' && range.startContainer.childNodes.length > 0 &&
12566
12566
  (range.startContainer.nodeName === 'TD' || (range.startContainer.nodeType !== 3 &&
12567
12567
  node.classList && node.classList.contains('pasteContent')))) {
12568
12568
  nodes.push(range.startContainer.childNodes[range.endOffset]);
@@ -12615,7 +12615,7 @@ class InsertHtml {
12615
12615
  node.firstElementChild.insertAdjacentElement('afterend', liNode);
12616
12616
  }
12617
12617
  }
12618
- if (blockNode.nodeName === 'TD' || blockNode.nodeName === 'TH') {
12618
+ if (blockNode.nodeName === 'TD' || blockNode.nodeName === 'TH' || blockNode.nodeName === 'TR') {
12619
12619
  const tempSpan = createElement('span', { className: 'tempSpan' });
12620
12620
  range.insertNode(tempSpan);
12621
12621
  tempSpan.parentNode.replaceChild(node, tempSpan);
@@ -25349,6 +25349,7 @@ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators,
25349
25349
  let RichTextEditor = class RichTextEditor extends Component {
25350
25350
  constructor(options, element) {
25351
25351
  super(options, element);
25352
+ this.needsID = true;
25352
25353
  }
25353
25354
  /**
25354
25355
  * To provide the array of modules needed for component rendering
@@ -25433,7 +25434,6 @@ let RichTextEditor = class RichTextEditor extends Component {
25433
25434
  this.isFocusOut = false;
25434
25435
  this.isRTE = false;
25435
25436
  this.isBlur = true;
25436
- this.needsID = true;
25437
25437
  this.defaultResetValue = null;
25438
25438
  this.isResizeInitialized = false;
25439
25439
  }
@@ -27155,6 +27155,7 @@ let RichTextEditor = class RichTextEditor extends Component {
27155
27155
  }
27156
27156
  this.setProperties({ value: this.getUpdatedValue() }, true);
27157
27157
  this.valueContainer.value = this.value;
27158
+ this.isValueChangeBlurhandler = false;
27158
27159
  this.invokeChangeEvent();
27159
27160
  }
27160
27161
  updateIntervalValue() {
@@ -27210,6 +27211,7 @@ let RichTextEditor = class RichTextEditor extends Component {
27210
27211
  const value = this.getUpdatedValue();
27211
27212
  this.setProperties({ value: value });
27212
27213
  this.notify(toolbarRefresh, { args: e, documentNode: document });
27214
+ this.isValueChangeBlurhandler = true;
27213
27215
  this.invokeChangeEvent();
27214
27216
  this.isFocusOut = true;
27215
27217
  this.isBlur = false;
@@ -27257,7 +27259,8 @@ let RichTextEditor = class RichTextEditor extends Component {
27257
27259
  currentValue = this.value;
27258
27260
  }
27259
27261
  const eventArgs = {
27260
- value: currentValue
27262
+ value: currentValue,
27263
+ isInteracted: this.isValueChangeBlurhandler
27261
27264
  };
27262
27265
  if (this.value !== this.cloneValue) {
27263
27266
  this.trigger('change', eventArgs);