The CSS Class dropdown of CuteEditor displays a predefined set of CSS Classes.
You can easily add your own CSS Classes using the following methods.
|
1: Edit Dropdown Configuration file (Common.config). You can modify the CssClass element to create your own CSS Classes list. Example:
<item text="[[NotSet]]" value="null"></item> <item text="Red Text" value="RedColor"></item> <item text="Highlight" value="Highlight"></item> <item text="Bold Green Text" value="BoldGreen"></item> </CssClass>
Now the CSS Class dropdown contains "RedColor", "Highlight" and "BoldGreen".
|
|
<%
Dim editor Set editor = New CuteEditor editor.ID = "Editor1" 'Programmatically populate the CSS Class dropdown. editor.CssClassStyleDropDownMenuNames = "RedColor,Highlight,Bold Green Text" editor.CssClassStyleDropDownMenuList = "RedColor,Highlight,BoldGreen" editor.Text = "Hello World" editor.Draw() %>
|