From e5e0a5857a56051774ddd7c4c5d6ff14e548c853 Mon Sep 17 00:00:00 2001 From: lizanle <491823689@qq.com> Date: Mon, 27 Apr 2015 17:38:05 +0800 Subject: [PATCH 1/2] =?UTF-8?q?kindeditor=E5=A2=9E=E5=8A=A0=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E5=88=B0=E7=AE=80=E5=8D=95=E5=8A=9F=E8=83=BD=E6=8C=89?= =?UTF-8?q?=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/assets/kindeditor/kindeditor.js | 2 +- public/assets/kindeditor/lang/zh_CN.js | 3 ++- public/assets/kindeditor/themes/default/default.css | 5 +++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/public/assets/kindeditor/kindeditor.js b/public/assets/kindeditor/kindeditor.js index 1abc92ead..a31284adf 100644 --- a/public/assets/kindeditor/kindeditor.js +++ b/public/assets/kindeditor/kindeditor.js @@ -4972,7 +4972,7 @@ KEditor.prototype = { 'emoticons', 'source','plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist', '|', 'formatblock', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', - 'italic', 'underline', 'removeformat', '|','imagedirectupload','table', 'link', 'fullscreen',"more", + 'italic', 'underline', 'removeformat', '|','imagedirectupload','table', 'link', 'fullscreen',"less", '/', 'undo', 'redo', '|', 'preview', 'print', 'template', 'code', 'cut', 'plainpaste', 'justifyfull', 'insertunorderedlist', 'indent', 'outdent', 'subscript', diff --git a/public/assets/kindeditor/lang/zh_CN.js b/public/assets/kindeditor/lang/zh_CN.js index a2e1010ea..3889ce5c1 100644 --- a/public/assets/kindeditor/lang/zh_CN.js +++ b/public/assets/kindeditor/lang/zh_CN.js @@ -9,7 +9,8 @@ KindEditor.lang({ imagedirectupload:'本地图片', - more: '更多功能', + more: '切换到更多功能', + less: '切换到简单功能', source : 'HTML代码', preview : '预览', undo : '后退(Ctrl+Z)', diff --git a/public/assets/kindeditor/themes/default/default.css b/public/assets/kindeditor/themes/default/default.css index d8085582e..5de213f37 100644 --- a/public/assets/kindeditor/themes/default/default.css +++ b/public/assets/kindeditor/themes/default/default.css @@ -333,6 +333,11 @@ width: 16px; height: 16px; } +.ke-icon-less { + background-position: 0px -976px; + width: 16px; + height: 16px; +} .ke-icon-baidumap { background-position: 0px -976px; width: 16px; 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 2/2] =?UTF-8?q?kindeditor=E5=A2=9E=E5=8A=A0=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E5=88=B0=E7=AE=80=E5=8D=95=E5=8A=9F=E8=83=BD=E6=8C=89?= =?UTF-8?q?=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