X-Git-Url: https://scm.cri.mines-paristech.fr/git/ckeditor.git/blobdiff_plain/cf5973a3795926c7b4e234e8cd0280a8038aae8c..b67a02e371649e700299602f4ccee716fa3903e2:/skins/ckeditor/filemanager/browser/mac_finder/browser.html.dtml diff --git a/skins/ckeditor/filemanager/browser/mac_finder/browser.html.dtml b/skins/ckeditor/filemanager/browser/mac_finder/browser.html.dtml index f279157..0b3234a 100644 --- a/skins/ckeditor/filemanager/browser/mac_finder/browser.html.dtml +++ b/skins/ckeditor/filemanager/browser/mac_finder/browser.html.dtml @@ -91,12 +91,18 @@ return; } switch(window.parent.name) { - case 'FCKeditorDialog_PlinnImage' : + case 'PlinnImageDialog' : if (li.className == 'contentish-selected') { window.parent.updateOrInsertImage(li.link); window.close(); } break; + case 'StandaloneBrowser' : + if (li.className == 'contentish-selected') { + window.opener.SetUrl(li.link); + window.close(); + } + break; case '' : case '_blank' : var funcNum = GetUrlParam('CKEditorFuncNum'); @@ -300,10 +306,12 @@ createLinkBtn.onclick = function(){ var url = respDom.lastChild.firstChild.nodeValue; switch(window.parent.name) { - case 'FCKeditorDialog_PlinnImage' : + case 'PlinnImageDialog' : window.parent.updateOrInsertImage(url); break; - case 'FCKBrowseWindow' : + case 'StandaloneBrowser' : + window.opener.SetUrl(url); + break; default: var funcNum = GetUrlParam('CKEditorFuncNum'); window.opener.CKEDITOR.tools.callFunction(funcNum, url);