//FUCKING,单独为FCK写一个js函数,插入FCK的内容
setFCKContent : function (newsId){
alert("newsId:"+newsId);
//var newsId = document.getElementById("newsId").value;
//alert("newsId:"+newsId);
admnewlist.findByNewsId(newsId,{
callback:function(object){
//alert("object:"+object);
admin.getFCKContent(object);
}
})
},
getFCKContent : function (object){
alert(object.newsContent);//可以打印出内容
var oEditor = FCKeditorAPI.GetInstance("content"); //执行到这就报FCKeditorAPI未定义
oEditor.InsertHtml(object.newsContent) ;
document.location.href = basePath+"admin//news//newsEdit.jsp?newsId="+object.newsId;
}
请问哪位高手碰到过这样的问题,FCKeditorAPI未定义,web.xml里面都配置了,包也都导入了,代码可以肯定没问题,我alert里面的都能弹出内容,但是执行到FCKeditorAPI.GetInstance("content"); 就报FCKeditorAPI未定义
setFCKContent : function (newsId){
alert("newsId:"+newsId);
//var newsId = document.getElementById("newsId").value;
//alert("newsId:"+newsId);
admnewlist.findByNewsId(newsId,{
callback:function(object){
//alert("object:"+object);
admin.getFCKContent(object);
}
})
},
getFCKContent : function (object){
alert(object.newsContent);//可以打印出内容
var oEditor = FCKeditorAPI.GetInstance("content"); //执行到这就报FCKeditorAPI未定义
oEditor.InsertHtml(object.newsContent) ;
document.location.href = basePath+"admin//news//newsEdit.jsp?newsId="+object.newsId;
}
请问哪位高手碰到过这样的问题,FCKeditorAPI未定义,web.xml里面都配置了,包也都导入了,代码可以肯定没问题,我alert里面的都能弹出内容,但是执行到FCKeditorAPI.GetInstance("content"); 就报FCKeditorAPI未定义
解决方案 »
- 求助,J2EE项目MySql迁移到Oracle
- servlet在form的action中的路径设置(jsp+javabean+servlet)
- 求解:jsp响应html不完整的问题
- 导航栏问题
- 如何提取数组中最大或者最小的几条数据
- 能访问子目录的jsp但不能访问根目录的jsp 郁闷中 。。。。
- 关于jspsmart上载文件的问题,office系列的文件为何上不了?
- 问一个多语言的解决方案!
- jsp充值手机号码(单选:为本机充值、为其他号码充值;默认为本机充值,为其他号码充值时显示输入框)
- 问一个技术实现性问题,帮忙!!
- 在jsp工程目录下添加web.xml文件后所有的文件都无法访问了
- JSP查询后分页如何保存住查询条件
设置基本路径:oFCKeditor.BasePath = "../fckeditor/"
我用的 var oEditor = FCKeditorAPI.GetInstance("msgBody");
var str=oEditor.GetXHTML(true);
没问题啊
里面有api的定义!