fckeditor编辑器动态生成报错

lingyun_zheng 2015-06-29 02:08:47
我的jsp面页里面,有一部分需要动态生成fckeditor,部分代码是这样的:
var fck = new FCKeditor("content"+tbody1.index());
fck.BasePath = "<%=contextPath%>/fckeditor/";
var tbodyIndex="<input type='hidden' name='tbodyIndex' value='"+tbody1.index()+"'>";
tbody1.find("tr:eq(1) td:eq(0)").html(fck.CreateHtml()+tbodyIndex);

但是在对这个fck取值的时候

alert(FCKeditorAPI.GetInstance("content1"+tbody1.index()));
这行代码一直提示undifined
而我用 <FCK:editor instanceName="content1" height="240" width="90%" ></FCK:editor> 这样就是对的,感觉像是动态生成的fck,FCKeditorAPI.GetInstance找不到 ,请教各位大神有没有遇到 这种问题并解决了的,告诉我下解决方法谢谢
...全文
115 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
lingyun_zheng 2015-07-06
  • 打赏
  • 举报
回复
都没有人遇到 过这种问题吗

87,843

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧