My script is here : jsfiddle
i have two attributes in my form that my script do edit on a click in the div area/next to the link or double click on the link ( this how the script do the edit )
my problem is: if i have a textarea that includes an URLs per row and it sums all the chars in one link, if you see my example above, the link below is actually textarea with test1.com in first row and test2.com in second row, but the script shows this link : test1.comtest2.com, and i need it to be two link each one on a row, how can i do this ?
Refer this LIVE DEMO 2
Addition to my previous answer, I have modified some parts of JQuery to handle your criteria.
HTML:
JQuery: