The Images dropdown of CuteEditor by default displays a predefined set of
Images. You can easily modify this default set using the following methods.
|
1: Edit Dropdown Configuration file (Common.config). You can modify the Images element to create your own Images list. Example:
<Images> <item text="Logo" value="http://www.cutesoft.net/images/logo.gif"></item> <item text="Flower" value="http://cutesoft.net/data/j0313820.jpg"></item> </Images>
Now the Images dropdown contains the followings:
|
|
<?php
$editor=new CuteEditor(); $editor->ID="Editor1"; $editor->Text="Type here"; $editor->FilesPath="CuteEditor_Files"; //Programmatically populate the Images dropdown $editor->ImagesDropDownMenuNames="Logo, Flower"; $editor->ImagesDropDownMenuList="http://www.cutesoft.net/images/logo.gif,http://cutesoft.net/data/j0313820.jpg"; $editor->Draw(); $editor=null; //use $_POST["Editor1"]to catch the data ?> |