RichHtmlField.AllowHeadings property

Gets or sets the constraint that allows heading tags to be added to the HTML.

Namespace:  Microsoft.SharePoint.Publishing.WebControls
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

[BrowsableAttribute(true)]
public bool AllowHeadings { get; set; }

Property value

Type: System.Boolean
When this flag is set to false, heading tags are not allowed in the HTML.

If this flag is set to false, <DIR>, <H1>, <H2>, <H3>, <H4>, <H5>, <H6>, <MARQUEE>, <ADDRESS> and <CENTER> tags are removed from the HTML. Default is true. This property also determines whether the editing user interface (UI) enables these operations.

Show: