Copy Button from Buttons Extensions is not copying
Copy Button from Buttons Extensions is not copying
ViniciusMachado
Posts: 10Questions: 1Answers: 0
I can't get Copy button to work. When I click it, it displays the message that goes away as soon as I click CTRL + C. But when I try to paste there is nothing copied. Any help? All other buttons are working fine
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Thanks - I'll look into this later today and post back.
Allan
Hi Allan. First of all sorry about my english. I've found out something. When I enable extend copy and use altKey: c, it works only when I press alt + c to show up the message and press ctrl + c after. This way the copy works. But when I click the copy button and press ctrl + c it does'nt work.
Regards
Hi,
I've just been looking into this and this commit should address the issue. If you could try that locally, please do so. Otherwise, I'll be doing a Buttons 1.0.1 release at the end of the week with this fix.
Regards,
Allan
Thanks a lot allan. That works like a charm. But I couldn't find where to include this fix at the datatables.min.js instead of datatables.js
Regards
UPDATE: I found it. I was looking for:
message.find('textarea')[0].select();
But at the datables.min.js it is:
a.find('textarea')[0].select();
Regards