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

[Solved] Default Font does not get saved to HTML

3 Answers 123 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Chris Dalessandri
Top achievements
Rank 1
Chris Dalessandri asked on 12 Jun 2008, 05:03 PM
Setting default font size in the editor no longer appears to be working in ASP.NET for AJAX.
1. In Firefox it doesn't get set at all.
2. In IE it appears to be set but no tags are written out to the HTML.  The font appears to be in the correct format in Editor until you try to save it to the database or read it out in someway.  Even if the user highlights text and explicitly sets the dropdown to the font then it ignores it and does not write it out in the HTML script.

This forum example below used to work, and the HTML used to be set correctly in both browsers.
http://www.telerik.com/community/forums/thread/b311D-etkmk.aspx

My event looks like this:
function OnClientEditorLoad(editor)
{
    editor.get_document().body.style.fontSize = "medium";               
 }



3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 16 Jun 2008, 04:04 PM
Hi Chris,

The fastest way to fix the problem is to set the editor's CssFiles property to point to an external css file

<telerik:radeditor runat="server" ID="RadEditor1">
   
<CssFiles>
       
<telerik:EditorCssFile Value="~/ExternalCssFiles/Styles1.css" />
   
</CssFiles>
</
telerik:radeditor>

in which you need to set a global body tag with the desired font appearance settings:

body
{
    font-family: Arial
!important;
    font-size: Medium
!important;
    color: black !important;
    background-color: white !important;
    background-image: none !important;
}

Save the file and restart your browser to see the changes.

Please, also review the following KB article:
No FONT tags are applied when I type text in the editor.

If you still experience any problems, please open a support ticket and send a sample working project that demonstrates the issues. I will examine it and provide a solution soon.

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Chris Dalessandri
Top achievements
Rank 1
answered on 17 Jun 2008, 02:07 PM
I tried the KB article before submitting the question.  Neither solution works.  I will submit a ticket.
0
Rumen
Telerik team
answered on 17 Jun 2008, 02:42 PM
Hi Chris,

I just answered your support ticket on the subject.

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Editor
Asked by
Chris Dalessandri
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Chris Dalessandri
Top achievements
Rank 1
Share this question
or