Customize Font and Color Display

8 posts, 0 answers
  1. Satheesh
    Satheesh avatar
    1 posts
    Member since:
    Sep 2008

    Posted 16 Sep 2008 Link to this post

    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
  2. George
    Admin
    George avatar
    859 posts

    Posted 16 Sep 2008 Link to this post

    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.

  3. Marja
    Marja avatar
    15 posts
    Member since:
    Jul 2008

    Posted 31 Dec 2008 Link to this post


    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
  4. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 02 Jan 2009 Link to this post

    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.
  5. Marja
    Marja avatar
    15 posts
    Member since:
    Jul 2008

    Posted 02 Jan 2009 Link to this post

    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

  6. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 05 Jan 2009 Link to this post

    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.
  7. Marja
    Marja avatar
    15 posts
    Member since:
    Jul 2008

    Posted 12 Jan 2009 Link to this post

    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
  8. Marja
    Marja avatar
    15 posts
    Member since:
    Jul 2008

    Posted 12 Jan 2009 Link to this post

    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>
    ...
    ..
    .
Back to Top