Copy Button from Buttons Extensions is not copying

Copy Button from Buttons Extensions is not copying

ViniciusMachadoViniciusMachado 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

Answers

  • allanallan Posts: 63,700Questions: 1Answers: 10,501 Site admin

    Thanks - I'll look into this later today and post back.

    Allan

  • ViniciusMachadoViniciusMachado Posts: 10Questions: 1Answers: 0

    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

  • allanallan Posts: 63,700Questions: 1Answers: 10,501 Site admin
    Answer ✓

    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

  • ViniciusMachadoViniciusMachado Posts: 10Questions: 1Answers: 0
    edited August 2015

    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

This discussion has been closed.