Changeset 673


Ignore:
Timestamp:
01/18/07 23:29:44 (8 years ago)
Author:
ray
Message:
  • Ticket #911 Background color does not work in Firefox
  • Ticket #619 useCSS is deprecated for midas engine
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/XinhaCore.js

    r672 r673  
    36693669    return false; 
    36703670  } 
     3671 
     3672  // backcolor only works with useCSS/styleWithCSS (see mozilla bug #279330 & Midas doc) 
     3673  // and its also nicer as <font> 
     3674  if ( Xinha.is_gecko ) 
     3675  { 
     3676    try 
     3677    { 
     3678     editor._doc.execCommand('useCSS', false, false); // useCSS deprecated & replaced by styleWithCSS  
     3679     editor._doc.execCommand('styleWithCSS', false, true);  
     3680      
     3681    } catch (ex) {} 
     3682  } 
    36713683   
    36723684  var btn = editor._toolbarObjects[cmdID].element; 
     
    36833695      initcolor = Xinha._colorToRgb(editor._doc.queryCommandValue("hilitecolor")); 
    36843696    } 
    3685     // @todo : useCSS is deprecated, see ticket #619 
    3686     //[wymsy]: mozilla bug #279330 has been fixed, I don't think we need this any more 
    3687   /*  if ( Xinha.is_gecko ) 
    3688     { 
    3689       try 
    3690       { 
    3691      //   editor._doc.execCommand('useCSS', false, false); //switch on useCSS (mozilla bug #279330) 
    3692       } catch (ex) {} 
    3693     }*/ 
    36943697  } 
    36953698  else 
     
    37253728  this.focusEditor(); 
    37263729  cmdID = cmdID.toLowerCase(); 
    3727   // @todo : useCSS is deprecated, see ticket #619 
     3730  // useCSS deprecated & replaced by styleWithCSS 
    37283731  if ( Xinha.is_gecko ) 
    37293732  { 
     
    37313734    { 
    37323735      this._doc.execCommand('useCSS', false, true); //switch useCSS off (true=off) 
     3736      this._doc.execCommand('styleWithCSS', false, false); //switch styleWithCSS off  
     3737       
    37333738    } catch (ex) {} 
    37343739  } 
  • trunk/functionsMozilla.js

    r672 r673  
    335335  if ( typeof sel == 'undefined' ) 
    336336  { 
    337     debugger; 
    338337    sel = this._getSelection(); 
    339338  } 
Note: See TracChangeset for help on using the changeset viewer.