robert.access Posted August 22, 2011 Share Posted August 22, 2011 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 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 https://forums.phpfreaks.com/topic/245453-help-with-remove-link-when-enter-text-wwwexamplecom-in-textarea-and-remain/ Share on other sites More sharing options...
TOA Posted August 22, 2011 Share Posted August 22, 2011 Java is not Javascript. Which do you require? Link to comment https://forums.phpfreaks.com/topic/245453-help-with-remove-link-when-enter-text-wwwexamplecom-in-textarea-and-remain/#findComment-1260669 Share on other sites More sharing options...
robert.access Posted August 23, 2011 Author Share Posted August 23, 2011 my code resize in editor.js it's something like function convertBorderWidth(width){ return eval(width.substr(0,width.length-2)); } Link to comment https://forums.phpfreaks.com/topic/245453-help-with-remove-link-when-enter-text-wwwexamplecom-in-textarea-and-remain/#findComment-1261009 Share on other sites More sharing options...
robert.access Posted August 24, 2011 Author Share Posted August 24, 2011 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 https://forums.phpfreaks.com/topic/245453-help-with-remove-link-when-enter-text-wwwexamplecom-in-textarea-and-remain/#findComment-1261337 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.