Reading through the [CKEditor documentation](http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.editor.html#destroy), I see that they have an option to destroy an instance with `CKEDITOR.instances.instanceName.destroy();`. However, if the DOM has changed, and the whole WYSIWYG DOM structure has been removed, I get the following error in Chrome:

```
Uncaught TypeError: Cannot read property 'document' of null

```

...and the following one in Firefox:

```
i.contentWindow is null

```

Is there any way to work around this?

Due to the way my app is structured (loading content via AJAX), I cannot call `.destroy()` when the elements are still on the page.