Joe, I should have been able to find this answer without bugging y’all. Is there a bigger document on how to use Discourse that I can check in the future? Otherwise, I’m just searching Meta. And with all the great how-tos I’ve seen, I bet the Discourse team has built a bigger doc.
Can you point me in the right direction?
Also, I’m super grateful for all y’all do. Meta is such a killer community and the codebase seems so solid.
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:
This is a big no no. By adding this you’re removing some of the very important abuse prevention measures that Discourse has. We strip these things for a reason.
Long story short, I’ve looked at vooplayer embeds and you’re in for a bit of work. There’s going to be a lot of friction because the way vooplayer handles their iframes is not ideal in the context of a single page application.
I would strongly recommend that you use another service like Youtube or Vimeo if you can as these are supported out of the box in Discourse.
If you’re set on using vooplayer, then the scope of the help you need exceeds what we can provide and I would recommend a topic in the #marketplace category.