Opened 10 years ago

Last modified 9 years ago

#11019 confirmed Bug

calling destroy() throws an error when image dialog is open

Reported by: Paul Korzhyk Owned by:
Priority: Normal Milestone:
Component: General Version: 4.0 Beta
Keywords: Cc:


This started happening in 4.2, reproducible in Chrome and Firefox. For some reason, when dialog tries to hide coverElement, it is already gone from the focusManager.

Uncaught TypeError: Cannot read property 'blur' of null


CKEDITOR.focusManager.remove - ckeditor.js:198

Steps to reproduce:

  1. open attached html file (it loads ckeditor & jquery from cdnjs)
  2. click "Go!"
  3. click "Image" in the ckeditor toolbar.
  4. Wait for 10 second countdown to end.

Observed Result: white dialog cover stays on screen, error printed to the dev console. Expected Result: exact opposite of "Observed Result".

Attachments (2)

a.html (1006 bytes) - added by Paul Korzhyk 10 years ago.
ajax2.html (2.5 KB) - added by Jakub Ś 10 years ago.

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by Paul Korzhyk

Attachment: a.html added

Changed 10 years ago by Jakub Ś

Attachment: ajax2.html added

comment:1 Changed 10 years ago by Jakub Ś

Status: newconfirmed
Version: 4.0 Beta

Problem can be reproduced from CKEditor 4.0 beta. This works fine in CKE 3.x.

TypeError: listeners is null
Code: element.removeListener( 'blur', listeners.blur );
URI: /ckeditor4/core/focusmanager.js

comment:2 Changed 9 years ago by frattaro

Experienced this in 4.4.7 using a modified version of the templates plugin (modified to handle a page containing multiple inline instances, and clearing the parent container's html, replacing dynamic instances with new instances as specified by template).

As a work around, I called the following function before redrawing the page:


Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy