[FCKeditor]API使用語法

以下為FCKeditor API code的使用語法:


var oEditor = parent.FCKeditorAPI.GetInstance('inputName');  //要加parent避免找不到API出現"FCKeditorAPI未定義"

string = oEditor.EditorDocument.body.innerHTML ; //取出Editor目前裡面的字串

length = oEditor.GetXHTML(true).length;  //判斷目前Editor裡字串長度


留言