X-Git-Url: https://scm.cri.mines-paristech.fr/git/ckeditor.git/blobdiff_plain/92ea98a2568a0e59779b924a8b699bea7936fa14..050cf4acaa2c233cc8d2452faeb5b51e3d10b5c9:/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 be15cd2..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,12 +300,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' : default: - window.opener.SetUrl(url); + var funcNum = GetUrlParam('CKEditorFuncNum'); + window.opener.CKEDITOR.tools.callFunction(funcNum, url); break; } window.close();