FCKeditor的js验证问题解决方法!!~
<script language="javascript">
var oEditer;
function check(){
var content = oEditer.GetXHTML(true); //content就是编辑器的内容的html源码了
if( content.length<100){
alert("请输入信息内容,100个字符以上...");
return false;
}
}
function FCKeditor_OnComplete( editorInstance ){
oEditer = editorInstance;
}
</script>
<form action='' method='post' onSubmit="return check();">
TO:http://www.infogame.cn/soulplane/article.asp?id=271
var oEditer;
function check(){
var content = oEditer.GetXHTML(true); //content就是编辑器的内容的html源码了
if( content.length<100){
alert("请输入信息内容,100个字符以上...");
return false;
}
}
function FCKeditor_OnComplete( editorInstance ){
oEditer = editorInstance;
}
</script>
<form action='' method='post' onSubmit="return check();">
TO:http://www.infogame.cn/soulplane/article.asp?id=271