<script type="text/javascript" language="javascript">
function a()
{
//得到控件的html
var checkContent =FCKeditorAPI.GetInstance("message").GetXHTML();
alert(checkContent);
//得到html的长度
var len = FCKeditorAPI.GetInstance("message").GetXHTML().length;
alert(len);
//得到fck控件
var oEditor = FCKeditorAPI.GetInstance('message');
//得到编辑器中的文字
var text = oEditor.EditorDocument.body.innerText;
alert(text);
//让编辑器得到焦点
oEditor.Focus();
// 设置编辑器中内容
oEditor.SetHTML("----") ;
}
</script>
editor = FCKeditorAPI.GetInstance(message);//message是设置的instanceName值.
var Frame = editor.EditorDocument.body.innerHTML;
<body><textarea name="message" id="message"
style="WIDTH: 100%; HEIGHT: 400px" >${message}</textarea>
<script language="javascript" type="text/javascript" src="http://localhost:8080/FaOa//fckeditor.js"></script>
<script type="text/javascript">
var sBasePath = "http://localhost:8080/FaOa/";
var oFCKeditor = new FCKeditor( "projectBugVO.message" ) ;
oFCKeditor.BasePath = sBasePath ;
oFCKeditor.Height= 500 ;
oFCKeditor.ReplaceTextarea();
</script>
</body>