easyui dialog kindeditor

//设置全局变量
var articleDetailEditor; 
// 初始化kindeditor;
function ArticleeditorCreat(kedit){
        articleDetailEditor = KindEditor.create(kedit,{
            readonlyMode : true,   //只读模式
            afterCreate : function() {
                this.sync();  //同步
            },
            afterBlur:function(){
                this.sync();
            },
        });
    }
// 赋值
articleDetailEditor.html(ontent);
// 二次加载
articleDetailEditor.remove('#id');

 

你可能感兴趣的:(kindeditor,easyui)