Skip to content

Commit

Permalink
Bug yabwe#47 : Fixed.(Internal tabbing is not working)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pravin Katta committed May 30, 2017
1 parent cedc228 commit b68ae9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b68ae9e

Please sign in to comment.