Adam,
It is compiling now, but it always skips the code because the Editor1.ToolControls["Links"]!=null statement is always true. I changed it a bit ..
// BEGIN Get Links for Links Drop Down
CuteEditor.ToolControl toolctrl=Editor1.ToolControls["Links"];
if(toolctrl !=null)
{
CuteEditor.RichDropDownList dropdown=(CuteEditor.RichDropDownList)Editor1.ToolControls["Links"].Control;
//the first item is just the caption
CuteEditor.RichListItem richitem=dropdown.Items[0];
//clear the items from configuration files
//see Configuration/Shared/Common.config
dropdown.Items.Clear();
//add the caption - Links
dropdown.Items.Add(richitem);
//text and value
dropdown.Items.Add("Nascar","http://www.nascar.com/");
//html and text and value
dropdown.Items.Add("<font color=red>CuteSoft.NET</font>","*CuteSoft*",http://www.cutesoft.net/);
}
else
{
lblMessage.Text = "null";
lblMessage.Visible = true;
}
// END Get Links for Links Drop Down
and it always outputs null in the lblMessage and does not show the links hardcoded.
I checked in the full.config and have tested itboth with the
<item type="dropdown" name="Links" RenderItemBorder="true" text="[[Links]]" command="InsertLink" />
commented out and not commented out and it makes no difference.
It is probably something stupid I am missing but I would appreciate your help.
Thanks,
Paul