Changeset 1316


Ignore:
Timestamp:
06/16/12 02:44:39 (8 years ago)
Author:
gogo
Message:

Further IE Fixes #1581 #1524

Location:
trunk/plugins/MootoolsFileManager
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/MootoolsFileManager/MootoolsFileManager.FileManager.js

    r1313 r1316  
    106106      });        
    107107    } 
    108      
     108    if(Xinha.is_ie) this.current_selection = this.editor.saveSelection(); 
    109109    this.FileManagerWidget.show();     
    110110}; 
     
    118118  var param = this.FileManagerAttributes();   
    119119  param.f_href = path; 
    120      
     120  if(Xinha.is_ie) this.editor.restoreSelection(this.current_selection);   
    121121  if (!a) 
    122122  { 
  • trunk/plugins/MootoolsFileManager/MootoolsFileManager.ImageManager.js

    r1313 r1316  
    105105  } 
    106106   
     107  if(Xinha.is_ie) this.current_selection = this.editor.saveSelection(); 
    107108  this.ImageManagerWidget.show();     
    108109}; 
     
    514515MootoolsFileManager.prototype.ImageManagerReturn = function(path, file) 
    515516{ 
     517   
    516518  var editor = this.editor; 
    517519  var self   = this; 
     
    520522  var param = self.ImageManagerAttributes();   
    521523  param.f_url = path; 
     524   
     525  if(Xinha.is_ie) this.editor.restoreSelection(this.current_selection); 
    522526   
    523527  var img = image; 
     
    528532      editor._doc.execCommand("insertimage", false, param.f_url); 
    529533      img = range.parentElement(); 
     534             
    530535      // wonder if this works... 
    531536      if (img.tagName.toLowerCase() != "img") { 
     
    591596        break; 
    592597         
    593         case "f_align"  : if(value && value !== true) { img.align  = value; } else { img.removeAttribute('align'); } break; 
     598        case "f_align"  : if(value && value !== true && value !== 'true') { img.align  = value; } else { img.removeAttribute('align'); } break; 
    594599           
    595600        case "f_width" :  
Note: See TracChangeset for help on using the changeset viewer.