@syncfusion/ej2-richtexteditor 28.1.37 → 28.1.38

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.
@@ -28230,6 +28230,7 @@ var SelectionCommands = /** @__PURE__ @class */ (function () {
28230
28230
  }
28231
28231
  else {
28232
28232
  InsertMethods.unwrap(cursorFormat);
28233
+ domSelection.setCursorPoint(docElement, cursorNode, 0);
28233
28234
  }
28234
28235
  }
28235
28236
  else {
@@ -33596,6 +33597,7 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
33596
33597
  var isValueNotEmpty = tempDivElem.textContent !== '' || !isNullOrUndefined(tempDivElem.querySelector('img')) ||
33597
33598
  !isNullOrUndefined(tempDivElem.querySelector('table'));
33598
33599
  var imgElements = tempDivElem.querySelectorAll('img');
33600
+ var base_1 = this.parent.contentModule.getDocument().location.origin;
33599
33601
  imgElements.forEach(function (imgElement) {
33600
33602
  var imageFileFormat;
33601
33603
  var imgElementSrc = imgElement.getAttribute('src');
@@ -33604,7 +33606,9 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
33604
33606
  imageFileFormat = imgElementSrc.split(';')[0].split('/')[1];
33605
33607
  }
33606
33608
  else {
33607
- imageFileFormat = imgElementSrc.split('.').pop().toLowerCase();
33609
+ var parsedUrl = imgElementSrc.indexOf('http') > -1 ? new URL(imgElementSrc) : new URL(imgElementSrc, base_1);
33610
+ var path = parsedUrl.pathname;
33611
+ imageFileFormat = path.split('.').pop().toLowerCase();
33608
33612
  }
33609
33613
  if (!isNullOrUndefined(imageFileFormat) &&
33610
33614
  allowedTypes.every(function (type) { return imageFileFormat !== type.substring(1).toLowerCase(); }) &&