Ticket #28940: 28940.patch
File 28940.patch, 1.2 KB (added by , 10 years ago) |
---|
-
src/wp-includes/js/tinymce/plugins/wordpress/plugin.js
102 102 '<img src="' + tinymce.Env.transparentSrc + '" data-wp-more="nextpage" class="wp-more-tag mce-wp-nextpage" ' + 103 103 'title="' + title + '" data-mce-resize="false" data-mce-placeholder="1" />' ); 104 104 } 105 106 // Pad empty <i> so the parent block is not considered "empty" when no other content 107 if ( e.content.indexOf( '</i>' ) !== -1 ) { 108 e.content = e.content.replace( /<i( [^>]+)?><\/i>/g, '<i$1> </i>' ); 109 } 105 110 } 106 111 }); 107 112 … … 383 388 // Keep empty paragraphs :( 384 389 e.content = e.content.replace( /<p>(?:<br ?\/?>|\u00a0|\uFEFF| )*<\/p>/g, '<p> </p>' ); 385 390 391 // Remove padding from empty <i> 392 if ( e.content.indexOf( '</i>' ) !== -1 ) { 393 e.content = e.content.replace( /<i( [^>]+)?>(?: |\u00a0)<\/i>/g, '<i$1></i>' ); 394 } 395 386 396 if ( editor.getParam( 'wpautop', true ) && typeof window.switchEditors !== 'undefined' ) { 387 397 e.content = window.switchEditors.pre_wpautop( e.content ); 388 398 }