Make WordPress Core

Ticket #7069: 7069.patch

File 7069.patch, 731 bytes (added by azaozz, 18 years ago)
  • wp-includes/js/autosave.js

     
    154154                doAutoSave = false;
    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() )
    161166                post_data["post_name"] = jQuery('#post_name').val();