Make WordPress Core

Changeset 8037


Ignore:
Timestamp:
06/03/2008 08:15:39 AM (17 years ago)
Author:
ryan
Message:

Enable autosave for fullscreen mode. Props azaozz. fixes #7069

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/autosave.js

    r7913 r8037  
    155155
    156156    /* Gotta do this up here so we can check the length when tinyMCE is in use */
    157     if ( rich ) { tinyMCE.triggerSave(); }
    158 
     157    if ( rich ) {       
     158        var ed = tinyMCE.activeEditor;
     159        if ( 'mce_fullscreen' == ed.id )
     160            tinyMCE.get('content').setContent(ed.getContent({format : 'raw'}), {format : 'raw'});
     161        tinyMCE.get('content').save();
     162    }
     163   
    159164    post_data["content"] = jQuery("#content").val();
    160165    if ( jQuery('#post_name').val() )
Note: See TracChangeset for help on using the changeset viewer.