This is a migrated thread and some comments may be shown as answers.

How to turn off automatic recognition of email & hyperlinks

4 Answers 133 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Ross Presser
Top achievements
Rank 1
Ross Presser asked on 24 Feb 2010, 10:14 PM
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?

4 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 26 Feb 2010, 01:27 PM
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.
0
aSta
Top achievements
Rank 2
answered on 16 Apr 2012, 08:54 AM
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.
0
Rumen
Telerik team
answered on 16 Apr 2012, 09:06 AM
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.
0
aSta
Top achievements
Rank 2
answered on 16 Apr 2012, 09:18 AM
Great!
Thank you very much.
Tags
Editor
Asked by
Ross Presser
Top achievements
Rank 1
Answers by
Rumen
Telerik team
aSta
Top achievements
Rank 2
Share this question
or