fckeditor怎样嵌入到jsp页面中? 如题 *fckeditor是个web项目怎样将其嵌入到jsp页面中呢? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 (1)在<head></head>标签中引入<script type="text/javascript" src="fckeditor/fckeditor.js"></script>(2)加入<script type="text/javascript"> var oFCKeditor = new FCKeditor('FCKeditor1');//单引号中任意命名 oFCKeditor.BasePath = "/fckeditor/";//fckeditor所在的路径,可能需要加入工程名 oFCKeditor.Create(); </script>可以先测试下。或者使用以下方法:<script type="text/javascript">//创建FCKeditor window.onload = function(){var oFCKeditor = new FCKeditor( 'MyTextarea' ) ;oFCKeditor.BasePath = "/fckeditor/" ;oFCKeditor.ReplaceTextarea() ;//替换textarea }</script><textarea id="MyTextarea" name="MyTextarea">This is <b>the</b> initial value.</textarea>推荐采用第二种,在后台获取值的方法是request.getParameter("MyTextarea");详细参见:http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Integration/JavaScript 楼上说比较前面,还要一种方法——使用FCKEditor的标签,这需要用到FCKeditor.tld,但推荐用1楼的方法 请参考:http://item.taobao.com/auction/item_detail.jhtml?item_id=b7663e64efce12aa24e44c684dd02fce&x_id=0db2 【高分求助】Quartz动态安排任务 jsp页面源代码问题请教 js如何在table中插入一行(最后行) 紧急求救:编写一个购车综合计算器applet程序 请问如何在一个servlet中设定全局变量?(急) 请问:有没有求百分比的类啊?(小数点后保留n位有效数字)请高手们指点!谢谢了! 关于HttpServletRequest的问题? 高手帮忙.一个jsp程序设计的问题.500分(急) 页面传值问题 关于list<map>的问题,积分全部奉上,大家帮帮忙! 关于页面编码问题 realplayer在线播放代码参数scriptcallbacks怎么用?
(2)加入<script type="text/javascript">
var oFCKeditor = new FCKeditor('FCKeditor1');//单引号中任意命名
oFCKeditor.BasePath = "/fckeditor/";//fckeditor所在的路径,可能需要加入工程名
oFCKeditor.Create();
</script>
可以先测试下。或者使用以下方法:
<script type="text/javascript">
//创建FCKeditor
window.onload = function()
{
var oFCKeditor = new FCKeditor( 'MyTextarea' ) ;
oFCKeditor.BasePath = "/fckeditor/" ;
oFCKeditor.ReplaceTextarea() ;//替换textarea
}
</script><textarea id="MyTextarea" name="MyTextarea">This is <b>the</b> initial value.</textarea>推荐采用第二种,在后台获取值的方法是request.getParameter("MyTextarea");详细参见:http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Integration/JavaScript