WordPress.org

Make WordPress Core

Changeset 7860


Ignore:
Timestamp:
04/30/08 20:12:39 (6 years ago)
Author:
ryan
Message:

send_to_editor fix for FF. Props azaozz. fixes #6864 for trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/media-upload.js

    r7172 r7860  
    11// send html to the post editor 
    22function 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 
    65    tinyMCE = win.tinyMCE; 
    76    if ( typeof tinyMCE != 'undefined' && ( ed = tinyMCE.getInstanceById('content') ) && !ed.isHidden() ) { 
Note: See TracChangeset for help on using the changeset viewer.