Changeset 554 for trunk


Ignore:
Timestamp:
08/19/06 18:15:24 (13 years ago)
Author:
mokhet
Message:

apply IE fix which was loosing selection when providing back the color from the colorpicker. see ticket #85

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/htmlarea.js

    r550 r554  
    42544254    } 
    42554255  } 
    4256   var picker = new colorPicker({cellsize:editor.config.colorPickerGranularity,callback:function(color){editor._doc.execCommand(cmdID, false, color);}}); 
     4256  var cback = function(color) { editor._doc.execCommand(cmdID, false, color); }; 
     4257  if ( HTMLArea.is_ie ) 
     4258  { 
     4259    var range = editor._createRange(editor._getSelection()); 
     4260    cback = function(color) 
     4261    { 
     4262      range.select(); 
     4263      editor._doc.execCommand(cmdID, false, color); 
     4264    }; 
     4265  } 
     4266  var picker = new colorPicker({cellsize:editor.config.colorPickerGranularity,callback:cback}); 
    42574267  picker.open(editor.config.colorPickerPosition, btn); 
    42584268}; 
Note: See TracChangeset for help on using the changeset viewer.