mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Enable autosave for fullscreen mode. Props azaozz. fixes #7069
git-svn-id: https://develop.svn.wordpress.org/trunk@8037 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
46181c78b6
commit
0c34dcfb37
@ -154,8 +154,13 @@ var autosave = function() {
|
||||
doAutoSave = false;
|
||||
|
||||
/* Gotta do this up here so we can check the length when tinyMCE is in use */
|
||||
if ( rich ) { tinyMCE.triggerSave(); }
|
||||
|
||||
if ( rich ) {
|
||||
var ed = tinyMCE.activeEditor;
|
||||
if ( 'mce_fullscreen' == ed.id )
|
||||
tinyMCE.get('content').setContent(ed.getContent({format : 'raw'}), {format : 'raw'});
|
||||
tinyMCE.get('content').save();
|
||||
}
|
||||
|
||||
post_data["content"] = jQuery("#content").val();
|
||||
if ( jQuery('#post_name').val() )
|
||||
post_data["post_name"] = jQuery('#post_name').val();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user