日期:2014-05-20  浏览次数:20706 次

fckeditor如何回显内容啊!
我用的是struts2 标签。
fck在页面是用的 js调用的:如下:
<tr> 
  
  <td class="caption" width="20%" align="right">内容:</td>
  <td colspan="3" width="80%">
<script type="text/javascript"> 
 
var sBasePath = "<%=basePath%>/fckeditor/"; 
var oFCKeditor = new FCKeditor( 'lawyerModel.content' ); 
oFCKeditor.BasePath = sBasePath; 
oFCKeditor.Height = 400; 
oFCKeditor.Width = 720; 
oFCKeditor.Create();  
</script> 
</td>
</tr>  
  。现在我有个修改页面 我想当跳转到修改页面的时候就在编辑器中显示原有内容信息
  可是 var oFCKeditor = new FCKeditor( 'lawyerModel.content' ); 这样是不行的啊!
  请问我应该怎么做呢 
   
 

------解决方案--------------------
Java code

<%@ taglib uri="http://java.fckeditor.net" prefix="fck"%>

<fck:editor instanceName="lawyerModel.content" basePath="/fckeditor" value="${lawyerModel.content}" toolbarSet="MyFace" width="540" height="400" />