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

来源:互联网 发布:杨紫为什么土 知乎 编辑:程序博客网 时间:2024/05/18 01:25

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

像这样的代码:

<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

0 0