Validation Script In "Text" Block Causes Issues With JCE Code Mode - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Validation Script In "Text" Block Causes Issues With JCE Code Mode

D

djumla

SP Page Builder 3 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

0
5 Answers
Toufiq
Toufiq
Accepted Answer
Senior Staff 3 years ago #73601

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

0
D
djumla
Accepted Answer
3 years ago #73613

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

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 3 years ago #73620

@David

JCE Core/Free or JCE Pro ?

0
D
djumla
Accepted Answer
3 years ago #73621

It's JCE Pro in our case

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 3 years ago #73693
0