l'upload des images attachées fonctionne !
authorBenoît Pin <pin@cri.ensmp.fr>
Thu, 18 Aug 2011 14:51:39 +0000 (16:51 +0200)
committerBenoît Pin <pin@cri.ensmp.fr>
Thu, 18 Aug 2011 14:51:39 +0000 (16:51 +0200)
skins/ckeditor/config.js
skins/ckeditor/plugins/plinn_image/dialog/embedded_images.html.pt

index 2944bb0..322d3f2 100644 (file)
@@ -32,6 +32,6 @@ CKEDITOR.editorConfig = function( config )
        config.filebrowserBrowseUrl = CKEDITOR.basePath + 'filemanager/browser/mac_finder/browser.html?Connector=connectors/plinn/connector';\r
        config.filebrowserWindowHeight = 600;\r
        config.filebrowserWindowWidth = 801;\r
        config.filebrowserBrowseUrl = CKEDITOR.basePath + 'filemanager/browser/mac_finder/browser.html?Connector=connectors/plinn/connector';\r
        config.filebrowserWindowHeight = 600;\r
        config.filebrowserWindowWidth = 801;\r
-       \r
-       config.extraPlugins = 'selection,plinn_image';\r
+       config.attachmentBrowserConnectorUrl = CKEDITOR.basePath + 'plugins/plinn_image/connectors/plinn/connector';\r
+       config.extraPlugins = 'plinn_image';\r
 };
\ No newline at end of file
 };
\ No newline at end of file
index 8c0d171..99e57aa 100644 (file)
                <script type="text/javascript" language="javascript" charset="utf-8" src="sarissa.js"></script>
                <script type="text/javascript" language="javascript" charset="utf-8" src="DHTMLapi.js"></script>
                <script type="text/javascript">
                <script type="text/javascript" language="javascript" charset="utf-8" src="sarissa.js"></script>
                <script type="text/javascript" language="javascript" charset="utf-8" src="DHTMLapi.js"></script>
                <script type="text/javascript">
-               // <!--
+               <!--
                // var FCK = window.parent.FCK;
                // var contentPath = FCK.Config.contentPath;
     // 
                // var FCKConfig = window.parent.FCKConfig;
                // var connUrl = FCKConfig.AttachmentBrowserConnectorUrl;
                
                // var FCK = window.parent.FCK;
                // var contentPath = FCK.Config.contentPath;
     // 
                // var FCKConfig = window.parent.FCKConfig;
                // var connUrl = FCKConfig.AttachmentBrowserConnectorUrl;
                
+               var editor = window.parent.editor;
+               var contentPath = editor.contentPath;
+               var connUrl = window.parent.editor.config.attachmentBrowserConnectorUrl;
+               
                var slide_size = 222;
                
                function _initBrowser(){
                var slide_size = 222;
                
                function _initBrowser(){
                  
                }
                
                  
                }
                
-               //addListener(window, 'load', _initBrowser);
+               addListener(window, 'load', _initBrowser);
                // -->
                </script>
        </head>
                // -->
                </script>
        </head>