Monday, February 16, 2009

Site Column with RichText support

Scenario:
I was suppose to write a site Column with RichText with HTML support.

Solution:
Field tag exposes RichText and RichTextMode properties.

Code:

  <Field ID="{GUIDwithBraces}"
Name="Details"
SourceID="http://schemas.microsoft.com/sharepoint/v3"
StaticName="Details"
Type="Note"
RichText="TRUE"
RichTextMode="FullHtml"
IsolateStyles="TRUE"
DisplayName="Details"
Sortable="FALSE"
NumLines="15" />

0 comments: