FCKeditor 与 TinyMCE 和 XHTML 合规性
我正在寻求关于 FCKeditor 与 TinyMCE 的(简短)意见,以及其中一个或两者是否兼容 XHTML。
为了保持 stackoverflow 的精神,如果有人已经表达了你的观点,就给他们点赞吧。
I'm after (short) opinions on FCKeditor vs TinyMCE and whether either or both are XHTML compliant.
In the interest of keeping with the spirit of stackoverflow, if someone has already made your point, just upvote them.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
TinyMCE 产生绝对垃圾。 FCK 产生的垃圾较少,但也可能与浏览器内置样式发生冲突(默认情况下,FCK 样式带有标签而不是样式属性,例如 而不是 ,但是在 Safari 中点击 cmd-b 会产生后者,FCK 不会意识到这一点,因此允许您嵌套样式无效,并且不允许您使用 FCK 功能来反转内置功能)。
两者都会在 IE 中产生垃圾,但那是因为 IE 的 DOM 很疯狂。
例如: http://annevankesteren.nl/2005/07/contenteditable
TinyMCE produces absolute garbage. FCK produces less garbage, but can also conflict with browser-in-built styling (by default FCK styles with tags rather than style attributes, eg <strong> rather than <span style="font-weight: bold;">, however hitting cmd-b in Safari produces the latter, and FCK will be unaware of it, thus allowing you to nest styles to no effect, and not allowing you to use FCK functionality to reverse in-built functionality).
Both produce garbage in IE but that is because IE's DOM is insane.
For instance: http://annevankesteren.nl/2005/07/contenteditable
根据我的经验,FCKEditor 确实生成了符合 XHTML 的代码,但是该代码根据您使用的浏览器而略有不同。大多数情况下,这与回车键生成中断或段落有关,我认为它可能是可配置。
From my experience FCKEditor does indeed produce XHTML compliant code, but that code is slightly different depending on what browser you're in. Mostly, this was related to the enter key producing either a break or a paragraph, and I think it may have been configurable.
Afaik,它们都允许浏览器弄乱它们生成的代码,这不会导致 XHTML 合规性。
XStandard 是我所知道的唯一可以生成 XHTML 兼容代码的富 Web 编辑器,但不幸的是它需要客户端 -侧面安装,这排除了真正的网络内容。
Afaik, they both allow the browser to mess with the code they produce, which doesn't result in XHTML compliance.
XStandard is the only rich web editor I'm aware of that produces XHTML compliant code, but unfortunately it requires a client-side install, which rules it out for real web stuff.