CollaboraOnline / collabora-online-sdk-examples

Various minor pieces of code to be used in Collabora Online and related software
Apache License 2.0
29 stars 24 forks source link

Change iframe code example to allow access to clipboard #29

Closed bohwaz closed 1 month ago

bohwaz commented 1 month ago

Currently in Chrome, copy/paste doesn't work unless you add the specific allow attribute to the iframe tag, as documented here: https://sdk.collaboraonline.com/docs/advanced_integration.html#allow-the-clipboard-permission-query

This example should mention it.

meven commented 1 month ago

Indeed we would need to add allow="clipboard-read *; clipboard-write *" to all our iframe declarations like: https://github.com/CollaboraOnline/collabora-online-sdk-examples/blob/master/webapp/reactjs/client/src/App.tsx#L79C18-L79C117

And for the other examples.

hfiguiere commented 1 month ago

Thanks for reporting this.