From 8081489c949ab6f514cd8f1fdf049c62b1e4d95d Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Sat, 10 Nov 2012 03:05:48 +0000 Subject: [PATCH] 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 --- wp-admin/js/dashboard.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-admin/js/dashboard.js b/wp-admin/js/dashboard.js index 6c80c7e147..f807cc931b 100644 --- a/wp-admin/js/dashboard.js +++ b/wp-admin/js/dashboard.js @@ -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();