I'd like to customise the InsertHyperlinkDialog so that it only accepts links that start with http. Is there any way to do this?
1 Answer, 1 is accepted
0
Accepted
Dimitar
Telerik team
answered on 08 Sep 2017, 08:15 AM
Hello Simon,
By default when the user presses the OK button the "http://" is inserted at the beginning of the link. However, you can insert it when the user starts typing in the text box. The following example shows how you can create custom dialog access the text box and change the text:
public partial class RadForm1 : Telerik.WinControls.UI.RadForm
{
public RadForm1()
{
InitializeComponent();
radRichTextEditor1.RichTextBoxElement.InsertHyperlinkDialog = new MyInsertHyperlinkDialog();
}
}
class MyInsertHyperlinkDialog : InsertHyperlinkDialog