Changeset 39299
- Timestamp:
- 11/18/2016 08:37:50 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/tinymce/plugins/wpview/plugin.js
r39282 r39299 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 } );
Note: See TracChangeset
for help on using the changeset viewer.