QuickPress: add some JS to set wpActiveEditor when the title or content is focused, fixes #22021

git-svn-id: https://develop.svn.wordpress.org/trunk@22517 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2012-11-10 03:05:48 +00:00
parent f8002c7752
commit 8081489c94
1 changed files with 2 additions and 0 deletions

View File

@ -107,6 +107,8 @@ jQuery(document).ready( function($) {
prompt.addClass('screen-reader-text');
});
});
$('#dashboard_quick_press #title, #dashboard_quick_press #content').focus(function(){ wpActiveEditor = 'content'; });
};
quickPressLoad();