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:
parent
4b9c7b3e1d
commit
d12c520c5e
@ -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[^>]+>(?: |\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 ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user