您的位置:首页 > 其它

KindEditor编辑器中的class自动过滤了

2012-09-26 16:28 127 查看
编辑器里的样式及类都自动清空了,上个版本不存在这个问题,默认只允许出现通过编辑器生成的标签!

像这样的代码:

<table class="shoptable ke-zeroborder" border="0" cellspacing="0" cellpadding="0" width="464" align="left">


读取的内容就会被过滤为:

<table border="0" cellspacing="0" cellpadding="0" width="705" align="left">


解决的办法-加:KindEditor.options.filterMode = false;

如:

<script>
$(function() {
KindEditor.options.filterMode = false;
var editor = KindEditor.create('#content');
});
</script>


个人觉得它默认允许更方便用户。

官方详情:

http://www.kindsoft.net/view.php?bbsid=3&postid=5241

互相学习请加QQ:2357454427
此博客:http://www.cnblogs.com/tinyphp/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: