Changeset 114
- Timestamp:
- 05/06/05 15:22:31 (8 years ago)
- Files:
-
- 1 modified
-
trunk/htmlarea.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/htmlarea.js
r108 r114 1393 1393 if (HTMLArea.is_gecko && this._doc.designMode != 'on') { 1394 1394 try { 1395 1395 1396 1396 // cannot set design mode if no display 1397 1397 if (this._iframe.style.display == 'none') … … 1495 1495 doc.write(html); 1496 1496 doc.close(); 1497 1497 1498 1498 // redo it for some obscure reason that IE need it.. 1499 1499 editor.activateEditor(); 1500 1500 1501 1501 // if we have multiple editors some bug in Mozilla makes some lose editing ability 1502 1502 if(HTMLArea.is_gecko) … … 2792 2792 var compare = 0; 2793 2793 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 } 2795 2802 } else { 2796 2803 compare = range.compareBoundaryPoints(range.START_TO_END, range); … … 3002 3009 case "htmlmode" : this.setMode(); break; 3003 3010 case "hilitecolor": 3004 (HTMLArea.is_ie) && (cmdID = "backcolor"); 3011 (HTMLArea.is_ie) && (cmdID = "backcolor"); 3005 3012 if (HTMLArea.is_gecko) try { editor._doc.execCommand('useCSS', false, false); } catch (e) {};//switch on useCSS (mozilla bug #279330) 3006 3013 case "forecolor":
