@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.
- package/dist/ej2-richtexteditor.min.js +2 -2
- package/dist/ej2-richtexteditor.umd.min.js +2 -2
- package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es2015.js +25 -26
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +25 -26
- package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
- package/dist/global/ej2-richtexteditor.min.js +2 -2
- package/dist/global/ej2-richtexteditor.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +12 -12
- package/src/editor-manager/plugin/lists.d.ts +1 -1
- package/src/rich-text-editor/actions/paste-clean-up.js +25 -26
|
@@ -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.
|
|
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
|
-
|
|
32233
|
-
|
|
32234
|
-
|
|
32235
|
-
|
|
32236
|
-
|
|
32237
|
-
|
|
32238
|
-
|
|
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
|
-
|
|
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 +
|