The Font Name dropdown of CuteEditor by default displays a predefined set of
font names. You can easily modify this default set using the following methods.
|
1: Edit Dropdown Configuration file (Common.config).
You can modify the FontName element to create your own font name list. Example:
Now the Font Name dropdown contains only Arial, Verdanda and Tahoma.
|
|
<?php
$editor=new CuteEditor(); $editor->ID="Editor1"; $editor->Text="Type here"; $editor->FilesPath="CuteEditor_Files"; //Programmatically populate the Font Name dropdown $editor->FontFacesList="Arial,Verdana,Tahoma"; $editor->Draw(); $editor=null; //use $_POST["Editor1"]to catch the data ?> |