@syncfusion/ej2-richtexteditor 20.1.58 → 20.1.59

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.
@@ -25646,7 +25646,7 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
25646
25646
  range.endContainer;
25647
25647
  var closestLI = closest(endNode, 'LI');
25648
25648
  if (!isNullOrUndefined(closestLI) && endNode.textContent.length === range.endOffset &&
25649
- !range.collapsed) {
25649
+ !range.collapsed && isNullOrUndefined(endNode.nextElementSibling)) {
25650
25650
  closestLI.textContent = closestLI.textContent.trim();
25651
25651
  currentEndOffset = closestLI.textContent.length - 1;
25652
25652
  var currentLastElem = closestLI;