今天需要判断fckeditor的值是否为空,JS判断是否为空的代码如下: function chkFill() { var tbtitle=document.getElementById("tbTitle"); var Content =FCKeditorAPI.GetInstance("FCKeditor1").GetXHTML(); if(tbtitle.value=="" || tbtitle.value==null) { alert("请先输入题目简称!"); tbtitle. focus(); return false; } if(Content==""||Content==null) { alert("请先输入内容"); return false; } return true; }