diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 8bef63b067..ad9913ab6e 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -986,6 +986,8 @@ function the_editor($content, $id = 'content', $prev_id = 'title') { // This code is meant to allow tabbing from Title to Post (TinyMCE). if ( tinyMCE.isMSIE ) { document.getElementById('').onkeydown = function (e) { + if ( tinyMCE.idCounter == 0 ) + return true; e = e ? e : window.event; if (e.keyCode == 9 && !e.shiftKey && !e.controlKey && !e.altKey) { var i = tinyMCE.getInstanceById(''); @@ -1000,6 +1002,8 @@ function the_editor($content, $id = 'content', $prev_id = 'title') { } } else { document.getElementById('').onkeypress = function (e) { + if ( tinyMCE.idCounter == 0 ) + return true; e = e ? e : window.event; if (e.keyCode == 9 && !e.shiftKey && !e.controlKey && !e.altKey) { var i = tinyMCE.getInstanceById('');