WordPress.org

Make WordPress Core

Changeset 6601


Ignore:
Timestamp:
01/12/08 01:55:51 (8 years ago)
Author:
matt
Message:

Don't try fancy tab focus if the WYSIWYG isn't active. Hat tip: skeltoac.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r6567 r6601  
    987987        if ( tinyMCE.isMSIE ) { 
    988988            document.getElementById('<?php echo $prev_id; ?>').onkeydown = function (e) { 
     989                if ( tinyMCE.idCounter == 0 ) 
     990                    return true; 
    989991                e = e ? e : window.event; 
    990992                if (e.keyCode == 9 && !e.shiftKey && !e.controlKey && !e.altKey) { 
     
    10011003        } else { 
    10021004            document.getElementById('<?php echo $prev_id; ?>').onkeypress = function (e) { 
     1005                if ( tinyMCE.idCounter == 0 ) 
     1006                    return true; 
    10031007                e = e ? e : window.event; 
    10041008                if (e.keyCode == 9 && !e.shiftKey && !e.controlKey && !e.altKey) { 
Note: See TracChangeset for help on using the changeset viewer.