Make WordPress Core

Ticket #31297: 31297.diff

File 31297.diff, 538 bytes (added by Kau-Boy, 10 years ago)
  • src/wp-admin/js/editor.js

    diff --git src/wp-admin/js/editor.js src/wp-admin/js/editor.js
    index 4ff70df..c918298 100644
    window.switchEditors = { 
    193193                content = content.replace( /^\s+/, '' );
    194194                content = content.replace( /[\s\u00a0]+$/, '' );
    195195
     196                // Convert non-breaking spaces to HTML entities
     197                content = content.replace( /\u00a0/g, ' ' );
     198
    196199                // put back the line breaks in pre|script
    197200                if ( preserve_linebreaks ) {
    198201                        content = content.replace( /<wp-line-break>/g, '\n' );