DEV Community

Cover image for Feature update: Rich Content Embeds

Feature update: Rich Content Embeds

Arit Developer on February 16, 2022

Hello DEV Community! I'm excited to announce a significant improvement in how we embed rich content (such as Tweets and Youtube videos) in Forem p...
Collapse
 
michaeltharrington profile image
Michael Tharrington • Edited

In celebration of this update, I'm gonna embed something here:

I've been really digging this song this AM. ๐Ÿ˜๐Ÿ‘‡

Collapse
 
atulcodex profile image
๐Ÿšฉ Atul Prajapati ๐Ÿ‡ฎ๐Ÿ‡ณ

oh you just tested this new feature :)

Collapse
 
ben profile image
Ben Halpern

Arit, you crushed this.

Collapse
 
aritdeveloper profile image
Arit Developer

Thank you Ben!

Collapse
 
andypiper profile image
Andy Piper

Do the new embeds have a way to hide the GitHub README to make the embed more compact? In the other Liquid format, it worked to add noreadme to the tag.

Collapse
 
aritdeveloper profile image
Arit Developer

Thank you Andy. Would you please open a ticket for this?

Collapse
 
andypiper profile image
Andy Piper

Issue #16673 ๐Ÿ‘

Collapse
 
andypiper profile image
Andy Piper

Cool! Thanks for the update! Will we need to update any older content (since the former approach will be deprecated in the future), or will that be handled for us?

Collapse
 
aritdeveloper profile image
Arit Developer

Youโ€™re welcome Andy!

Great question! While we have not decided, we will most probably handle the updates of v1 embeds ourselves.

Collapse
 
rolandixor profile image
Roland Taylor

Very handy! Thanks!

Collapse
 
siddharthshyniben profile image
Siddharth

Wait โ€“ I already found a bug lol

{% embed https://google.com/ %} doesnt seem to work

Collapse
 
aritdeveloper profile image
Arit Developer • Edited

Hello @siddharthshyniben, the link you used is not currently supported.

You can find a list of currently supported embeds here: dev.to/p/editor_guide#liquidtags

Collapse
 
thomasbnt profile image
Thomas Bnt โ˜•

Ooooh coooool ๐Ÿฅณ๐Ÿฅณ๐Ÿฅณ

Collapse
 
metacollective profile image
metacollective

Hey Arit,

This is brilliant! Thanks for letting us know. Now, all I have to do is find a way to get it into my next post ;)

Collapse
 
rsidhhvin profile image
Kevin Costa

Thanks for the information!

Collapse
 
gwigwam profile image
GWigWam

But what does this mean for user privacy? Won't this enable these companies to do cross-site tracking?

Collapse
 
jeremyf profile image
Jeremy Friesen

At present, the only embeds you can use are the previous embeds; we've just squashed them into a unified syntax. So this has been a privacy neutral change.

Collapse
 
jmasl7 profile image
John Lewis

are we going to be reading about this as a security vulnerability in a few months?

Collapse
 
jeremyf profile image
Jeremy Friesen

What are you seeing as the possible security vulnerability?

At present, the only embeds you can use are the previous embeds. The thing that's changed is you don't need to recall which service you're embedding. We're also working on a fallback (e.g. which would be "render the A-tag you provided" but perhaps more)