Default Rich Text Editor Profile in a Multisite Environment

Out of the box, the default Rich Text Editor profile can be set via the “HtmlEditor.DefaultProfile” setting.

<setting name="HtmlEditor.DefaultProfile" value="/sitecore/system/Settings/Html Editor Profiles/Rich Text Default"/>

Unfortunately, this only allows you to set the default profile for the entire Sitecore instance making it the default profile for each site.

Set it up for Multisite

Luckily, it is possible to create a custom EditorConfiguration which reads an attribute from Site Settings and replaces the default profile:

Add the following config file and set correct namespaces for HtmlEditor.DefaultConfigurationType:

Edit sites config and point to your preferred rich text editor profile:

<site name="mySite" defaultRichTextProfile="/sitecore/system/Settings/Html Editor Profiles/Rich Text Full" ...

Tested on 8.0 and 8.1.

UPDATE 04.03.2016: Changed code to only override the default profile. If a different profile was defined at field level it will not be overridden.

2 responses to “Default Rich Text Editor Profile in a Multisite Environment”

  1. Hi Mark,

    I tried same steps but not able to get the html editor options configured in the “defaultRichTextProfile”, when does this code gets executed ? how can i debug this to see what editor profile is getting loaded ?

    • Not sure what the issue is. The code should get executed every time you open a rich text editor in Sitecore Content Editor or Experience Editor.

Leave a Reply

Your email address will not be published. Required fields are marked *