Saturday 9 September 2017

Sitecore Custom RTE Profiles

After the understanding of RTE field now it's time to use, Change and then customize with It. Overall playing with RTE in sitecore.


So first thing is there are four types of RTE profiles which are already provided by Sitecore to navigate these RTE Profile will jump to core database at "/sitecore/system/Settings/Html Editor Profiles" and these are:

Rich Text Default
Rich Text Medium
Rich Text Full
Rich Text IDE
Rich Text Mail (newly added)





and by default when we are using RTE field in the template then Rich Text Default is already set as data source on the RTE field.





 And the best thing is we can change the data source with other existing RTE profiles.


Now it's time to create one custom RTE but before creating custom RTE, let's discuss why we need to create custom?

Suppose You want to add more tool to the RTE editor options, or just want to remove some options and you are definitely sure that in future you are not going to use. then we use custom RTE.


And now one question is raised that why we are not going to change into existing RTE profiles then my opinion is, "If we will change to the existing RTE profiles then it may impact to the existing RTE field for other items, and we exactly didn't know at what places exactly existing RTE is getting used".


So instead of taking risk we will just copy the whole RTE and will create newer one and here we will customize.


So let's start

1. will go to /sitecore/system/Settings/Html Editor Profiles

2. now will copy Rich Text Full  Profile (here will prefer to copying the existing RTE with Full functionality Profile, so that will remove which i don't want and will add according to my requirement)

3. now will move back to master database and will give the data source of RTE with new one RTE Profile which we want to use.


Please let me know if you are facing issue while using.

No comments:

Post a Comment