日期:2014-05-16 浏览次数:20635 次
<FCK:editor id="info_demo" basePath="../fckeditor/" width="100%" height="500"
toolbarSet = "Default" >
</FCK:editor>
<input type="hidden" name="info_demo" value="">
<script language="javascript" type="text/javascript">
var oEditor = FCKeditorAPI.GetInstance('info_demo') ;
var str = oEditor.GetXHTML();
form.info_demo.value=str;
</script>
String con = (String) request.getAttribute("content");
<td colspan="5">
<textarea id="content" name="content" style="WIDTH: 100%; HEIGHT: 400px"><%=con%>
</textarea>
<script type="text/javascript">
var oFCKeditor = new FCKeditor('content') ;
oFCKeditor.BasePath = "../../fckeditor/" ;
oFCKeditor.Height = 500;
oFCKeditor.ToolbarSet = "Default";
oFCKeditor.ReplaceTextarea();
</script></td>
methed B: ADD+
<script type="text/javascript" src="../../fckeditor/fckeditor.js"></script>
<td colspan="5"><textarea id="content" name="content" style="WIDTH: 100%;
HEIGHT: 400px"></textarea>
<script type="text/javascript">
var oFCKeditor = new FCKeditor('content') ;
oFCKeditor.BasePath = "../../fckeditor/" ;
oFCKeditor.Height = 500;
oFCKeditor.ToolbarSet = "Default";
oFCKeditor.ReplaceTextarea();
</script>
</td>