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

Limited Fonts

5 Answers 51 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Jason Brownhill
Top achievements
Rank 1
Jason Brownhill asked on 09 Jul 2009, 03:37 PM
Hi,
 Great tool, but the fonts are limited in the Editor Lite version. I've checked the product compare list and cannot see if this is limited to the lite version or not. Can you advise?

Thanks,
Jason.

5 Answers, 1 is accepted

Sort by
0
Accepted
Stanimir
Telerik team
answered on 14 Jul 2009, 08:41 AM
Hi Jason Brownhill,


You can find information on the Fonts DropDown in the following help article http://www.telerik.com/help/aspnet-ajax/fonts.html. In order to set it you need to modify the respective ToolsFile.xml or ListToolsFile.xml (for forms such as list, wiki, blog), which are located in the Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\4.5.6.0__1f131a624888eeed\RadControls\Editor folder for the Lite version and \Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\5.5.0.0__1f131a624888eeed\Resources folder for the full version.
For example add the following code:
<fontNames> 
    <item name="Arial" /> 
    <item name="Arial Narrow" /> 
    <item name="Trebuchet MS" /> 
</fontNames> 

I hope this helps.


Greetings,
Stanimir
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.
0
Jason Brownhill
Top achievements
Rank 1
answered on 14 Jul 2009, 09:02 AM
Hi Stanimir,

 Thanks for that response - that's great, and has fixed that issue!!
 
 The only minor thing is that the default font when first opening the editor is Times New Roman, is there any way to adjust this also? I'll have a look on those forum pages to see if it discusses this also.

Thanks,
Jason.
0
Stanimir
Telerik team
answered on 14 Jul 2009, 12:01 PM
Hi Jason Brownhill,

Please review the following help article Defining custom CSS styles. The difference with the Lite version of the RadEditor is that the configuration files folder is Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\4.5.6.0__1f131a624888eeed\RadControls\Editor.
All you need to do is add the following style in the CssEditor.css file that is mentioned in the article.
body 
    font-family: define your font here; 

I hope this helps.

Best wishes,
Stanimir
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.
0
Jason Brownhill
Top achievements
Rank 1
answered on 14 Jul 2009, 02:31 PM
Hi Stanimir,

 Thanks for the support - appreciate the quick responses.

 Final question is - after editing, which appears in the required font, the page reverts back to another font on viewing. I saw some details in the help pages about this, but having tried to fix this earlier and not being successful, I'm not sure exactly what I need to change. The editing font appears in Trebuchet, but the resulting font when viewed ends up as Verdana - Help?!

Thanks,
Jason.
0
Stanimir
Telerik team
answered on 15 Jul 2009, 09:25 AM
Hello Jason,

The reason for this behavior is that the CssEditor.css stylesheet is not loaded in the page containing the RadEditor. One way to solve this issue is to load the CssEditor.css file by using the SharePoint designer, or set the body{font-flamily: ...}  in the page without loading the file. You can also set the font-family style attribute for the parent container element of the field.

All the best,
Stanimir
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
WebParts for SharePoint
Asked by
Jason Brownhill
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Jason Brownhill
Top achievements
Rank 1
Share this question
or