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.

#106159 iFrame is stripped out going from code view to html view

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 recived on Wednesday, 20 January 2021 10:34 GMT

patvb
I've set the profile to user group Superusers and user to myself, set the text filter to none on superusers in global config, set iFrame to allowed in Media tab, and html cleanup is set to yes with an exception for iFrame. I am in code view, copy/paste the iFrame code (as from a Facebook video), hit Save. The code is still there so long as I don't Save & Exit, and then come back into the article in html view. If I come back in using code view, the iFrame code is still there. But I don't have a way to make sure code view was the last way I viewed an article.

To reiterate:
1. Place iFrame code in code view, Save, switch to html view, the iFrame code is gone.
2. Place iFrame code in code view, Save & Exit. Edit another article, having left it in html view. Open iFrame article, and now it opens in html view, and the iFrame code is gone in code view.

What else is there? Thanks for any support you can give.

Ryan
and html cleanup is set to yes with an exception for iFrame.


There is no need to add any exception anywhere, if the Allow IFrames option is set in Media Support (also, what option have you selected for this?)

Ryan Demmer

Lead Developer / CEO / CTO

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

patvb
I have it set to iFrame yes.

Ryan
And have you added anything to the Extended Elements field? If you have, remove what you have added, as it is not necessary to enable iframes.

Ryan Demmer

Lead Developer / CEO / CTO

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

patvb
There is nothing in that field.

Ryan
Please send me a login - https://www.joomlacontenteditor.net/contact/site-login

Ryan Demmer

Lead Developer / CEO / CTO

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

patvb
Done.

Ryan
This issue may have been caused by the ordering of your profiles. Assuming you are using the "Developer" profile, which has iframes enabled, your "Default" profile, which does not allow iframes, was at the top of the profile list, which means it was being used for editing for Super Users instead of the "Developer" profile.

I have re-ordered the profiles, so that "Developer" is above "Default".

Please confirm if this fixes the issue.

Ryan Demmer

Lead Developer / CEO / CTO

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

patvb
Yes, this worked great. Thanks, Ryan. iFrames now work, and just for me.

recived
hi. iframe stopped working for me too (except YouTube). problems started at 2.9. in the version with the same settings 2.8.5, they work, tested.

j3.9.24. jce 2.9.1 text filter all "not filtering", media support "on".

https://prnt.sc/x84yyo
https://prnt.sc/x851k2

Ryan
iframe stopped working for me too (except YouTube)


Please explain. Are the iframes being removed when you save, or their content is not displaying in the front-end?

Ryan Demmer

Lead Developer / CEO / CTO

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

recived
iframe stopped working for me too (except YouTube)


Please explain. Are the iframes being removed when you save, or their content is not displaying in the front-end?

backend. I insert the iframe in the "code" tab, switch to the "editor" tab, the iframe is removed.

1. insert iframe https://prnt.sc/x9ina1

2.click tab editor, iframe removed https://prnt.sc/x9ijwp

Ryan
In Editor Profiles -> Plugin Parameters -> Media Support, is Allow IFrames set to Yes?

https://cdn.joomlacontenteditor.net/tmp/106159-iframe-is-stripped-out-going-from-code-view-to-html-view.jpg

Ryan Demmer

Lead Developer / CEO / CTO

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

recived
omg.. thanks!!!!! problem was exactly this Allow IFrames. thanks again