现在的位置: 首页 > 综合 > 正文

Fckeditor内容判断

2013年10月08日 ⁄ 综合 ⁄ 共 245字 ⁄ 字号 评论关闭

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

抱歉!评论已关闭.