This question is locked. New answers and comments are not allowed.
Hi Telerik,
I need to set the default font name as "Arial" in the Font dropdown.
I have seen some article in telerik knowledge article as given below
"The contents of this collection will override the default fonts available in the Font dropdown. In order to extend the default set you should add the default font names and the new font names."
private void Page_Load(object sender, EventArgs e)
{
RadEditor1.FontNames.Add("Arial");
}
But in our case the control has been developed as customfield and written code as
I need to set the default font name as "Arial" in the Font dropdown.
I have seen some article in telerik knowledge article as given below
"The contents of this collection will override the default fonts available in the Font dropdown. In order to extend the default set you should add the default font names and the new font names."
private void Page_Load(object sender, EventArgs e)
{
RadEditor1.FontNames.Add("Arial");
}
But in our case the control has been developed as customfield and written code as
protected
override void OnLoad(EventArgs e)
{
if (base.ControlMode != SPControlMode.Display)
{
this.radEditorControl.FontNames.Add("Arial");
}
}
I need only arial as a font in our content editor, so i have override the fontnames and add only one font as "Arial". The code is compiled without any errors. But font is not appearing to the font dropdown list in content editor. Please help on this
Thanks in advance