Jump to content

help with remove link when enter text www.example.com in textarea and remain


robert.access

Recommended Posts

hi all, I really apreciate if anyone can tell me what function I have to look for in a js file, (to delete it) to remove the automaticaly posted link in a text box.

 

for example when I enter www.something.com and I press space bar the textarea will make it like <a href="http://www.something.com ">www.something.com </a> ...

 

this is in java , so please any ideeas what to looking for???? and please don't give me "answers" learn java,,,    I try :P and found nothing, please give me your ideea for what to looking for, to remove... thank you very much! really apreciate (p.s. dont have money to hire a freelancer, that's why I;m here)

 

thx!!!!

Link to comment
Share on other sites

i think that I have to modify something here to block auto insert of link

 

function insertLink(url,title,target)

{

if(!this.checkFocus())return;

var oEditor=eval("idContent"+this.oName);

var oSel=oEditor.document.selection.createRange();

this.saveForUndo();

if(oSel.parentElement)

{

if(oSel.text=="")

{

var oSelTmp=oSel.duplicate();

if(title!=""&&title!=undefined)oSel.text=title;

else oSel.text=url;

oSel.setEndPoint("StartToStart",oSelTmp);

oSel.select();

}

}

oSel.execCommand("CreateLink",false,url);

if(oSel.parentElement)oEl=GetElement(oSel.parentElement(),"A");

else oEl=GetElement(oSel.item(0),"A");

if(oEl)

{

if(target!=""&&target!=undefined)oEl.target=target;

}

}

 

 

any advice please!!!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.