From d07a1b945f2c3a696f9d48c35f927cc04c712322 Mon Sep 17 00:00:00 2001 From: lizanle <491823689@qq.com> Date: Mon, 27 Apr 2015 17:38:32 +0800 Subject: [PATCH] =?UTF-8?q?kindeditor=E5=A2=9E=E5=8A=A0=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E5=88=B0=E7=AE=80=E5=8D=95=E5=8A=9F=E8=83=BD=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/assets/kindeditor/plugins/less/less.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 public/assets/kindeditor/plugins/less/less.js 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