The Font Size dropdown of CuteEditor by default displays a predefined set of
font Sizes. You can easily modify this default set using the following methods.
|
1: Edit Dropdown Configuration file (Common.config).
You can modify the FontSize element to create your own font size list. Example 1:
Now the Font Size dropdown contains only 1, 2and 5.
<FontSize> Now the Font Size dropdown contains only 10x, 12px and 14px.
|
|
Example:
<?php
$editor=new CuteEditor(); $editor->ID="Editor1"; $editor->Text="Type here"; //Programmatically populate the Font Size dropdown $editor->FontSizesList="2,3,4"; $editor->Draw(); $editor=null; //use $_POST["Editor1"]to catch the data ?> |