mirror of
https://github.com/doocs/md.git
synced 2024-11-24 19:10:34 +08:00
fix: remove select ranges
This commit is contained in:
parent
bbf5510bc8
commit
90fe9d45b0
@ -187,8 +187,7 @@ export default {
|
|||||||
range.setEndAfter(clipboardDiv.lastChild);
|
range.setEndAfter(clipboardDiv.lastChild);
|
||||||
window.getSelection().addRange(range);
|
window.getSelection().addRange(range);
|
||||||
document.execCommand('copy');
|
document.execCommand('copy');
|
||||||
range.setStartBefore(clipboardDiv.firstChild);
|
window.getSelection().removeAllRanges()
|
||||||
range.setEndAfter(clipboardDiv.firstChild);
|
|
||||||
fixCodeWhiteSpace('normal');
|
fixCodeWhiteSpace('normal');
|
||||||
// 输出提示
|
// 输出提示
|
||||||
this.$notify({
|
this.$notify({
|
||||||
|
Loading…
Reference in New Issue
Block a user