Outlook Addin currently does not support Clipboard API, because containing iframe does not have appropriate permissions. Currently the only other option to copy text is to use deprecated document.execCommand("copy").
For more information, please see this issue: https://github.com/OfficeDev/office-js/issues/1991
6 Comments
- DominikH960Tin Contributor
Any updates on this?
I need the IFrame to allow "clipboard-read" and "clipboard-write" (seehttps://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API) in order to e.g. read the clipboard when the user has copied an e-mail item or any other use case in our integration, or write to the clipboard when the user wants to perform such a use-case in our add-in.
We have the same issue in Word, Excel, PowerPoint as well as Teams.
Currently the "allow" attribute of the IFrame only contains "local-network-access" which is not sufficient for our needs.
Maybe this could be configurable through the add-in manifest? - megankrenbrinkCopper Contributor
Following up to see if there have been any updates. This issue is currently blocking functionality in our app, so we’re hoping for any information on status or expected timelines.
- rustymCopper Contributor
Would like to see this fixed so we can have a consistent experience across Desktop and Web.
- MasterZydraCopper Contributor
Any update on this? This prevents me from developing my add-in.
- aakshahyCopper Contributor
Been 3 years since the github issue was reported and Microsoft is sleeping on a basic 2 word fix. Shameful!
- Ima_GlazerTin Contributor
This is also an issue in Word, Excel and PowerPoint Online.