diff --git a/src/services/cledit/cleditSelectionMgr.js b/src/services/cledit/cleditSelectionMgr.js index c2183976..b8cb0609 100644 --- a/src/services/cledit/cleditSelectionMgr.js +++ b/src/services/cledit/cleditSelectionMgr.js @@ -166,7 +166,7 @@ function SelectionMgr(editor) { let previousSibling = node.previousSibling; while (previousSibling) { i += 1; - previousSibling = node.previousSibling; + previousSibling = previousSibling.previousSibling; } return i; }