Update of
/var/cvs/contributions/CMSContainer/cmsc/richtext/src/webapp/mmbase/edit/wizard/xinha
In directory james.mmbase.org:/tmp/cvs-serv1675
Modified Files:
my-htmlarea.js
Log Message:
CMSC-1310 Unable to make a link in the richtext editors unless you add a
tooltip, error message says, no title.
See also:
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer/cmsc/richtext/src/webapp/mmbase/edit/wizard/xinha
See also: http://www.mmbase.org/jira/browse/CMSC-1310
Index: my-htmlarea.js
===================================================================
RCS file:
/var/cvs/contributions/CMSContainer/cmsc/richtext/src/webapp/mmbase/edit/wizard/xinha/my-htmlarea.js,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- my-htmlarea.js 5 Mar 2009 10:06:35 -0000 1.12
+++ my-htmlarea.js 6 Mar 2009 07:14:30 -0000 1.13
@@ -211,7 +211,8 @@
outparam = {
f_href : HTMLArea.is_ie ?
editor.stripBaseURL(link.href) : link.getAttribute("href"),
f_destination : link.destination ,
- f_title : link.title?link.title: sel_value,
+ f_title : link.name?link.name: sel_value,
+ f_tooltip : link.title,
f_target : link.target,
f_usetarget : editor.config.makeLinkShowsTarget
};
@@ -221,6 +222,7 @@
f_href : "Click \"New Url\" to enter URL",
f_destination : null,
f_title : sel_value?sel_value:'',
+ f_tooltip : '',
f_target : '',
f_usetarget : editor.config.makeLinkShowsTarget
};
@@ -237,7 +239,7 @@
var range = editor._createRange(sel);
if(editor._selectionEmpty(sel))
{
- editor.insertHTML("<a href='" + param.f_href +
"' title='" + param.f_title + "'>" + param.f_title+ "</a>");
+ editor.insertHTML("<a href='" + param.f_href +
"' title='" + param.f_tooltip + "' name='"+param.f_title+"'>" + param.f_title+
"</a>");
}
else{
if ( !HTMLArea.is_ie )
@@ -273,7 +275,7 @@
}
}
a.target = param.f_target.trim();
- a.title = param.f_title.trim();
+ a.title = param.f_tooltip.trim();
if (HTMLArea.is_ie) {
a.destination = param.f_destination.trim();
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs