Click here to Skip to main content
15,886,574 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i am using wysihtml editor if i paste "http://www.google.com" in wyshtml editor then pasted value comes in anchor tags as value instead of the value what i pasted . if i manually write "http://www.google.com" then anchor is dose not prefixed as a value.

so i want the value without anchor tag ,and i don't want to use any html code(like remove:{} ). please let me know the way to do this :)
Posted
Updated 3-Aug-15 19:51pm
v2
Comments
Richard Deeming 4-Aug-15 8:05am    
Are you using Internet Explorer? That's the only browser I've seen which automatically converts text that looks like a URL to a hyperlink.

1 solution

I've only ever seen this happen in Internet Explorer. Assuming that's the browser you're using, try executing the following javascript code when the page loads:
JavaScript
if (typeof(document.execCommand) === "function")
{
    try
    {
        document.execCommand("AutoUrlDetect", false, false);
    }
    catch (e)
    {
    }
}

Disabling auto-linking in an IE rich text editor[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900