@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 26.2.9
3
+ * version : 26.2.10
4
4
  * Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-richtexteditor@*",
3
- "_id": "@syncfusion/ej2-richtexteditor@26.2.8",
3
+ "_id": "@syncfusion/ej2-richtexteditor@26.2.9",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-32e+vCj/g/TFDS2cffJN/VSiGWWm98qhLXyVgxifCU+QoRXgpsdeI6jvmCzRC4UTlH4k+V58PYEO+UNRGt5mrQ==",
5
+ "_integrity": "sha512-TBFErb4xVYb56iRwb9LAkXG59TaAE+szuZyiiTQYsOI6dEXZaFGIHiFRrJ5hOcFUvwdjN1ZXaAZRhhU138ZfJg==",
6
6
  "_location": "/@syncfusion/ej2-richtexteditor",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -25,8 +25,8 @@
25
25
  "/@syncfusion/ej2-react-richtexteditor",
26
26
  "/@syncfusion/ej2-vue-richtexteditor"
27
27
  ],
28
- "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-26.2.8.tgz",
29
- "_shasum": "9aff95f472285a7694f794e3b2820e56721cd13b",
28
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-26.2.9.tgz",
29
+ "_shasum": "3557189844c4d22852f4064f87ef24701612fd04",
30
30
  "_spec": "@syncfusion/ej2-richtexteditor@*",
31
31
  "_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",
32
32
  "author": {
@@ -37,13 +37,13 @@
37
37
  },
38
38
  "bundleDependencies": false,
39
39
  "dependencies": {
40
- "@syncfusion/ej2-base": "~26.2.5",
41
- "@syncfusion/ej2-buttons": "~26.2.9",
42
- "@syncfusion/ej2-filemanager": "~26.2.7",
43
- "@syncfusion/ej2-inputs": "~26.2.5",
44
- "@syncfusion/ej2-navigations": "~26.2.8",
45
- "@syncfusion/ej2-popups": "~26.2.8",
46
- "@syncfusion/ej2-splitbuttons": "~26.2.5"
40
+ "@syncfusion/ej2-base": "~26.2.10",
41
+ "@syncfusion/ej2-buttons": "~26.2.10",
42
+ "@syncfusion/ej2-filemanager": "~26.2.10",
43
+ "@syncfusion/ej2-inputs": "~26.2.10",
44
+ "@syncfusion/ej2-navigations": "~26.2.10",
45
+ "@syncfusion/ej2-popups": "~26.2.10",
46
+ "@syncfusion/ej2-splitbuttons": "~26.2.10"
47
47
  },
48
48
  "deprecated": false,
49
49
  "description": "Essential JS 2 RichTextEditor component",
@@ -79,6 +79,6 @@
79
79
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
80
80
  },
81
81
  "typings": "index.d.ts",
82
- "version": "26.2.9",
82
+ "version": "26.2.10",
83
83
  "sideEffects": false
84
84
  }
@@ -49,5 +49,5 @@ export declare class Lists {
49
49
  private openTag;
50
50
  private closeTag;
51
51
  destroy(): void;
52
- areAllListItemsSelected(list: HTMLElement, range: Range): boolean;
52
+ private areAllListItemsSelected;
53
53
  }
@@ -333,9 +333,7 @@ var PasteCleanup = /** @class */ (function () {
333
333
  dropArea: this.parent.inputElement,
334
334
  allowedExtensions: this.parent.insertImageSettings.allowedTypes.toString(),
335
335
  success: function (e) {
336
- _this.popupCloseTime = setTimeout(function () {
337
- _this.popupClose(_this.popupObj, _this.uploadObj, imgElem, e);
338
- }, 900);
336
+ _this.popupClose(_this.popupObj, _this.uploadObj, imgElem, e);
339
337
  },
340
338
  uploading: function (e) {
341
339
  if (!_this.parent.isServerRendered) {
@@ -417,30 +415,31 @@ var PasteCleanup = /** @class */ (function () {
417
415
  this.parent.inputElement.contentEditable = 'true';
418
416
  e.element = imgElem;
419
417
  e.detectImageSource = ImageInputSource.Pasted;
420
- uploadObj.filesData.forEach(function (element) {
421
- if (element.statusCode === '2') {
422
- _this.parent.trigger(events.imageUploadSuccess, e, function (e) {
423
- if (!isNullOrUndefined(_this.parent.insertImageSettings.path)) {
424
- var url = _this.parent.insertImageSettings.path + e.file.name;
425
- imgElem.src = url;
426
- imgElem.setAttribute('alt', e.file.name);
427
- }
428
- });
429
- }
430
- else if (element.statusCode === '5') {
431
- _this.parent.trigger(events.imageRemoving, e, function (e) {
432
- if (!isNullOrUndefined(e.element.src)) {
433
- e.element.src = '';
434
- }
435
- });
436
- }
437
- });
438
- popupObj.close();
439
- imgElem.style.opacity = '1';
440
- if (uploadObj && document.body.contains(uploadObj.element)) {
441
- uploadObj.destroy();
418
+ var element = e.file;
419
+ if (element.statusCode === '2') {
420
+ this.parent.trigger(events.imageUploadSuccess, e, function (e) {
421
+ if (!isNullOrUndefined(_this.parent.insertImageSettings.path)) {
422
+ var url = _this.parent.insertImageSettings.path + e.file.name;
423
+ imgElem.src = url;
424
+ imgElem.setAttribute('alt', e.file.name);
425
+ }
426
+ });
427
+ }
428
+ else if (element.statusCode === '5') {
429
+ this.parent.trigger(events.imageRemoving, e, function (e) {
430
+ if (!isNullOrUndefined(e.element.src)) {
431
+ e.element.src = '';
432
+ }
433
+ });
442
434
  }
443
- this.toolbarEnableDisable(false);
435
+ this.popupCloseTime = setTimeout(function () {
436
+ popupObj.close();
437
+ imgElem.style.opacity = '1';
438
+ this.toolbarEnableDisable(false);
439
+ if (uploadObj && document.body.contains(uploadObj.element)) {
440
+ uploadObj.destroy();
441
+ }
442
+ }.bind(this), 1500);
444
443
  };
445
444
  PasteCleanup.prototype.refreshPopup = function (imageElement, popupObj) {
446
445
  var imgPosition = this.parent.iframeSettings.enable ? this.parent.element.offsetTop +