Changeset 332 for trunk


Ignore:
Timestamp:
09/22/05 06:06:17 (14 years ago)
Author:
niko
Message:

#512
fix editing link when there are child elements in the link

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/htmlarea.js

    r331 r332  
    32233223    link = this.getParentElement(); 
    32243224    if (link) { 
    3225       if (/^img$/i.test(link.tagName)) 
     3225      while (link && !/^a$/i.test(link.tagName)) 
    32263226        link = link.parentNode; 
    3227       if (!/^a$/i.test(link.tagName)) 
    3228         link = null; 
    32293227    } 
    32303228  } 
Note: See TracChangeset for help on using the changeset viewer.