18 lines
675 B
JavaScript
18 lines
675 B
JavaScript
KindEditor.plugin('less', function(K) {
|
|
var self = this, name = 'less';
|
|
self.plugin.less = {
|
|
click : function(){
|
|
var container = self.toolbar.div;
|
|
$("#full",container).hide();
|
|
$("#define",container).show();
|
|
//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)
|
|
}); |