Can the style menu be customized?

7 posts, 0 answers
  1. Tony
    Tony avatar
    4 posts
    Member since:
    Aug 2007

    Posted 20 Jun 2008 Link to this post

    Hi,

    You can customize the out of the box rich text editor from MOSS, please see: http://ari.provoke.co.nz/archive/2007/05/02/customising-the-richhtmlfield-styles-menu.aspx

    Can the same be done using the Lite RadEditor without custom development?

    Thanks,

    Tony
  2. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 24 Jun 2008 Link to this post

    Hello Tony,

    You can customize the Apply Class dropdown list from the editor tools file. Open the tools file and add a <classes> element before the closing </root> tag. For example:

        <classes>
            <class name="Links class" value=".link" />
            <class name="Images class" value=".img" />
        </classes>

    The above will make the dropdown list display only two classes - link and img. The "name" attribute is what you will see when you open the dropdown and the "value" attribute is what class will be applied when you make a selection.

    See the following page for more information on where to find the editor's tools file: http://www.telerik.com/help/moss/editor/removing%20tools%20from%20the%20toolbar.html

    Note that the <classes> element in the tools file serves only as a filter for existing CSS styles. If you do not see the style you want in the Apply Class dropdown before you add it in the <classes> element, then you will not be able to use it. Please read the following article from the editor help about adding custom CSS styles: http://www.telerik.com/help/moss/editor/defining%20custom%20css%20styles.html

    All the best,
    Lini
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

  3. Uwe
    Uwe avatar
    1 posts
    Member since:
    Mar 2008

    Posted 08 Jul 2008 Link to this post

    Hello Lini

    I 've tried to do this modification in the listtoolfile.xml. But then the page with the editor can't load any more (unexpcted error)
    Is it possible to do the class section in the list webpart?

    Thanks, Uwe

  4. George
    Admin
    George avatar
    859 posts

    Posted 08 Jul 2008 Link to this post

    Hi Uwe,

    Please review the following KB article that shows how to achieve the desired behavior:
    http://www.telerik.com/support/kb/article/b454K-htb-b454T-a-b454c-cbetemdget.aspx

    If you still experience problems please open a support ticket and send us your ConfigFile.xml/ListConfigFile.xml(this depends on your scenario) and ToolsFile.xml/ListToolsFile.xml. We will check them and do our best to provide a solution.

    I hope this helps.

    Kind regards,
    George
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. Marja
    Marja avatar
    15 posts
    Member since:
    Jul 2008

    Posted 12 Jan 2009 Link to this post

    Dear All,

    Is it possible to change the heading of this drop down?
    I mean can I have something else then "Apply Css Class"?

    Kind Regards,
    Marja Beckers
  6. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 15 Jan 2009 Link to this post

    Hello Marja,

    In the Editor\Localization\en-US folder you can find Main.xml file. In order to change "Apply CSS Class" you need to modify the following line.
    <string id="ApplyClass">Apply CSS Class</string> 

    Keep in mind that you can do the same for de-DE(German) and fr-FR(French) languages.

    I hope this helps.

    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 15 Jan 2009 Link to this post

    super, thanks!

    Kind regards,
    Marja
Back to Top