Im loading dynamic content, after finished loading contents =>
All Textareas within the site are replaced properly. I got a "save button". When i hit save -
all cked's should be destroyed. Im doing it like this:
After that i reload the content again --- replaceAll('cked') is causing an error "instance already exists"
Aside from using mootools nothing is working properly:
delete, destroy ... nothin really working. i need a solution for that issue due "page" reloading is not an options. please help !!
thanx
ck=CKEDITOR.replaceAll('cked');
All Textareas within the site are replaced properly. I got a "save button". When i hit save -
all cked's should be destroyed. Im doing it like this:
$each(CKEDITOR.instances,function(ob,ind){
ob.destroy();
});
After that i reload the content again --- replaceAll('cked') is causing an error "instance already exists"
Aside from using mootools nothing is working properly:
CKEDITOR.instances['text'].remove()
delete, destroy ... nothin really working. i need a solution for that issue due "page" reloading is not an options. please help !!
thanx

Re: Removing Destroying CKEditors -
im willing 2 pay for a solution as well !!
Re: Removing Destroying CKEditors -
$each(CKEDITOR.instances,function(ob,ind){ ob.destroy(); });Re: Removing Destroying CKEditors -
ill get an error: i.contentWindow=null
after loading content again and trying to create an editor instance again
ill get "instance" ROW['text'] already exists
Re: Removing Destroying CKEditors -
Re: Removing Destroying CKEditors -
Re: Removing Destroying CKEditors -
If you have problems then create a simple test case and file a bug report
Re: Removing Destroying CKEditors -
Re: Removing Destroying CKEditors -
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script src="/scripts/mootools_1_3.js" type="text/javascript"></script> <script src="/scripts/mootools_more_1_3.js" type="text/javascript"></script> <script src="/assets/scripts/ckeditor/ckeditor.js" type="text/javascript"></script> </head> <body> <script language="javascript"> window.addEvent('domready', function() { $('loader').addEvent('click',function(){ loadEdit(); }); $('loadagain').addEvent('click',function(){ CKEDITOR.instances['ROW[text]'].destroy(); CKEDITOR.remove('ROW[text]'); //loadEdit(); }); } ); function loadEdit(){ $('content').set('load',{onSuccess:function(){applyEditor();}}); $('content').load("testsample.html"); } function applyEditor(){ CKEDITOR.replaceAll('cked'); } </script> <div id="content" style="background:white;border:2px solid gray;">content will be loaded here</div> <a id="loader" style="border:2px solid red;">load content</a> <a id="loadagain" style="border:2px solid green;">remove ckeditor</a> </body> </html>www.adwintiser.com/testcase.html
Re: Removing Destroying CKEditors -
Re: Removing Destroying CKEditors -