FCKEditorAPI未定义
//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未定义