Suppression des images attachées fonctionnelle.
[ckeditor.git] / skins / ckeditor / plugins / plinn_image / dialog / embedded_images.html.pt
index 99e57aa..4a438b9 100644 (file)
            switch (target.tagName) {
              case 'IMG' :
                    var a = target.parentNode;
-                   window.parent.updateOrInsertImage(a.getAttribute('href', 2));
+                   window.parent.updateOrInsertImage(a.getAttribute('href', 2), true);
                    break;
                  case 'A' :
                    if (target.name == 'suppr')
                      var a = target.parentNode.parentNode.getElementsByTagName('a')[0];
                      var href = a.getAttribute('href', 2);
-                     var imgPath = window.parent.editor.FCKConfig.EditorPath + href;
+                     var imgPath = contentPath + '/' + href;
                      
                      var req = new XMLHttpRequest();
                        req.open("POST", connUrl, false); // synchrone
                    slide.parentNode.removeChild(slide);
                    }
                }
-                 
                }
                
                addListener(window, 'load', _initBrowser);