Skip to main content
All docs
V25.2
  • ASPxRichEditBehaviorSettings.AllowWebContent Property

    Specifies whether users can insert images from URLs and whether the Rich Text Editor loads external web content.

    Namespace: DevExpress.Web.ASPxRichEdit

    Assembly: DevExpress.Web.ASPxRichEdit.v25.2.dll

    NuGet Package: DevExpress.Web.Office

    Declaration

    [DefaultValue(true)]
    public bool AllowWebContent { get; set; }

    Property Value

    Type Default Description
    Boolean true

    true to allow the Rich Text Editor to insert images from web URLs and load external web content; false to block external web content.

    Property Paths

    You can access this nested property as listed below:

    Object Type Path to AllowWebContent
    ASPxRichEditSettings
    .Behavior .AllowWebContent

    Remarks

    Set the AllowWebContent property to false to block external web content in the Rich Text Editor:

    • External CSS is not applied.
    • Images loaded from web URLs are not displayed in the document.
    • Users cannot insert images from web URLs through the Insert Image dialog.
    <dx:ASPxRichEdit ID="richEdit" runat="server" ClientInstanceName="richEdit">
        <Settings>
            <Behavior AllowWebContent="false" />
        </Settings>
    </dx:ASPxRichEdit>
    
    See Also