DxHyperlinkSettings.AllowedUriSchemes Property
Specifies allowed URI schemes.
Namespace: DevExpress.Blazor.RichEdit
Assembly: DevExpress.Blazor.RichEdit.v25.1.dll
NuGet Package: DevExpress.Blazor.RichEdit
Declaration
[Parameter]
public string[] AllowedUriSchemes { get; set; }
Property Value
| Type | Description |
|---|---|
| String[] | An array of allowed URI schemes. |
Remarks
The DxRichEdit 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.
Assign the list of allowed URI schemes to the AllowedUriSchemes property to change the default list:
<DxRichEdit>
<HyperlinkSettings>
<DxHyperlinkSettings AllowedUriSchemes="@(new string[] { "http", "https" })"/>
</HyperlinkSettings>
</DxRichEdit>
See Also