| Summary: | RFE: Copy to clipboard button for image template xml | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Community] PressGang CCMS | Reporter: | mmurray | ||||||
| Component: | Web-UI | Assignee: | Matthew Casperson <mcaspers> | ||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 1.3 | CC: | cbredesen, lnewson, mcaspers | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | 1.4 | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2014-02-23 23:44:00 UTC | Type: | Bug | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Bug Depends On: | |||||||||
| Bug Blocks: | 1053331 | ||||||||
| Attachments: |
|
||||||||
|
Description
mmurray
2013-12-09 01:32:48 UTC
Copying to the clipboard is notoriously tricky (if not impossible) with plan Javascript. Most solutions rely on a Flash solution like http://zeroclipboard.org/. I've been reluctant to introduce a dependency on Flash. Maybe we just do it though. We could also define some snippets for image XML generation. Fixed in 201401151315 and deployed to the dev server. We've addressed this in two ways. First is the addition of the snippets figure, mediaobject and inlinemediaobject. Typing any one of those words and pressing tab will expand the image templates, and you can then tab through the replacable fields (like the image id). Second, when a new image is loaded or a new image template is selected in the tab view, the template text is automatically selected so end users only need to press CTRL-C to copy it to the clipboard. See the attached screenshot for an example. Created attachment 850328 [details]
Quick copy image templates
Verified that the three snippets mentioned work and are the correct XML. Also the image view now highlights and focuses the selected template so that CTRL+C can be used (it's worth noting CTRL+X won't work, but given it's a readonly box I don't see that as an issue). Additional Note: Just adding since it's not abundantly clear, but the "copy to clipboard" functionality used by GitHub is using flash. |