StackExchange / StackExchange/Stacks

Add copy to clipboard button to code blocks

Open
#829 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

  • #883 by @dancormier — closed without merging
enhancement
Dominant language
TypeScript
Stars
672
Forks
107
Avg merge
2d 12h
Merged PRs (30d)
26

Description

A suggestion from @MaxHorstmann that I'd love to include at some point. Code blocks could use their own copy to clipboard button.

There have been other requests for a proper stimulus copy to clipboard button, so perhaps we could break this down a bit and combine the components where necessary?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the closed pull request #883 and the related requests for a Stimulus copy-to-clipboard button. Then locate the existing code-block and clipboard components and confirm whether they can share implementation. Done means code blocks expose a working copy-to-clipboard button with the intended scope agreed.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.