Configure Ckeditor 5 Media Embed
Last updated
Last updated
The Varbase Editor Module comes with the CKEditor Media Embed Plugin enabled by default. This feature allows you to directly incorporate resources—such as videos, images, tweets, and more—from external services (known as "content providers") into your content using CKEditor.
To enable embedding from various sources like Spotify, YouTube, and Instagram, generate an API key from Iframely and add it to the configuration navigate to Administration \ Configuration \ Media \ CKEditor Media Embed. In the settings page, enter the following in the Provider URL field:
Then save the configuration.
The following providers are enabled by default with the URL patterns:
YouTube
URL patterns:
youtube.com/watch?v={id}&t={time}
youtube.com/v/{id}?t={time}
youtube.com/embed/{id}?start={time}
youtu.be/{id}?t={time}
Vimeo
URL patterns:
vimeo.com/{id}
vimeo.com/{user}/{name}/video/{id}
vimeo.com/album/{album_id}/video/{id}
vimeo.com/channels/{channel_id}/{id}
vimeo.com/groups/{group_id}/videos/{id}
vimeo.com/ondemand/{ondemand_id}/{id}
player.vimeo.com/video/{id}
URL pattern:
instagram.com/p/{id}
URL pattern:
twitter.com
Google Maps
URL patterns:
google.com/maps
goo.gl/maps
maps.google.com
maps.app.goo.gl
Flickr
URL pattern:
flickr.com
URL pattern:
facebook.com
Spotify
URL patterns:
open.spotify.com/artist/{id}
open.spotify.com/album/{id}
open.spotify.com/track/{id}
Dailymotion
URL patterns:
dailymotion.com/video/{id}
dai.ly/{id}
To generate a new API key from Iframely:
Visit Iframely's login page and login or create a new account.
Go to Iframely's API keys page.
Generate a new API key.