select onChange saved as on-change

Search
Other Bug Reports questions
Forum

select onChange saved as on-change

Philippe's Avatar Philippe
Hello,

Have successfully been using Sourcerer for a while now on Joomla 3.
Turns out that I lately migrated a homemade javascript/html page which did work perfectly with Joomla 3.x to Joomla 4.1.1 (so far) and the script breaks.
Looking into what was generated after sourcerer import and save, I figured that the select "onChange" element was transformed into "on-change"!

Here's the code excerpt, nothing fancy:
<select name="optone" size="1" id="optone" [b]on-Change[/b]="javascript:setOptions(this.value)">
<option value="0">Choisir un type d'activité</option>
<option value="1">Activités sportives</option>
<option value="2">Activités culturelles</option>
</select>

I have tried to change the default editor(s)à I use to see if this could come from one of them with no luck.

Could this come from Sourcerer or does this look like a Joomla 4 "uncommented feature"?

Thanks to let me know

Best regards

Philippe
Peter van Westen's Avatar Peter van Westen ADMIN
Sourcerer is not involved when saving the article. So any changes made to your code/content ?n save is done by the editor. Check your editor settings.
Please post a rating at the Joomla! Extensions Directory
Philippe's Avatar Philippe
Hello Peter,
Thanks for the reply. I also believe that it has nothing to do with Sourcerer but I just needed to make sure.
Also, I checked both JCE (which I used for years with Joomla 3 without seeing this) and TinyMCE which both produce the same thing...

I posted the same message on a Joomla 4 forum to see what happens...

Thx much and best from Paris

Philippe
You can only post on this forum if you log in