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)

#110713 JCE Stripping JavaScript on Code Tab

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 WALC on Friday, 20 May 2022 12:37 BST

hcpljce
After updating JCE to 2.9.21, the Javascript code in a custom Joomla module gets stripped when switching from the Editor tab to the Code tab. I have been using JCE on this server for a long time and have not changed the Default configuration. I am using Chrome and my Joomla version is 3.10.6. I have attached screenshots to demonstrate the behavior.

Attachments

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

Ryan Demmer

Lead Developer / CEO / CTO

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

hcpljce
Yes, that fixed the issue.

Roderic
Same goes for CSS, installing the beta didn't fix it unfortunately.

Ryan
[quotePost id="110716"]Same goes for CSS, installing the beta didn't fix it unfortunately.[/quotePost]

I'm not seeing an issue with css with the beta. Have you enabled the Allow CSS option in Editor Profiles -> Editor Parameters -> Advanced?

Ryan Demmer

Lead Developer / CEO / CTO

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

stavros
Same here. After a successful upgrade to 2.9.21 everything within {source}{/source} and the whole of <style></style> (including the tags) do not appear on screen, and if saved they are vanished forever.
For the time being I am back to 2.9.20.

Ryan
[quotePost id="110723"]Same here. After a successful upgrade to 2.9.21 everything within {source}{/source} and the whole of (including the tags) do not appear on screen, and if saved they are vanished forever.
For the time being I am back to 2.9.20.[/quotePost]

This is now fixed in JCE Pro 2.9.22 Beta - https://www.joomlacontenteditor.net/downloads/editor/pro/development

Ryan Demmer

Lead Developer / CEO / CTO

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

stavros
Excellent!
Now with the 2.9.22 Beta the "vanishing" effect got vanished.

Thank you Ryan.

Ryan
[quotePost id="110746"]
Now with the 2.9.22 Beta the "vanishing" effect got vanished.
[/quotePost]

JCE Pro 2.9.22 is now available - https://www.joomlacontenteditor.net/downloads/editor/pro/latest

Ryan Demmer

Lead Developer / CEO / CTO

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

WALC
I am on verson 2.9.22 and my code is being stripped 🙁

Ryan
[quotePost id="111087"]I am on verson 2.9.22 and my code is being stripped 🙁 [/quotePost]

Have you enabled javascript in Editor Profiles? - https://www.joomlacontenteditor.net/support/faq/editor/scripts-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.

WALC
Yes, all settings are as they have always been

screenshot

This is a page with embedded youtube videos https://www.walc.org.uk/presentation-videos

Ryan
Whata code is being removed?

Is it only removed when you switch to the Code tab?

Ryan Demmer

Lead Developer / CEO / CTO

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

WALC
no, it is being removed throughout.
I am using Joomshaper helix template, I am going to look into that being the problem I think

Ryan
What code is being removed?

Ryan Demmer

Lead Developer / CEO / CTO

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

WALC
All code I put into articles / modules

iframes (for embedding YouTube videos)

Javascript for embedding MailChimp feed

php (using sorcerer )

WALC
Its OK Ryan, I have found the problem, it was due to cookies not be correctly accepted - sorry for taking your time