KindEditor过滤html代码

KindEditor过滤html代码

KindEditor.ready(function(K){
    var editor = K.create('#content',{
        pasteType : 1,        items:["fontsize","preview","redo","undo","|","forecolor","bold","italic","underline","insertorderedlist","insertunorderedlist","image","emoticons"],        resizeType:0,        afterBlur : function(){
            this.sync();
        }
    });
})

1.  pasteType : 0,(不可粘贴)
2.  pasteType : 1,(存文本粘贴)

网页上直接复制的内容粘贴在编辑器直接过滤所有html代码

相关文章

1.第一步 设置响应头 header('Access-Control-Allow...
$.inArray()方法介绍 $.inArray()函数用于在数组中搜索指定的...
jquery.serializejson.min.js的妙用 关于这个jquery.seriali...
JS 将form表单数据快速转化为object对象(json对象) jaymou...
jQuery插件之jquery.spinner数字智能增减插件 参考地址:http...