No matter how I change the FontNameList property, the dropdown contains the default items. In order to make sure I'm not accessing a cached file, I've changed other parts of the aspx file, and those changes were immediately reflected in the interface.
In code, I have
FontNameList="Arial,Latha"
and
<ighedit:ToolbarDropDown Type="FontName"></ighedit:ToolbarDropDown>
Browser display showing:
Hi,
I tested codes within aspx and within aspx.cs and both worked as expected: drop-down font list showed custom values.That is possible that somewhere in your logic of your application custom values are replaced, or removed, or similar. I suggest you to test/experiment with a stand alone webform, which has only editor. If it will work, then you may try to figure out why it fails in your actual application.
<ighedit:WebHtmlEditor ID="WebHtmlEditor1" runat="server" FontNameList="impact,arial black,Courier"></ighedit:WebHtmlEditor>
protected void Page_Load(object sender, EventArgs e){ this.WebHtmlEditor1.FontNameList.Clear(); this.WebHtmlEditor1.FontNameList.Add("impact"); this.WebHtmlEditor1.FontNameList.Add("latha");}
Hi, i had the same issue. It comes from the localization. If you set one, the override of the list does not work, and in code behind either because the load event is before the localization set the list. You actually need to set it in the prerendercomplete event, i did not try the prerender. So here :
Private
WebHtmlEditor1.FontNameList.Clear()
WebHtmlEditor1.FontNameList.Add(