Fixes discontiguous selection #17

This commit is contained in:
Zeno Rocha
2015-10-13 09:27:29 -07:00
parent 5e43e84d91
commit 9377659c9c
3 changed files with 4 additions and 2 deletions

View File

@ -95,6 +95,7 @@ class ClipboardAction {
let range = document.createRange();
let selection = window.getSelection();
selection.removeAllRanges();
range.selectNodeContents(this.target);
selection.addRange(range);
this.selectedText = selection.toString();