Hi, i have a little problem with the recreation of the ckeditor one a single id.
I've read in the documentation and the forum but i've not found a similar szenario.
Only some with multiple editors on none equal id's.
I have a RIA application that loads all data from the server via ajax.
I think the problem is, that the textareas for the same form have the same id.
On the first open of a form everything is fine, Ckeditor works without problem.
If i open another dataset the system creates a new form an all elements in this form have the same ids as the old elements.
If i try to replace a textarea with
How can i destroy the old editor or just recreate for the id?
It's no option to change the id or to reload the page.
Best regards
Dominik
I've read in the documentation and the forum but i've not found a similar szenario.
Only some with multiple editors on none equal id's.
I have a RIA application that loads all data from the server via ajax.
I think the problem is, that the textareas for the same form have the same id.
On the first open of a form everything is fine, Ckeditor works without problem.
If i open another dataset the system creates a new form an all elements in this form have the same ids as the old elements.
If i try to replace a textarea with
CKEDITOR.replace( 'theId' );i only get an alert with "undefined".
How can i destroy the old editor or just recreate for the id?
It's no option to change the id or to reload the page.
Best regards
Dominik
Re: create & recreate editor on one id