/* Hack Name: Wordpress Hack: Opening Links in New Windows Version: 2.0 Hack URI: http://ajaydsouza.com/wordpress/hacks/wordpress-hack-opening-links-in-new-windows/ Description: This hack creates a prompt for the target when you click on link button in the Quicktags toolbar. Author: Ajay D'Souza Author URI: http://ajaydsouza.com/ */ ------------------------------------------------------------ Steps: 1. Open quicktags.js in the wp-admin folder 2. Find: if (!edCheckOpenTags(i)) { var URL = prompt('Enter the URL' ,defaultValue); if (URL) { edButtons[i].tagStart = ''; edInsertTag(myField, i); } } 3. Replace with: if (!edCheckOpenTags(i)) { var URL = prompt('Enter the URL' ,defaultValue); if (URL) { edButtons[i].tagStart = '