-
I tried to embed a diagram, that is stored in OneDrive as IFrame and saw, that the complete diagram was inserted into to Code-Snippet. If I do the same with the identical diagram stored in Google Drive, the iframe instead contains a reference to the file stored in the cloud. A sample would be "#Uhttps%3A%2F%2Fdrive.google.com%2Fuc%3Fid%3D1oD5aDAr-YfTVMwaQGi6aweLsmWqcrcaD4nvRy%26export%3Ddownload". Why is there a fundamental difference in the way the iFrame works? This might also be related to @datdinhquoc's question here: Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
OneDrive does not support permanent public URLs, so your best bet is to replace the |
Beta Was this translation helpful? Give feedback.
OneDrive does not support permanent public URLs, so your best bet is to replace the
src
attribute of the iframe with the URL of the editor, replacinghttps://app.diagrams.net
withhttps://viewer.diagrams.net
, eg.<iframe frameborder="0" style="width:100%;height:345px;" src="https://viewer.diagrams.net/#W..."></iframe>
. This will require the user to login to view the diagram.