$(function(){
editor=loadEditor('grouptopic_content');
$(".face-icon").jqfaceedit({txtAreaObj:editor,containerObj:$('#emotion_parentcontainer'),top:25,left:-27});
});
function update(){
$("#submit_button").attr("disabled", "disabled");
$("#submit_button").val( 'update...' );
$('#grouptopic_content').val(editor.html());
Dyhb.AjaxSubmit('grouptopicAdd','','',function(){
$("#submit_button").attr("disabled", false);
$("#submit_button").val( '更新' );
setTimeout("window.location.replace(_SELF_);",1000);
});
}
function insertGrouptopiccontentattachment(nAttachmentid){
insertAttachment(editor,nAttachmentid);
}
function insertGrouptopiccontentmusic(sContent){
insertMusic(editor,sContent);
}
function insertGrouptopiccontentvideo(sContent){
insertVideo(editor,sContent);
}