Index: plugins/optional/accessibility/resources_dynamic/js/htmleditorbutton-access.js =================================================================== RCS file: /cvs/produits/Ametys/AnyContent_2.9/plugins/optional/accessibility/resources_dynamic/js/htmleditorbutton-access.js,v retrieving revision 1.17 diff -u -r1.17 htmleditorbutton-access.js --- plugins/optional/accessibility/resources_dynamic/js/htmleditorbutton-access.js 27 Nov 2008 17:55:10 -0000 1.17 +++ plugins/optional/accessibility/resources_dynamic/js/htmleditorbutton-access.js 8 Dec 2008 09:35:03 -0000 @@ -2140,13 +2140,18 @@ break; } } - - var title = link.getAttribute("title"); + + var _document = ANWRT_Access_Link.box.ui.iframe.contentWindow.document; + + var title = HTMLArea.is_ie ? String(link.getAttribute("title")) : link.getAttribute("title"); if (title != null) { - var _document = ANWRT_Access_Link.box.ui.iframe.contentWindow.document; + _document.getElementById("link_title").value = title; } + else { + _document.getElementById("link_title").value = ""; + } } ANWRT_Access_Link.box.showModal(); @@ -2186,6 +2191,8 @@ var _document = ANWRT_Access_Link.box.ui.iframe.contentWindow.document; + _document.getElementById("link_title").value = ""; + if (editor.config.linkType.length == 0) { alert(""); @@ -2353,7 +2360,19 @@ { link = link.parentElement; if (link && !/^a$/i.test(link.tagName)) - link = null; + { + link = null; + } + + //Dans certain cas sous Firefox on n'accède tjrs pas au lien + if ( link == null ) { + + link = editor._getSelection().anchorNode.parentNode; + + if (link && !/^a$/i.test(link.tagName)) + link = null; + } + } if (link != null) {