FieldsSettingsBuilder.AllowedHyperlinkUriSchemes(String[]) Method
Specifies allowed URI schemes.
Namespace: DevExpress.AspNetCore.RichEdit
Assembly: DevExpress.AspNetCore.RichEdit.v24.2.dll
Declaration
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:
@(Html.DevExpress().RichEdit("DemoRichEdit")
.Fields(builder => {
builder.AllowedHyperlinkUriSchemes(new string[] { "http", "https" })
})
)
See Also