Ticket #29171: 29171.2.patch
| File 29171.2.patch, 1.5 KB (added by , 9 years ago) |
|---|
-
src/wp-includes/class-wp-editor.php
828 828 $settings['wpautop'] = false; 829 829 $settings['indent'] = true; 830 830 $settings['elementpath'] = false; 831 $settings['wp_pad_empty_elements'] = true; 831 832 832 833 if ( is_rtl() ) { 833 834 $settings['directionality'] = 'rtl'; -
src/wp-includes/js/tinymce/plugins/wordpress/plugin.js
131 131 '/>'; 132 132 } ); 133 133 } 134 135 // Pad empty <span> and <a> that have attributes so they are not removed on cleanup. 136 if ( editor.settings.wp_pad_empty_elements && event.format !== 'raw' ) { 137 event.content = event.content.replace( /(<(a|span) [^>]+>)<\/\2>/gi, function( match, tag, tagName ) { 138 return tag.concat( '<wbr data-wp-empty-element-padding="1" />', '</', tagName, '>' ); 139 }); 140 } 134 141 } 135 142 }); 136 143 … … 171 178 return string || image; 172 179 }); 173 180 } 181 182 // Remove the padding of empty elements. 183 if ( editor.settings.wp_pad_empty_elements && event.format !== 'raw' ) { 184 event.content = event.content.replace( /<wbr data-wp-empty-element-padding="1" \/>/g, '' ); 185 } 174 186 }); 175 187 176 188 // Display the tag name instead of img in element path
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)