Back to Devexpress

DxHyperlinkSettings.AllowedUriSchemes Property

blazor-devexpress-dot-blazor-dot-richedit-dot-dxhyperlinksettings.md

latest1.5 KB
Original Source

DxHyperlinkSettings.AllowedUriSchemes Property

Specifies allowed URI schemes.

Namespace : DevExpress.Blazor.RichEdit

Assembly : DevExpress.Blazor.RichEdit.v25.2.dll

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
[Parameter]
public string[] AllowedUriSchemes { get; set; }

Property Value

TypeDescription
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:

razor
<DxRichEdit>
    <HyperlinkSettings>
        <DxHyperlinkSettings AllowedUriSchemes="@(new string[] { "http", "https" })"/>
    </HyperlinkSettings>
</DxRichEdit>

See Also

DxHyperlinkSettings Class

DxHyperlinkSettings Members

DevExpress.Blazor.RichEdit Namespace