@syncfusion/ej2-richtexteditor 26.2.9 → 26.2.10

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.
@@ -32145,9 +32145,7 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
32145
32145
  dropArea: this.parent.inputElement,
32146
32146
  allowedExtensions: this.parent.insertImageSettings.allowedTypes.toString(),
32147
32147
  success: function (e) {
32148
- _this.popupCloseTime = setTimeout(function () {
32149
- _this.popupClose(_this.popupObj, _this.uploadObj, imgElem, e);
32150
- }, 900);
32148
+ _this.popupClose(_this.popupObj, _this.uploadObj, imgElem, e);
32151
32149
  },
32152
32150
  uploading: function (e) {
32153
32151
  if (!_this.parent.isServerRendered) {
@@ -32229,30 +32227,31 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
32229
32227
  this.parent.inputElement.contentEditable = 'true';
32230
32228
  e.element = imgElem;
32231
32229
  e.detectImageSource = ImageInputSource.Pasted;
32232
- uploadObj.filesData.forEach(function (element) {
32233
- if (element.statusCode === '2') {
32234
- _this.parent.trigger(imageUploadSuccess, e, function (e) {
32235
- if (!isNullOrUndefined(_this.parent.insertImageSettings.path)) {
32236
- var url = _this.parent.insertImageSettings.path + e.file.name;
32237
- imgElem.src = url;
32238
- imgElem.setAttribute('alt', e.file.name);
32239
- }
32240
- });
32241
- }
32242
- else if (element.statusCode === '5') {
32243
- _this.parent.trigger(imageRemoving, e, function (e) {
32244
- if (!isNullOrUndefined(e.element.src)) {
32245
- e.element.src = '';
32246
- }
32247
- });
32248
- }
32249
- });
32250
- popupObj.close();
32251
- imgElem.style.opacity = '1';
32252
- if (uploadObj && document.body.contains(uploadObj.element)) {
32253
- uploadObj.destroy();
32230
+ var element = e.file;
32231
+ if (element.statusCode === '2') {
32232
+ this.parent.trigger(imageUploadSuccess, e, function (e) {
32233
+ if (!isNullOrUndefined(_this.parent.insertImageSettings.path)) {
32234
+ var url = _this.parent.insertImageSettings.path + e.file.name;
32235
+ imgElem.src = url;
32236
+ imgElem.setAttribute('alt', e.file.name);
32237
+ }
32238
+ });
32254
32239
  }
32255
- this.toolbarEnableDisable(false);
32240
+ else if (element.statusCode === '5') {
32241
+ this.parent.trigger(imageRemoving, e, function (e) {
32242
+ if (!isNullOrUndefined(e.element.src)) {
32243
+ e.element.src = '';
32244
+ }
32245
+ });
32246
+ }
32247
+ this.popupCloseTime = setTimeout(function () {
32248
+ popupObj.close();
32249
+ imgElem.style.opacity = '1';
32250
+ this.toolbarEnableDisable(false);
32251
+ if (uploadObj && document.body.contains(uploadObj.element)) {
32252
+ uploadObj.destroy();
32253
+ }
32254
+ }.bind(this), 1500);
32256
32255
  };
32257
32256
  PasteCleanup.prototype.refreshPopup = function (imageElement, popupObj) {
32258
32257
  var imgPosition = this.parent.iframeSettings.enable ? this.parent.element.offsetTop +