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.

  • If you didn't want to create a plugin for this, you could leverage the Control Panel JS plugin and use some good ole-fashioned JS to do it. – Tammy Shipps Dec 16 '20 at 22:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.