百分百源码网-让建站变得如此简单! 登录 注册 签到领金币!

主页 | 如何升级VIP | TAG标签

当前位置: 主页>网站教程>网页制作> js 检测判断fckeditor是否为空
分享文章到:

js 检测判断fckeditor是否为空

发布时间:01/14 来源: 浏览: 关键词:

js 检测判断fckeditor是否为空
<!-- 用一般的js是不可能获取 fck 编辑器内容的是否有值的,我们得用

FCKeditorAPI接口来实例-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>js 检测判断fckeditor是否为空</title>
<script language="javascript教程">
function checkForm(formDom){  
 var Content =FCKeditorAPI.GetInstance

(".net教程").GetXHTML">www.111cn.net").GetXHTML();  
 if(Content==null||Content==""){  
  alert('内容不能为空');  
  return false;   
 }
}
</script>
</head>

<body>
<div style="width:100%;">
<form>
<input type="hidden" id="www.111cn.net" name="www.111cn.net" value="<!

--{$dataInfo.house_desc|htmlspecialchars}-->" /><input type="hidden"

id="house_desc___Config" value="FullPage=false"/><iframe

id="house_desc___Frame" src="/FCKeditor/editor/fckeditor.html?

InstanceName=house_desc&amp;Toolbar=Basic" width="100%" height="220"

frameborder="no" scrolling="no"></iframe>
<input name="" type="submit" value="提交"  onclick="return checkForm

();" />
</form></div>
</body>
</html>
本站原创www.111cn.net

打赏

打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

百分百源码网 建议打赏1~10元,土豪随意,感谢您的阅读!

共有16人阅读,期待你的评论!发表评论
昵称: 网址: 验证码: 点击我更换图片
最新评论

本文标签

广告赞助

能出一分力是一分吧!

订阅获得更多模板

本文标签

广告赞助

订阅获得更多模板