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)

#117903 Event attributes are removed

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 josemh on Friday, 07 August 2026 11:00 BST

josemh

Hello,
I am using version 2.9.99.10.
I have "Allow Javascript" set to YES and "Allow Event Attributes" also set to YES, in the Joomla configuration are set to "No filters" but when I save the article, the events are removed.

Thank you and best regards.
Jose

Ryan

Are the event attributes removed when you click between the Code tab and the Editor tab, or only when you save?

Ryan Demmer

Lead Developer / CEO / CTO

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

josemh

Hello,
in both cases
Thanks

Ryan

Please post a screenshot of the code before it is removed.

Ryan Demmer

Lead Developer / CEO / CTO

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

josemh

I am attaching two images: the original text and the version after the changes.
Thank you.

Attachments

Ryan

Please try JCE Pro 2.9.99.11 Beta - https://www.joomlacontenteditor.net/downloads/editor/pro/development/jce-pro-2-9-99-11-dev

Clear your 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.

josemh

Hello,
The "onload" event is no longer being stripped out, but the script still doesn't work.

If I enter the code directly into the database (using phpMyAdmin), everything works fine.
However, if I enter it by editing the article using JCE, it doesn't work.
I've tried configuring the editor with various "Element Container" options —including "none," paragraph, div, etc.— but it still doesn't work.

Thank you and best regards!

josemh

Hello,
Attached is the error I get when viewing the article saved with JCE.
Thanks.

Attachments

josemh

Hello,
I am attaching an image showing the code I enter via phpMyAdmin, which works, and a second image showing the code that results from using JCE, which does not work.
In other words, in JCE, I enter the first code, and when I switch tabs or save, it generates the second code.
Thanks.

Attachments

Ryan

By default JCE will add the "sandbox" attribute to all iframes, to prevent the loaded contents from the iframe from accessing elements outside of the iframe and executing scripts. This is a security precaution.

You can disable the sandbox attribute for all iframes, or set an exclusion for a particular url.

Please see - https://www.joomlacontenteditor.net/support/faq/editor/iframe-content-not-displaying

Ryan Demmer

Lead Developer / CEO / CTO

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

josemh

Hello,
Perfect.
Forgive my ignorance.

Thank you and best regards!
Jose