Embed Plugin
The Embed plugin provides iframe-based embedding for content from popular platforms including video providers, social media, design tools, code playgrounds, and media services.Installation
Usage
Features
- Embed content from 12+ popular platforms
- Automatic URL parsing and provider detection
- oEmbed protocol support
- Customizable embed sizes
- Aspect ratio preservation
- HTML and Email export with fallbacks
- Keyboard shortcuts for quick insertion
- Supports alignment (left, center, right)
Supported Providers
- Video: YouTube, Vimeo, DailyMotion, Wistia, Loom
- Social: Twitter, Instagram
- Design: Figma
- Code: CodePen, CodeSandbox
- Media: Spotify, SoundCloud
- Maps: Google Maps
Options
Default Options
Element Type
Default Props
Provider Utilities
oEmbed Support
Hooks
useEmbedUrl
Commands
Parsers
HTML
Deserialize: Converts<iframe> or <div data-yoopta-embed> to embed blocks
Serialize: Outputs iframe in flex container
Markdown
Exports as link (Markdown doesn’t support embeds natively):Examples
Basic YouTube Embed
Figma Embed
CodePen Embed
Using Keyboard Shortcuts
Type one of these shortcuts at the start of an empty paragraph:embed+Space→ Opens embed URL inputyoutube+Space→ Opens with YouTube hintfigma+Space→ Opens with Figma hintcodepen+Space→ Opens with CodePen hint
Dynamic Provider Detection
Provider Configurations
Aspect Ratios
Default aspect ratios for providers:- YouTube, Vimeo, DailyMotion, Wistia, Loom: 16:9
- Twitter, Instagram: 1:1
- Figma: 4:3
- CodePen, CodeSandbox: 3:2
- Spotify: 4:5
- SoundCloud: 16:9
- Google Maps: 16:9
Related
- Video Plugin - Dedicated video plugin with upload
- Image Plugin - Image embedding
- Elements API - Manipulate embed elements