我遇到了CKEditor实例名称的问题,因为我创建了很多与textarea关联的ckeditor实例,以便ckeditor获取与textarea关联的名称,但问题是当我更改textarea的名称时关联的ckeditor不会改变,当我在textarea的新名称上创建“getdata”时,我的程序无法与最初附加到此textarea的ckeditor建立链接,该名称已更改... 所以我想我必须同时更改我改变textarea id / name ckeditor的名称/ id,但我没有找到我可以使用哪种方法在文档中做到这一点..她是我的代码..
$(".zone_fieldset").each(function(i) {
nb = i+1;
$(this).children('textarea').attr('id','desc_etape'+nb);
$(this).children('textarea').attr('name','desc_etape'+nb); //// here i want to actualise name/id of
the ckeditor which replaced the textarea before but i dont find any function to do this
}); }
有人有想法吗?
谢谢