@syncfusion/ej2-richtexteditor 25.2.6 → 25.2.7

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.
@@ -14688,6 +14688,9 @@ class InsertHtml {
14688
14688
  this.insertTableInList(range, node, closestParentNode, nodes[0], nodeCutter);
14689
14689
  return;
14690
14690
  }
14691
+ if (isCursor && range.startContainer.textContent === '' && range.startContainer.nodeName !== 'BR' && enterAction !== 'BR' && node.nodeName !== '#text' && !isNullOrUndefined(node.children[0]) && !isNullOrUndefined(node.children[0].tagName) && node.children[0].tagName === 'IMG' && node.children.length === 1) {
14692
+ range.startContainer.innerHTML = '';
14693
+ }
14691
14694
  if (isExternal || (!isNullOrUndefined(node) && !isNullOrUndefined(node.classList) &&
14692
14695
  node.classList.contains('pasteContent'))) {
14693
14696
  this.pasteInsertHTML(nodes, node, range, nodeSelection, nodeCutter, docElement, isCollapsed, closestParentNode, editNode, enterAction);
@@ -27523,7 +27526,12 @@ class Image$1 {
27523
27526
  animationSettings: { effect: 'None' },
27524
27527
  close: (event) => {
27525
27528
  if (this.isImgUploaded) {
27526
- this.uploadObj.remove();
27529
+ if (this.dialogObj.element.querySelector('.e-file-abort-btn')) {
27530
+ this.dialogObj.element.querySelector('.e-file-abort-btn').click();
27531
+ }
27532
+ else {
27533
+ this.uploadObj.remove();
27534
+ }
27527
27535
  }
27528
27536
  this.parent.isBlur = false;
27529
27537
  if (event && !isNullOrUndefined(event.event) && event.event.returnValue) {
@@ -29030,7 +29038,12 @@ class Audio {
29030
29038
  animationSettings: { effect: 'None' },
29031
29039
  close: (event) => {
29032
29040
  if (this.isAudioUploaded) {
29033
- this.uploadObj.removing();
29041
+ if (this.dialogObj.element.querySelector('.e-file-abort-btn')) {
29042
+ this.dialogObj.element.querySelector('.e-file-abort-btn').click();
29043
+ }
29044
+ else {
29045
+ this.uploadObj.remove();
29046
+ }
29034
29047
  }
29035
29048
  this.parent.isBlur = false;
29036
29049
  if (event && !isNullOrUndefined(event.event) && event.event.returnValue) {
@@ -30381,7 +30394,12 @@ class Video {
30381
30394
  animationSettings: { effect: 'None' },
30382
30395
  close: (event) => {
30383
30396
  if (this.isVideoUploaded) {
30384
- this.uploadObj.removing();
30397
+ if (this.dialogObj.element.querySelector('.e-file-abort-btn')) {
30398
+ this.dialogObj.element.querySelector('.e-file-abort-btn').click();
30399
+ }
30400
+ else {
30401
+ this.uploadObj.remove();
30402
+ }
30385
30403
  }
30386
30404
  this.parent.isBlur = false;
30387
30405
  if (event && !isNullOrUndefined(event.event) && event.event.returnValue) {