$(function(){
editor=loadEditor('homefresh_message');
$(".face-icon").jqfaceedit({txtAreaObj:editor,containerObj:$('#emotion_parentcontainer'),top:25,left:-27});
});
function update(){
$("#submit_button").attr("disabled", "disabled");
$("#submit_button").val( 'update...' );
$('#homefresh_message').val(editor.html());
Dyhb.AjaxSubmit('homefreshAdd','','',function(){
$("#submit_button").attr("disabled", false);
$("#submit_button").val( '更新' );
});
}
function insertHomefreshmessageattachment(nAttachmentid){
insertAttachment(editor,nAttachmentid);
}
function insertHomefreshmessagemusic(sContent){
insertMusic(editor,sContent);
}
function insertHomefreshmessagevideo(sContent){
insertVideo(editor,sContent);
}