knguyen 2004/11/12 14:49:19 CET
Modified files: (Branch: JAHIA-4-0-BRANCH)
src/views/jsp/jahia/htmleditors/htmlarea htmlarea.js
Log:
- htmlArea : enhance create links support
Revision Changes Path
1.1.2.6 +4 -3
jahia/src/views/jsp/jahia/htmleditors/htmlarea/htmlarea.js
http://jahia.mine.nu:8080/cgi-bin/cvsweb.cgi/jahia/src/views/jsp/jahia/htmleditors/htmlarea/htmlarea.js.diff?r1=1.1.2.5&r2=1.1.2.6&f=h
Index: htmlarea.js
===================================================================
RCS file:
/home/cvs/repository/jahia/src/views/jsp/jahia/htmleditors/htmlarea/Attic/htmlarea.js,v
retrieving revision 1.1.2.5
retrieving revision 1.1.2.6
diff -u -r1.1.2.5 -r1.1.2.6
--- htmlarea.js 10 Nov 2004 19:07:19 -0000 1.1.2.5
+++ htmlarea.js 12 Nov 2004 13:49:19 -0000 1.1.2.6
@@ -9,7 +9,7 @@
// Version 3.0 developed by Mihai Bazon.
// http://dynarch.com/mishoo
//
-// $Id: htmlarea.js,v 1.1.2.5 2004/11/10 19:07:19 knguyen Exp $
+// $Id: htmlarea.js,v 1.1.2.6 2004/11/12 13:49:19 knguyen Exp $
if (typeof _editor_url == "string") {
// Leave exactly one backslash at the end of _editor_url
@@ -1411,8 +1411,9 @@
var outparam = null;
if (typeof link == "undefined") {
link = this.getParentElement();
- if (link && !/^a$/i.test(link.tagName))
- link = null;
+ while ( (link && !/^a$/i.test(link.tagName)) ){
+ link = link.parentNode;
+ }
}
if (link) outparam = {
f_href : HTMLArea.is_ie ? editor.stripBaseURL(link.href) :
link.getAttribute("href"),