RichHtmlField.AllowFonts Property (Microsoft.SharePoint.Publishing.WebControls)
Gets or sets the constraint that allows font element tags to be added to the HTML.

Namespace: Microsoft.SharePoint.Publishing.WebControls
Assembly: Microsoft.SharePoint.Publishing (in microsoft.sharepoint.publishing.dll)
Syntax

Visual Basic (Declaration)
<BrowsableAttribute(True)> _
Public Property AllowFonts As Boolean
Visual Basic (Usage)
Dim instance As RichHtmlField
Dim value As Boolean

value = instance.AllowFonts

instance.AllowFonts = value
C#
[BrowsableAttribute(true)] 
public bool AllowFonts { get; set; }

Property Value

When this flag is set to False, <font> element tags are not allowed in the HTML.
Remarks

If you set this flag to FALSE, <font> and <basefont> tags are removed from the HTML. Default is TRUE. This property also determines whether the editing user interface (UI) enables these operations.

See Also

Tags :


Community Content

Ameeta Garga
Disabled buttons in SharePoint HTML Editor

When AllowFonts is set to False , the following buttons are disabled in the SharePoint HTML Editor:

  • Font
  • Font Size
  • Text Color
  • Text Highlight Color
Tags :

Page view tracker