Enable autosave for fullscreen mode. Props azaozz. fixes #7069
git-svn-id: http://svn.automattic.com/wordpress/trunk@8037 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8ef3a7f4d2
commit
dbeefeb210
|
@ -154,8 +154,13 @@ var autosave = function() {
|
||||||
doAutoSave = false;
|
doAutoSave = false;
|
||||||
|
|
||||||
/* Gotta do this up here so we can check the length when tinyMCE is in use */
|
/* 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();
|
post_data["content"] = jQuery("#content").val();
|
||||||
if ( jQuery('#post_name').val() )
|
if ( jQuery('#post_name').val() )
|
||||||
post_data["post_name"] = jQuery('#post_name').val();
|
post_data["post_name"] = jQuery('#post_name').val();
|
||||||
|
|
Loading…
Reference in New Issue