Make WordPress Core

Ticket #39570: 39570.patch

File 39570.patch, 771 bytes (added by azaozz, 9 years ago)
  • src/wp-includes/js/tinymce/plugins/wordpress/plugin.js

     
    540540
    541541                        editor.on( 'PastePostProcess', function( event ) {
    542542                                // Remove empty paragraphs
    543                                 each( dom.select( 'p', event.node ), function( node ) {
     543                                editor.$( 'p', event.node ).each( function( i, node ) {
    544544                                        if ( dom.isEmpty( node ) ) {
    545545                                                dom.remove( node );
    546546                                        }
    547547                                });
     548
     549                                if ( tinymce.isIE ) {
     550                                        editor.$( 'a', event.node ).find( 'font, u' ).each( function( i, node ) {
     551                                                dom.remove( node, true );
     552                                        });
     553                                }
    548554                        });
    549555                }
    550556