Fckeditor内容判断

来源:互联网 发布:php url编码 编辑:程序博客网 时间:2024/06/18 17:39

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

原创粉丝点击