[ Index ]
 

Code source de vtiger CRM 5.0.2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/include/fckeditor/editor/_source/classes/ -> fcktoolbarfontsizecombo.js (source)

   1  /*
   2   * FCKeditor - The text editor for internet
   3   * Copyright (C) 2003-2005 Frederico Caldeira Knabben
   4   * 
   5   * Licensed under the terms of the GNU Lesser General Public License:
   6   *         http://www.opensource.org/licenses/lgpl-license.php
   7   * 
   8   * For further information visit:
   9   *         http://www.fckeditor.net/
  10   * 
  11   * "Support Open Source software. What about a donation today?"
  12   * 
  13   * File Name: fcktoolbarfontsizecombo.js
  14   *     FCKToolbarPanelButton Class: Handles the Fonts combo selector.
  15   * 
  16   * File Authors:
  17   *         Frederico Caldeira Knabben (fredck@fckeditor.net)
  18   */
  19  
  20  var FCKToolbarFontSizeCombo = function( tooltip, style )
  21  {
  22      this.Command    = FCKCommands.GetCommand( 'FontSize' ) ;
  23      this.Label        = this.GetLabel() ;
  24      this.Tooltip    = tooltip ? tooltip : this.Label ;
  25      this.Style        = style ? style : FCK_TOOLBARITEM_ICONTEXT ;
  26  }
  27  
  28  // Inherit from FCKToolbarSpecialCombo.
  29  FCKToolbarFontSizeCombo.prototype = new FCKToolbarSpecialCombo ;
  30  
  31  FCKToolbarFontSizeCombo.prototype.GetLabel = function()
  32  {
  33      return FCKLang.FontSize ;
  34  }
  35  
  36  FCKToolbarFontSizeCombo.prototype.CreateItems = function( targetSpecialCombo )
  37  {
  38      targetSpecialCombo.FieldWidth = 70 ;
  39      
  40      var aSizes = FCKConfig.FontSizes.split(';') ;
  41      
  42      for ( var i = 0 ; i < aSizes.length ; i++ )
  43      {
  44          var aSizeParts = aSizes[i].split('/') ;
  45          this._Combo.AddItem( aSizeParts[0], '<font size="' + aSizeParts[0] + '">' + aSizeParts[1] + '</font>', aSizeParts[1] ) ;
  46      }
  47  }


Généré le : Sun Feb 25 10:22:19 2007 par Balluche grâce à PHPXref 0.7