Ticket #22155: 22155.diff

File 22155.diff, 1.7 KB (added by duck_, 7 months ago)
Line 
1Index: wp-includes/js/autosave.js
2===================================================================
3--- wp-includes/js/autosave.js  (revision 22308)
4+++ wp-includes/js/autosave.js  (working copy)
5@@ -284,7 +284,7 @@
6                        doAutoSave = false;
7                } else {
8                        if ( 'mce_fullscreen' == ed.id || 'wp_mce_fullscreen' == ed.id )
9-                               tinymce.get('content').setContent(ed.getContent({format : 'raw'}), {format : 'raw'});
10+                               tinymce.get('content').setContent(ed.getContent());
11                        tinymce.triggerSave();
12                }
13        }
14Index: wp-includes/js/mce-view.js
15===================================================================
16--- wp-includes/js/mce-view.js  (revision 22308)
17+++ wp-includes/js/mce-view.js  (working copy)
18@@ -544,7 +544,10 @@
19                                this.img['class'] = className;
20 
21                                this.$el.addClass('spinner');
22-                               this.model.fetch().done( _.bind( this.render, this ) );
23+                               if ( ! this.model.get('url') )
24+                                       this.model.fetch().done( _.bind( this.render, this ) );
25+                               else
26+                                       _.defer( _.bind( this.render, this ) );
27                        },
28 
29                        render: function() {
30@@ -717,4 +720,4 @@
31                        }
32                }
33        });
34-}(jQuery));
35\ No newline at end of file
36+}(jQuery));
37Index: wp-includes/js/tinymce/plugins/wpfullscreen/editor_plugin_src.js
38===================================================================
39--- wp-includes/js/tinymce/plugins/wpfullscreen/editor_plugin_src.js    (revision 22308)
40+++ wp-includes/js/tinymce/plugins/wpfullscreen/editor_plugin_src.js    (working copy)
41@@ -29,7 +29,7 @@
42                                ed.focus();
43                                edd = tinyMCE.get( ed.getParam('wp_fullscreen_editor_id') );
44 
45-                               edd.setContent( ed.getContent({format : 'raw'}), {format : 'raw'} );
46+                               edd.setContent( ed.getContent() );
47                        });
48 
49                        ed.addCommand('wpFullScreenInit', function() {