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

Can the style menu be customized?

6 Answers 98 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Tony
Top achievements
Rank 1
Tony asked on 20 Jun 2008, 06:55 PM
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

6 Answers, 1 is accepted

Sort by
0
Lini
Telerik team
answered on 24 Jun 2008, 09:00 AM
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
0
Uwe
Top achievements
Rank 1
answered on 08 Jul 2008, 12:28 PM

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

0
George
Telerik team
answered on 08 Jul 2008, 02:33 PM
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
0
Marja
Top achievements
Rank 1
answered on 12 Jan 2009, 03:53 PM
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
0
Stanimir
Telerik team
answered on 15 Jan 2009, 10:00 AM
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.
0
Marja
Top achievements
Rank 1
answered on 15 Jan 2009, 02:47 PM
super, thanks!

Kind regards,
Marja
Tags
WebParts for SharePoint
Asked by
Tony
Top achievements
Rank 1
Answers by
Lini
Telerik team
Uwe
Top achievements
Rank 1
George
Telerik team
Marja
Top achievements
Rank 1
Stanimir
Telerik team
Share this question
or