Add a "copy to clipboard" feature for preview_link

Created on 22 May 2024, 6 months ago
Updated 15 August 2024, 3 months ago

Problem/Motivation

I've had a number of content editors tell me that they would like a button to click on which would copy the preview link URL to their clipboard. This is so they do not need to highlight the link and then copy it (or make a mistake and click the link instead of highlighting it).

Proposed resolution

Add a button under the preview link with text "Copy link to clipboard". When this is clicked, we'll use a little bit of JS to copy the link, so it can easily be pasted into email clients/Slack, etc.

Remaining tasks

Do it

User interface changes

None

API changes

None

Data model changes

None

Feature request
Status

Needs review

Version

2.1

Component

Code

Created by

🇮🇪Ireland markconroy

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024