TransWikia.com

What's the best way to add a copy to clipboard button to the Preview / View button group in the entry editing UI?

Craft CMS Asked by Lucas Thurston on February 3, 2021

View and Preview buttons work fine, but I want editors to be able to easily share links to drafts with others. The nicest solution would be a Copy button which would copy the preview URL to the clipboard. I’m operating under the assumption that I need to create a plugin to do so, but if anyone has any specifics (or example plugins that do something similar), that’d help greatly.

I’ll note that I’m using Craft as a headless CMS and the View link redirects before an editor would have time to copy it. In any case, I wouldn’t consider that an adequate solution to this.

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP