Hi, have a following Problem.
i have a list of editable texts. Once a link of certain text was clicked, the user get it to edit in a overlay box( loaded per ajax request). The problem is, that when a user chose a another text to edit, he will don't see the ckeditor any more. XHTML element <textarea> has just an attribute 'hidden' and that's all.
i have tried to set CKEDITOR.instances to NULL after a overlay box with ckeditor is used to be closed. It has no effect.
thank you for any tipps, and sorry for my english.
i have a list of editable texts. Once a link of certain text was clicked, the user get it to edit in a overlay box( loaded per ajax request). The problem is, that when a user chose a another text to edit, he will don't see the ckeditor any more. XHTML element <textarea> has just an attribute 'hidden' and that's all.
i have tried to set CKEDITOR.instances to NULL after a overlay box with ckeditor is used to be closed. It has no effect.
thank you for any tipps, and sorry for my english.
Re: ajax generated textarea
I just went through doing this yesterday and among the very hacky code I used :
although, I wouldn't recommend using that unless you really must and all the CKEditor objects you are trying to manipulate in the DOM have been removed but the event listeners didn't fire.
You should try to use destroy() if you can but I can see instances where it's not possible to, if say a user clicks on another ajaxed link without finishing an edit and saving it.
Thanks,
Zanpakutō