Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Window.opener undefined in IE8?

I can't figure out where I am going wrong with this. In other browsers, it works fine:

function main__pageeditor_new_body_SetUrl()
    {
        function getUrlParam(parentObject, paramName)
        {
          var reParam = new RegExp('(?:[\?&]|&)' + paramName + '=([^&]+)', 'i') ;            
          var match = parentObject.location.search.match(reParam) ;

           return (match && match.length > 1) ? match[1] : '' ;
        }

        var funcNum = getUrlParam(this, 'CKEditorFuncNum');

        this.opener.CKEDITOR.tools.callFunction(funcNum, arguments[0]);
}

But in IE you get this error:

'this.opener.CKEDITOR' is null or not an object

Why wouldn't this work?

like image 920
andy Avatar asked Nov 25 '22 20:11

andy


1 Answers

For anyone wondering - This helped quite a bit:

http://docs.cksource.com/CKEditor_3.x/Developers_Guide/File_Browser_(Uploader)/Custom_File_Browser

like image 84
andy Avatar answered Nov 27 '22 10:11

andy