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!!!!

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!!!

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.