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

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

像这样的代码:

<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

 

posted @ 2012-09-26 16:28  tinyphp  Views(2962)  Comments(0Edit  收藏  举报