You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#117195 Video gets replaced with iframe after save

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by aduna on Wednesday, 30 April 2025 07:39 BST

aduna

We installed JCE Pro and wanted to place Videos (not hosted on same page - simple https:// link) with <video></video>. After switching back from "Code" to "Editor" and back to "Code" it is replaced with <iframe>. 

For a short time i allowed the iframe option but changed it back to no. I was looking in the  Internet for settings to make it work but with no sucess yet. you may can help me out here. Screenshot attached. 

 

 

Attachments

System Task
system
The ticket information has been edited by aduna (aduna).

aduna

additional testing with different settings see attachment

 

also used standard editor / no editor just code and the <video> worked fine. then i switched back to JCE Pro and it changed again to <iframe>.

Attachments

aduna

additional testing:

  1. Switch to Code
  2. write code
  3. save and close
  4. open again (will open direct in Code), no changes
  5. switch to editor and close
  6. open again (will open in Editor now) ,changed to iframe when checking in code
  7. specialeffect: when type video code again, save, switch to editor and back to code it is iframe. but when press F5 w/o any save. it is again video

There is something weard happening between Code and Editor 

Code i used:
<video src="https://www.joomlacontenteditor.net/"></video>
and it changes to:
<p><iframe src="https://www.joomlacontenteditor.net/" sandbox=""></iframe></p>

 

the link is filled in from the page here, its just a video link - use any you want

Ryan

Please try JCE Pro 2.9.85 Beta - https://www.joomlacontenteditor.net/downloads/editor/pro/development

Clear you browser cache after install.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

aduna

Thank you for the feedback. After checking the release informations, we didn't install the update. 

 

Strict Media Embeds Option for Media Support  2.9.83 released
  • Strict Media Embeds Option has been added to Media Support. Previously enabled by default, this option provides control over how media items are embedded (e.g., <video> for video files, <iframe> for YouTube).
  • It is recommended to keep this option enabled for security reasons to ensure that media is embedded using the standard, secure HTML tag.

 

In our case the JCE Pro Editor could not identify our video source and did use iframe for it automaticly with the option Strict Media Embeds ON. 

Solution:

  1. Turn Strict Media Embeds OFF.
  2. We changed our surce so JCE Pro identify it correctly and uses <video> to keep  Strict Media Embeds ON.