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 Online

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

#105652 Code Stripped

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 Ryan on Monday, 26 October 2020 10:02 GMT

bigfishtools
Ryan,

Hope you're good. Having an issue after update 2.8.18 iframe is being remove from the code. I have tried everything on this page: https://www.joomlacontenteditor.net/support/faq/editor/iframe-removed-on-saving and tried other editors (tiny) with exclusion of the iframe and no luck. Thinking joomla issue? I did open another old article with youtube video embedded and it save fine and no code stripped? I can get it to show when adding it with the Media button (see image) in the editor and I'm curious of the "click to activate, CMD + Click toggle placeholder" that pops up? When saved it is stripped. Any help would be great.

Great component
Alton

Attachments

Ryan
Please post a screenshot of the iframe code you are trying to add that is getting removed.

Ryan Demmer

Lead Developer / CEO / CTO

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

bigfishtools
Added with media button:
<div style="text-align: center;"><iframe src="https://www.youtube.com/embed/7S7NQjR0We0?rel=1" width="560" height="315" allowfullscreen="true"></iframe></div>


Added with embed from youtube:
<iframe width="560" height="315" src="https://www.youtube.com/embed/7S7NQjR0We0" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
ends up after save
<div style="text-align: center;"> </div>


Thanks Ryan

Ryan
Added with embed from youtube:
<iframe width="560" height="315" src="https://www.youtube.com/embed/7S7NQjR0We0" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
ends up after save
<div style="text-align: center;"> </div>


Is this removed when you click the "power" / toggle editor button above the editor toolbar on the left, or only when you click the Joomla Save button.

Ryan Demmer

Lead Developer / CEO / CTO

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

bigfishtools
No, can toggle back and forth and it remains. In the visual editor I can see the actual video like the image in above post. It has this verbiage in the middle of the video:

"Click to Active, CMD + Click to toggle placeholder" This is horizontal in middle of video, when double clicked it will even play. Toggle editor button it is still there. After saving it is gone.

Thanks Ryan

Ryan
No, can toggle back and forth and it remains. In the visual editor I can see the actual video like the image in above post. It has this verbiage in the middle of the video:


This suggests that the iframe code is being removed on saving, or when the article is displayed, which is out of the editors control.

If after saving the code is removed, then this is the cause, and you need to check the Joomla Text Filter settings, as described - https://www.joomlacontenteditor.net/support/faq/editor/iframe-removed-on-saving

Ryan Demmer

Lead Developer / CEO / CTO

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

bigfishtools
Thanks Ryan,

Had it setup No Filtering to start with.

Changed to: Alternatively, in Joomla 3 and Joomla 4, set the Filter Type to Custom Blacklist, and add an edited list of the default Blacklist tags to the Filter Tags field, with script removed, eg:

Changed it back to No filtering it worked?

As always thanks.

Ryan
Changed to: Alternatively, in Joomla 3 and Joomla 4, set the Filter Type to Custom Blacklist, and add an edited list of the default Blacklist tags to the Filter Tags field, with script removed, eg:


Apologies, I have corrected this. For iframes it should have read:

add an edited list of the default Blacklist tags to the Filter Tags field, with iframe removed

Ryan Demmer

Lead Developer / CEO / CTO

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