Changeset 24849
- Timestamp:
- 07/29/2013 03:37:14 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/autosave.js
r24787 r24849 3 3 jQuery(document).ready( function($) { 4 4 5 if ( $('#wp-content-wrap').hasClass('tmce-active') && typeof tinymce != 'undefined' ) { 6 tinymce.onAddEditor.add( function( tinymce, editor ) { 7 if ( 'content' == editor.id ) { 8 editor.onLoad.add( function() { 9 editor.save(); 10 if ( typeof switchEditors != 'undefined' ) { 11 autosaveLast = wp.autosave.getCompareString({ 12 post_title : $('#title').val() || '', 13 content : switchEditors.pre_wpautop( $('#content').val() ) || '', 14 excerpt : $('#excerpt').val() || '', 15 }); 16 } else { 17 autosaveLast = wp.autosave.getCompareString(); 18 } 19 }); 20 } 5 if ( $('#wp-content-wrap').hasClass('tmce-active') && typeof switchEditors != 'undefined' ) { 6 autosaveLast = wp.autosave.getCompareString({ 7 post_title : $('#title').val() || '', 8 content : switchEditors.pre_wpautop( $('#content').val() ) || '', 9 excerpt : $('#excerpt').val() || '' 21 10 }); 22 11 } else {
Note: See TracChangeset
for help on using the changeset viewer.