Do iframes not work? Trying to share a YouTube video in my forum.
- 5 replies
- KajMagnus @KajMagnus2018-08-27 13:32:31.889Z
<iframe>directly won't work, however you can paste the YouTube share link in its own paragraph:
and the video then gets embedded, like so:
What's the iframe HTML you wanted to paste? (Maybe it'd be good if some time later, inserting that html directly, also works fine)
For some reason it was not embedding when I pasted the link. It's working now!
- In reply toKajMagnus⬆:
Is it possible to force an iframe to work? I am trying to embed a Discord chat window into a custom HTML topic.
- KajMagnus @KajMagnus2018-10-01 05:39:33.452Z
<iframe>gets removed by the sanitizer. I like the idea of embedding things (like the Discord chat) in custom HTML pages. Maybe admins + developers / designers, should be able to use any kinds of tags, on custom HTML pages. And all other people should then be prohibited from editing those pages.
In some cases, maybe the staff wants to embed an
<iframe>with something cool, in the original post in a normal discussion topic, and have people post feedback. Maybe there should be a per page setting like:
[x] Allow all HTML tags on this page, and let only admins edit it
Won't have time to fix this the nearest week(s). Maybe a workaround can be to insert the
<div class="cpce_DiscordIframe></div>and find and replace it with a Discord iframe.