This is a migrated thread and some comments may be shown as answers.

Arial font family is not generated into the HTML Code

1 Answer 60 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 02 Apr 2014, 01:02 PM
Hi,

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
           Arial
          Courier New
          ....

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


1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 04 Apr 2014, 05:58 AM
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.

Regards,
Ianko
Telerik
 

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.

 
Tags
Editor
Asked by
Thomas
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or