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. ** Summary changed: - Replace zeroclipboard with a non-flash alternative + Get an HTML5 "click-to-copy" widget -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! https://bugs.launchpad.net/bugs/1513665 Title: Get an HTML5 "click-to-copy" widget Status in Mahara: Confirmed Bug description: On the Secret URLs page, we added the zeroclipboard library to allow users to click a clipboard icon and have the URL copied to their clipboard. Unfortunately, since then Flash has started dying in a bad way, and now this sort of Flash-based clipboard widget is on the way out, and can cause browsers to pop up warning messages and such. Now, there is no way to accomplish exactly this same functionality (copy to clipboard) without Flash currently. But, there are some useable alternatives. The one that seems to be poised to replace the click-to-copy pattern, is that you click and it automatically selects the full text, so that you then just have to hit "control-C" instead of first dragging to select it all. Jen recently added this little clipboard library to the styleguide.php script. It works pretty good, so we may as well adopt it for the Secret URL screen as well. http://zenorocha.github.io/clipboard.js/ To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1513665/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~mahara-contributors Post to : [email protected] Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp

