Media/iFrame disappears on save

General questions relating to Joomla! 3.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
nickmo
Joomla! Apprentice
Joomla! Apprentice
Posts: 36
Joined: Fri Mar 09, 2012 3:10 am

Media/iFrame disappears on save

Post by nickmo » Fri Apr 30, 2021 7:24 am

A superuser can add an iFrame or [youtube] video and everything is saved and it all works as expected.
I have a client that I would like to limit how much they can do in the backend.
I have given them permissions to create etc. articles, BUT when they add a [youtube] video (same as superuser does) the code disappears when they press Save.
This is very frustrating and I have no idea what permission may be causing this. When I give them superuser access, everything works fine.
Any idea what may be causing the media to not be saved (in fact it is erased!) when Save is pressed? Is it a permissions issue?

Any help, greatly appreciated.
Thanks, Nick

nickmo
Joomla! Apprentice
Joomla! Apprentice
Posts: 36
Joined: Fri Mar 09, 2012 3:10 am

Re: Media/iFrame disappears on save

Post by nickmo » Fri Apr 30, 2021 7:51 am

Forgot to mention that the client is a user group beneath 'Manager', with some additional permissions.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30813
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Media/iFrame disappears on save

Post by Per Yngve Berg » Fri Apr 30, 2021 2:54 pm

It's the text filters.

Instead use a video plugin.

https://extensions.joomla.org/extension/allvideos/

nickmo
Joomla! Apprentice
Joomla! Apprentice
Posts: 36
Joined: Fri Mar 09, 2012 3:10 am

Re: Media/iFrame disappears on save

Post by nickmo » Mon May 03, 2021 12:11 am

Thank you for the suggestion.
There is not a problem with a Superuser adding the video, the problem is with a Manager adding the video.
1. Do I need to change permissions for the Manager so that they can add video? If yes, which permissions?
2. If the issue is with the text filters, what do I need to change?
Thanks.

User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 28193
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: Media/iFrame disappears on save

Post by imanickam » Mon May 03, 2021 4:53 am

Check whether the following solution works:
imanickam wrote:
Thu Jul 26, 2012 4:19 pm
Re: Embedding IssuesPost detailsQuote imanickam
by imanickam » Thu Jul 26, 2012 9:49 pm

For allowing iFrame in In TinyMCE, try the following:

In the Plug-in Manager, open the plug-in "Editor - TinyMCE" for edit and remove the text string "iFrame" from the option Prohibited Elements.
Note: It is assumed that you are using the editor TinyMCE.
Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
Joomla! - Global Moderators Team | Joomla! Core - Tamil (தமிழ்) Translation Team Coordinator
Former Joomla! Translations Coordination Team Lead
Eegan - Support the poor and underprivileged

nickmo
Joomla! Apprentice
Joomla! Apprentice
Posts: 36
Joined: Fri Mar 09, 2012 3:10 am

Re: Media/iFrame disappears on save

Post by nickmo » Mon May 03, 2021 5:24 am

Thank you, but it seems it is a Joomla Text Filters issue. The text filter settings will override any text editor settings.
As soon as I changed it from 'Default Blacklist' to 'No Filtering' everything worked as expected.
Here is the relevant info from the text filters' page:

" Blacklist allows all tags and attributes except for those in the blacklist.
-- Tags for the Default Blacklist include: 'applet', 'body', 'bgsound', 'base', 'basefont', 'canvas', 'embed', 'frame', 'frameset', 'head', 'html', 'id', 'iframe', 'ilayer', 'layer', 'link', 'meta', 'name', 'object', 'script', 'style', 'title', 'xml'


Please note that these settings work regardless of the editor that you are using.
Even if you are using a WYSIWYG editor, the filtering settings may strip additional tags and attributes prior to saving information in the database. "

Hope this helps others.


Locked

Return to “General Questions/New to Joomla! 3.x”