Sunday, 22 November 2020

Create a Custom Profile for Rich Text Editor

Rich Text Editor is a very well known Field type in Sitecore world, we can say a very popular one but it has its benefits and even few drawback which we can discuss in another post.

Sitecore out of the box provides three different Rich text editor profiles which are there in core database below are path for same.

Rich Text Default:-/sitecore/system/Settings/Html Editor Profiles/Rich Text Default

Rich Text Medium:- /sitecore/system/Settings/Html Editor Profiles/Rich Text Medium.

Rich Text Full:- /sitecore/system/Settings/Html Editor Profiles/Rich Text Full.

Steps to Create a Custom Profile for Rich Text Editor

There are times when we want to use an Rich Text editor for a field, but also restrict what all buttons the content author will see in Rich text editor toolbar.

1. Go to Core Database location "/sitecore/system/Settings/Html Editor Profiles"

 

2. Create a copy of an existing any one profiles (Ex:- Rich Text Full/ Rich Text Full), and give it a name.

3. Now in the newly Created Profile we have Toolbars, These toolbar contain all the buttons that we see in Rich text editor.

4. Remove or add any button from toolbar and that would be effected in newly created profile.

5. In this example, I have created a new profile called "Single Line Rich Text Custom", which has just four buttons. I deleted all the other buttons.


6. Now save the newly created "Single Line Rich Text Custom" profile item, you can then use it by specifying it as a source for Rich Text Editor field in the template.


7. Save the Template, Go to Standard Values of the template and check the output or Create any new Item using the template and Check out the output.

Hope That help.

No comments:

Post a Comment

Related Blogs

Adding Custom CSS classes in Rich text Editor under "Apply CSS Classes" Dropdown.

In My Previous Blog I Tried to show how we can create a Custom Rich Text editor Profile, which is at times required to restrict Content edit...