Your Search Results

Modifying Wordpress INSERT IMAGE Popup Window Size

Comment first! »

After installing Google Notebook and McAfee Site Advisor on Firefox, my insert image popup window shrunk (that’s the little window that pops up when I click the insert image button on the Wordpress 2.0 Admin / Write Post screen with Rich Editor turned on). Since the popup window isn’t resizable, I hacked Wordpress to make the window bigger. The file you want is /wp-includes/js/tinymce/themes/advanced/image.htm. You might also want to modify other files in that directory, like link.htm.

Go to <body onload= line and add this at the end: self.resizeTo(600,400); (Choose whatever dimension you prefer)

Mine looks like this:

<body onload=”tinyMCEPopup.executeOnLoad(’init();’); document.getElementById(’href’).focus(); self.resizeTo(600,400);” style=”display: none”>