然後後臺用get或post方法直接獲取area的name的值就可以了,只是沒有上傳了,也該這樣,編輯器不該有上傳功能,上傳有太多漏洞了,具體代碼如下
<link href="view/default/sendarticle.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="include/ckeditor/ckeditor.js"></script>
<form name="FormName" method="get" action="sendarticle.html">
<input type="hidden" name="act" value="write">
<table width="90%" border="0" cellpadding="4" cellspacing="1" align='center'>
<tr>
<td colspan="2" class="HeaderRow">發表帖子</td>
</tr>
<tr>
<td colspan="2" class="SubTitleRow"><span class="redfont">(*)內容必須填寫</span></td>
</tr>
<tr>
<td width="25%" align="right" class="InputRow">標題:</td>
<td width="75%" class="InputRow">
<input name="title" type="text" id="title" size="35" maxlength="10">
<span class="redfont">(*)</span> </td>
</tr>
<tr>
<tr>
<td height="25" colspan="2" align="center">
<textarea class="ckeditor" cols="80" id="content" name="content" rows="10">
這裏是內容
</textarea>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input name="submit" type="submit" id="submit" value=" 發表帖子 ">
</td>
</tr>
</table>
</form>
-----------------------------------------------------------------
[轉]CKEditor 3.0(FCKEditor3.0)的簡單安裝配置使用
2009年09月08日 星期二 14:15
CKEditor 3.0安裝配置,感覺比較簡單,但本次沒有涉及上傳文件的配置,只是簡單的配置使用。
下載CKEditor 3.0,地址: '; //配置語言
//config.uiColor = '#FFF'; //背景顏色
//config.width = 500; //寬度
config.height = 500; //高度
//工具欄
config.toolbar =
[
['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['Link','Unlink','Anchor'],
['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
'/',
['Styles','Format','Font','FontSize'],
['TextColor','BGColor'],
['Maximize', 'ShowBlocks','-','Source','-','Undo','Redo']
];
};