"content");
alert(oEditor.GetXHTML(true));
}
//向編輯器插入指定程式碼
function insertHTMLToEditor(codeStr){ GetInstance("content");
if (oEditor.EditMode==FCK_EDITMODE_WYSIWYG){
oEditor.InsertHtml(codeStr); }
}
//統計編輯器中內容的字數
function getLength(){
var oEditor = FCKeditorAPI.GetInstance("content");
;
if(document.all){
iLength = oDOM.body.innerText.length;
} s(oDOM .body);
iLength = r.toString().length;
}
alert(iLength);
}
/執行指定動作(
var oEditor = FCKeditorAPI.GetInstance("content") ;
oEditor.Commands.GetCommand(commandName).Execute() ;
}
//設定編輯器中內容 var oEditor = FCKeditorAPI.GetInstance("content") ;
oEditor.SetHTML(codeStr) ;
}