On prépare de quoi se concentrer sur les images incorporées.
authorBenoît Pin <pin@cri.ensmp.fr>
Thu, 18 Aug 2011 12:46:13 +0000 (14:46 +0200)
committerBenoît Pin <pin@cri.ensmp.fr>
Thu, 18 Aug 2011 12:46:13 +0000 (14:46 +0200)
skins/ckeditor/plugins/plinn_image/dialog/embedded_images.html.pt
skins/ckeditor/plugins/plinn_image/dialog/plinn_image.html.pt
skins/ckeditor/plugins/plinn_image/dialog/plinn_image.js
skins/ckeditor/plugins/plinn_image/dialog/plinn_image_tabs.html.pt
skins/ckeditor/plugins/plinn_image/plugin.js

index 0efdcdd..8c0d171 100644 (file)
                <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 imagesPath = 'images/';
+               // var FCK = window.parent.FCK;
+               // var contentPath = FCK.Config.contentPath;
+    // 
+               // var FCKConfig = window.parent.FCKConfig;
+               // var connUrl = FCKConfig.AttachmentBrowserConnectorUrl;
                
                var slide_size = 222;
                
                  
                }
                
-               addListener(window, 'load', _initBrowser);
+               //addListener(window, 'load', _initBrowser);
                // -->
                </script>
        </head>
index cc5dcf1..65b5a95 100644 (file)
@@ -1 +1 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">\r\r<html xmlns="http://www.w3.org/1999/xhtml">\r\r       <head>\r         <meta http-equiv="content-type" content="text/html;charset=utf-8" />\r           <title>Image selector</title>\r          <script type="text/javascript" language="javascript" charset="utf-8" src="epoz_script_detect.js"></script>\r             <script type="text/javascript" language="javascript" charset="utf-8" src="javascript_events_api.js"></script>\r          <script type="text/javascript" language="javascript" charset="utf-8" src="sarissa.js"></script>\r                <!--<script type="text/javascript" src="plinn_image.js"></script>-->\r   </head>\r\r       <frameset rows="27,*" border="0" frameborder="no" framespacing="0">\r            <frame name="tabs" src="about:blank" noresize="noresize" scrolling="no" />\r             <frame name="main" src="about:blank" />\r                <noframes><body></body></noframes>\r     </frameset>\r\r</html>
\ No newline at end of file
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">\r\r<html xmlns="http://www.w3.org/1999/xhtml">\r\r       <head>\r         <meta http-equiv="content-type" content="text/html;charset=utf-8" />\r           <title>Image selector</title>\r          <script type="text/javascript" language="javascript" charset="utf-8" src="epoz_script_detect.js"></script>\r             <script type="text/javascript" language="javascript" charset="utf-8" src="javascript_events_api.js"></script>\r          <script type="text/javascript" language="javascript" charset="utf-8" src="sarissa.js"></script>\r                <script type="text/javascript" src="plinn_image.js"></script>\r  </head>\r\r       <frameset rows="27,*" border="0" frameborder="no" framespacing="0">\r            <frame name="tabs" src="about:blank" noresize="noresize" scrolling="no" />\r             <frame name="main" src="about:blank" />\r                <noframes><body></body></noframes>\r     </frameset>\r\r</html>
\ No newline at end of file
index 424024a..7962d13 100644 (file)
@@ -3,20 +3,21 @@
 // Licence GPL
 
 var editor             = window.dialogArguments.editor;
-var FCK                        = editor.FCK ;
-var FCKLang            = editor.FCKLang ;
-var FCKConfig  = editor.FCKConfig ;
-var FCKPlugins = editor.FCKPlugins;
-var FCKDebug   = editor.FCKDebug ;
+var pluginPath         = window.dialogArguments.pluginPath;
+//var FCK                      = editor.FCK ;
+//var FCKLang          = editor.FCKLang ;
+//var FCKConfig        = editor.FCKConfig ;
+//var FCKPlugins       = editor.FCKPlugins;
+//var FCKDebug = editor.FCKDebug ;
 
 window.onload = function() {
        var mainFrame = window.frames['main'];
-       mainFrame.src = FCKPlugins.Items['image'].Path + 'embedded_images.html';
+       mainFrame.src = pluginPath + 'dialog/embedded_images.html';
        mainFrame.location.href = mainFrame.src;
        
        var tabsFrame = window.frames['tabs'];
-       tabsFrame.src = FCKPlugins.Items['image'].Path + 'plinn_image_tabs.html'
-       tabsFrame.location.href = FCKPlugins.Items['image'].Path + 'plinn_image_tabs.html'
+       tabsFrame.src = pluginPath + 'dialog/plinn_image_tabs.html';
+       tabsFrame.location.href = tabsFrame.src;
 }
 
 function updateOrInsertImage(url) {
index 4beb51a..3a48d56 100644 (file)
                // <!--
                  var tabs = [];
                  function initTabs() {
-                   var FCKPlugins = window.parent.FCKPlugins;
+                   var pluginPath = window.parent.pluginPath;
 
                    tabs = document.getElementsByTagName('a');
-                   tabs[0].href = FCKPlugins.Items['image'].Path + 'embedded_images.html';
-                   tabs[1].href = window.parent.FCKConfig.ImageBrowserURL;
+                   tabs[0].href = pluginPath + 'dialog/embedded_images.html';
+                   //tabs[1].href = window.parent.FCKConfig.ImageBrowserURL;
                    addListener(document, 'click', updateTabs)
                  };
                  addListener(window, 'load', initTabs);
index 17658a9..df81531 100644 (file)
@@ -34,6 +34,7 @@ function openPlinnImageDialog(path, editor) {
        var win = open(path + 'dialog/plinn_image.html', 'PlinnImageDialog', winOptions);
        win.dialogArguments = new Object();
        win.dialogArguments.editor = editor;
+       win.dialogArguments.pluginPath = path;
 }