Feature #5953
Copy RSS/REST API keys to clipboard with javascript
Status: | New | Start date: | 2010-07-24 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 0% | |
Category: | UI | |||
Target version: | Candidate for next major release | |||
Resolution: |
Description
I hope that we can copy (and paste) RSS/REST API keys to clipboard with javascript since key value is pretty long.
Related issues
History
#1
Updated by Felix Schäfer over 12 years ago
- Assignee set to Felix Schäfer
You can already copy the key by selecting the text, we might be able to make it a little easier though by copying some of the features of Holger's Checkout Plugin.
#2
Updated by Akiko Takano over 12 years ago
Thaks for your reply!
Felix Schäfer wrote:
You can already copy the key by selecting the text, we might be able to make it a little easier though by copying some of the features of Holger's Checkout Plugin.
I've added above Redmine Checkout plugin. This is so nice and this looks like GitHub's copy URL function :)
It seems the function to copy the URL for checkout is using some swf(Flash) object.
I think it's nice if this javascript library was included not only plugin but also rdmine itself.
#3
Updated by Felix Schäfer about 12 years ago
- Assignee deleted (
Felix Schäfer)
#4
Updated by RedminePro Yang almost 11 years ago
+1
#5
Updated by Go MAEDA over 4 years ago
- Related to Feature #29214: Button to copy PRE block content to clipboard added
#6
Updated by Yuichi HARADA over 3 years ago
- File add_link_to_copy.png added
- File fixed-5953.patch
added
When the API access key is displayed, the copy link is displayed. Click this link to copy the API access key to the clipboard.
I attached a patch.
#7
Updated by Go MAEDA over 3 years ago
- Target version set to Candidate for next major release
#8
Updated by Go MAEDA over 3 years ago
Thank you for posting the patch. I tried out it and noticed the following points:
- There is no feedback when you click the Copy link. Users may confused and click the link again and again
- In Redmine, copy.png and the label "Copy" means creating an object by cloning the existing one. I think it is better to use another icon or label
#9
Updated by Yuichi HARADA almost 2 years ago
- File fixed-5953-v2.patch
added
Fixed to work with JavaScript function copyTextToClipboard
added to the trunk (r20816).
https://www.redmine.org/projects/redmine/repository/revisions/20816/diff/trunk/public/javascripts/application.js
Go MAEDA wrote:
Thank you for posting the patch. I tried out it and noticed the following points:
- There is no feedback when you click the Copy link. Users may confused and click the link again and again
- In Redmine, copy.png and the label "Copy" means creating an object by cloning the existing one. I think it is better to use another icon or label
Sorry, I haven't fixed these yet.
#10
Updated by Aleksandar Pavic about 1 year ago
+1 for this to be core feature
#11
Updated by Aleksandar Pavic about 1 year ago
+1 for this to be core feature and #29214 the pre tag is even more important, especially good use-case is copying blocks of code...