send_to_editor fix for FF. Props azaozz. fixes #6864 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7860 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
95e19665b0
commit
083d91eeb3
@ -1,8 +1,7 @@
|
||||
// send html to the post editor
|
||||
function send_to_editor(h) {
|
||||
var win = window.opener ? window.opener : window.dialogArguments;
|
||||
if ( !win )
|
||||
win = top;
|
||||
var win = window.dialogArguments || opener || parent || top;
|
||||
|
||||
tinyMCE = win.tinyMCE;
|
||||
if ( typeof tinyMCE != 'undefined' && ( ed = tinyMCE.getInstanceById('content') ) && !ed.isHidden() ) {
|
||||
tinyMCE.selectedInstance.getWin().focus();
|
||||
|
Loading…
Reference in New Issue
Block a user