Comment 2 for bug 1513665

Revision history for this message
Aaron Wells (u-aaronw) wrote :

Okay, it turns out the current version of clipboard.js does not suit our needs on iOS. In Safari on iOS it doesn't select the text, but rather it just moves the cursor into the text field where the text is (assuming that it's an editable text field like an input or textarea).

It seems like the developer may currently be working on this. Or at least, he's working on another, separate project that enables javascript-based text selection in iOS. Presumably he may link that back in to the original project once it's ready: https://github.com/zenorocha/clipboard.js/issues/26

In the meantime, ZeroClipboard is apparently actively working on an HTML5 functionality: https://github.com/zeroclipboard/zeroclipboard/issues/171

Once that gets implemented, it will probably be the better choice, because it still has better cross-browser fallback behavior (it knows to hide itself when it's not going to work), and it has a larger community maintaining it. So I think for now, we should probably wait and see if ZeroClipboard gets an HTML5 version out in the next couple of months.