关于ckeditor添加的class都会被清除掉的问题

在源码中输入ul,而且带有class,而后点击源码,到可视化界面html

结果显示为aaa,再点看源码,查看HTML源代码code

 

解决方法:htm

添加配置 config.allowedContent = true

这个配置是关闭过滤内容的设置。
也能够经过
config.extraAllowedContent = 'div(*)';来扩展过滤属性和标签参考资料:http://stackoverflow.com/questions/15659390/ckeditor-automatically-strips-classes-from-div          http://www.szfangwei.cn/news/2309.html          http://xieyanxy9.iteye.com/blog/2032972          http://q.cnblogs.com/q/52291/          http://www.thinksaas.cn/group/topic/345153/
相关文章
相关标签/搜索