Opened 11 years ago

Closed 11 years ago

#10410 closed Bug (duplicate)

Toolbar stops functioning inside JqueryUI dialog

Reported by: Daniel Owned by:
Priority: Normal Milestone:
Component: General Version: 4.1.1
Keywords: Cc:


When using a jquery ui dialog ( after you open the dialog and click on a menu item the second time that it is clicked it doesn't work.

This seems to be limited to the Styles,Normal,Font,Size toolbar items, things like Bold,Italic, About etc seem to work still.

See attached for an reproducible sample, the form that isnt part of the dialog works correctly and the other form when the same menu item is selected again when it is still selected a javascript error is thrown.

That error is

TypeError: $.contentWindow is null
Line 1266 

I have tested this against the latest nightly (05-May-2013 at 07:41 UTC) and against the latest stable (4.1.1) and the latest from github (ckeditor-dev) master 2f39835f702191bf51cf5b238088ea0198f40959

Attachments (1) (1.9 MB) - added by Daniel 11 years ago.

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by Daniel

Attachment: added

comment:1 Changed 11 years ago by Daniel

Looking at it today the actual error I'm getting is

TypeError: $.contentWindow is null file:///C:/Users/Daniel/Desktop/Example/ckeditor/core/dom/element.js Line 1621

 getFrameDocument: function() {
    var $ = this.$;
    try {
        // In IE, with custom document.domain, it may happen that
        // the iframe is not yet available, resulting in "Access
        // Denied" for the following property access.
    } catch ( e ) {
        // Trick to solve this issue, forcing the iframe to get ready
        // by simply setting its "src" property.
        $.src = $.src;
    return $ && new CKEDITOR.dom.document( $.contentWindow.document );

return $ && new CKEDITOR.dom.document( $.contentWindow.document );

is the line the error is occuring on

comment:2 Changed 11 years ago by Jakub Ś

Resolution: duplicate
Status: newclosed

DUP of #10269.

This is jQuery bug. You can either use older version of jQuery and jQuery Ui or try using "$.widget( ..." workaround mentioned in that ticket and in or

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