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 28 Nov 2008 13:09:11 -0000
@@ -2140,13 +2140,18 @@
break;
}
}
ANWRT_Access_Link.box.showModal();
@@ -2247,6 +2252,7 @@
return;
ANWRT_Access_Link.selected = elt;
+ editor = ANWRT_Access_Link.editor;
var _document = ANWRT_Access_Link.box.ui.iframe.contentWindow.document;
@@ -2265,6 +2271,16 @@
_document.getElementById("link_helper").value = "";
_document.getElementById("link_value").style.display = (link.helper == null) ? "" : "none";
+ var title = editor.getParentElement().getAttribute("title");
+ if (title != null)
+
{
+
+ _document.getElementById("link_title").value = title;
+ }
+ else
{
+ _document.getElementById("link_title").value = "";
+ }
+
var iframe = _document.getElementById("iframe_helper");
if (iframe != null && link.helper == null)
{
Solution found for FF : use editor._getSelection().focusNode.parentNode to retrieve the link and set the title.