|
|
@ -10,16 +10,16 @@ function sd_create_editor(params){
|
|
|
|
resizeType : 1,minWidth:"1px",width:"94%",
|
|
|
|
resizeType : 1,minWidth:"1px",width:"94%",
|
|
|
|
height:"33px",// == undefined ? "30px":paramsHeight+"px",
|
|
|
|
height:"33px",// == undefined ? "30px":paramsHeight+"px",
|
|
|
|
minHeight:"33px",// == undefined ? "30px":paramsHeight+"px",
|
|
|
|
minHeight:"33px",// == undefined ? "30px":paramsHeight+"px",
|
|
|
|
|
|
|
|
width:params.width,
|
|
|
|
items:['emoticons','fontname',
|
|
|
|
items:['emoticons','fontname',
|
|
|
|
'forecolor', 'hilitecolor', 'bold', '|', 'justifyleft', 'justifycenter', 'insertorderedlist','insertunorderedlist', '|',
|
|
|
|
'forecolor', 'hilitecolor', 'bold', '|', 'justifyleft', 'justifycenter', 'insertorderedlist','insertunorderedlist', '|',
|
|
|
|
'formatblock', 'fontsize', '|','indent', 'outdent',
|
|
|
|
'formatblock', 'fontsize', '|','indent', 'outdent',
|
|
|
|
'|','imagedirectupload'],
|
|
|
|
'|','imagedirectupload'],
|
|
|
|
afterChange:function(){//按键事件
|
|
|
|
afterChange:function(){//按键事件
|
|
|
|
|
|
|
|
|
|
|
|
var edit = this.edit;
|
|
|
|
var edit = this.edit;
|
|
|
|
var body = edit.doc.body;
|
|
|
|
var body = edit.doc.body;
|
|
|
|
edit.iframe.height(paramsHeight);
|
|
|
|
edit.iframe.height(paramsHeight);
|
|
|
|
this.resize(null, Math.max((params.kindutil.IE ? body.scrollHeight : (params.kindutil.GECKO ? body.offsetHeight+26:body.offsetHeight)) , paramsHeight));
|
|
|
|
//this.resize(null, Math.max((params.kindutil.IE ? body.scrollHeight : (params.kindutil.GECKO ? body.offsetHeight+26:body.offsetHeight)) , paramsHeight));
|
|
|
|
},
|
|
|
|
},
|
|
|
|
afterBlur:function(){
|
|
|
|
afterBlur:function(){
|
|
|
|
//params.toolbar_container.hide();
|
|
|
|
//params.toolbar_container.hide();
|
|
|
|