I was wondering if it was possible to setup the Preview button (in the Write tab) to open in a new tab rather than in a new window. I'm not sure of the procedure since the button doesn't act as a normal link which I could right-click and open in a new tab.
My preview button opens in a new tab. But I have some extensions running for Firefox that keep it from opening new windows. I think it's [url=https://addons.mozilla.org/extensions/moreinfo.php?application=firefox&category=Tabbed%20Browsing&id=50]Single Window[/url]. That might be an easier solution than mucking around in the Javascript, especially if you generally want links to go to new tabs rather than new windows. I think this extension also has the effect of opening the image upload window as a new tab, too.