Cute Editor for ASP

Images dropdown Customization

Images dropdown Customization


The Images dropdown of CuteEditor by default displays a predefined set of Images. 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 Images element which contains the configuration information for the Images dropdown within Cute Editor. 

You can modify the Images element to create your own Images list.

Example:

 

  1. <Images>    
  2.     <item text="Logo" value="/images/logo.gif"></item>  
  3.     <item text="Flower" value="/images/j0313820.jpg"></item>  
  4. </Images>  

Now the Images dropdown contains the followings:

 


2. Programmatically populate the Images dropdown

Example:

 

  1. <%   
  2.        Dim editor   
  3.        Set editor = New CuteEditor   
  4.        editor.ID = "Editor1"  
  5.           
  6.        'Programmatically populate the Images dropdown.     
  7.        editor.ImagesDropDownMenuNames = "Logo, Flower"  
  8.        editor.ImagesDropDownMenuList = "/images/logo.gif,/images/j0313820.jpg"  
  9.        editor.Text = "Hello World"  
  10.        editor.Draw()   
  11. %>