Opened 5 years ago

Last modified 5 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?

  1. Create editor instance.
  2. Attach event listener on a DOM element outside of the editor. Not related to editable, etc.
  3. See that event works.
  4. Destroy the editor(s).

Actual:

  1. Attached listener is not fired anymore.

Expected:

  1. Attached listener is fired since the object in DOM is still there.

Quick research:

Attachments (1)

replacebycode3.html (2.7 KB) - added by Jakub Ś 5 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 5 years ago by Piotrek Koszuliński

cc

comment:2 Changed 5 years ago by Piotrek Koszuliński

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 5 years ago by Jakub Ś

Status: newconfirmed
Version: 3.2.13.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 5 years ago by Jakub Ś

Attachment: replacebycode3.html added
Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy