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

Customize Font and Color Display

7 Answers 83 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Satheesh
Top achievements
Rank 1
Satheesh asked on 16 Sep 2008, 10:12 AM
Dear All,

Kindly advice if there is a way to customize the Display of Fonts and Colors in Free Lite Edition. For example, I want to display only "Verdana" in the Font drop down instead of 6 font names that are being displayed now. Similary, I would like to restrict the display of 8 colors instead of the whole palette.

Thanks in advance for your suggestions and help.

Warm Regards,
Satheesh

7 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 16 Sep 2008, 11:45 AM
Hi Satheesh,

You can achieve the desired behavior, by setting the Fonts and Colors to be displayed in the respective ToolsFile.xml e.g.

<
fontNames>
  
<item name="Arial" />
  
<item name="Arial Narrow" />
  
<item name="Arial Black" />
</
fontNames>

<colors>
  
<color value="#FF00EE" />
  
<color value="#840012" />
  
<color value="#0000AA" />
  
<color value="#95AA34" />
</
colors>

I hope this helps.

Sincerely,
George
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Marja
Top achievements
Rank 1
answered on 31 Dec 2008, 04:09 PM

Dear All,
I'm also using the lite version of the rad editor.
I have added this to my ToolsFile.xml, but I still only get the default font list

<fontNames>
  
<item name="Arial" />
  
<item name="Tahoma" />
  
<item name="Verdana" />
</
fontNames>

Regards,
Marja Beckers
0
Stanimir
Telerik team
answered on 02 Jan 2009, 09:00 AM
Hello Marja,

Could you please tell us in what scenario you are using the RadEditor. Is it in Web Part and WCM scenario or SharePoint forms scenario (Lists, Wikis, Blogs, etc.).

You should know that in forms scenario you should modify the respective ListToolsFile.xml.

Greetings,
Stanimir
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Marja
Top achievements
Rank 1
answered on 02 Jan 2009, 10:09 AM
Dear All,
I am using the rad editor webpart in a moss 2007 environment.
I now managed to add the correc tfonts to the dropdown, but I can only get them at the end of the toolbar (as the 2 last buttons).
My customer wants them at the front of the bottom toolbar (I hope I still make sense).

What I have now is:

<tools name="MossTools2" dockable="false">
...
..
.
</tools>
<tools name="MainToolbar" enabled="true">
   
<tool name="FontName" />
 
</tools>    
        <fontNames>
            
<item name="Arial" />
            
<item name="Tahoma" />
            
<item name="Verdana" />
         
</fontNames>
<contextMenus>
...
..
.
</
root>

WhatI would like is to have them right after <tools name="MainToolbar" enabled="true">, but I can't seem to get the syntax right.
Hope you can help.

Kind Regards,
Marja Beckers

0
Stanimir
Telerik team
answered on 05 Jan 2009, 01:42 PM
Hi Marja,

Here is an example of part of the ToolsFile.xml where the first two buttons in the second line of the tool bar are Font Name and Size.

<tools name="MossTools1"
    <tool name="AjaxSpellCheck" /> 
    ... 
</tools> 
<tools name="MossTools2"
    <tool name="FontName" /> 
    <tool name="FontSize" /> 
    <tool name="ApplyClass" /> 
    <tool name="FormatBlock" /> 
    <tool separator="true" />     
    ... 
</tools> 



All the best,
Stanimir
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Marja
Top achievements
Rank 1
answered on 12 Jan 2009, 11:46 AM
Dear Stanimir,

I can get the default fonts and sizes on the right spot this way, but I can't seem to get them customized.
I would like to use realfontsizes & classes tags instead of fontsizes & apply tags, but I don't understand how to code this.

I have tried this but it doesn't work:

<tools name="MossTools2" dockable="false">
<tool name="RealFontSize">
    <item>10px</item>
    <item>12px</item>
</tool>
...
..
.
</tools>

Kind regards,
Marja
0
Marja
Top achievements
Rank 1
answered on 12 Jan 2009, 02:24 PM
Dear All,
I've figured out what I did wrong already

the code should be:

<tools name="MossTools2" dockable="false">
    <tool name="RealFontSize">
    ...
    ..
    .
</tools>
    <realFontSizes>
        <item>10px</item>
        <item>12px</item>
    <realFontSizes>
...
..
.
Tags
WebParts for SharePoint
Asked by
Satheesh
Top achievements
Rank 1
Answers by
George
Telerik team
Marja
Top achievements
Rank 1
Stanimir
Telerik team
Share this question
or