Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fckeditor removes empty tags! How to fix?

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?

like image 615
Sqaimes Avatar asked Nov 04 '22 11:11

Sqaimes


1 Answers

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>

like image 52
Adam Hopkinson Avatar answered Nov 09 '22 09:11

Adam Hopkinson