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


posted @ 2007-10-25 17:46  阳光囧男  阅读(369)  评论(0编辑  收藏  举报