Add support for Microsoft OneDrive content (Word, Excel, PowerPoint)

Created on 4 August 2022, about 2 years ago
Updated 7 April 2023, over 1 year ago

Similar to #3226847: Add support for Google content (Docs, Sheets, and Slides) โ†’ , please consider adding support for Microsoft OneDrive content (Word, Excel, PowerPoint)

https://support.microsoft.com/en-us/office/embed-files-directly-into-you...

If you have a website or blog, itโ€™s quick and easy to embed photos, Office documents, and other files from OneDrive. You can even customize how embedded Excel workbooks appear to other people.

  1. Go to the OneDrive website. You might need to sign in with your Microsoft account.
  2. Pick the file you want to embed by selecting the check box in the upper-right corner of the file.
  3. Select Embed at the top of the page, and then choose Generate.
  4. Copy and paste the code into the code of your website or blog.
โœจ Feature request
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States Chris Matthews

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States dalemoore

    I was trying to find a solution for this, too. Too bad Microsoft doesn't seem to provide an easy way to go about it. It would be great if they could just paste a URL in a field and have it generate the embed like YouTube, etc... but it's not using OEmbed.

    This is an example of a document for a test I uploaded to our university OneDrive (with my personal email/other info MASKED):
    iframe:
    <iframe src="https://OUR-DOMAIN.sharepoint.com/personal/USERID_UNIVERSITY_edu/_layouts/15/Doc.aspx?sourcedoc={834d233d-4a56-40fe-98e4-de62afe4bfcd}&amp;action=embedview" width="476px" height="288px" frameborder="0">This is an embedded <a target="_blank" href="https://office.com">Microsoft Office</a> document, powered by <a target="_blank" href="https://office.com/webapps">Office</a>.</iframe>

    link:
    https://OUR-DOMAIN.sharepoint.com/:w:/r/personal/USERID_UNIVERSITY_edu/Documents/PhD/Do%20it%20now.docx?d=w834d233d4a5640fe98e4de62afe4bfcd&csf=1&web=1&e=J8JhTN

    The sourcedoc value seems to match but has dashes in one and not the other, who knows what they're breaking it on.

    Very similar to Chris' above, but different in subtle ways that would be impossible to use.

Production build 0.71.5 2024