Copy to Clipboard / Text Selection Not Working in Embedded (Iframe) Grafana Dashboard in UI

Hello Everyone,

We have created a Grafana dashboard and enabled the iframe/embed link, which is being used in our own UI page. The dashboard and all operations are working as expected.

However, we are facing an issue where copy to clipboard, text selection and copy, or selecting any dashboard data/string is not working inside the embedded dashboard from UI. We have tried multiple approaches, but nothing has helped so far.

Has anyone faced a similar issue or found a solution for enabling text selection/copy functionality in an embedded Grafana iframe? Any suggestions would be greatly appreciated.

Did you try https://hellodevworldblog.medium.com/error-when-copying-to-clipboard-from-iframe-dab0b5c5f310 ?

What is error in the browser console?

@jangaraj

Firstly, Thank you for your response for it.
unfortunately, we dont see any errors from devtools/browser. the selection of data/string is not happening from UI.

we did tried with below but didn’t work.
allow=“clipboard-read; clipboard-write”

did you try different browsers?

Yes i tried with different browsers, but still getting same issue.