Make WordPress Core

Changeset 42177 for trunk


Ignore:
Timestamp:
11/14/2017 05:23:55 AM (7 years ago)
Author:
peterwilsoncc
Message:

Editor: Cease adding paragraphs when switching editor tabs.

Fixes an error since [41783] in which extra paragraphs could be added to content when switching editor tabs.

Props pento, adamsilverstein, aduth.
Fixes #42531.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/editor.js

    r42175 r42177  
    10381038            text = text.replace( /\r\n|\r/g, '\n' );
    10391039
    1040             if ( text.indexOf( '\n' ) === -1 ) {
    1041                 return text;
    1042             }
    1043 
    10441040            // Remove line breaks from <object>.
    10451041            if ( text.indexOf( '<object' ) !== -1 ) {
Note: See TracChangeset for help on using the changeset viewer.