Skip to content

What do we want to do with BBCodes that could become iframes #69

@Mondrethos

Description

@Mondrethos

Hey,

So I was looking at the two BBCode that are not actually BBCode. PDF (using Google Drive links) Challenge while they have tags like BBCode, are actually a part of xenForo's media system which I have no idea why they did that way, I guess to try to make it all look like BBCode and leverage their engine, but whatever.

On Discourse, we can just do this:

image

In the above picture you can see all the default iframe source domains that discourse allows, and I've gone ahead and added drive.google.com

This means that

[gdoc]0B-8p7J_eRZNScUVXUzZNRFBnVEk[/gdoc] 

becomes

<iframe src="https://drive.google.com/file/d/0B-8p7J_eRZNScUVXUzZNRFBnVEk/preview?resourcekey=0-BbPZmK-7LK8LaCJnz7vvCA" width="640" height="480" allow="autoplay"></iframe>

This also means that users no longer have to hunt down for the ID in the URL or anything else. They can use the Google provided code for their posts and, in fact, the iframe code provided by any site we choose to allow in the future, like https://kumu.io

See it in action here: https://t.rpnation.com/t/testing-google-pdf/133

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions