Adding rich snippets to Sitecore Rich Text Editors

I like the way sitecore allows you to manage a lot of the functionality of it’s RTE from within the content editor itself. Settings for rich snippets along with toolbar options are held within the core database. Here is a quick look at how you would add rich html snippets to Sitecore rich text editors.

Switch to the core database

At the bottom right of your screen there is a database icon, click this to open the context menu and select core.

Sitecore database switcher

Open the rich text settings content node

Once Sitecore and changed to the core database go in to the Content Editor and browse to the following node:

Sitecore content tree

/system/Settings/Html Editor Profiles/Rich Text Default/Snippets

If you have the default installation you will probably see a Sample Snippet inside this folder.

content tree showing sample snippet

Insert a new snippet

You can either duplicate a snippet that already exists or to add a new one you right click the Snippets folder and select Insert/Insert from Template

insert from template

Inside the dialog window the shows select the following path

/System/Html Editor Profiles/Html Editor Snippet

insert dialog

Give your snippet a name and choose Insert

You will see your new snippet added to the Snippets folder. You can then edit the value which will be the title of the snippet within the RTE and the Value which will be the HTML content injected in to the field.

new snippet shown

Save the content item (You don’t need to publish because you’re working inside the core database).

Check the new snippet has appeared

Now when you open up a RTE which is using the default profile you will see your new snippet in the list.

snippet picker showing new snippet

Work with me

Dave is a cohesive team member, widely popular with his colleagues and always inspiring quality, exploration and innovation. One of the true ‘greats’ we’ve had the pleasure to work with

I believe in community, in inspiration and creativity. I believe it's an inspired team and a laser focus on the user's experiece that will produce the best results. I want to help frontend teams live inspired, be productive and scale better.