Title: Issue with embedding ondrive documents
Last modified: August 21, 2020

---

# Issue with embedding ondrive documents

 *  Resolved [arafail](https://wordpress.org/support/users/arafail/)
 * (@arafail)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/issue-with-embedding-ondrive-documents/)
 * Hello!
    I am using your plugin, as I have mentioned before, with almost perfect
   success, but I do have some issues with it. More to the point, I cannot embed
   onedrive documents into my posts. Embedding folders with images works fine but
   a simple spreadsheet does not.
 * Here is the example: [https://www.citizenmedia.ro/cum-criptezi-o-partitie-de-sistem-cu-bitlocker-in-windows-10/](https://www.citizenmedia.ro/cum-criptezi-o-partitie-de-sistem-cu-bitlocker-in-windows-10/)
 * In this document you will find the following strings:
    Google Drive embed: – 
   google drive spread sheet – works OneDrive embed: – the same spreadsheet from
   above, but from a onedrive source – does not work, it shows an empty iframe Embeding
   OneDrive folder: – a onedrive folder, containing images – works.
 * My AMP plugin is version 1.5.5 and my WordPress version is 5.5.1-alpha-48833.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fissue-with-embedding-ondrive-documents%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/issue-with-embedding-ondrive-documents/#post-13292327)
 * Have you tried to embed the image using the OneDrive embed code snippet provided?
   If so you’ll need to enable the “Include HTML tags” option, which from my testing
   [worked fine](https://i.imgur.com/b7J0SXz.jpg).
 * Without including the HTML tags the image may [not render](https://i.imgur.com/su7Z8ro.png)
   when using the default WordPress editor, not just for AMP URLs.
 *  Thread Starter [arafail](https://wordpress.org/support/users/arafail/)
 * (@arafail)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/issue-with-embedding-ondrive-documents/#post-13292551)
 * Hello James!
    I am not talking about images but Excel spreadsheets uploaded to
   OneDrive or Word documents. There are no options like the one in your example
   for these.
 * [https://prnt.sc/u3erfr](https://prnt.sc/u3erfr)
 * [https://prnt.sc/u3es2b](https://prnt.sc/u3es2b)
 *  [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/issue-with-embedding-ondrive-documents/#post-13292729)
 * Apologies, my mistake. We may need to raise a GitHub issue for this or investigate
   further. In the meantime can you try and add the below attributes within your
   iFrame tag while I check this further?:
    `sandbox="allow-scripts allow-forms 
   allow-same-origin"`
 *  Thread Starter [arafail](https://wordpress.org/support/users/arafail/)
 * (@arafail)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/issue-with-embedding-ondrive-documents/#post-13293705)
 * This does indeed seem to work, thank you very much!
    I will develop a shortocode
   that will append this parameters automatically. Here is the result: [https://www.citizenmedia.ro/cum-criptezi-o-partitie-de-sistem-cu-bitlocker-in-windows-10/](https://www.citizenmedia.ro/cum-criptezi-o-partitie-de-sistem-cu-bitlocker-in-windows-10/)
   Thanks again!
 *  [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/issue-with-embedding-ondrive-documents/#post-13293724)
 * No problem at all, glad to hear it. As an AMP user for a while you might be interested
   in testing out the [release candidate](https://github.com/ampproject/amp-wp/releases/tag/2.0.0-RC1)
   of the plugin v2.0 on a staging or local site, we’d love to hear your feedback.
 * And you may also want to [submit your AMP website](https://docs.google.com/forms/d/e/1FAIpQLSeE0IqW2Xm4_AvLIhRuloyNAhZyWW-gMf7PJ23Ew8R0sf4mLA/viewform)
   for consideration in the showcase listings for our new website, which is due 
   soon.
 *  Thread Starter [arafail](https://wordpress.org/support/users/arafail/)
 * (@arafail)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/issue-with-embedding-ondrive-documents/#post-13293820)
 * I am definitely interested and yes, we will submit our website, but we still 
   have some thing to workout before it is 100%.
    This one drive bug is one less
   problem. Thanks again!
 *  [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/issue-with-embedding-ondrive-documents/#post-13294548)
 * Sounds great! We’ve also created the GitHub issue to address the sandbox values.
   
   [https://github.com/ampproject/amp-wp/issues/5256](https://github.com/ampproject/amp-wp/issues/5256)

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Issue with embedding ondrive documents’ is closed to new replies.

 * ![](https://ps.w.org/amp/assets/icon.svg?rev=2527602)
 * [AMP](https://wordpress.org/plugins/amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp/)
 * [Active Topics](https://wordpress.org/support/plugin/amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp/reviews/)

## Tags

 * [embedding](https://wordpress.org/support/topic-tag/embedding/)

 * 7 replies
 * 2 participants
 * Last reply from: [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/issue-with-embedding-ondrive-documents/#post-13294548)
 * Status: resolved