Thursday, May 19, 2016

Sitecore setting the rich text editor profile

The rich text editor is Sitecore is completely configurable, meaning that you can control down to each button what does and does not appear. Sitecore by default has several profiles setup for use:

  • Rich text default
  • Rich text full
  • Rich text medium
  • Rich txt IDE
The profiles are administered in the core database under: /sitecore/system/Settings/Html Editor Profiles.

By default you can set a default profile to use for an entire Sitecore instance, via the HtmlEditor.DefaultProfile setting. The following patch file will allow you to set the default to Rich Text Medium.

<configuration xmlns:patch="">
      <setting name="HtmlEditor.DefaultProfile">
        <patch:attribute name="value">/sitecore/system/Settings/Html Editor Profiles/Rich Text Medium</patch:attribute>

You can also set the profile on the given instance of a rich text field (and this will overwrite the default setting from above). Simply set the source field of a rich text field (on an item template) to the path of the rich text field you wish to use:

You can also duplicate and modify the default rich text profiles to suit your needs (perhaps you need a hybrid of the rich text full and rich text medium). It's as simple as adding/deleting items in the tree under the given profile (found in the core database).

1 comment: