Hi! I was able to add a dropdown in the toolbar, but When I click on my item(image gallery) no code gets dropped on in the editor:
The onchange code I think is for the link dropdown. What would be the event for the codes dropdown?
private
void AddNewDropDown()
{
if (Editor1.ToolControls["insertcustombutonhere"] != null)
{
Control container = Editor1.ToolControls["insertcustombutonhere"].Control;
CuteEditor.
RichDropDownList ddGallery = new CuteEditor.RichDropDownList(Editor1);
ddGallery.Width =
Unit.Pixel(120);
//must set this css name
ddGallery.CssClass =
"CuteEditorDropDown";
ddGallery.Items.Add(
"[[Controls]]", "");
//hide the first item (caption) in the float-panel
ddGallery.RichHideFirstItem =
true;
//add - !!!
//if the statements put before Controls.Add , the statements must be executed every time
container.Controls.Add(ddGallery);
//if the statements put after Controls.Add the statements could be executed only the first time
//or add items here if(!IsPostBack)
if (!IsPostBack)
{
ddGallery.Items.Add(
"Image Gallery", "<div style=\"width: 445px; color: red; background-color: #254256\">Image Gallery User Control<script type=\"text/javascript\" src=\"Silverlight.js\"></script><script type=\"text/javascript\" src=\"SlideShow.js\" ></script><div><script type=\"text/javascript\">new SlideShow.Control(new SlideShow.XmlConfigProvider());</script></div><div></div></div>");
}
}
}