FCKeditor js 验证为空问题,多了一个<br/>

对FCKeditor 进行是否为空验证,

JS 验证代码如下:
[code="java"]
function checkAll()
{
var oEditor = FCKeditorAPI.GetInstance('content');
var checkContent = oEditor.GetXHTML();
if(checkContent == "")
{
alert("空哎!");
oEditor.Focus();
return false;
}
}
[/code]

表单代码如下:
[code="html"]


/FCK:editor


[/code]

第一次进入该页面,点击提交按钮,能个正常判断,弹出提示窗口。
但是 再点击之后,就无效了,一看原来 FCKeditor 自动加一个换行的
标签。

如何屏蔽掉这样的情况,各位有没有解决方法 或者成功的验证FCKeditor 为空的方法?

在这段代码之前

[code="javascript"]
oEditor.Focus();
[/code]

添加一行
[code="javascript"]
oEditor.SetXHTML("");
[/code]

试一试。:)