Repository navigation
New
EmbedPlugin::allowEmbedsIn()lets embeds surviveRichContentRenderer::toHtml(). Filament's sanitizer removes<iframe>, so embeds used to render as an empty<div class="embed">. The helper allows the embed's iframe, and keeps itssrconly forhttpsURLs on YouTube, YouTube's privacy-enhanced domain and Vimeo, or on hosts you pass. See Rendering → Embeds.
$this->app->extend(
HtmlSanitizerConfig::class,
fn (HtmlSanitizerConfig $config): HtmlSanitizerConfig => EmbedPlugin::allowEmbedsIn($config),
);Fixes
- Responsive embed sizes no longer grow. Each time the editor re-read its own HTML (in the source-code modal, or when loading content stored as HTML), a responsive embed's stored size grew tenfold. The aspect ratio was never affected. Embeds already saved with an inflated size keep it, but no longer grow.
What's Changed
Full Changelog: v2.3.3...v2.4.0