From d12c520c5e82afc215ab47fef93b232d9e8835cd Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Sat, 5 Jul 2014 00:24:05 +0000 Subject: [PATCH] Remove debug remnants, see #28595 git-svn-id: https://develop.svn.wordpress.org/trunk@29004 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/tinymce/plugins/wpview/plugin.js | 4 ---- 1 file changed, 4 deletions(-) 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 ) {