Ticket #8226: 8226.patch

File 8226.patch, 959 bytes (added by Alfonso Martínez de Lizarrondo, 12 years ago)

Proposed patch

  • _source/core/dom/element.js

     
    14791479                                }
    14801480                        }
    14811481
    1482                         return $ && new CKEDITOR.dom.document( $.contentWindow.document );
     1482                        return $ && $.contentWindow && new CKEDITOR.dom.document( $.contentWindow.document );
    14831483                },
    14841484
    14851485                /**
  • _source/plugins/wysiwygarea/plugin.js

     
    10321032                                                                        xmlDeclaration = fullPage && editor.xmlDeclaration,
    10331033                                                                        doc = iframe.getFrameDocument();
    10341034
     1035                                                                if ( !doc )
     1036                                                                        return null;
     1037
    10351038                                                                var data = fullPage
    10361039                                                                        ? doc.getDocumentElement().getOuterHtml()
    10371040                                                                        : doc.getBody().getHtml();
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy