<script type="text/javascript" >
getEditorHTMLContents = function(EditorName) {
var oEditor = FCKeditorAPI.GetInstance(EditorName);
document.getElementById(EditorName).value=oEditor.GetXHTML(true);
}
</script>
<form name="updatesurvey" action="#" method="post"
οnsubmit="new Ajax.Updater({success:'clientlstDiv',failure:'clientedtDiv'}, '#springUrl("${hy.modulePath}")lnotice/ncontent.html', {asynchronous:true, parameters:Form.serialize(this)});cancelForm('clientedtDiv');return false;">
<table class="event-update-form" align="center">
<tr >
<td> </td>
<td>
<input type="submit" value="保存" class="huiyeeBtn" onClick="getEditorHTMLContents('content')">
<input type="reset" value="关闭" class="huiyeeBtn" onClick="cancelForm('clientedtDiv');">
</td>
</tr>
</table>
<table class="event-update-form" align="center">
<tr>
<td align="left">
<textarea id="content" name="content" style="display:none">$!bus.content</textarea>
<script type="text/javascript" >
var oFCKeditor = new FCKeditor('content',730,365);
oFCKeditor.BasePath = "/editor/FCKeditor/";
oFCKeditor.ReplaceTextarea() ;
</script>
</td>
</tr>
<input type="hidden" name="id" value="$!id" >
</table>
</form>
获取FCKeditor的值
最新推荐文章于 2023-08-23 20:10:28 发布