RichHtmlField.AllowHyperlinks property

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

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

public bool AllowHyperlinks { get; set; }

Property value

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

If this flag is set to false, <A>, <AREA> and <MAP> tags are removed from the HTML. Default is true. This property also determines whether the editing user interface (UI) enables these operations.