Cute Editor for PHP

Images dropdown Customization

Images dropdown Customization


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).

The dropdown configuration file (Common.config) can be found in the CuteEditor_Files/Configuration/Shared folder. In dropdown configuration file you can find the Images element which contains the configuration information for the Images dropdown within Cute Editor. 

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:




 

 


2: Programmatically populate the Images dropdown

Example:

<?php
         $editor=new CuteEditor();
         $editor->ID="Editor1";
         $editor->Text="Type here";
         //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
?>