Fckeditor内容判断

        var fck = FCKeditorAPI.GetInstance("context");
         var content = fck.GetXHTML(true);
         if (content.replace(/<(?!img|input|object)[^>]*>|/s+/ig, "") == "") {
             alert("简介内容不能为空!");
             fck.Focus();
           return false;
         }

你可能感兴趣的:(Fckeditor内容判断)