Still having issues.
I’m unable to get this script to display on my Discourse site:
<script src="https://cmox.cdn.vooplayer.com/assets/vooplayer.js"></script><iframe allow="autoplay" class="video-player-container vooplayer" data-playerId="MTU1NTMy" allowtransparency="true" style="max-width:100%" name="vooplayerframe" allowfullscreen="true" src="https://cmox.cdn.vooplayer.com/publish/MTU1NTMy" frameborder="0" scrolling="no"> </iframe>
I have allowed the Script and iFrame:
I put together a simple plugin and installed it:
https://github.com/waffleslop/discourse-vooplayer
The code I have is as follows:
Discourse.Markdown.whiteListTag("div", "style", /[a-z]+/); Discourse.Markdown.whiteListTag("div", "class", /[a-z]+/); Discourse.Markdown.whiteListTag("iframe", "class", /[a-z]+/); Discourse.Markdown.whiteListTag("iframe", "style", /[a-z]+/);
However when I try to embed the video, this is what happens:
It looks like Discourse is stripping style and class from the embed.
Similarly, I am finding this:
<div class="123">test</div>
to be displayed as:
<div>test</div>
It looks like Discourse is stripping all class/style, even from simple divs.
What can I do to get this to work?
Thank you!


