This commit is contained in:
whimlex 2015-04-27 17:50:33 +08:00
commit bf47f3bbb3
4 changed files with 23 additions and 2 deletions

View File

@ -4972,7 +4972,7 @@ KEditor.prototype = {
'emoticons', 'emoticons',
'source','plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist', '|', 'source','plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist', '|',
'formatblock', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', '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', 'undo', 'redo', '|', 'preview', 'print', 'template', 'code', 'cut', 'plainpaste',
'justifyfull', 'insertunorderedlist', 'indent', 'outdent', 'subscript', 'justifyfull', 'insertunorderedlist', 'indent', 'outdent', 'subscript',

View File

@ -9,7 +9,8 @@
KindEditor.lang({ KindEditor.lang({
imagedirectupload:'本地图片', imagedirectupload:'本地图片',
more: '更多功能', more: '切换到更多功能',
less: '切换到简单功能',
source : 'HTML代码', source : 'HTML代码',
preview : '预览', preview : '预览',
undo : '后退(Ctrl+Z)', undo : '后退(Ctrl+Z)',

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)
});

View File

@ -333,6 +333,11 @@
width: 16px; width: 16px;
height: 16px; height: 16px;
} }
.ke-icon-less {
background-position: 0px -976px;
width: 16px;
height: 16px;
}
.ke-icon-baidumap { .ke-icon-baidumap {
background-position: 0px -976px; background-position: 0px -976px;
width: 16px; width: 16px;