From 050cf4acaa2c233cc8d2452faeb5b51e3d10b5c9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Beno=C3=AEt=20Pin?= Date: Fri, 19 Aug 2011 12:57:06 +0200 Subject: [PATCH] =?utf8?q?=C3=87a=20devrait=20le=20faire.=20Maintenant,=20?= =?utf8?q?on=20va=20passer=20au=20tests=20/=20ajustements.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- skins/ckeditor/config.js | 1 + .../filemanager/browser/mac_finder/browser.html.dtml | 5 ++--- .../plugins/plinn_image/dialog/plinn_image_tabs.html.pt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/skins/ckeditor/config.js b/skins/ckeditor/config.js index b9eb18c..58759ed 100644 --- a/skins/ckeditor/config.js +++ b/skins/ckeditor/config.js @@ -30,6 +30,7 @@ CKEDITOR.editorConfig = function( config ) config.contentsCss = CKEDITOR.basePath + 'global_plinn_style.css'; config.filebrowserBrowseUrl = CKEDITOR.basePath + 'filemanager/browser/mac_finder/browser.html?Connector=connectors/plinn/connector'; + CKEDITOR.config.filebrowserImageBrowseUrl = CKEDITOR.basePath + 'filemanager/browser/mac_finder/browser.html?Type=Image&Connector=connectors/plinn/connector'; config.filebrowserWindowHeight = 600; config.filebrowserWindowWidth = 801; config.attachmentBrowserConnectorUrl = CKEDITOR.basePath + 'plugins/plinn_image/connectors/plinn/connector'; diff --git a/skins/ckeditor/filemanager/browser/mac_finder/browser.html.dtml b/skins/ckeditor/filemanager/browser/mac_finder/browser.html.dtml index f279157..1762c04 100644 --- a/skins/ckeditor/filemanager/browser/mac_finder/browser.html.dtml +++ b/skins/ckeditor/filemanager/browser/mac_finder/browser.html.dtml @@ -91,7 +91,7 @@ return; } switch(window.parent.name) { - case 'FCKeditorDialog_PlinnImage' : + case 'PlinnImageDialog' : if (li.className == 'contentish-selected') { window.parent.updateOrInsertImage(li.link); window.close(); @@ -300,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); diff --git a/skins/ckeditor/plugins/plinn_image/dialog/plinn_image_tabs.html.pt b/skins/ckeditor/plugins/plinn_image/dialog/plinn_image_tabs.html.pt index 3a48d56..8afa5f0 100644 --- a/skins/ckeditor/plugins/plinn_image/dialog/plinn_image_tabs.html.pt +++ b/skins/ckeditor/plugins/plinn_image/dialog/plinn_image_tabs.html.pt @@ -62,7 +62,7 @@ tabs = document.getElementsByTagName('a'); tabs[0].href = pluginPath + 'dialog/embedded_images.html'; - //tabs[1].href = window.parent.FCKConfig.ImageBrowserURL; + tabs[1].href = window.parent.editor.config.filebrowserImageBrowseUrl; addListener(document, 'click', updateTabs) }; addListener(window, 'load', initTabs); -- 2.20.1