Make WordPress Core

Ticket #4257: 4257.diff

File 4257.diff, 618 bytes (added by johnbillion, 16 years ago)
  • wp-includes/general-template.php

     
    908908        edCanvas = document.getElementById('<?php echo $id; ?>');
    909909        <?php if ( $prev_id && user_can_richedit() ) : ?>
    910910        // This code is meant to allow tabbing from Title to Post (TinyMCE).
    911         if ( tinyMCE.isMSIE )
     911        if ( typeof tinyMCE != "undefined" && tinyMCE.isMSIE )
    912912                document.getElementById('<?php echo $prev_id; ?>').onkeydown = function (e)
    913913                        {
    914914                                e = e ? e : window.event;