Ça devrait le faire. Maintenant, on va passer au tests / ajustements.
authorBenoît Pin <pin@cri.ensmp.fr>
Fri, 19 Aug 2011 10:57:06 +0000 (12:57 +0200)
committerBenoît Pin <pin@cri.ensmp.fr>
Fri, 19 Aug 2011 10:57:06 +0000 (12:57 +0200)
skins/ckeditor/config.js
skins/ckeditor/filemanager/browser/mac_finder/browser.html.dtml
skins/ckeditor/plugins/plinn_image/dialog/plinn_image_tabs.html.pt

index b9eb18c..58759ed 100644 (file)
@@ -30,6 +30,7 @@ CKEDITOR.editorConfig = function( config )
        config.contentsCss = CKEDITOR.basePath + 'global_plinn_style.css';\r
        \r
        config.filebrowserBrowseUrl = CKEDITOR.basePath + 'filemanager/browser/mac_finder/browser.html?Connector=connectors/plinn/connector';\r
+       CKEDITOR.config.filebrowserImageBrowseUrl = CKEDITOR.basePath + 'filemanager/browser/mac_finder/browser.html?Type=Image&Connector=connectors/plinn/connector';\r
        config.filebrowserWindowHeight = 600;\r
        config.filebrowserWindowWidth = 801;\r
        config.attachmentBrowserConnectorUrl = CKEDITOR.basePath + 'plugins/plinn_image/connectors/plinn/connector';\r
index f279157..1762c04 100644 (file)
@@ -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();
                                        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);
index 3a48d56..8afa5f0 100644 (file)
@@ -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);