Embed Iframed is not work

Hey! I try to embed Iframed but is not work ,
which show


And this is the url
https://dao2.io/ghost/#/editor/post/5fd08836367b090001d83a45
Thx very much!

@Tao_Su this is expected, the editor will not run arbitrary javascript or render iframes inside of HTML cards for security and compatibility. If you preview the post you’ll be able to see how the JS/iframe displays on your site.

Thank you for your answer ! If I wanna embed bilibili.com’s video , how can I do that? This is a demo url https://www.bilibili.com/video/BV1tV411f7mD

Unfortunately I can’t read the site to know if they have an embed option. If they do then you should be able to paste the resulting JS/iframe code into a HTML card, just be aware that it won’t display in the editor for the reasons described above.

Hey ! My big brother ,this is the process of share website .
Take a website as an example ,
First , you should click the share button
image
And then , you can copy the shared code
image
At last , I paste it into ghost editor but fail.

How is it failing?

Hey ! Thx for your reply !
First , I copied the source code

<iframe src="//player.bilibili.com/player.html?aid=412569594&bvid=BV1tV411f7mD&cid=172623860&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> 
</iframe>

And then , I chosen the HTML model at editor and paste it ,

Yes, that’s the expected display and means it’s working. You need to preview the post outside of the editor to see the fully rendered iframe.

2 Likes

Cool! Thx very much

I have the same issue with the bandcamp embedded player. The preview works well outside the editor, as you suggested, except for the mail preview. I tried sending a test email to see if the issue is only in the preview but the player didn’t display on the email, it just shows an empty space.

That’s exactly how it should be :slight_smile:

Just imagine embedding an iframe to another website, sending it to your email list – and then the person running the iframed website changes the content.

That’s why most email clients and providers block this content altogether, since this can also be used for malicious content.

Ghost posted a nice workaround here though: Can I use embeds in email newsletters?

That should work for your use case as well :slight_smile:

1 Like

Thank you so much for the quick reply and clear explanations, I understand better now! I tried the workaround suggested but finally opted for a bookmark as it requires less work and will work on all clients.

Thank you :slight_smile:

2 Likes