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

Change radeditor default font size

3 Answers 711 Views
Editor
This is a migrated thread and some comments may be shown as answers.
adam king
Top achievements
Rank 1
adam king asked on 16 Nov 2010, 08:53 PM
I need to change the default font size in the radEditor and I'm not having success. This will be for both edit and non-edit modes.
Does anybody know how to do this? Currently the font is size 11px but I want it bigger when the user initially clicks into the editor.

For the surrounding asp controls I have simply applied a style with the font size
style="font-size:medium; font-weight:bold"

Is there a similar style that will work in the radEditor?

I've also tried using a CSSClass directing it to use this
.tempstyle {font-family: Tahoma; font-size: 20px !important; color: green;}

My site uses a single style sheet but no themes.

Any help is appreciated.

3 Answers, 1 is accepted

Sort by
0
adam king
Top achievements
Rank 1
answered on 16 Nov 2010, 08:59 PM
I have also tried
setting EnableEmbeddedSkins="false" in the radEditor

and
surrounding the editor in a div with a style.. which works for the div but not the editor
0
adam king
Top achievements
Rank 1
answered on 16 Nov 2010, 09:55 PM
http://www.telerik.com/help/aspnet-ajax/defaultfontforeditablecontent.html

that worked for me, for edit-mode anyway
0
Rumen
Telerik team
answered on 17 Nov 2010, 02:10 PM
Hi Adam,

When the editor is loaded in non editable mode it loads its content in a standard DIV element. You can apply the desired font appearance to the DIV by setting the Style property of RadEditor, e.g.


<telerik:RadEditor runat="server" Enabled="false" ID="RadEditor1"
       Style="font-family:Tahoma;font-size:20px;color:Red;">
       <Content>test</Content>    
</telerik:RadEditor>

Greetings,
Rumen
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Editor
Asked by
adam king
Top achievements
Rank 1
Answers by
adam king
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or