Ticket #6864: media-upload.patch
File media-upload.patch, 584 bytes (added by , 16 years ago) |
---|
-
media-upload.js
1 1 // send html to the post editor 2 2 function send_to_editor(h) { 3 var win = window.opener ? window.opener : window.dialogArguments; 4 if ( !win ) 5 win = top; 3 var win = window.dialogArguments || opener || parent || top; 4 6 5 tinyMCE = win.tinyMCE; 7 6 if ( typeof tinyMCE != 'undefined' && ( ed = tinyMCE.getInstanceById('content') ) && !ed.isHidden() ) { 8 7 tinyMCE.selectedInstance.getWin().focus();