X-Git-Url: https://scm.cri.ensmp.fr/git/ckeditor.git/blobdiff_plain/ff15447525986336e81f8bc423a23047c732bbe1..122c181a42e170ed382fae81244030a4bc67adf1:/skins/ckeditor/plugins/plinn_image/dialog/embedded_images.html.pt diff --git a/skins/ckeditor/plugins/plinn_image/dialog/embedded_images.html.pt b/skins/ckeditor/plugins/plinn_image/dialog/embedded_images.html.pt index 99e57aa..0034dd1 100644 --- a/skins/ckeditor/plugins/plinn_image/dialog/embedded_images.html.pt +++ b/skins/ckeditor/plugins/plinn_image/dialog/embedded_images.html.pt @@ -137,25 +137,24 @@ 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 req = new XMLHttpRequest(); - req.open("POST", connUrl, false); // synchrone - req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=utf-8"); - req.send("command=rm&path="+escape(imgPath)); - var doc = req.responseXML.documentElement; - if (doc.tagName == 'done') { - var slide = target.parentNode.parentNode; - slide.parentNode.removeChild(slide); - } +// 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 req = new XMLHttpRequest(); +// req.open("POST", connUrl, false); // synchrone +// req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=utf-8"); +// req.send("command=rm&path="+escape(imgPath)); +// var doc = req.responseXML.documentElement; +// if (doc.tagName == 'done') { +// var slide = target.parentNode.parentNode; +// slide.parentNode.removeChild(slide); +// } } - } addListener(window, 'load', _initBrowser);