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

[Solved] Basic CSS display question

2 Answers 101 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Jordan
Top achievements
Rank 1
Jordan asked on 04 Jan 2010, 09:34 PM
Hello!

I need my users to enter a title for a document. I am using the RadEditor as the input control for this value.

When the value is rendered on our website, it is wrapped in a hyperlink tag (<a>) and a style is applied to it which gives it a font of Arial.

However, when the users run the editor window, the text they enter is showing a font of Times New Roman. This is making them cry.

I tried setting the RadEditor.CssClass to ".arialstyle" and the ContentAreaCssFile points to the stylesheet containing this:

a, a:link, a:visited, .arialstyle
{
    font-family: Arial, Helvetica, Sans-Serif;
    color: #900;
    font-size: 10pt;
    font-weight: normal;
    text-decoration: none;
}

However when the page loads and I start typing in the editor, it's still in Times New Roman. Again, this is making them cry tears of hot rage which splash upon my brow and scald my tender skin. Please assist.

2 Answers, 1 is accepted

Sort by
0
Jordan
Top achievements
Rank 1
answered on 04 Jan 2010, 10:02 PM
The issue was resolved by changing the default (body) font for the tool and public environments. I would still be interested to know what was wrong with my approach or if there is a way to ask the editor to apply a style that does not logically apply to the content.
0
Rumen
Telerik team
answered on 05 Jan 2010, 12:07 PM
Hi Jordan,

Please, see the following help articles which provides guidance how to configure the content area appearance in RadEditor: Setting Content Area Defaults and Content Area Appearance Problems.

Sincerely,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Editor
Asked by
Jordan
Top achievements
Rank 1
Answers by
Jordan
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or