Copy to Clipboard Without Plugins(Forge Components)

Hi,


I am trying to copy to clipboard on click of a button, and I am using Javascript code to do so, as I can't use external Forge Component but this line of code doesn't work in my JS code, does anyone has any idea about this:


document.execCommand("copy");


Or Is there any alternative way to do so?


Hi Mohamed,

If you using react app so you can have a look.

Hope this help.

Regards,

Shoeb