js 对FCKeditor 进行是否为空验证

  1. function checkAll()  
  2.     {  
  3.         var oEditor = FCKeditorAPI.GetInstance('content');  
  4.         var checkContent = oEditor.GetXHTML();  
  5.         if(checkContent == "")  
  6.         {  
  7.             alert("空哎!");  
  8.             oEditor.Focus();  
  9.             return false;  
  10.         }  
  11.     } 
posted @ 2009-02-04 10:41  狼问苍穹  阅读(416)  评论(0编辑  收藏  举报