Remove debug remnants, see #28595

git-svn-id: https://develop.svn.wordpress.org/trunk@29004 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2014-07-05 00:24:05 +00:00
parent 4b9c7b3e1d
commit d12c520c5e

View File

@ -148,10 +148,6 @@ tinymce.PluginManager.add( 'wpview', function( editor ) {
function emptyViews( content ) {
return content.replace(/<div[^>]+data-wpview-text=\"([^"]+)"[^>]*>[\s\S]+?wpview-selection-after[^>]+>(?:&nbsp;|\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 ) {