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.
|
|
<?php
$editor=new CuteEditor(); $editor->ID="Editor1"; $editor->Text="Type here"; //Programmatically populate the Paragraph dropdown $editor->FilesPath="CuteEditor_Files"; $editor->ParagraphsListMenuNames="H2, h4, h5"; $editor->ParagraphsListMenuList="<H2gt;,<h4>, <h5>"; $editor->Draw(); $editor=null; //use $_POST["Editor1"]to catch the data ?> |