Media in QuickPress: Ensure wpActiveEditor is set when the "Add Media" button is clicked. fixes #22021, see #21390.

git-svn-id: https://develop.svn.wordpress.org/trunk@22542 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith 2012-11-11 01:40:47 +00:00
parent 57b09463e6
commit e672eb2166
1 changed files with 3 additions and 1 deletions

View File

@ -108,7 +108,9 @@ jQuery(document).ready( function($) {
});
});
$('#dashboard_quick_press #title, #dashboard_quick_press #content').focus(function(){ wpActiveEditor = 'content'; });
$('#quick-press').on( 'click focusin', function() {
wpActiveEditor = 'content';
});
};
quickPressLoad();