@syncfusion/ej2-richtexteditor 26.2.11 → 26.2.12

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.11
3
+ * version : 26.2.12
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.10",
3
+ "_id": "@syncfusion/ej2-richtexteditor@26.2.11",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-z+wM/vn4iSWg9eUP9OJdzUEzmQXf7ZR57M2mg5JYECSxW9umuxBen6BxuVwbkPfMFPPygFWaUTXA3V1ZXgp3Yg==",
5
+ "_integrity": "sha512-eEt5sO65WJ4Axop/d0LfbXRfzr5arMSVZFOTtjeXr5/BTeYQieIH3REXHnX+Ac7aZi9mG4djFKIOaaKQSAuBjw==",
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.10.tgz",
29
- "_shasum": "ccda0929e70194c91389ffbffdd101cebc250153",
28
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-26.2.11.tgz",
29
+ "_shasum": "edf3a8f08beeaafbdcca3a0d4ffad5f7cb427bfd",
30
30
  "_spec": "@syncfusion/ej2-richtexteditor@*",
31
31
  "_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",
32
32
  "author": {
@@ -41,7 +41,7 @@
41
41
  "@syncfusion/ej2-buttons": "~26.2.10",
42
42
  "@syncfusion/ej2-filemanager": "~26.2.11",
43
43
  "@syncfusion/ej2-inputs": "~26.2.11",
44
- "@syncfusion/ej2-navigations": "~26.2.11",
44
+ "@syncfusion/ej2-navigations": "~26.2.12",
45
45
  "@syncfusion/ej2-popups": "~26.2.11",
46
46
  "@syncfusion/ej2-splitbuttons": "~26.2.10"
47
47
  },
@@ -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.11",
82
+ "version": "26.2.12",
83
83
  "sideEffects": false
84
84
  }
@@ -28,4 +28,5 @@ export declare class InsertHtml {
28
28
  private static closestEle;
29
29
  private static insertTableInList;
30
30
  private static alignCheck;
31
+ private static removeListfromPaste;
31
32
  }
@@ -468,6 +468,12 @@ var InsertHtml = /** @class */ (function () {
468
468
  currentNode.nextSibling.nodeName === 'BR') {
469
469
  detach(currentNode.nextSibling);
470
470
  }
471
+ if (currentNode.parentElement.nodeName === 'LI' && currentNode.parentElement.textContent === '') {
472
+ this.removeListfromPaste(range);
473
+ range.insertNode(node);
474
+ this.contentsDeleted = true;
475
+ return;
476
+ }
471
477
  }
472
478
  else if ((currentNode.nodeName === '#text' || currentNode.nodeName === 'BR') && !isNOU(currentNode.parentElement) &&
473
479
  (currentNode.parentElement.nodeName === 'LI' || currentNode.parentElement.closest('LI') || (blockNode === editNode && currentNode.parentElement === blockNode)) &&
@@ -478,13 +484,7 @@ var InsertHtml = /** @class */ (function () {
478
484
  detach(currentNode.nextSibling);
479
485
  }
480
486
  if (!range.collapsed) {
481
- range.deleteContents();
482
- var value = range.startContainer;
483
- if (!isNOU(value) && value.nodeName === 'LI' && !isNOU(value.parentElement) && (value.parentElement.nodeName === 'OL' || value.parentElement.nodeName === 'UL') && value.textContent.trim() === '') {
484
- value.parentElement.querySelectorAll('li').forEach(function (item) {
485
- item.remove();
486
- });
487
- }
487
+ this.removeListfromPaste(range);
488
488
  }
489
489
  range.insertNode(node);
490
490
  this.contentsDeleted = true;
@@ -633,6 +633,17 @@ var InsertHtml = /** @class */ (function () {
633
633
  }
634
634
  }
635
635
  };
636
+ InsertHtml.removeListfromPaste = function (range) {
637
+ range.deleteContents();
638
+ var value = range.startContainer;
639
+ if (!isNOU(value) && value.nodeName === 'LI' && !isNOU(value.parentElement) && (value.parentElement.nodeName === 'OL' || value.parentElement.nodeName === 'UL') && value.textContent.trim() === '') {
640
+ value.parentElement.querySelectorAll('li').forEach(function (item) {
641
+ if (item.textContent.trim() === '') {
642
+ item.remove();
643
+ }
644
+ });
645
+ }
646
+ };
636
647
  /**
637
648
  * Insert method
638
649
  *
@@ -538,7 +538,7 @@ var TableCommand = /** @class */ (function () {
538
538
  detach(selectedCells[i]);
539
539
  }
540
540
  for (var i = 0; i < this.curTable.rows.length; i++) {
541
- if (this.curTable.rows[i].innerHTML === '') {
541
+ if (this.curTable.rows[i].innerHTML.trim() === '') {
542
542
  detach(this.curTable.rows[i]);
543
543
  }
544
544
  }