diff --git a/src/wp-includes/js/tinymce/plugins/wpview/plugin.js b/src/wp-includes/js/tinymce/plugins/wpview/plugin.js index 40e86b5634..d39faf5a69 100644 --- a/src/wp-includes/js/tinymce/plugins/wpview/plugin.js +++ b/src/wp-includes/js/tinymce/plugins/wpview/plugin.js @@ -148,10 +148,6 @@ tinymce.PluginManager.add( 'wpview', function( editor ) { function emptyViews( content ) { return content.replace(/]+data-wpview-text=\"([^"]+)"[^>]*>[\s\S]+?wpview-selection-after[^>]+>(?: |\u00a0)*<\/p><\/div>/g, '$1' ); } - - window.emptyViews = function() { - return emptyViews( editor.getContent({format : 'raw'}) ); - }; // Prevent adding undo levels on changes inside a view wrapper editor.on( 'BeforeAddUndo', function( event ) {