The Links dropdown of CuteEditor by default displays a predefined set of Links.
You can easily modify this default set using the following methods.
|
1: Edit Dropdown Configuration file (Common.config).
You can modify the Links element to create your own Links list. Example:
<Links>
<item text="CuteSoft" value="http://cutesoft.net/"></item>
<item text="Mail to us" value="support@CuteSoft.Net"> </item>
<item text="Yahoo.com" value="http://www.yahoo.com/"></item> </Links>Now the Links dropdown contains the following links.
|
|
<?php
$editor=new CuteEditor(); $editor->ID="Editor1"; $editor->Text="Type here"; $editor->FilesPath="CuteEditor_Files"; //Programmatically populate the Links dropdown $editor->LinksDropDownMenuNames="CuteSoft,Mail to us,Yahoo.com"; $editor->LinksDropDownMenuList="http://cutesoft.net/,mailto:support@CuteSoft.Net,http://www.yahoo.com/"; $editor->Draw(); $editor=null; //use $_POST["Editor1"]to catch the data ?> |