Friday, June 27, 2008

Disabling formatting options in RichHTML Field in MOSS

Hi All,

If you want to disable several formatting options in RichHTML filed, lets say you do not want user to use any of the table options, you do not want user to use images options, no font options then you can do this in following way :

<div class="contentpagecontent">
<PublishingWebControls:RichHtmlField
FieldName="PublishingPageContent"
AllowTables="false"
AllowImages="false"
AllowFonts="false"
runat="server"></PublishingWebControls:RichHtmlField>
</div>


Look at this snap after applying these options :




If you want to go for more customization, then here is a link.

That's it. you are done with your job.

1 comment:

Norpa said...

Which file do you need to amend??




Share your SharePoint Experiences with us...
As good as the SharePointKings is, we want to make it even better. One of our most valuable sources of input for our Blog Posts comes from ever enthusiastic Visitors/Readers. We welcome every Visitor/Reader to contribute their experiences with SharePoint. It may be in the form of a code stub, snippet, any tips and trick or any crazy thing you have tried with SharePoint.
Send your Articles to sharepointkings@gmail.com with your Profile Summary. We will Post them. The idea is to act as a bridge between you Readers!!!

If anyone would like to have their advertisement posted on this blog, please send us the requirement details to sharepointkings@gmail.com