AdamZnam's avatar
AdamZnam
Brass Contributor
Aug 09, 2021
Status:
New

Outlook Addin - enable Clipboard API

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

  • Any updates on this?

    I need the IFrame to allow "clipboard-read" and "clipboard-write" (see 

    https://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?

  • megankrenbrink's avatar
    megankrenbrink
    Copper 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.

  • rustym's avatar
    rustym
    Copper Contributor

    Would like to see this fixed so we can have a consistent experience across Desktop and Web.

  • aakshahy's avatar
    aakshahy
    Copper Contributor

    Been 3 years since the github issue was reported and Microsoft is sleeping on a basic 2 word fix. Shameful!