ampproject / ampproject/amphtml
Support for copying to clipboard
- Dominant language
- JavaScript
- Stars
- 14.9k
- Forks
- 4.1k
- PR merge metrics
- No merged PRs in 30d
Description
### Description
Our pages allow users to copy the share URL, (in addition to basic social sharing). To allow our pages to support AMP, we need to be able to copy content to clipboard without JS.
Current feature is provided by a 3rd party tool [clipboardjs](https://clipboardjs.com/). We cannot find equivalent functionality.
### Example
[https://gfycat.com/BareSecondaryFlamingo](https://gfycat.com/BareSecondaryFlamingo)
Click on the embed button below the video
Click on the copy to clipboard icon
Contributor guide
Research direction
Start by examining the current clipboardjs integration used for the share URL and the embed button shown in the linked example. Determine how the copy-to-clipboard interaction can work for AMP pages without JavaScript; done means the share or embed content can still be copied through the copy icon.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100