I have content that contains a bunch of jump links (links that jump to a place further down the page). When I edit this page in fckeditor, a bunch of superfluous <a name></a> tags are put in the content, most of them surrounding text, which causes the text to turn red when you rollover it with your mouse in a browser. This is really irritating. What gives?
Mon, 04/17/2006 - 10:36
#1
RE: <a name> tags spontaneously created!
the <a> tag must be closed, so if you have put just <a name="anchor"> without a closing </a> then the browser will put one wherever it thinks it might be needed.
Yes, it validates
<a name="whatever"></a>My subtitle here
but I believe fckeditor does not like the <a> tag with nothing inside it...so it not only changes THAT part of the text to
<a name="whatever">My subtitle here</a>
But it also puts <a name> tags around all the other content it finds, until it gets to the next <a name> tag I've put in the content. So when I enter:
<a name="whatever"></a>My subtitle here
<BR>
Content and so on...
<BR>
<a name="another"></a>Next subtitle here
<BR>
So it ends up looking something like this:
<a name="whatever">My subtitle here</a>
<a name="whatever"> </a><BR>
<a name="whatever">Content and so on...</a>
<a name="whatever"> </a><BR>
<a name="another">Next subtitle here</a>
<a name="another"> </a><BR>
...etc.
RE: Yes, it validates
<a name="whatever"></a>My subtitle here
<BR>
Content and so on...
<BR>
<a name="another"></a>Next subtitle here
<BR>
in the standard demo of 2.2 and switching back and forth from source mode to design and I don't see any problem.
Can you specify a step by step procedure to see the problem?
Could it be something that you have changed or some plugin that it is messing around things?