Opened 15 years ago

Closed 11 years ago

#751 closed defect (wontfix)

Default target for links automatically created in a textarea

Reported by: webmaster@… Owned by: gogo
Priority: normal Milestone:
Component: Xinha Core Version:
Severity: normal Keywords: link target


When typing an URL in a textarea, Xinha automatically detect a link and create it with the following syntax :
<a href=entered_url>entered_url</a>
In my web-application, the syntax have to be :
<a href=entered_url target=_blank>entered_url</a>
The links created with the popup dialog are ok : the user has the choice of the target. My problem is for automatically created links.
Thank you for your help.

Change History (2)

comment:1 Changed 14 years ago by gocher

htmlarea.s (HTMLArea.prototype._editorEvent = function(ev)) Change:

              autoWrap(midTextUrl, 'a').href = (mUrl[1] ? mUrl[1] : 'http://') + mUrl[2];


              var newLink      = autoWrap(midTextUrl, 'a');
              newLink.href = (mUrl[1] ? mUrl[1] : 'http://') + mUrl[2];
     = '_blank';

comment:2 Changed 11 years ago by gogo

  • Resolution set to wontfix
  • Status changed from new to closed

Can't do this cross browser I think.

Note: See TracTickets for help on using tickets.