Skip to content

Commit

Permalink
Merge pull request yabwe#49 from pkatta/master
Browse files Browse the repository at this point in the history
Bug yabwe#47 : Fixed.(Internal tabbing is not working)
  • Loading branch information
j0k3r authored May 30, 2017
2 parents cedc228 + b68ae9e commit c06592e
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 c06592e

Please sign in to comment.