Changeset 583 for trunk


Ignore:
Timestamp:
09/20/06 23:37:19 (13 years ago)
Author:
ray
Message:

OK, a.getAttribute('href') seems to work much better than a.href

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/Linker/linker.js

    r582 r583  
    7474  if(a && a.tagName.toLowerCase() == 'a') 
    7575  { 
    76     var href =this.editor.fixRelativeLinks(a.href); 
     76    var href =this.editor.fixRelativeLinks(a.getAttribute('href')); 
    7777    var m = href.match(/^mailto:(.*@[^?&]*)(\?(.*))?$/); 
    7878    var anchor = href.match(/^#(.*)$/); 
     
    262262    } 
    263263    linker.editor.selectNodeContents(a); 
    264         linker.editor.updateToolbar(); 
     264    linker.editor.updateToolbar(); 
    265265  }; 
    266266 
Note: See TracChangeset for help on using the changeset viewer.