我按照配置写了,提交保存后发现没有过滤任何标签,不知道问题出在哪里,请大家帮我看看。
PS kindeditor是最新版本
配置文件入下<script type="text/javascript" src="/static/js/kindeditor/kindeditor.js"></script>
<script type="text/javascript" src="/static/js/kindeditor/lang/zh_CN.js"></script>
<script>
        var editor;
        KindEditor.ready(function(K) {
                editor = K.create('#id_content', {
                        resizeType : 2,
                        allowImageUpload:false,
                        height:'500px',
                        fontSizeTable:'14px',
                        items:[
                            'source', '|', 'undo', 'redo', '|', 'preview', 'print', 'template', 'cut', 'copy', 'paste',
                            'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
                            'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
                            'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', '/',
                            'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
                            'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image',
                            'table', 'hr', 'emoticons', 'map', 'code', 'pagebreak',
                            'link', 'unlink', '|', 'about'
                        ],
                        htmlTags:{
                            table: ['border', 'cellspacing', 'cellpadding', 'width', 'height', 'align', 'bordercolor'],
                            'td,th': ['align', 'valign', 'width', 'height', 'colspan', 'rowspan', 'bgcolor'],
                            a : ['href'],
                            img : ['src', 'width', 'height', 'border', 'alt', 'title'],
                            'p,ol,ul,li,blockquote,h1,h2,h3,h4,h5,h6,div' : ['align'],
                            pre : ['class'],
                            'hr,br,tbody,tr,strong,b,sub,sup,em,i,u,strike,span,font' : ['color']
                        }                });
        });
</script>