QUOTE (jpfrantz @ Jul 15 2003, 10:52 AM)
I know how to do this using staight HTML, but how do I get MT to add the 'target=_blank' attribute from the Edit window when I choose the URL button?
I found the easiest (and quickest) way is to edit the edit_entry.tmpl located in your /tmpl/cms folder:
CODE
Change the last line of this section, about line 123:
function insertLink () {
if (!document.selection) return;
var str = document.selection.createRange().text;
if (!str) return;
var my_link = prompt('<MT_TRANS phrase="Enter URL:">', 'http://');
if (my_link != null)
document.selection.createRange().text = '<a href="' + my_link + '">' + str + '</a>';
}
to
document.selection.createRange().text = '<a href="' + my_link + '" target="_blank" >' + str + '</a>';
}
Basicially you're just adding target="blank" between the last double quote and the right end bracket for the a href string.
Cheers,