JQUERY

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代码


(0)
分享:

本文由:xiaoshu168 作者:xiaoshu发表,转载请注明来源!

相关阅读