是CKEditor 4真的准备好了HTML5 [英] Is CKEditor 4 really ready for HTML5

查看:129
本文介绍了是CKEditor 4真的准备好了HTML5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试新的CKEditor 4,因为版本3.6中的代码更正无法接受HTML 5有效的代码,如下所示:

I try new CKEditor 4 because code correction in version 3.6 can't accept HTML 5 valid code like this:

<a href="#"><p>something</p></a>

但是新的CKEditor版本仍然修复这个代码,是否需要在config中将HTML 5设置为默认值?

But new CKEditor version still repair this code, so where is problem? Is necessary to set HTML 5 as default in config?

推荐答案

CKEditor解析器正在使用静态DTD。 HTML5不能用静态DTD来描述,因此目前CKEditor不能支持这种标记。

Nope. CKEditor parsers are using static DTD. HTML5 cannot be described with static DTD so at the moment CKEditor cannot support this kind of markup.

请参阅了解更多。

这篇关于是CKEditor 4真的准备好了HTML5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆