Gets or sets the constraint that allows external URLs in the HTML when validating the value in this
RichHtmlField object.
Namespace: Microsoft.SharePoint.Publishing.WebControls
Assembly: Microsoft.SharePoint.Publishing (in microsoft.sharepoint.publishing.dll)
Visual Basic (Declaration)
<BrowsableAttribute(True)> _
Public Property AllowExternalUrls As Boolean
Dim instance As RichHtmlField
Dim value As Boolean
value = instance.AllowExternalUrls
instance.AllowExternalUrls = value
[BrowsableAttribute(true)]
public bool AllowExternalUrls { get; set; }
If this property is set to True, during validation, it sets the RestrictUrlsToSiteCollection property to True and sets the GuidOfThisSiteCollection property to the >ID property of the current site collection. This means that only URLs in the HTML that are in the current site collection are accepted as valid.