Changeset 666 for trunk


Ignore:
Timestamp:
01/16/07 08:54:37 (13 years ago)
Author:
gogo
Message:

ticket:570 change behaviour of justify when an image is selected to make
the image float left/right, click the justify button again to undo it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XinhaCore.js

    r665 r666  
    38063806      } 
    38073807    break; 
     3808     
     3809    case 'justifyleft'  : 
     3810    case 'justifyright' : 
     3811    { 
     3812      cmdID.match(/^justify(.*)$/); 
     3813      var ae = this._activeElement(this._getSelection());       
     3814      if(ae && ae.tagName.toLowerCase() == 'img') 
     3815      { 
     3816        ae.align = ae.align == RegExp.$1 ? '' : RegExp.$1; 
     3817      } 
     3818      else 
     3819      { 
     3820        this._doc.execCommand(cmdID, UI, param); 
     3821      } 
     3822    }     
     3823    break; 
     3824     
    38083825    default: 
    38093826      try 
Note: See TracChangeset for help on using the changeset viewer.