mirror of
https://github.com/zenorocha/clipboard.js.git
synced 2023-08-10 21:12:48 +03:00
Fixes discontiguous selection #17
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user