Opened 11 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: |
Description
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
in
CKEDITOR.focusManager.remove - ckeditor.js:198
Steps to reproduce:
- open attached html file (it loads ckeditor & jquery from cdnjs)
- click "Go!"
- click "Image" in the ckeditor toolbar.
- 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)
Change History (4)
Changed 11 years ago by
Changed 11 years ago by
Attachment: | ajax2.html added |
---|
comment:1 Changed 11 years ago by
Status: | new → confirmed |
---|---|
Version: | → 4.0 Beta |
comment:2 Changed 9 years ago by
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:
CKEDITOR.dialog.getCurrent().hide();
Problem can be reproduced from CKEditor 4.0 beta. This works fine in CKE 3.x.
JS ERROR:
TypeError: listeners is null
Code: element.removeListener( 'blur', listeners.blur );
Line:218
URI: /ckeditor4/core/focusmanager.js