Cute Editor for ASP

Inline Style dropdown Customization

Inline Style dropdown Customization

The Inline Style dropdown of CuteEditor displays a predefined set of Inline Styles. You can easily add your own Inline Styles 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 CssStyle element which contains the configuration information for the Inline Style dropdown within Cute Editor.

You can modify the CssStyle element to create your own CSS Classes list.

Example:

  1. <CssStyle>  
  2.     <item text="[[NotSet]]" value="null"></item>  
  3.     <item text="font-size:18pt" value="font-size:18pt"></item>  
  4.     <item text="color:red" value="color:red"></item>  
  5. </CssStyle>  

Now the Inline Style dropdown contains "font-size:18pt", "color:red".


 


2. Programmatically populate the CSS Class dropdown

Code Example:

  1. <%   
  2.         Dim editor   
  3.         Set editor = New CuteEditor   
  4.         editor.ID = "Editor1"  
  5.           
  6.         'Programmatically populate the CSS Class dropdown.   
  7.         editor.InlineStyleDropDownMenuNames="font-size:18pt,color:red"  
  8.         editor.InlineStyleDropDownMenuList="font-size:18pt,color:red"  
  9.         editor.Text = "Hello World"  
  10.         editor.Draw()   
  11. %>