Cute Editor for ASP

Links dropdown Customization

Links dropdown Customization


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

 

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

Example:

 

  1. <Links>  
  2.     <item text="CuteSoft" value="http://richscripts.com/"></item>  
  3.     <item text="Mail to us" value="[email protected]"></item>  
  4.     <item text="Yahoo.com" value="http://www.yahoo.com/"></item>  
  5. </Links>  

 

Now the Links dropdown contains the following links.




 


2. Programmatically populate the Links dropdown

Example:

 

  1. <%   
  2.        Dim editor   
  3.        Set editor = New CuteEditor   
  4.        editor.ID = "Editor1"  
  5.           
  6.        'Programmatically populate the Links dropdown.     
  7.        editor.LinksDropDownMenuNames = "CuteSoft,Mail to us,Yahoo.com"  
  8.        editor.LinksDropDownMenuList = "http://richscripts.com/,mailto:[email protected],http://www.yahoo.com/"  
  9.        editor.Text = "Hello World"  
  10.        editor.Draw()   
  11. %>