This came up while working on #5791.
It would be very useful for both core as well as contrib to be able to easily add click-to-copy buttons to things like text fields, text areas, and perhaps also error messages and watchdog entries.
Although it is generally considered relatively easy for people to be able to copy/paste, that might not always be the case. Quoting from https://github.com/backdrop/backdrop-issues/issues/5791#issuecomment-157...
Click > copy > paste is good enough I think.
...I agree ...however, it's more like: click > drag-select > may need to scroll depending on screen real estate > copy > paste ...or: right-click > select all (assuming that a) the browser supports it, and b) the person is using a pointing device that would allow them to right-click or that they know that hold-to-select is a thing) > copy > paste ...or good-old CTRL+A > CTRL+C > CTRL+P ...but all that assumes certain tech knowledge/affinity. As a person that is all about UX, and less clicks, less scrolling, less fiddling, having links to copy to clipboard or to download as .txt in a single click seem very appealing.
Recent comments
Welcome to the Backdrop CMS community! For me, Backdrop CMS came to deliver exactly what I had wished for in Drupal 7 — especially its low resource consumption and its ability to run on...
What Makes a Good CMS Experience for Website Owners and Developers?
Here's a fun hack: You can remove any css file in a custom theme by defining a file with the same name in the theme's info file, but not actually having a file with that name in the theme...
How to get rid of grid-flexbox.css
What is demoralizing for the maintaineers when someone mentions the flaw of a useless buggy feature? A different opinion should always be a motivation not otherwise. I will mark this one...
Files uploaded using add file