Fix tabbing from the title to the editor on the Edit Post screen, see #21173
git-svn-id: http://core.svn.wordpress.org/trunk@21586 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7515511dd9
commit
82d27641a5
|
@ -97,7 +97,7 @@ jQuery(document).ready( function($) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// This code is meant to allow tabbing from Title to Post content.
|
// This code is meant to allow tabbing from Title to Post content.
|
||||||
$('#title').bind('keydown.editor-focus', function(e) {
|
$('#title').on('keydown.editor-focus', function(e) {
|
||||||
var ed;
|
var ed;
|
||||||
|
|
||||||
if ( e.which != 9 )
|
if ( e.which != 9 )
|
||||||
|
@ -107,10 +107,13 @@ jQuery(document).ready( function($) {
|
||||||
if ( typeof(tinymce) != 'undefined' )
|
if ( typeof(tinymce) != 'undefined' )
|
||||||
ed = tinymce.get('content');
|
ed = tinymce.get('content');
|
||||||
|
|
||||||
if ( ed && !ed.isHidden() )
|
if ( ed && !ed.isHidden() ) {
|
||||||
|
$(this).one('keyup', function(e){
|
||||||
$('#content_tbl td.mceToolbar > a').focus();
|
$('#content_tbl td.mceToolbar > a').focus();
|
||||||
else
|
});
|
||||||
|
} else {
|
||||||
$('#content').focus();
|
$('#content').focus();
|
||||||
|
}
|
||||||
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue