diff --git a/src/wp-includes/js/tinymce/plugins/wpview/plugin.js b/src/wp-includes/js/tinymce/plugins/wpview/plugin.js index 3202178612..e131474831 100644 --- a/src/wp-includes/js/tinymce/plugins/wpview/plugin.js +++ b/src/wp-includes/js/tinymce/plugins/wpview/plugin.js @@ -93,10 +93,10 @@ // Replace any new markers nodes with views. editor.on( 'setcontent', function( event ) { - if ( event.load && ! event.initial ) { - // Make sure that the editor is focussed. - // May refresh the content internally which resets the iframes. - editor.focus(); + if ( event.load && ! event.initial && editor.quirks.refreshContentEditable ) { + // Make sure there is a selection in Gecko browsers. + // Or it will refresh the content internally which resets the iframes. + editor.quirks.refreshContentEditable(); } wp.mce.views.render();