Changeset 114


Ignore:
Timestamp:
05/06/05 15:22:31 (15 years ago)
Author:
gogo
Message:

Apply #106 - IE error whe linking image

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/htmlarea.js

    r108 r114  
    13931393    if (HTMLArea.is_gecko && this._doc.designMode != 'on') { 
    13941394      try { 
    1395      
     1395 
    13961396        // cannot set design mode if no display 
    13971397        if (this._iframe.style.display == 'none') 
     
    14951495    doc.write(html); 
    14961496    doc.close(); 
    1497      
     1497 
    14981498    // redo it for some obscure reason that IE need it.. 
    14991499    editor.activateEditor(); 
    1500      
     1500 
    15011501    // if we have multiple editors some bug in Mozilla makes some lose editing ability 
    15021502    if(HTMLArea.is_gecko) 
     
    27922792    var compare = 0; 
    27932793    if (HTMLArea.is_ie) { 
    2794       compare = range.compareEndPoints("StartToEnd", range); 
     2794      if(sel.type == "Control") 
     2795      { 
     2796        compare = range.length; 
     2797      } 
     2798      else 
     2799      { 
     2800        compare = range.compareEndPoints("StartToEnd", range); 
     2801      } 
    27952802    } else { 
    27962803      compare = range.compareBoundaryPoints(range.START_TO_END, range); 
     
    30023009    case "htmlmode" : this.setMode(); break; 
    30033010    case "hilitecolor": 
    3004       (HTMLArea.is_ie) && (cmdID = "backcolor");           
     3011      (HTMLArea.is_ie) && (cmdID = "backcolor"); 
    30053012      if (HTMLArea.is_gecko) try { editor._doc.execCommand('useCSS', false, false); } catch (e) {};//switch on useCSS (mozilla bug #279330) 
    30063013    case "forecolor": 
Note: See TracChangeset for help on using the changeset viewer.