FCK 验证;FCK 验证非空
项目中用了个FCK 文本编辑框
看起来简洁,用起来也还不错.
<script src="js/formValidator.js" type="text/javascript" charset="UTF-8"></script><script src="js/fckeditor.js" type="text/javascript" charset="UTF-8"></script><textarea rows="20" name="article.content" id="article_content" style="width:600px;" ></textarea> <!--<fck:editor instanceName="article.content" height="400px" width="600px"></fck:editor>--> <script type="text/javascript"> var oFCKeditor = new FCKeditor('article_content') ; oFCKeditor.BasePath = "fckeditor/" ; oFCKeditor.Height = 200; oFCKeditor.ToolbarSet = "My" ; oFCKeditor.EnterMode = "" ; oFCKeditor.ShiftEnterMode = "br" ; oFCKeditor.ReplaceTextarea(); </script>var content = FCKeditorAPI.GetInstance("article_content").GetXHTML(true);