Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <template>
- <div>
- <textarea ref="textJobObjective"></textarea>
- </div>
- </template>
- <script>
- export default {
- data: () => ({}),
- methods: {
- copyJobObjective() {
- this.$refs.textJobObjective.$el.getElementsByTagName('textarea')[0].select()
- document.execCommand('copy')
- }
- }
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement