判断编辑器fck是否为空

//判断编辑器是否为空
var oeditor = FCKeditorAPI.GetInstance('content'); //这里的content是fck的id值
if(oeditor.GetXHTML()==""|| oeditor.GetXHTML() == "<br />") {
alert('内容不能为空!');
oeditor.Focus();
return false;
}
posted @ 2011-05-27 09:17  Hellen.Li  阅读(154)  评论(0编辑  收藏  举报