Changeset 4209

Show
Ignore:
Timestamp:
09/22/06 19:35:37 (2 years ago)
Author:
ryan
Message:

Tabbed editor and autosave fixes. Props skeltoac and westi. #2829

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/js/autosave.js.php

    r4206 r4209  
    7373function autosave() { 
    7474    var form = $('post'); 
    75     var rich = tinyMCE.getInstanceById('content') ? true : false; 
     75    var rich = ((typeof tinyMCE != "undefined") && tinyMCE.getInstanceById('content')) ? true : false; 
    7676 
    7777    autosaveAjax = new sack(); 
  • trunk/wp-includes/js/tinymce/tiny_mce_gzip.php

    r3938 r4209  
    3636 
    3737    // Fall back on en.js 
    38     if ( empty($text) ) 
    39         $text = file_get_contents(realpath(sprintf($path, 'en'))); 
     38    $file = realpath(sprintf($path, 'en')); 
     39    if ( empty($text) && file_exists($file) ) 
     40        $text = file_get_contents($file); 
    4041 
    4142    // Send lang file through gettext