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

How to limit the Font dropdown

1 Answer 77 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
mark
Top achievements
Rank 1
mark asked on 13 Aug 2009, 06:23 PM
I'm trying to limit the font choices in the font dropdown.  my toolsfile looks like this:

<tool name="FontName">
 <font name="Arial"/>
 <font name="Georgia"/>
</tool>

but then I run the editor in the browser, I get what looks like all the fonts installed on the server.  how do i get rid of the default fonts?



1 Answer, 1 is accepted

Sort by
0
Jorge Merino
Top achievements
Rank 1
answered on 13 Aug 2009, 11:04 PM
Hi Mark.

The format that you want to follow is:
<root>
  ...
  <tools name="MossTools1" >
   ...
   <tool name="FontName" />
   ...
  </tools>
  <fontNames>
    <fontName name="Arial"/>
    <fontName name="Georgia"/>
  </fontNames>
  ...
</root>

If you want to set the Font per default on the dropdown, look at the post: http://www.telerik.com/community/forums/sharepoint-2007/full-featured-editor/how-to-set-the-verdana-font-per-default-on-the-dropdown.aspx
and if you want to set the actual font on the CSS per default to be loaded on the Editor, look at the post  http://www.telerik.com/community/forums/sharepoint-2007/full-featured-editor/193456-setting-default-font.aspx

I hope it helps.
Jorge Merino
Tags
WebParts for SharePoint
Asked by
mark
Top achievements
Rank 1
Answers by
Jorge Merino
Top achievements
Rank 1
Share this question
or