From b68ae9ec442df80183128363eea19c548692efef Mon Sep 17 00:00:00 2001 From: Pravin Katta Date: Tue, 30 May 2017 15:59:08 +0530 Subject: [PATCH] Bug #47 : Fixed.(Internal tabbing is not working) --- src/js/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/util.js b/src/js/util.js index f4581f5..db5cec4 100644 --- a/src/js/util.js +++ b/src/js/util.js @@ -20,7 +20,7 @@ function getSelectionText(doc) { } function getSelectionStart(doc) { - var node = doc.getSelection().anchorNode, + var node = doc.getSelection().baseNode ? doc.getSelection().baseNode : doc.getSelection().anchorNode, startNode = (node && node.nodeType === 3 ? node.parentNode : node); return startNode;