Changeset 1248


Ignore:
Timestamp:
03/09/10 20:48:01 (4 years ago)
Author:
wymsy
Message:

config option to show fonts in toolbar using actual fonts. ticket #1507

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XinhaCore.js

    r1245 r1248  
    835835  this.toolbarAlign = "left"; 
    836836   
     837  /** Set to true to display the font names in the toolbar font select list in their actual font. 
     838   *  Note that this doesn't work in IE, but doesn't hurt anything either. 
     839   *  Default: <code>false</code> 
     840   *  @type Boolean 
     841   */ 
     842   this.showFontStylesInToolbar = false; 
     843   
    837844  /** Set to true if you want the loading panel to show at startup<br /> 
    838845   *  Default: <code>false</code> 
     
    17661773        op.innerHTML = Xinha._lc(i); 
    17671774        op.value = options[i]; 
     1775        if (txt =='fontname' && editor.config.showFontStylesInToolbar) 
     1776        { 
     1777          op.style.fontFamily = options[i]; 
     1778        } 
    17681779        el.appendChild(op); 
    17691780      } 
Note: See TracChangeset for help on using the changeset viewer.