I need to be able to programmatically take a file from one drive and change it to be embedded into an iFrame. I believe that's doable but I need it to be editable inside of that iFrame but not only from me but for multiple users and they can see any changes made while they're being made.
I'm not sure if this is possible or not, or if something similar exists?
Hi
@Patrick Rutherford
,
According to my research and testing, you can embed editable files on the site by changing
action=embedview
to
action=edit
, please follow these steps to test:
1.Select the file need to be displayed from the SharePoint library (e.g. Word).
2.Open the file in browser (Word Online) >> Click on File >> Share >>
Embed
.
3.Copy the
Embed Code
:
4.Edit
action=embedview
to
action=edit
in Embed Code, for example:
5.Now, navigate to your Modern SharePoint Online page. Add an “
Embed Web part
” and paste the code to
Website address or embed code
.
6.Save and Publish the page.
My test :(Two different users can modify the files in the iFrame and see each other's modifications in this page)
If the answer is helpful, please click
"Accept Answer"
and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our
documentation
to enable e-mail notifications if you want to receive the related email notification for this thread.
Hi Tong!
I really appreciate the detailed answer! I still can't seem to get it to do what I was wanting exactly. So after changing the iFrame src to have action=edit, the iFrame seems to not load. I get a message saying it'ss being refused. I think this may work for you because you're posting it on a sharepoint page but I was trying to post it on my own webpage.
It's possible I'm missing something though, any ideas?
Thanks again for your help!
Hi Patrick!
I'm also trying to have editable excel spreadsheets on my own webpage!
Tong's answer is great but, like you, maybe not what I am after as I'm not working with a sharepoint page.
I was just wondering whether you got this going or not?
Thank you!