The Paragraph dropdown of CuteEditor by default displays a predefined set of
format blocks. You can easily modify this default set using the following
methods.
|
1: Edit Dropdown Configuration file (Common.config).
You can modify the FormatBlock element to create your own format block list.
<FormatBlock >
<item text="[[Normal]]" value="<P>"> </item>
<item text="[[Heading 1]]" value="<h1>"></item>
<item text="[[Heading 5]]" value="<h5>"></item>
</FormatBlock> Now the Paragraph dropdown contains only Heading 1, Heading 5 and Normal.
|
|
<%
Dim editor Set editor = New CuteEditor editor.ID = "Editor1" 'Programmatically populate the Paragraph dropdown. editor.ParagraphsListMenuNames="H2, H4, h5" editor.ParagraphsListMenuList="<H2gt;, <H4>, <h5>" editor.Text = "Hello World" editor.Draw() %>
|