TinyMCE sandboxes scripts in iframes

Need help with the Administration of your Joomla! 5.x site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
perissf
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Sat May 25, 2013 10:40 am

TinyMCE sandboxes scripts in iframes

Post by perissf » Wed Apr 24, 2024 5:10 pm

Hi,
I noticed that there is no way to allow iframes with JS (like [youtube] embed) with TinyMCE editor because it inserts a sandbox attribute.
Apparently there is a recent TinyMCE option to allow it (TINY-10348), but it's not available in the plugin options.

https://github.com/tinymce/tinymce/blob ... ANGELOG.md

jflash
Joomla! Apprentice
Joomla! Apprentice
Posts: 35
Joined: Thu Nov 17, 2005 11:27 am
Contact:

Re: TinyMCE sandboxes scripts in iframes

Post by jflash » Tue Apr 30, 2024 1:15 pm

I confirm it. I put to article:
<iframe src="https://drive.google.com/file/d/gkhbjfblkjgdf/preview" width="2000" height="700" allow="autoplay"></iframe>
and TinyMCE adds sandbox="" attribute automatically:
<iframe src="https://drive.google.com/file/d/gkhbjfblkjgdf/preview" width="2000" height="700" allow="autoplay" sandbox=""></iframe>
and result is embed file shows only first page. I need to change editor to none under my profile (i tried only this) and then i go to edit article again...


Post Reply

Return to “Administration Joomla! 5.x”