Ticket #31255: 31255.patch
| File 31255.patch, 634 bytes (added by , 11 years ago) |
|---|
-
src/wp-includes/js/tinymce/plugins/wordpress/plugin.js
395 395 // Remove spaces from empty paragraphs. 396 396 editor.on( 'BeforeSetContent', function( event ) { 397 397 if ( event.content ) { 398 event.content = event.content.replace( /<p>(?: |\u00a0|\uFEFF| ) +<\/p>/gi, '<p></p>' );398 event.content = event.content.replace( /<p>(?: |\u00a0|\uFEFF| )*<\/p>/gi, '<p><br /></p>' ); 399 399 } 400 400 }); 401 401