Allow destroy after object removed from DOM
|Reported by:||douglassdavis||Owned by:||garry.yao|
related to: http://dev.ckeditor.com/changeset/5681
I would like to 1) Be able to call destroy() after the editor has been removed from the DOM. Or even better... 2) If the editor has been removed from the DOM already, and a new editor with the same name gets created, the old one will automatically be destroyed. Not being in the DOM anymore, it's really of no use anyway.
It's a very common pattern to have a form that is submitted by ajax (a div is updated) and that the user must keep submitting the form until they fill out all of the inputs correctly.
With FCKEditor, I could do this. With CKEditor, I must first search for all editors within the div to be updated and destroy them before updating the div in order to avoid an error.
Even if I try to destroy the old editor that is no longer in the DOM, I get the error i.contentWindow is null.
Change History (34)
comment:6 Changed 5 years ago by douglassdavis
- Resolution set to invalid
- Status changed from pending to closed
comment:7 Changed 5 years ago by alfonsoml
- Resolution invalid deleted
- Status changed from closed to reopened
comment:8 Changed 5 years ago by alfonsoml
- Owner set to alfonsoml
- Status changed from reopened to review
comment:13 follow-up: ↓ 21 Changed 5 years ago by garry.yao
- Status changed from review_failed to review
comment:17 Changed 5 years ago by alfonsoml
- Owner changed from garry.yao to alfonsoml
- Status changed from review to assigned