Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
35
FontNameList has no effect on Font dropdown items, default items shown
posted

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:

Parents
No Data
Reply
  • 24497
    posted

    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");
    }

Children