Changeset 716 for trunk/modules


Ignore:
Timestamp:
02/07/07 22:34:49 (13 years ago)
Author:
ray
Message:

Ticket #3 Horizontal Rule Selection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/Gecko/Gecko.js

    r707 r716  
    371371  return false; 
    372372} 
     373Gecko.prototype.onMouseDown = function(ev) 
     374{    
     375        // Gecko doesn't select hr's on single click 
     376        if (ev.target.tagName.toLowerCase() == "hr") 
     377        { 
     378          var sel = this.editor.getSelection(); 
     379          var range = this.editor.createRange(sel); 
     380          range.selectNode(ev.target); 
     381        } 
     382} 
    373383 
    374384 
Note: See TracChangeset for help on using the changeset viewer.