不能选择FreeTextBox下拉列表框

想将FreeTextBox弄到我的Blog中,但是发现1.6.3版的下拉框不能选择,这里的blog编辑框也一样:(版主是怎么搞的?这都不弄弄好。

最后,在网页中调试出<select></select>的onChange中有这么一句:this.selectedIndex=0;把它去掉后就可以选择了。所以需要改源程序。

FreeTextBox的源程序文件:FreeTextBox.cs中有这么一段:
  private string WriteToolbarDropDownHtml(ToolbarDropDownList myDropDown)
{
...

<SELECT NAME=""" + base.ID + @"_" + myDropDown.Name + @""" onChange=""" + myDropDown.Function + @"(" + base.ID + @"_editor," + base.ID + @"_HtmlMode,this[this.selectedIndex].innerText,this[this.selectedIndex].value);this.selectedIndex=0;"" CLASS=""FTB_Select"">

...
}

将其中的this.selectedIndex=0;去掉,重新编译。
将编译好的freetextbox.dll复制到网页的/bin目录下。

原文地址:https://www.cnblogs.com/huqingyu/p/16786.html