解决ke高度加载问题

This commit is contained in:
guange 2015-11-24 18:06:32 +08:00
parent 2a4a4bd034
commit 67823b3bfb
1 changed files with 9 additions and 5 deletions

View File

@ -29,7 +29,6 @@ function init_editor(params){
}else if(this.edit.html().trim() != ""){ }else if(this.edit.html().trim() != ""){
params.submit_btn.show(); params.submit_btn.show();
} }
//params.submit_btn.css("display","none"); //params.submit_btn.css("display","none");
}, },
afterFocus: function(){ afterFocus: function(){
@ -43,16 +42,21 @@ function init_editor(params){
// params.toolbar_container.show(); // params.toolbar_container.show();
$('#reply_image_' + id).removeClass('imageFuzzy'); $('#reply_image_' + id).removeClass('imageFuzzy');
//edit.iframe.width(paramsWidth); //edit.iframe.width(paramsWidth);
this.toolbar.div.height(30);
this.resize(paramsWidth, null); this.resize(paramsWidth, null);
//params.submit_btn.show(); //params.submit_btn.show();
}, },
afterCreate:function(){ afterCreate:function(){
//params.submit_btn.hide(); //params.submit_btn.hide();
var toolbar = $("div[class='ke-toolbar']",params.div_form);
toolbar.css('width',24); var toolbar1 = $("div[class='ke-toolbar']",params.div_form);
$(".ke-outline>.ke-toolbar-icon",toolbar).append('表情'); toolbar1.css('width',24);
params.toolbar_container.append(toolbar); $(".ke-outline>.ke-toolbar-icon",toolbar1).append('表情');
params.toolbar_container.append(toolbar1);
this.toolbar.div.height(0);
//init //init
var edit = this.edit; var edit = this.edit;
var body = edit.doc.body; var body = edit.doc.body;