Cute Editor for ASP

Font Name dropdown Customization

Font Name dropdown Customization

The Font Name dropdown of CuteEditor by default displays a predefined set of font names. You can easily modify this default set using the following methods.



1. Edit Dropdown Configuration file (Common.config).

The dropdown configuration file (Common.config) can be found in the CuteEditor_Files/Configuration/Shared folder. In dropdown configuration file you can find the FontName element which contains the configuration information for the Font Name dropdown within Cute Editor.  By default, it contains the following font names:

 

 

You can modify the FontName element to create your own font name list.

Example:

  1. <FontName>  
  2.       <item text="Arial" value="Arial" />  
  3.      <item text="Verdana" value="Verdana" />  
  4.      <item text="Tahoma" value="Tahoma" />  
  5. </FontName>  

Now the Font Name dropdown contains only Arial, Verdanda and Tahoma.





2. Programmatically populate the Font Name dropdown


Example:


  1. <%   
  2.        Dim editor   
  3.        Set editor = New CuteEditor   
  4.        editor.ID = "Editor1"  
  5.           
  6.        'Programmatically populate the Font Name dropdown.     
  7.        editor.FontFacesList="Arial,Verdana,Tahoma"  
  8.        editor.Text = "Hello World"  
  9.        editor.Draw()   
  10. %>