Opened 14 years ago

Closed 10 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
Cc:

Description

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 13 years ago by gocher

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

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

To

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

comment:2 Changed 10 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.