adding a copy button to examples
Categories
(developer.mozilla.org Graveyard :: Design, enhancement, P5)
Tracking
(Not tracked)
People
(Reporter: itai421, Unassigned)
Details
(Keywords: in-triage, Whiteboard: [specification][type:feature])
Attachments
(1 file)
What problem would this feature solve?
It has been a few time now, that I found myself selecting an entire example and copy/pasting it to my IDE. I think that it would be great if I could simply click on a button and copy it (without the need to select it all).
I think this could be useful in any code snippet (plain example, and executable ones like the first example found in https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function
usually I am pasting the code in order to either debug it or modify it a bit or to simply use it.
Who has this problem?
All visitors to MDN
How do you know that the users identified above have this problem?
no data, it effects all visitors simply because one does not need to be a member to use this feature.
How are the users identified above solving this problem now?
selecting entire examples using their mouse.
copying the select text
Do you have any suggestions for solving the problem? Please explain in detail.
adding a copy button
Is there anything else we should know?
Comment 1•6 years ago
|
||
I also think this would be nice. Not sure when we'll get around to implementing it. Would you be interested in attempting a pull request?
By the way, inspired by this bug I also filed one for stumptown-renderer: https://github.com/mdn/stumptown-renderer/issues/82
yes I would like to try making a PR for this. Is there a contributors guidelines or something like this? should I first create a task somewhere?
ok, I think I found all I need at https://github.com/mozilla/kuma/blob/master/CONTRIBUTING.md
I forked the repo, and will try to create this feature.
Comment 4•6 years ago
|
||
Comment 5•5 years ago
|
||
Updated•5 years ago
|
Description
•