function getEditorContents(){
var oEditor = FCKeditorAPI
alert(oEditor
}
//向編輯器插入指定代碼
function insertHTMLToEditor(codeStr){
var oEditor = FCKeditorAPI
if (oEditor
oEditor
}else{
return false;
}
}
//統計編輯器中內容的字數
function getLength(){
var oEditor = FCKeditorAPI
var oDOM = oEditor
var iLength ;
if(document
iLength = oDOM
}else{
var r = oDOM
r
iLength = r
}
alert(iLength);
}
//執行指定動作
function ExecuteCommand(commandName){
var oEditor = FCKeditorAPI
oEditor
}
//設置編輯器中內容
function SetContents(codeStr){
var oEditor = FCKeditorAPI
oEditor
}
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20338.html