JCE messes up links

Phoca Email (Newsletter) - sending emails and managing newsletters in Joomla! CMS
User avatar
christine
Phoca Hero
Phoca Hero
Posts: 2991
Joined: 28 Nov 2010, 17:20

Re: JCE messes up links

Post by christine »

Hi MarkRS,
I contacted Ryan, see here on GitHub:

https://github.com/widgetfactory/jce/issues/142
There's a missing > in your Code.

Kind regards
Christine
User avatar
christine
Phoca Hero
Phoca Hero
Posts: 2991
Joined: 28 Nov 2010, 17:20

Re: JCE messes up links

Post by christine »

https://github.com/widgetfactory/jce/issues/142

Therefore Info from Ryan:
This works fine for me in JCE:

<a href="{readonlinelink}">:Click here to read online</a>

This issue here (link to this thread) ... :

is that the poster's HTML is incorrect.
Not correct:

Code: Select all

<a href="{readonlinelink}":Click here to read online</a>
Missing the > after "

Kind regards,
Christine
MarkRS
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 15 Apr 2026, 11:30

Re: JCE messes up links

Post by MarkRS »

Thanks for that Christine.

Yes, the posted html is incorrect (dammit!). Unfortunately that's not the code that's having the problem. I wasn't careful enough posting it and that lack of ">" and presence of ";" is just left over from where I manually corrected (incorrectly) the "&gt;" that the editor produced.

Even when I do correctly have ">" there, ie

Code: Select all

<div><a href="{readonlinelink}">Click here to read online</a></div>
I get the problem.

Presumably no-one else here is seeing this same issue?

I also notice that if, in desperation, I take out the quotation marks around the variable, the editor removes everything on the line except the variable and the text that would have been in the link, separated by "&gt;".
MarkRS
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 15 Apr 2026, 11:30

Re: JCE messes up links

Post by MarkRS »

Is it helpful to know that this isn't some badly formed newsletter I wrote myself? This is happening (for me) with the demo newsletter that is supplied with the extension :(
MarkRS
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 15 Apr 2026, 11:30

Re: JCE messes up links

Post by MarkRS »

Ok, I've found what it is. It is being caused by JCE.

It's caused when the option "Protect Shortcode" in the active profile options (Editor Parameters -> Advanced) is on.

To be fair, the option is marked as "experimental". I'll post in Ryan's github issue, if I have access.

<Later> I have the access to comment on that issue even though it's closed, but not to re-open it. Does that need doing or will Ryan see it anyway?
User avatar
christine
Phoca Hero
Phoca Hero
Posts: 2991
Joined: 28 Nov 2010, 17:20

Re: JCE messes up links

Post by christine »

Hi MarkRS,
MarkRS wrote: 16 Apr 2026, 10:47 Ok, I've found what it is.

It's caused when the option "Protect Shortcode" in the active profile options (Editor Parameters -> Advanced) is on.
Thanks for the info directly in the issue on GitHub.
<Later> I have the access to comment on that issue even though it's closed, but not to re-open it. Does that need doing or will Ryan see it anyway?
Sure – Ryan saw it. :-)

Ryan also replied there on Github:
Thanks for clarifying. I will see if I can get this working with Protect Shortcode enabled too.
It's not a bug, more like a feature request for him.

Kind regards,
Christine
Post Reply