Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

FieldsSettingsBuilder.AllowedHyperlinkUriSchemes(String[]) Method

Specifies allowed URI schemes.

Namespace: DevExpress.AspNetCore.RichEdit

Assembly: DevExpress.AspNetCore.RichEdit.v24.2.dll

NuGet Package: DevExpress.AspNetCore.RichEdit

#Declaration

C#
public FieldsSettingsBuilder AllowedHyperlinkUriSchemes(
    string[] value
)

#Parameters

Name Type Description
value String[]

An array of allowed URI schemes.

#Returns

Type Description
FieldsSettingsBuilder

An object that can be used to further configure the fields settings.

#Remarks

The Rich Edit component uses a list of allowed URI schemes to prohibit hyperlink URLs that may contain malicious code. This list checks a hyperlink’s URL when it is clicked. The link is opened if the URI scheme appears in the list. The default list contains the following schemes: http, https, mailto, and tel.

Specify the list of allowed URL schemes as a parameter in the AllowedHyperlinkUriSchemes method to change the default list:

cshtml
@(Html.DevExpress().RichEdit("DemoRichEdit")
    .Fields(builder => {
        builder.AllowedHyperlinkUriSchemes(new string[] { "http", "https" })
    })
)
See Also