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

RadEditor for Sharepoint - Different Configuration files

8 Answers 191 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Tamiko
Top achievements
Rank 1
Tamiko asked on 09 May 2012, 01:59 PM

Followed the instructions provided in the following link, http://www.telerik.com/help/aspnet-ajax/moss-sp2010-different-configuration-files-for-different-webs.html, however the RadEditor does not display the appropriate css classes in the dropdown.  I'm pretty certain I've missed something, but am not sure what.

8 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 14 May 2012, 12:07 PM
Hello,

Could you please specify under which scenario you use RadEditor for SharePoint 2010?

If you use RadEditor in Web Content Managment or in WebPart scenario open the \Program Files\Common Files\Microsoft Shared\Web Server Extensions\wpresources\RadEditorSharePoint\6.3.0.0__1f131a624888eeed\Resources\ToolsFile.xml file and remove the following class tags from it:

<classes>
        <class name="Clear Class" value="" />
        <class name="Normal" value=".ms-rteStyle-Normal" />
        <class name="Highlight" value=".ms-rteStyle-Highlight" />
        <class name="By Line" value=".ms-rteStyle-Byline" />
        <class name="Tag Line" value=".rteStyle-Tagline" />
        <class name="Comment" value=".ms-rteStyle-Comment" />
        <class name="References" value=".ms-rteStyle-References" />
        <class name="Caption" value=".ms-rteStyle-Caption" />
    </classes>

Therefore all page classes will be populated in the Apply Class dropdown. You can find more information in this article: http://www.telerik.com/help/aspnet-ajax/moss-sp2010-css_styles.html.

If you use RadEditor in SharePoint forms scenario (Lists, Blogs, etc.), you can import your own css file via the CssFiles property, which you can set in the ConfigFile.xml file, e.g.

<cssFiles>
<
item name="/_layouts/1033/styles/testcustomstyles.css"/>
<item
name="/_wpresources/RadEditorSharePoint/6.x.x.0__1f131a624888eeed/Resources/testcustomstyles.css"/>
</
cssFiles>

The styles defined in the specified CSS file(s) will be populated inside the Apply Class dropdown.

Greetings,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Tamiko
Top achievements
Rank 1
answered on 14 May 2012, 03:41 PM
We are using it in a Web Content Management scenario and I had already removed the classes listed below from "site" specific Tools configuration file.  The OOB configurations files already display css classes from our custom css file.  I followed the steps listed on http://www.telerik.com/help/aspnet-ajax/moss-sp2010-different-configuration-files-for-different-webs.html, however the RadEditor for SharePoint 2010 still displays the options listed in the OOB configuration files and not the site specific configuration files.
0
Rumen
Telerik team
answered on 16 May 2012, 03:28 PM
Hi,

As explained in the help article, the Apply Class dropdown will populate the classes available on the page where the editor resides, if the class tags are not set in the Tools xml file. If your site specific classes are loaded inside the Apply Class dropdown when the class tags are removed from the ToolsFile along with the other SharePoint specific classes, what you can do is to remove the SharePoint's classes by setting class tags for the classes that you want to load in the dropdown.

Another approach is to set the in site specific ConfigFile xml file:

<property name="ContentAreaMode">Iframe</property>

and setting the CssFiles property to point to your own CSS file containing the desired classes.

All the best,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Derek
Top achievements
Rank 1
answered on 23 May 2012, 09:40 PM
Apologies for the delayed response.  What I really need to know is how to ensure that the RadEditor control is referencing the site specific configuration files.  Again, if we add the custom css classes ToolsFile.xml, the custom css classes display as expected.
0
Rumen
Telerik team
answered on 28 May 2012, 09:52 AM
Hello,

For your convenience I have recorded a video demonstrating the whole scenario and all the steps: http://screencast.com/t/vtF7hP2cwJ.

I have used information from the following help articles:
Different configuration files for different webs
Frequently Asked Questions.

Best regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Derek
Top achievements
Rank 1
answered on 30 May 2012, 04:11 PM
Walked through the video several times.  Two differences between what we have and what is shown in the video,

  1. guids.config file
  2. adding the following key to the web.config file - <add Key = "RadEditorSaveGuids" value="1" />. 

These items are not listed in the instructions given on http://www.telerik.com/help/aspnet-ajax/moss-sp2010-different-configuration-files-for-different-webs.html, Can you clarify what the guids.config file is used for and why the above key should be added to the web config file? 

At this time the RadEditor still does not reference the custom config files
0
Derek
Top achievements
Rank 1
answered on 30 May 2012, 05:19 PM
Decided to double check my guid.  It was off by one character.  Fixed the guid and now everything works as expected.
0
Rumen
Telerik team
answered on 30 May 2012, 08:34 PM
Hi,

I am glad that everything is fine now.

The information about:
  1. guids.config file
  2. adding the following key to the web.config file - <add Key = "RadEditorSaveGuids" value="1" />. 

is available in the Frequently Asked Questions help article -> section Get the UID of a SharePoint Web with RadEditor for SharePoint 2010.

Greetings,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
WebParts for SharePoint
Asked by
Tamiko
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Tamiko
Top achievements
Rank 1
Derek
Top achievements
Rank 1
Share this question
or