@syncfusion/ej2-richtexteditor 24.1.41 → 24.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.
@@ -21283,8 +21283,11 @@ class PasteCleanup {
21283
21283
  tempDivElem.innerHTML = value;
21284
21284
  const isValueNotEmpty = tempDivElem.textContent !== '' || !isNullOrUndefined(tempDivElem.querySelector('img')) ||
21285
21285
  !isNullOrUndefined(tempDivElem.querySelector('table'));
21286
- this.parent.trigger(cleanupResizeElements, { value: value }, (args) => {
21287
- value = args.value;
21286
+ this.parent.notify(cleanupResizeElements, {
21287
+ value: value,
21288
+ callBack: (currentValue) => {
21289
+ value = currentValue;
21290
+ }
21288
21291
  });
21289
21292
  if (this.parent.pasteCleanupSettings.prompt) {
21290
21293
  if (isValueNotEmpty) {
@@ -34216,7 +34219,7 @@ let RichTextEditor = class RichTextEditor extends Component {
34216
34219
  }
34217
34220
  cleanupResizeElements(args) {
34218
34221
  const value = this.removeResizeElement(args.value);
34219
- return value;
34222
+ args.callBack(value);
34220
34223
  }
34221
34224
  removeResizeElement(value) {
34222
34225
  let valueElementWrapper = document.createElement("div");