Phil’s Diary - [Blog @ http://www.philsdiary.net/]
Friday May 23, 2003
MT Tweaks

If you’re editing with MT in it’s default edit window you’ve got a URL button which allows you to highlight some text and turn it into a URL. Great. However if like me you like links like that to popup in a new window (yes, I know some people hate that, but I don’t), then you’ll want to change this default behaviour.

Edit \tmpl\cms\edit_entry.tmpl, and find line 129 (in version 2.63 & 2.64), it looks like this, and belongs to the function insertLink()

document.selection.createRange().text =

Add to that line a target=”_blank” or whatever extra HTML you’d like, before the > tag.

Yes, perhaps you’re not interested, but the next time I’ll be upgrading MT, I’ll need this, and at least now I’ll no where to find it.

Posted by Phil on May 23, 2003 07:16 AM | Categories: Misc