Ticket #29171: 29171.patch
| File 29171.patch, 1.2 KB (added by , 12 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 <span> so the parent block is not considered "empty" when no other content 107 if ( e.content.indexOf( '</span>' ) !== -1 ) { 108 e.content = e.content.replace( /<span( [^>]+)?><\/span>/g, '<span$1> </span>' ); 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 <span> 392 if ( e.content.indexOf( '</span>' ) !== -1 ) { 393 e.content = e.content.replace( /<span( [^>]+)?>(?: |\u00a0)<\/span>/g, '<span$1></span>' ); 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 }
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)