google/playground-elements

Unable to make use of Clipboard api copy and paste operations from different domain

Opened this issue · 0 comments

We are making use of 'playground-elements/playground-ide' and we have a requirement where we want to test the behavior of a certain component of ours by copying some text from a different application or different website and pasting it in the playground-preview element of playground-ide, we get a warning stating that, we need to allow clipboard read and write on the iframe present in playground-preview as the source seems to be different for the iframe. As of now, there is no way to pass this configuration to iframe present inside playground-preview.

Here is the preview of same behaviour