Validation Script in "Text" block causes issues with JCE code mode - Forum | JoomShaper
Staff replied SP Page Builder

Validation Script in "Text" block causes issues with JCE code mode

Asked by djumla 4 years ago Last activity 4 years ago

The validation JS that's listening to "change" events is causing issues with the latest JCE versions. If you switch JCE to "source code" mode, the validation script is reacting to each and every keystroke, even escaping < and > characters and moving those into a new paragraph - that renders the code mode completly unusable, see:

https://djumla.dev/Voila_Capture%202022-06-24_10-32-14_AM.mov

5 replies

Toufiq Senior Staff

Hi there,

Thanks for contacting us. Sorry for the inconvenience. If i am not wrong, you need to contact with the jce extension provider.

-Thanks

djumla Asked this

Hi,

the issue is not JCE doing something wroing, it's your validation JS blindly assuming that every single keystroke needs to be wrapped in p-Tags, escaping legitimate special characters used in HTML.

If I use JCE in a standalone mode, it's perfectly working fine. The issue only occurs if it's used in SP pagebuilder.

Cheers,
David

Paul Frankowski Senior Staff

@David

JCE Core/Free or JCE Pro ?

djumla Asked this

It's JCE Pro in our case

Log in to reply.