Opened 11 years ago
Last modified 11 years ago
#11761 confirmed Bug
Event system dies along with the last editor being destroyed
Reported by: | Olek Nowodziński | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.2.2 |
Keywords: | Cc: |
Description
I stumbled upon this issue while developing sample for #11480.
This issue makes CKEditor events API quite useless without editor instance, especially if the editor is destroyed in the callback.
See jsFiddle.
How to reproduce?
- Create editor instance.
- Attach event listener on a DOM element outside of the editor. Not related to editable, etc.
- See that event works.
- Destroy the editor(s).
Actual:
- Attached listener is not fired anymore.
Expected:
- Attached listener is fired since the object in DOM is still there.
Quick research:
Attachments (1)
Change History (4)
comment:1 Changed 11 years ago by
comment:2 Changed 11 years ago by
I find this very strange. I understand that it was done in order to free memory, but it's definitely a big negative surprise.
comment:3 Changed 11 years ago by
Status: | new → confirmed |
---|---|
Version: | 3.2.1 → 3.2.2 |
I was able to reproduce this issue from CKEditor 3.2.2 so perhaps there is something different that introduced this bug.
Changed 11 years ago by
Attachment: | replacebycode3.html added |
---|
cc