Changeset 31878
- Timestamp:
- 03/25/2015 01:17:04 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/tinymce/plugins/wordpress/plugin.js
r31727 r31878 395 395 // Remove spaces from empty paragraphs. 396 396 editor.on( 'BeforeSetContent', function( event ) { 397 var paragraph = tinymce.Env.webkit ? '<p><br /></p>' : '<p></p>'; 398 397 399 if ( event.content ) { 398 event.content = event.content.replace( /<p>(?: |\u00a0|\uFEFF| )+<\/p>/gi, '<p></p>');400 event.content = event.content.replace( /<p>(?: |\u00a0|\uFEFF|\s)+<\/p>/gi, paragraph ); 399 401 } 400 402 });
Note: See TracChangeset
for help on using the changeset viewer.