RichHtmlField.AllowEmbedding property

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)

Syntax

'Declaration
<BrowsableAttribute(True)> _
Public Property AllowEmbedding As Boolean
    Get
    Set
'Usage
Dim instance As RichHtmlField
Dim value As Boolean

value = instance.AllowEmbedding

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

Property value

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

Remarks

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.

Note

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

See also

Reference

RichHtmlField class

RichHtmlField members

Microsoft.SharePoint.Publishing.WebControls namespace