Skip to content

Commit

Permalink
fix: copy as select including addons
Browse files Browse the repository at this point in the history
  • Loading branch information
antonreshetov committed Feb 12, 2019
1 parent 1e17a6b commit 654c2e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Preview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export default {
copySelect () {
if (window.getSelection) {
let range = document.createRange()
range.selectNode(this.$refs.preview.querySelector('table'))
range.selectNode(this.$refs.preview.querySelector('.email-preview div'))
window.getSelection().removeAllRanges()
window.getSelection().addRange(range)
document.execCommand('copy')
Expand Down

0 comments on commit 654c2e5

Please sign in to comment.