RTE Link automatically appending "http://"

Hi, I'm testing an RTE and when updating a inline link it automatically appends http:// to the start of the link. So internal links and mailto: links arent possible.


What can be done to stop this or handle this? 


Cheers

mailto.JPG


5 Replies

BS Buvana Sathasivam Syncfusion Team February 17, 2022 10:10 AM UTC


Hi Piers, 

Greetings from Syncfusion support. 

You can set the "EnableAutoUrl" property to achieve your requirement. It is used to insert the link using a relative path. Please find the below code and sample for your reference. 

<SfRichTextEditor EnableAutoUrl="true">……</SfRichTextEditor> 



Please let us know if you have any concerns.  

Regards, 
Buvana S 



PS Piers Spencer Courtney February 17, 2022 03:37 PM UTC

Ideal thank you. I couldn't find this anywhere in the documentation



BS Buvana Sathasivam Syncfusion Team February 18, 2022 05:12 AM UTC


Hi Piers, 

Most welcome. We will explain the EnableAutoUrl property in our documentation and it will be published in any of our upcoming releases. 

Regards, 
Buvana S 



ES Eric Shelton November 10, 2023 02:32 PM UTC

setting EnableAutoUrl="true" works when creating a hyperlink to relative paths. But then, the rich text editor will not recognize it as an editable hyperlink. So when you click on it in the editor, it will navigate to the URL rather than open the hyperlink editor.


Is this a known bug?



VJ Vinitha Jeyakumar Syncfusion Team November 14, 2023 11:24 AM UTC

Hi Eric Shelton,

We have validated the reported issue at our end by setting true to the EnableAutoUrl property with RichTextEditor and tried to reproduce the issue, but we didn't find any issue while clicking the inserted link in the Editor, it open the quick toolbar properly. We have also prepared a video illustration for your reference.

Code snippet:
 <SfRichTextEditor ShowCharCount="true" EnableResize="true"  MaxLength="2000" EnableAutoUrl="true">
 </SfRichTextEditor>

Can you please share us with the exact issue replication steps along with video illustration and entire code snippet or simple runnable sample to validate further on our end.

Regards,
Vinitha

Attachment: Vid_link_5066138b.zip

Loader.
Up arrow icon