Closed Bug 1574120 Opened 6 years ago Closed 5 years ago

adding a copy button to examples

Categories

(developer.mozilla.org Graveyard :: Design, enhancement, P5)

All
Other
enhancement

Tracking

(Not tracked)

RESOLVED WONTFIX

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?

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

Status: UNCONFIRMED → NEW
Ever confirmed: true

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.

Keywords: in-triage
Priority: -- → P5
MDN Web Docs' bug reporting has now moved to GitHub. From now on, please file content bugs at https://github.com/mdn/sprints/issues/ and platform bugs at https://github.com/mdn/kuma/issues/.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: