filament-tinyeditor
filament-tinyeditor copied to clipboard
sandbox="" is being added to iFrame embed code automatically
sandbox="" is being added to iFrame embed code automatically, and cannot get rid of it.
Does anyone have a solution for it?
TinyEditor::make('content')
->setCustomConfigs([
'sandbox_iframes' => true,
'sandbox_iframes_exclusions' => ['IFRAME_DOMAINS'],
]),
This should solve the problem. I faced the same issue while embedding videos from api.video. After search, I found that TinyMCE add sandbox layer to prevent XSS attacks. So, it's very important to keep sandboxing works but you can exclude domains you need.
Note I used the full domain of embedding embed.api.video otherwise it didn't work with me