function sendForm(){
var ftitle = $.trim($("#ftitle").val());
var fcontent = getContentValue("fcontent");
if(ftitle==""){
$("#tspan").css("color","red").html("标题不能为空!");
return false;
}
if(!fcontent){
$("#cspan").css("color","red").html("爆料内容不能为空!");
return false;
}
return true;
}
function getContentValue(fckid){
var oEditor =FCKeditorAPI.GetInstance(fckid);
var Content=$.trim(oEditor.GetXHTML());
if(Content=="") {
oEditor.Focus();//获取焦点
return false;
}
return true;
}
fck如何判断内容是否为空
最新推荐文章于 2019-03-23 14:11:00 发布