X-Git-Url: https://svn.cri.ensmp.fr/git/ckeditor.git/blobdiff_plain/4263e3f11a4150c7a5eec0ca48b64b784f86b556..6cfc39c3f3c88b9560d032b11335111257ffa69b:/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 84232c8..1762c04 100644 --- a/skins/ckeditor/filemanager/browser/mac_finder/browser.html.dtml +++ b/skins/ckeditor/filemanager/browser/mac_finder/browser.html.dtml @@ -91,14 +91,16 @@ return; } switch(window.parent.name) { - case 'FCKeditorDialog_PlinnImage' : + case 'PlinnImageDialog' : if (li.className == 'contentish-selected') { window.parent.updateOrInsertImage(li.link); window.close(); } break; - case 'FCKBrowseWindow' : - window.opener.SetUrl(li.link); + case '' : + case '_blank' : + var funcNum = GetUrlParam('CKEditorFuncNum'); + window.opener.CKEDITOR.tools.callFunction(funcNum, li.link); window.close(); break; } @@ -298,10 +300,9 @@ 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' : default: var funcNum = GetUrlParam('CKEditorFuncNum'); window.opener.CKEDITOR.tools.callFunction(funcNum, url);