Arial font family is not generated into the HTML Code

2 posts, 0 answers
  1. Thomas
    Thomas avatar
    1 posts
    Member since:
    Apr 2014

    Posted 02 Apr 2014 Link to this post


    We encountered a problem where the RadEditor does not generate the font-family: Arial into the HTML code. Because we offer branded websites to out clients, we often override the default font-family in our .css file (for the body tag mainly). But then, when opening the editor for creating custom sites, the font family selector dropdown is always set to Arial (no matter what and in what order we add to the Tools.xml).
    First question is, is there a way, to set the which Font is the default one in the dropdown?
    Second problem is, that the editor does not add the font-family: Arial to the Custom HTML content, because it thinks that Arial is the default one on the site, even thought it will be overriten by our custom CSS. It looks really silly, that in the editor, it says the font family is Arial, but on the site, it appears as something different.
    Is there a solution to this?

    In short:
    1. Can I create a Font selector dropdown like this in RadEditor:
               Default Font Type <-- Selected by default, does not add any font-family tag to the custom HTML
              Courier New

    2. The RadEditor thinks Arial is the default font family, thus not applying the font-family: Arial when selected. 

  2. Ianko
    Ianko avatar
    1741 posts

    Posted 04 Apr 2014 Link to this post

    Hi Thomas,

    About the default value of the Font dropdown. This tool is not designed to has a default value neither to arrange by some specific logic the set options. Using a default value on this tool would be a faulty behavior, because the user that is using the editor should choose what font to use and additionally this tool will show what font is already set to the selected text (the place where the cursor is set). Setting a default value would lead the user to confusion what is exactly the used font. For example, the set font to the body is Arial, but programmatically the tool is set to Times New Roman, each time the user selects a text, the tool will show incorrect value.

    About setting the same as the default value explicitly is already implemented in the 2014.1.225 version. I assume that you are using an older version and to resolve I suggest upgrading your Telerik controls suite.


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top