@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.
@@ -14795,6 +14795,9 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
14795
14795
  this.insertTableInList(range, node, closestParentNode, nodes[0], nodeCutter);
14796
14796
  return;
14797
14797
  }
14798
+ 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) {
14799
+ range.startContainer.innerHTML = '';
14800
+ }
14798
14801
  if (isExternal || (!isNullOrUndefined(node) && !isNullOrUndefined(node.classList) &&
14799
14802
  node.classList.contains('pasteContent'))) {
14800
14803
  this.pasteInsertHTML(nodes, node, range, nodeSelection, nodeCutter, docElement, isCollapsed, closestParentNode, editNode, enterAction);
@@ -27632,7 +27635,12 @@ var Image$1 = /** @__PURE__ @class */ (function () {
27632
27635
  animationSettings: { effect: 'None' },
27633
27636
  close: function (event) {
27634
27637
  if (_this.isImgUploaded) {
27635
- _this.uploadObj.remove();
27638
+ if (_this.dialogObj.element.querySelector('.e-file-abort-btn')) {
27639
+ _this.dialogObj.element.querySelector('.e-file-abort-btn').click();
27640
+ }
27641
+ else {
27642
+ _this.uploadObj.remove();
27643
+ }
27636
27644
  }
27637
27645
  _this.parent.isBlur = false;
27638
27646
  if (event && !isNullOrUndefined(event.event) && event.event.returnValue) {
@@ -29152,7 +29160,12 @@ var Audio = /** @__PURE__ @class */ (function () {
29152
29160
  animationSettings: { effect: 'None' },
29153
29161
  close: function (event) {
29154
29162
  if (_this.isAudioUploaded) {
29155
- _this.uploadObj.removing();
29163
+ if (_this.dialogObj.element.querySelector('.e-file-abort-btn')) {
29164
+ _this.dialogObj.element.querySelector('.e-file-abort-btn').click();
29165
+ }
29166
+ else {
29167
+ _this.uploadObj.remove();
29168
+ }
29156
29169
  }
29157
29170
  _this.parent.isBlur = false;
29158
29171
  if (event && !isNullOrUndefined(event.event) && event.event.returnValue) {
@@ -30512,7 +30525,12 @@ var Video = /** @__PURE__ @class */ (function () {
30512
30525
  animationSettings: { effect: 'None' },
30513
30526
  close: function (event) {
30514
30527
  if (_this.isVideoUploaded) {
30515
- _this.uploadObj.removing();
30528
+ if (_this.dialogObj.element.querySelector('.e-file-abort-btn')) {
30529
+ _this.dialogObj.element.querySelector('.e-file-abort-btn').click();
30530
+ }
30531
+ else {
30532
+ _this.uploadObj.remove();
30533
+ }
30516
30534
  }
30517
30535
  _this.parent.isBlur = false;
30518
30536
  if (event && !isNullOrUndefined(event.event) && event.event.returnValue) {