Friday, October 18, 2019

How to hide the Richtext Editor Buttons in sitecore 9.1

Sometimes your authors are messing up the RichText Editor Buttons.then if your Product owners are come up with a solution to disable the particular feature.in our case HTML access and hide the tables.
to do that

You have to find out which RTE you are using on the Templates. RichText Editor are 5 types. Find out if anything configured on the Template field (such as any path), you can read my article here.
If nothing configured default is standard RTE.so it’s better to create a role,in my case “Restricted access Role”. once you create the role go to Core database:
On the security Editor and perform the following steps.

1) hide Edit Html: Deny read access on the above Role to Edit Html on below path




/sitecore/system/Field types/Simple Types/Rich Text/Menu/Edit Html


2) 1)      Hide Design and HTML:
  
deny the read access to /sitecore/system/Settings/Html Editor Profiles/Rich Text Standard/Buttons/HTML View.



You can hide any other components on the RTE, I have hide the Insert Table as below:

/sitecore/system/Settings/Html Editor Profiles/Rich Text Standard/Toolbar 1/Insert Table





No comments:

Post a Comment