AUTHOR: Rumen Zhekov
DATE POSTED: August 21, 2018
Setting the default font for the content area and the Font Name dropdown are two different processes. The article discusses the following problems:
RadEditor applies automatically the page font to its content area. If you want to change and override it, you can do this by setting the CssFiles property to point to an external css file
<
telerik:RadEditor
ID
=
"RadEditor1"
runat
"server"
>
CssFiles
telerik:EditorCssFile
Value
"~/content.css"
/>
</
with the following contents: content.css
body {
font-family
: Calibri;
}
You can find more information in these resources:
The Font Name dropdown is consisted of two features which are configured independently:
<script type=
"text/javascript"
function
OnClientLoad(editor)
{
var
fontFamily = editor.getToolByName(
"FontName"
);
setTimeout(
()
fontFamily.set_value(
"Calibri"
}, 0);
</script>
<telerik:radeditor id=
OnClientLoad=
"OnClientLoad"
runat=
></telerik:radeditor>
FontNames
telerik:EditorFont
RadEditor1.FontNames.Add(
Resources Buy Try