Reputation: 61
If you enter the code <a href="/link"></a>
, FCKeditor will remove the tag.
Start an FCKEditor, go to source mode (in FCKEditor). Type in <a href="bob"></a>
(note nothing in the contents area of the anchor), go to WYSIWYG mode. Go back to source mode and you see empty source.
How I can fix this?
Upvotes: 5
Views: 1935
Reputation: 61
thanks to all, I fixed - in file js/fckeditorcode_gecko.js comment all
if ( htmlNode.innerHTML.Trim().length == 0 && !htmlNode.name )
return false ;
Upvotes: 1
Reputation: 7576
... if you have access to the settings, If I'm not mistaken you can tell editor to leave you code alone. If you don't have access to the settings, you might be out of luck.
EDIT: If you need any empty tag then DIV will work. Span won't but div will, found out today.
Upvotes: 0
Reputation: 28795
Neither of those are valid links. A link must contain something.
If you want to place an anchor, use <a name="bob">Bob</a>
If you want to link to an anchor, use <a href="#bob">Link to Bob</a>
Upvotes: 1