关于ckeditor过滤掉html样式标签之我见

 1.CKEDITOR编辑器属性可以通过修改/ckeditor/config.js文件来控制

//标签过滤默认是开启的,默认会过了<style>样式标签设置为true可关闭过滤
config.allowedContent=true;//关闭标签过滤,

2.也可以在使用时单独使用

CKEDITOR.replace('XXX',{allowedContent: true});

原文地址:https://www.cnblogs.com/zinan/p/3620807.html