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

在struts1.2中怎么使用fck在线编辑器
在struts1.2中怎么使用fck在线编辑器
我用struts1.2+hibernate做了一个网站,在后台添加文章时,我想用一个在线编辑器,
jsp中我会用,是用这种js调用的
<textarea name="contest" id="contest" style="width:100%; height:400px;"></textarea>
<script type="text/javascript">
var oFCKeditor = new FCKeditor( 'contest' ) ;
oFCKeditor.BasePath = 'fckeditor/' ;
//oFCKeditor.BasePath = 'FCKeditor/' ;

oFCKeditor.ToolbarSet = 'Default' ;
oFCKeditor.Width = '100%' ;
oFCKeditor.Height = '400' ;
oFCKeditor.Value = '' ;
oFCKeditor.ReplaceTextarea(); 
//oFCKeditor.Create() ;
</script>
在struts1.2中是<html:textarea>
这种方式怎么用呢?

------解决方案--------------------
<html:textarea> 
换成上面的不就行了,没必要一定用struts标签
------解决方案--------------------
<html:textarea> 
换成上面的不就行了
------解决方案--------------------
探讨
<html:textarea>
换成上面的不就行了