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

git-svn-id: http://core.svn.wordpress.org/trunk@22542 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Daryl Koopersmith 2012-11-11 01:40:47 +00:00
parent 82213846c3
commit 1e19ec5fb4
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();