fckeditor编辑器动态生成报错
我的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找不到 ,请教各位大神有没有遇到 这种问题并解决了的,告诉我下解决方法谢谢