kindeditor增加切换到简单功能按钮

This commit is contained in:
lizanle 2015-04-27 17:38:32 +08:00
parent 92b79b40da
commit d07a1b945f
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
KindEditor.plugin('less', function(K) {
var self = this, name = 'less';
self.plugin.less = {
click : function(){
if($("#define").css('display') == 'block'){
$("#define").css('display','none')
$("#full").css('display','block')
}else if($("#full").css('display') == 'block'){
$("#full").css('display','none')
$("#define").css('display','block')
}
}
}
self.clickToolbar(name,self.plugin.less.click)
});