Changeset 716


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

Ticket #3 Horizontal Rule Selection

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/XinhaCore.js

    r713 r716  
    39073907    } 
    39083908  } 
    3909    
     3909 
     3910  if ( ev.type == 'mousedown' ) 
     3911  { 
     3912    if(editor.firePluginEvent('onMouseDown', ev)) 
     3913    { 
     3914      return false; 
     3915    } 
     3916  } 
    39103917  // update the toolbar state after some time 
    39113918  if ( editor._timerToolbar ) 
  • 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.