Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
February 16, 2022 09:56 pm GMT

Feature update: Rich Content Embeds

Hello DEV Community!

I'm excited me to announce a significant improvement in how we embed rich content (such as Tweets and Youtube videos) in Forem posts and comments.

Now, you need just the embed keyword and the complete URL of the resource:

{% embed https://... %}

Prior to this change, we embedded rich content by using keywords specific to the type of embed being created. For example, to embed a GitHub repository, we would use the github keyword and the slug to the repository:

{% github forem/forem %}

With our new approach, all you need is the complete URL to the repository:

{% embed https://github.com/forem/forem %}

Our Editor's Guide contains a list of supported content types. Note that embeds that were created using the former approach will still work for now. Eventually, the former approach will be deprecated.

Do jump in and try this new rich-content embed approach out! Please report any bugs you may encounter - thanks!

Originally published on Forem.dev.


Original Link: https://dev.to/devteam/feature-update-rich-content-embeds-390e

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To