RichHtmlField.AllowEmbedding property

SharePoint 2013

Gets or sets a constraint that enables embedding (IFrames) to be added when editing the field.

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

public bool AllowEmbedding { get; set; }

Property value

Type: System.Boolean
true if embedding is allowed; otherwise, false.

When this value is set to true, IFrame embedding is supported for this HTML field by following the HTML field security rules that are specified at the site collection level. This property also determines whether the editing user interface (UI) enables these operations.


Embedding is only supported in fields where RichTextMode is set to FullHtml.