Fckeditor 删除空标签!如何修复?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这些都不是有效的链接。链接必须包含某些内容。
如果要放置锚点,请使用
Bob
如果要链接到锚点,请使用
链接到 Bob
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>
感谢大家,我修复了 - 在文件 js/fckeditorcode_gecko.js 中注释所有
thanks to all, I fixed - in file js/fckeditorcode_gecko.js comment all
...如果您有权访问设置,如果我没有记错的话,您可以告诉编辑器不要打扰您的代码。如果您无权访问这些设置,那么您可能会运气不好。
编辑:如果您需要任何空标签,那么 DIV 就可以工作。 Span 不会,但 div 会,今天发现。
... 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.