Ticket #20943: 20943.3.diff
File 20943.3.diff, 651 bytes (added by , 10 years ago) |
---|
-
src/wp-admin/js/editor.js
150 150 // Mark </p> if it has any attributes. 151 151 content = content.replace( /(<p [^>]+>.*?)<\/p>/g, '$1</p#>' ); 152 152 153 // Separate <div> containing <p>154 content = content.replace( /< div( [^>]*)?>\s*<p>/gi, '<div$1>\n\n' );153 // Separate <div> and table cell elements containing <p> 154 content = content.replace( /<(div|td|th)( [^>]*)?>\s*<p>/gi, '<$1$2>\n\n' ); 155 155 156 156 // Remove <p> and <br /> 157 157 content = content.replace( /\s*<p>/gi, '' );