unable to embed OneDrive document…
-
I’m trying to embed a OneDrive document into a post, following these instructions https://en.support.wordpress.com/word-web-app/
It works as documented when I switch from the HTML editor to the VISUAL editor (the embedded Word document appears as desired in the VISUAL editor). However… when I preview or publish the post, a link appears where the embedded document should be.
The blog I need help with is: (visible only to logged in users)
-
-
-
here’s the embed code from OneDrive (this is what I pasted in the HTML editor)
<iframe src=’https://hillsborough-my.sharepoint.com/personal/122196_hcps_net/_layouts/15/WopiFrame.aspx?sourcedoc={1334c92c-e2f9-4dff-9377-8ac4aec930c4}&action=embedview&wdStartOn=1′ width=’476px’ height=’288px’ frameborder=’0′>This is an embedded Microsoft Office document, powered by Office Online.</iframe> -
Thanks for sharing the details! I tried this on a private WordPress.com site I have, and I see the same issue.
I am adding a modlook tag for the attention of a WordPress.com Happiness Engineer and they will be able to flag this as a bug with the product team, should they feel this is the case.
They should keep you posted on the updates.
-
-
Hi folks, is this a Word document or another type of document?
@strikebuys can you confirm whether you used the same code @cliftonbeasley used or whether you generated your own with these steps?
And @cliftonbeasley were you using those steps? The URL in your code looks a bit different than what I would have expected.
-
@strikebuys can you confirm whether you used the same code @cliftonbeasley used or whether you generated your own with these steps?
I used the same code as shared by @cliftonbeasley. I see the desired view when I preview it, but when I view the actual post, I see linked text – not the desired view.
-
@supernovia After pasting and saving @cliftonbeasley’s above iframe link in the HTML tab of the Calypso Editor on FF57/Win10 64-bit, the iframe does not convert to a shortcode as mentioned in Step 3 of our support guide:
Once you update your post or page, the embed code will be automatically converted into a shortcode.
Same behavior in Chrome62, although it took three tries before the paste “stuck.” On the previous two pastes, the iframe was immediately stripped out but no shortcode was generated.
I also created a test document on OneDrive and embedded it following the directions in our support guide/OneDrive to embed it in a test post and it behaved as expected in Calypso’s Editor. The iframe was immediately converted to a shortcode and the embed appears in the post.
(temp screenshot) -
Also just noting that when switching to the Visual Editor in Calypso the shortcode does not display the document embed, but remains as a shortcode.
-
Also just noting that when switching to the Visual Editor in Calypso the shortcode does not display the document embed, but remains as a shortcode.
This is different from what I have seen. When I move from HTML to Visual mode, after pasting the iframe code on the HTML mode, it shows the actual document embed and not a shortcode.
This is what I see on my private WordPress.com site on Firefox Quantum, Mac OS Sierra.
-
Hi there @strikebuys. Perhaps I wasn’t clear.
The shortcode which WordPressdotcom generated from my own OneDrive test document (not the one that @cliftonbeasley gave) stayed as a shortcode when I switched from the HTML Editor to the Visual Editor. The OneDrive document embed did not display in the Visual Editor. The document embed only displayed when I previewed the post (as in my screenshot). Hope that is clearer.
-
@cliftonbeasley – is hillsborough-my.sharepoint.com a custom URL through onedrive? Our codes seem to expect your iframe to start with a different address.
-
Also I’ve gone ahead and reported a bug, but if you can send any more details I’ll add them to see if we can sort this out sooner. Cheers :)
-
@supernovia, I think so. When I sign into OneDrive, I enter my employer-assigned userid. Then I am redirected to hillsborough-my.sharepoint.com where I enter my employer-assigned password (my employer is Hillsborough County Public Schools).
-
-
@cliftonbeasley, I tested the process outlined at https://en.support.wordpress.com/word-web-app/ using my own OneDrive account and the embed worked as expected. I know that Sharepoint integrates with Microsoft Office but that Sharepoint is typically used for sharing documents internally in a company and may not have sharing permissions that work the same way they would if you used OneDrive separately.
OneDrive for Business uses SharePoint technology, but is better suited for storage and one-off sharing.
Source: https://www.bettercloud.com/monitor/the-academy/whats-difference-onedrive-sharepoint/
I do not have a Sharepoint system to test with, but I can make some suggestions that may help you. First, you may want to try checking the sharing permissions for your document (instructions: https://support.office.com/en-us/article/Share-OneDrive-files-and-folders-9fcc2f7d-de0c-4cec-93b0-a82024800c07) and then try the embed again. If it still doesn’t work, I suspect you will need to try to find a way to save the document to OneDrive separate from your company Sharepoint if that is possible for you.
-
@designsimply, thanks for the great response. I also tested with my personal OneDrive account and that works just fine. Now I know :)
-
also, thanks to everyone who contributed to this thread. This really is a GREAT community!
- The topic ‘unable to embed OneDrive document…’ is closed to new replies.