Author: raintang Date: 2009-10-13 11:11:04 +0200 (Tue, 13 Oct 2009) New Revision: 39092
Modified: CMSContainer/branches/b1_6/CMSContainer/cmsc/richtext/src/webapp/mmbase/edit/wizard/xinha/my-htmlarea.js Log: CMSC-1558 Inserting a link behind an image clears the whole body Modified: CMSContainer/branches/b1_6/CMSContainer/cmsc/richtext/src/webapp/mmbase/edit/wizard/xinha/my-htmlarea.js =================================================================== --- CMSContainer/branches/b1_6/CMSContainer/cmsc/richtext/src/webapp/mmbase/edit/wizard/xinha/my-htmlarea.js 2009-10-13 09:10:33 UTC (rev 39091) +++ CMSContainer/branches/b1_6/CMSContainer/cmsc/richtext/src/webapp/mmbase/edit/wizard/xinha/my-htmlarea.js 2009-10-13 09:11:04 UTC (rev 39092) @@ -244,16 +244,7 @@ else{ if ( !HTMLArea.is_ie ) { - a = range.startContainer; - if ( ! ( /^a$/i.test(a.tagName) ) ) - { - a = a.nextSibling; - if ( a === null ) - { - a = range.startContainer.parentNode; - } - } - a.innerHTML = param.f_title.trim(); + a.href = param.f_href.trim(); } } } catch(ex) {} _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs