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

[Solved] Default font name and size in Firefox

1 Answer 153 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Paul Haines
Top achievements
Rank 1
Paul Haines asked on 27 May 2009, 11:21 AM
Similarly to this link, we're struggling to get the font name and size drop-downs defaulting correctly - one of our requirements is that the font should begin in "8pt MS Sans Serif" and should also be left aligned.

What is the progress of any solution to this problem?

In our situation, the text is inheriting from the browser's default, not our required one and, rather strangely, it's right-aligned - which is confusing as this doesn't seem to be set by any of our site's styles.

We have also implemented the workaround listed in the referenced forum post, so that the drop-downs pick up the current font, but this is still the browser's default, not ours. Plus, we've also provided a custom "ContentArea.css" file to the RadEditor, as specified by this page, but it doesn't seem to fix it.

Also, it's worth pointing out that this isn't 100% right in Internet Explorer; the font is applied once the user starts typing, but until then the font name drop-down shows a different setting.

Thanks,
Paul

1 Answer, 1 is accepted

Sort by
0
Tervel
Telerik team
answered on 01 Jun 2009, 10:37 AM
Hi Paul,

The original thread you refer to is for the old RadEditor Classic rather than RadEditor for ASP.NET AJAX, and, furthermore, in our opinion it will not help you achieve your requirement.

That said, the second approach is in the right direction.
Yet, the best option is to use the CssFiles property of RadEditor. This will instruct the editor to not copy the CSS classes from the parent page (which is the default behavior of RadEditor). Please examine the following demo:
http://demos.telerik.com/aspnet-ajax/editor/examples/cssfiles/defaultcs.aspx

When you test and change these editor settings, do not forget to clear your browser's cache in order to view the latest version of the CSS files loaded in the editor's content area.

Sincerely yours,
Tervel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Editor
Asked by
Paul Haines
Top achievements
Rank 1
Answers by
Tervel
Telerik team
Share this question
or