Ticket #38511: 38511.10.patch
File 38511.10.patch, 797 bytes (added by , 8 years ago) |
---|
-
src/wp-includes/js/tinymce/plugins/wpview/plugin.js
92 92 } ); 93 93 94 94 // Replace any new markers nodes with views. 95 editor.on( 'setcontent', function() { 96 // Make sure that the editor is focussed. 97 // May refresh the content internally which resets the iframes. 98 editor.focus(); 95 editor.on( 'setcontent', function( event ) { 96 if ( event.load && ! event.initial ) { 97 // Make sure that the editor is focussed. 98 // May refresh the content internally which resets the iframes. 99 editor.focus(); 100 } 101 99 102 wp.mce.views.render(); 100 103 } ); 101 104