OfficeDev / office-js

A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
https://learn.microsoft.com/javascript/api/overview
Other
657 stars 93 forks source link

OWA Outlook add-ion task panes have no access to clipboard API #3480

Closed barclayadam closed 12 months ago

barclayadam commented 1 year ago

Provide required information needed to triage your issue

Your Environment

Expected behavior

await navigator.clipboard.writeText('My Text'); should copy to the clipboard. This works OK in the native Windows Outlook client, so parity between platforms seems sensible.

Current behavior

An error:

Uncaught (in promise) DOMException: The Clipboard API has been blocked because of a permissions policy applied to the current document. See https://goo.gl/EuHzyv for more details.

Steps to reproduce

  1. From an add-in's task pane react to a button press with the above code snippet

Thank you for taking the time to report an issue. Our triage team will respond to you in less than 72 hours. Normally, response time is <10 hours Monday through Friday. We do not triage on weekends.

exextoc commented 1 year ago

@barclayadam Thanks for reaching out. Clipboard API is not supported in OWA

If you need this API support and wish to file a feature request, please use the below link: https://aka.ms/M365dev-suggestions

ghost commented 1 year ago

This issue has been automatically marked as stale because it is marked as needing author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your interest in Office Add-ins!

ghost commented 12 months ago

This issue has been closed due to inactivity. Please comment if you still need assistance and we'll re-open the issue.