@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.
@@ -25383,7 +25383,7 @@ let RichTextEditor = class RichTextEditor extends Component {
25383
25383
  range.endContainer;
25384
25384
  let closestLI = closest(endNode, 'LI');
25385
25385
  if (!isNullOrUndefined(closestLI) && endNode.textContent.length === range.endOffset &&
25386
- !range.collapsed) {
25386
+ !range.collapsed && isNullOrUndefined(endNode.nextElementSibling)) {
25387
25387
  closestLI.textContent = closestLI.textContent.trim();
25388
25388
  currentEndOffset = closestLI.textContent.length - 1;
25389
25389
  let currentLastElem = closestLI;