附件中有页面和插件:
<html>
<head>
<title>FCK编辑器</title>
</head>
<script type="text/javascript" src="fckeditor/fckeditor.js"></script>
<script type="text/javascript">
function check(){
//验证FCK控件中的内容时候为空
var fck = FCKeditorAPI.GetInstance("detail");
var content = fck.GetXHTML(true);
if (content.replace(/<(?!img|input|object)[^>]*>|\s+/ig, "") == "") {
alert("通知的内容不能为空!");
fck.Focus();
return false;
}
alert("提交成功!");
return true;
}
</script>
<body>
<form name = "form1" onsubmit = "return check();">
<table width = "100%">
<tr>
<td height="20" align="right" valign="top" >信息内容:</td>
<td>
<script type="text/javascript">
window.onload = function(){
var oFCKeditor = new FCKeditor( 'detail' ) ;
oFCKeditor.BasePath = "fckeditor/";
oFCKeditor.Width="90%";
oFCKeditor.Height="300";
oFCKeditor.ReplaceTextarea() ;
}
</script>
<textarea id="detail" name="detail"></textarea>
</td>
</tr>
<tr>
<td height="20" align="right" valign="top" > </td>
<td>
<input type="submit" class="button" value="提交" />
</td>
</tr>
</table>
</form>
</body>
</html>