Do iframes not work? Trying to share a YouTube video in my forum.
- 5 replies
<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!
Hmm, maybe a newline before the link, was missing, or something like that. ... Maybe would be better if the video link didn't need to be in its own paragraph, only on its own line, hmm. Anyway I'll mark this as solved for now then
- 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.
<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.