Page 1 of 2

JCE messes up links

Posted: 15 Apr 2026, 11:42
by MarkRS
I'm finding that JCE editor mode breaks Phoca links. For example entering

Code: Select all

<a href="{readonlinelink}":Click here to read online</a>
in code mode gets changed to

Code: Select all

<a href="&lt;span data-mce-code=" shortcode"="">{readonlinelink}"&gt;Click here to read online</a>
as soon as I switch to editor mode. This doesn't happen with TinyMCE, of course.

I've got a special JCE profile set, and all the "validate HTML" switches I can find turned off, but it still happens.
If the link is not enclosed in a "<a" element then this doesn't happen, but that's not much help.

Is this just my setup? Any ideas how to fix it, other than not use JCE?

I'm running Phoca Newsletter 6.0.0 and Joomla 6.1.0 (it was the same with previous 6.x Joomla versions) and the latest free version of JCE.

Re: JCE messes up links

Posted: 15 Apr 2026, 12:48
by Benno
Hi,
Any ideas how to fix it, other than not use JCE?
Have you contacted JCE Support because it seems to be a JCE issue... :idea:

Kind regards,
Benno

Re: JCE messes up links

Posted: 15 Apr 2026, 13:02
by christine
Hi,
Benno, you were too fast :-) I tried something here before:
You can create your own style list.

https://www.joomlacontenteditor.net/sup ... tor-format

Or:

Try it like this, see: Insert Link.
https://imgur.com/a/qlJMFax
https://imgur.com/a/USHh5YD

You can also enter some things in the advanced settings.

Kind regards,
Christine

Re: JCE messes up links

Posted: 15 Apr 2026, 13:45
by MarkRS
Benno, there's no support without a subscription at JCE, I suppose understandably.

Christine, I can't see those imgur things, it says it's not available in my region :-(

Re: JCE messes up links

Posted: 15 Apr 2026, 14:07
by Benno
@MarkRS
Christine, I can't see those imgur things, it says it's not available in my region :-(
This are Christine's images:
1.)
Image

2.)
Image


Kind regards,
Benno

Re: JCE messes up links

Posted: 15 Apr 2026, 14:09
by christine
Hmm, I can see these images when I access them.

Thanks, Benno :-)

Re: JCE messes up links

Posted: 15 Apr 2026, 15:03
by MarkRS
Thanks both for this, however, the problem isn't that I don't know how to insert links into a document. The problem is that using Phoca Email variables is getting messed up by JCE.

With that in mind, I'm afraid I don't understand how your fix works, Christine.

Re: JCE messes up links

Posted: 15 Apr 2026, 15:31
by Jan
Hi,
Joomla uses {} for pasting plugin codes to the article content. This is the standard way, unfortunately, Phoca Email has no other option available. If this is stripped by some editor, such editor needs to be changed (e.g. some modification needs to be added or maybe try to see options of JCE if there is no parameter for making exceptions. Does it work when the variable is not a part of html like attribute but normally in text?

Jan

Re: JCE messes up links

Posted: 15 Apr 2026, 16:36
by MarkRS
Hi Jan,
It seems to be the act of switching from code to editor mode.
I used editor mode to put that variable (and its braces) in via the icon in the editor bar that Christine pointed out and it remained correct. I could see that by looking at it in code mode. However, as soon as I switched back to editor mode then it again got corrupted :(

Re: JCE messes up links

Posted: 15 Apr 2026, 16:48
by christine
@ All,

Wait 1 minute, okay, a little longer. :-) Preparing information for Ryan...

Kind regards,
Christine