How to turn off automatic recognition of email & hyperlinks

5 posts, 0 answers
  1. Ross Presser
    Ross Presser avatar
    30 posts
    Member since:
    Dec 2008

    Posted 24 Feb 2010 Link to this post

    Library: ASP.NET AJAX Q1 2009
    Control: RadEditor
    Browser: IE7 or above

    When a RadEditor control is presented and the user types an email address like "rpresser@aleyant.com", the RadEditor automatically changes it to a mailto: hyperlink.  If they type "www.aleyant.com" it is automatically changed to a hyperlink to http://www.aleyant.com. Et cetera.  The hyperlink can then be manually removed, but that's an extra step.

    The automatic recognition does not happen if the browser is anything else: Chrome, Firefox, Safari, Opera...

    How can the behavior be turned off for IE so that we get a uniform experience?
  2. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 26 Feb 2010 Link to this post

    Hi Ross,

    I am afraid that it is not possible to disable this browser mechanism for link creation.

    The automatic link creation is provided by the Rich Text Editing engine of Internet Explorer that RadEditor uses in this browser.  Unfortunately, Internet Explorer does not offer a mechanism or client-side API for disabling the text to link / e-mail recognition and conversion.

    You will reproduce the same behavior in a standard editable DIV / IFRAME element as well as in our competitors' editors.

    Best regards,
    Rumen
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. aSta
    aSta avatar
    2 posts
    Member since:
    Nov 2007

    Posted 16 Apr 2012 Link to this post

    Hi,
    I have one simple question - is there anything new in this topic after 2 years? I'm developing an intranet application and our users must use IE. Is there any way, how to configure IE to disable this function via registry or Group Policy? Or is something new in RadEditor API - I can't find anything usefull...

    Thank you.
  5. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 16 Apr 2012 Link to this post

    Hello,

    This IE browser feature could be disabled in IE9 only. You can do that using the following code:

    Copy Code
    <script type="text/javascript">
    function OnClientLoad(editor) {
      editor.get_document().execCommand("AutoUrlDetect", false, false)
    }
    </script>
    <telerik:RadEditor runat="server"ID="RadEditor"OnClientLoad="OnClientLoad"></telerik:RadEditor>

    You can find more information about the AutoUrlDetect command identifier of IE9 in the following MSDN blog: http://blogs.msdn.com/b/ieinternals/archive/2010/09/15/ie9-beta-minor-change-list.aspx.

    Best regards,
    Rumen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  6. aSta
    aSta avatar
    2 posts
    Member since:
    Nov 2007

    Posted 16 Apr 2012 Link to this post

    Great!
    Thank you very much.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017