81,092
社区成员
发帖
与我相关
我的任务
分享
<script language="javascript" src="<%= request.getContextPath() + "/"%>fck/fckeditor.js"></script>
<script language="javascript">
var EDITOR_NAME = 'contentEditor';
var EDITOR_INSTANCE = null;
function init() {
EDITOR_INSTANCE = FCKeditorAPI.GetInstance(EDITOR_NAME) ;
}
function getContent() {
return EDITOR_INSTANCE.EditorDocument.body.innerHTML;
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<body onload="init();">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2">
<script type="text/javascript">
var myEditor = new FCKeditor( EDITOR_NAME ) ;
myEditor.ToolbarSet = 'Basic' ;
myEditor.BasePath = '<%= request.getContextPath() + "/"%>fck/' ;
myEditor.Height = 300 ;
myEditor.Create() ;
</script>
</td>
</table>
</tr>
</body>
</html>