RadEditor for Sharepoint - Different Configuration files

9 posts, 0 answers
  1. Tamiko
    Tamiko avatar
    18 posts
    Member since:
    Oct 2010

    Posted 09 May 2012 Link to this post


    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.
  2. Rumen
    Admin
    Rumen avatar
    12847 posts

    Posted 14 May 2012 Link to this post

    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.

  3. Tamiko
    Tamiko avatar
    18 posts
    Member since:
    Oct 2010

    Posted 14 May 2012 Link to this post

    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.
  4. Rumen
    Admin
    Rumen avatar
    12847 posts

    Posted 16 May 2012 Link to this post

    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.
  5. Derek
    Derek avatar
    3 posts
    Member since:
    Apr 2012

    Posted 23 May 2012 Link to this post

    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.
  6. Rumen
    Admin
    Rumen avatar
    12847 posts

    Posted 28 May 2012 Link to this post

    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.
  7. Derek
    Derek avatar
    3 posts
    Member since:
    Apr 2012

    Posted 30 May 2012 Link to this post

    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
  8. Derek
    Derek avatar
    3 posts
    Member since:
    Apr 2012

    Posted 30 May 2012 Link to this post

    Decided to double check my guid.  It was off by one character.  Fixed the guid and now everything works as expected.
  9. Rumen
    Admin
    Rumen avatar
    12847 posts

    Posted 30 May 2012 Link to this post

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