JCE messes up links

Phoca Email (Newsletter) - sending emails and managing newsletters in Joomla! CMS
MarkRS
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 15 Apr 2026, 11:30

JCE messes up links

Post 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.
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 10097
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: JCE messes up links

Post 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
User avatar
christine
Phoca Hero
Phoca Hero
Posts: 2990
Joined: 28 Nov 2010, 17:20

Re: JCE messes up links

Post 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
MarkRS
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 15 Apr 2026, 11:30

Re: JCE messes up links

Post 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 :-(
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 10097
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: JCE messes up links

Post 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
User avatar
christine
Phoca Hero
Phoca Hero
Posts: 2990
Joined: 28 Nov 2010, 17:20

Re: JCE messes up links

Post by christine »

Hmm, I can see these images when I access them.

Thanks, Benno :-)
MarkRS
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 15 Apr 2026, 11:30

Re: JCE messes up links

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49345
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: JCE messes up links

Post 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
If you find Phoca extensions useful, please support the project
MarkRS
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 15 Apr 2026, 11:30

Re: JCE messes up links

Post 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 :(
User avatar
christine
Phoca Hero
Phoca Hero
Posts: 2990
Joined: 28 Nov 2010, 17:20

Re: JCE messes up links

Post by christine »

@ All,

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

Kind regards,
Christine
Post Reply