Zen Cart Logo
Forums / All Other Contributions/Addons / CkEditor Anchor text not working

CkEditor Anchor text not working

Views: 3,045

Results 1 to 7 of 7
26 May 2013, 5:48 PM
#1
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

CkEditor Anchor text not working

I am trying to set up a FAQ page with anchor links. When I try, all I get is the default page for page not found. I have read that this was once a bug about 3 years ago. There used to be 4 tabs in the Link popup but now there are just 2 tabs.

It's not a big deal, but it would be nice if I could get it to work.

27 May 2013, 1:22 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: CkEditor Anchor text not working

Switch to the "source" view and see what url it is placing in the link
And how does that compare to the url when the page-not-found comes up?

27 May 2013, 11:24 AM
#3
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: CkEditor Anchor text not working

Here is the link <a href="#11">

Here is the anchor <span style="font-size:14px;"><a id="11" name="11">

27 May 2013, 1:24 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: CkEditor Anchor text not working

<a href="#11">

While in source mode - add the correct link

27 May 2013, 1:32 PM
#5
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: CkEditor Anchor text not working

What it is doing is using store base url....i.e.

www.mystore.com/#11

I know how to code it. Thats not the problem. The problem is ckeditor and/or zencart is causing the bad link.

27 May 2013, 2:43 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: CkEditor Anchor text not working

/#11
is nowhere near the same as
/index.php?main_page=my_custom_faq#11
nor would ckeditor know about which page URL to generate.

The base href is used by other assets on the page, so must remain.

Simplest solution:
Simply put the complete URL in by manually typing it into your anchor hrefs.

27 May 2013, 4:43 PM
#7
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: CkEditor Anchor text not working

Roger that.