Fckeditor
1.test.jsp<div>
<textarea id="content" name="content" style="WIDTH: 100%; HEIGHT: 400px"><c:out value="${news.content }"/></textarea>
<script type="text/javascript">
var oFCKeditor = new FCKeditor('content') ;
oFCKeditor.BasePath = "<%=request.getContextPath() %>/" ;
oFCKeditor.Height = 300;
oFCKeditor.ToolbarSet = "Default" ;
oFCKeditor.ReplaceTextarea();
</script>
</div>
2.<script type="text/javascript" src="<%=request.getContextPath() %>/fckeditor.js"></script>
页:
[1]