Resource Page DescriptionCode sample from blog post Many people mistakenly use the Content Editor Web Part in SharePoint Publishing sites without knowing the consequences of doing so. Implementors have a few options in keeping CEWP's off content pages: (a) they can elect to not add Web Part Zones to the page layouts, but that prohibits all Web Parts, even desireable ones; (b) they can remove the CEWP Web Part definition from the Web Part Gallery, but savy users can still import them directly to pages; or (c) they can disable the use of CEWPs in the site. This project adds a SafeControl entry to the web.config that flags the CEWP as an unsafe control and thus, disallows it from running after added to pages.
Get more info here: http://www.andrewconnell.com/blog/archive/2009/02/01/Blocking-the-use-of-the-Content-Editor-Web-Part-in.aspx
|