04 May 2015

Limit editing HTML source for rich text editor field in Sitecore

I recently get a requirement about limiting the way of editing ram html in Rich Tex Editor. After a few digging around the Sitecore, here is how I figured.


There are two places in Rich Text editor you can change the html markup in Content Editor.

1st place

2nd place


For 1st place, goes to Core database "/sitecore/system/Field types/Simple Types/Rich Text" and in "Security Editor" to deny "read" for both items as highlighted for the "Sitecore Roles" you prefer.





For 2nd place, it is a bit of tricky. We first need to find out what is our default profile is by going to web.config.

<setting name="HtmlEditor.DefaultProfile" value="/sitecore/system/Settings/Html Editor Profiles/Rich Text Default" />

After that, we located this profile in "Core" database and locate 
"/sitecore/system/Settings/Html Editor Profiles/Rich Text Default/Buttons/HTML View"


So we need to do the same by deny "read" from "Security editor" for certain roles as well.


Done!

14 comments:

  1. if you are a programmer then it will help you ,i also always get help from notepad++ portable

    ReplyDelete
  2. In this post I truly got quality information. I am definitely looking more in this post.

    ReplyDelete
  3. Having hence made your article, it's a great opportunity to audit the equivalent. See that it is without syntactic mistakes and contains the vital references and references before you send it to Wikipedia for audit. Wikipedia writers for hire

    ReplyDelete
  4. If you have just set up a page for your business, then it is time you do something about the ├»¿½likes├»¿½. Online Faxing web design in new york

    ReplyDelete
  5. Aw, this was a very nice post. In thought I want to put in writing like this moreover ?taking time and actual effort to make a very good article?however what can I say?I procrastinate alot and certainly not appear to get one thing done. nyc web designer

    ReplyDelete
  6. Jeden Tag stellt man sich die Frage Was Koche Ich Heute?! Zerbrechen Sie sich nicht den Kopf, besuchen Sie uns am besten direkt auf unserer Webseite uns lassen Sie sich inspirieren web design in new york

    ReplyDelete
  7. This article contains great original thinking. The informational content here proves that things aren’t so black and white. I feel smarter from just reading this. new york web design company

    ReplyDelete
  8. This comment has been removed by the author.

    ReplyDelete
  9. That is the best blog for anyone who desires to search out out about this topic. You understand so much its nearly exhausting to argue with you (not that I truly would need aHa). You positively put a brand new spin on a subject thats been written about for years. Great stuff, simply great! branding agency sf

    ReplyDelete
  10. Its like you read my mind! You seem to know so much about this, like you wrote the book in it or something. I think that you can do with a few pics to drive the message home a little bit, but other than that, this is excellent blog. A fantastic read. I will definitely be back. branding san francisco

    ReplyDelete
  11. Increase this valuable because when a lot of people machinery are used world-wide and can add a number of them proof using its whole world may ailments specifically a result of the company at the twenty first a single. dc free mommy blog giveaways family trip home gardening house power wash baby laundry detergent interface design agency san francisco

    ReplyDelete
  12. Hello there! I know this is kind of off topic but I was wondering which blog platform are you using for this website? I’m getting fed up of WordPress because I’ve had issues with hackers and I’m looking at options for another platform. I would be great if you could point me in the direction of a good platform. los angeles web design

    ReplyDelete
  13. Thank you for another fantastic blog. Where else might one get that sort of knowledge written in such a perfect way? I actually have a presentation that i’m presently acting on, and i are yearning for such info instead. los angeles web agency

    ReplyDelete
  14. Getting a issue with the Feed, could you help me? website design la

    ReplyDelete

WFFM Web form for marketer fail to submit in Sitecore

I have setup a standard form using WFFM in Sitecore 8.2. It always fail when submit. Error as below, Error: Exception: System.Data.DataE...