diff --git a/public/assets/kindeditor/plugins/less/less.js b/public/assets/kindeditor/plugins/less/less.js new file mode 100644 index 000000000..b24d31723 --- /dev/null +++ b/public/assets/kindeditor/plugins/less/less.js @@ -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) +}); \ No newline at end of file