xiao_yi 发表于 2013-2-4 23:46:04

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]
查看完整版本: Fckeditor