Hi,
I am missing the text inside the anchor tag and getting an anchor image, after I changed the HTML source of the FCKEditor to the following.
<a name="speech2"><b>THESEUS</b></a>
<a name="3">More strange than true: I never may believe</a><br>
<a name="4">These antique fables, nor these fairy toys.</a><br>
I want to display the text with in the anchor tags.
Your suggestions are appreciated.
Thanks in davance.
Upendra P.
I am missing the text inside the anchor tag and getting an anchor image, after I changed the HTML source of the FCKEditor to the following.
<a name="speech2"><b>THESEUS</b></a>
<a name="3">More strange than true: I never may believe</a><br>
<a name="4">These antique fables, nor these fairy toys.</a><br>
I want to display the text with in the anchor tags.
Your suggestions are appreciated.
Thanks in davance.
Upendra P.
RE: Problem with anchor tag
The following is the updated function in both the files "fckeditorcode_gecko.js" and "fckeditorcode_ie.js".
FCKAnchorsProcessor.ProcessDocument=function(A){
var B=A.getElementsByTagName('A');
var C;var i=B.length-1;
while (i>=0&&(C=B[i--])){
if (C.name.length>0&&(!C.getAttribute('href')||C.getAttribute('href').length==0) && C.innerHTML == ''){
var D=FCKDocumentProcessor_CreateFakeImage('FCK__Anchor',C.cloneNode(true));
D.setAttribute('_fckanchor','true',0);
C.parentNode.insertBefore(D,C);
C.parentNode.removeChild(C);
}
}
};
RE: Problem with anchor tag
You can find a patch here https://sourceforge.net/tracker/index.p ... tid=543655 to address this problem and improve the handling of anchors.