Embedding Youtube code: possible?
Dear Wackowiki insiders
Is it possible to embed a Youtube video with the code given by Youtube like this:
<iframe width="560" height="315" src="https://www.youtube.com/embed/dROLGWhCcWY" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
Thanks for any help.
Morgy
Comments
Log in or create an account to post a comment.
1. Embedding Youtube code via embed action
{{embed url="https://www.youtube.com/embed/dROLGWhCcWY" width="560" height="315"}}
2. Embedding Youtube HTML5 Video as Inline HTML
<#<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/dROLGWhCcWY" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>#>
Ensure you allowed the formatter to process Inline HTML and the CSP (Content Security Policy) to load from the media source.
['allow_rawhtml']
)config['csp']
to 2 (custom)