mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #45532
[Bug 1513665] Re: Get an HTML5 "click-to-copy" widget
URL: https://bugs.launchpad.net/mahara/+bug/1513665
Bug description: Button to reliably copy secret URLs
Environment to be tested: Master
Browser to be tested: Chrome, Firefox, Safari, IE Edge (latest
version), Chrome iOS and Chrome Android
Precondition:
1. Normal user ‘User one’ should exist.
2. A Page ‘Page 01’ should exist.
Steps to reproduce:
1. Log in as ‘User one’.
2. Navigate to Main menu > Portfolio > Shared by me.
3. Click the ‘Secret URL’ icon for ‘Page 01’.
4. Click the ‘New secret URL’ button.
5. Click the ‘Copy secret URL to the clipboard’ button.
6. Open a new tab and paste the secret URL.
Expected result: ‘Page 01’ should be displayed.
6. Log out as ‘User one’.
7. Open a new tab and paste the secret URL that is copied in step 5.
Expected result: ‘Page 01’ should be displayed.
--
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:
In Progress
Bug description:
In Bug 1314890, 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
References