Button to copy text box to clipboard

@deleteduser I actually hired a developer to create one for me, I’ll let you know if they are able to make it

@shay-wix where can we find the roadmap? Or is it for Wix employees only?

I’ve just spend over three hours experimenting with trying to get a copy function working, including sending a postMessage to an HTML Component script and it’s impossible to get working due to some kind of focus issue on the element.

It’s a really simple bit of functionality, which would be very helpful to have. Pretty much everything functional I’ve tried to do on Wix over the past couple of days has been impossible to achieve without hours of workarounds… really regretting choosing this to develop with.

copyToClipboard( )

Copies text to the site visitor’s clipboard.

Description

The copyToClipboard() function copies the specified text to the site visitor’s clipboard.
If the site visitor’s browser does not support copying text to the clipboard programmatically, a modal popup that allows copying will be displayed. For example, when calling copyToClipboard from a Firefox or Edge browser, the site visitor will see something similar to the popup shown below.
https://www.wix.com/corvid/reference/wix-window.html?fbclid=IwAR0uhIvxeF8mC46GaXkvyXGO6B9SHCw1vD8eOCaBteg-iADiESBxZvIABZI#copyToClipboard