Ticket #38511: 38511.11.patch
File 38511.11.patch, 871 bytes (added by , 9 years ago) |
---|
-
src/wp-includes/js/tinymce/plugins/wpview/plugin.js
93 93 94 94 // Replace any new markers nodes with views. 95 95 editor.on( 'setcontent', function( event ) { 96 if ( event.load && ! event.initial ) {97 // Make sure th at the editor is focussed.98 // Mayrefresh the content internally which resets the iframes.99 editor. focus();96 if ( event.load && ! event.initial && editor.quirks.refreshContentEditable ) { 97 // Make sure there is a selection in Gecko browsers. 98 // Or it will refresh the content internally which resets the iframes. 99 editor.quirks.refreshContentEditable(); 100 100 } 101 101 102 102 wp.mce.views.render();