Level: 100
 

Setting the Default Rich Text Editor Profile in Sitecore

Sitecore 6 comes with four preconfigured Html Editor Profiles. In this blog post I will describe how to use them and how to change the default profile, which is much easier with Sitecore 6.4 than it was before.

 

Written by: Jimmi Lyhne Andersen
Sun, May 29 2011

I am currently setting up a new large Sitecore solution and therefore creating a lot of fields in Sitecore. In previous versions of Sitecore 6, a rich text field would, unless otherwise specified, use the default rich text editor profile.
These profiles are located in the core database here:
/sitecore/system/Settings/Html Editor Profiles

 

The "Rich Text Default" profile looks like this.

 

Screenshot of the default editor profile

 

Not many possibilities here.

 

If you want to allow the editors to be able to use more functionality, you can set the source of the rich text field to point to one of the other editor profiles like this:

 

Screenshot of template with source filled in rich text field.

 

Which would give the users an editor like this:

 

Screenshot of the full editor profile
 

You could also create your own profile and point to that, but Sitecore recommends that you should not change the default profile. In my experience the default editor profile has too few options and the editor should look the same for all rich text fields in the solution. Therefore I always had to insert the path to a customized version of the profile for every rich text field in the solution.

 

So I was happy when I found out that this is no longer necessary. In Sitecore 6.4 the rich text editor has been upgraded to RadEditor for ASP.NET AJAX, which I think is a lot better and Sitecore has made the default editor profile setting a part of the web.config.

 

It is located here:

 


  
    
      
     
  

    

 

This is both easier when you create new fields and if you decide to change the profile used later on.

 

That's all for now.

 

Jimmi

 

Please rate this article


1 rates / 5 avg.

  • Picture of Jimmi Lyhne Andersen

    About the author:

    Jimmi Lyhne Andersen

    Jimmi Lyhne Andersen is the co-founder of LearnSitecore, and is a partner at Inmento Solutions.
    Jimmi has been lead developer and architect on several large public websites with 200+ editors, and is therefore focused on usability and accessibility.
    Jimmi is a certified Sitecore developer and a Microsoft Certified Professional Developer (MCPD).
    He has a bachelors degree in Computer Science and in Mathematics from the University of Copenhagen.

     

3 responses to "Setting the Default Rich Text Editor Profile in Sitecore"

This is indeed easier, did you noticed if it is possible to load custom CSS per profile on 6.4?
That has been pain for me few time by not having possibility to apply custom CSS for RTE in per profile.
Posted: Sunday, June 19, 2011 9:56 PM
Is this possible for Sitecore.NET 6.2.0 ?

-Thanks in advance.
Posted: Tuesday, March 27, 2012 3:10 PM
Is it possible to set such option like "alwaysIncludeServerUrl" for media items links in rich text editor?
Posted: Wednesday, October 09, 2013 6:58 PM

Leave a reply


Notify me of follow-up comments via email.
 
 
#nbsp;