TinyMCE: strip browser inserted `<u>` and <font>` tags from inside links when copying and pasting in IE and Edge.
Fixes #39570. Built from https://develop.svn.wordpress.org/trunk@39916 git-svn-id: http://core.svn.wordpress.org/trunk@39853 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1071dfb4ec
commit
66a39611f6
|
@ -543,11 +543,17 @@ tinymce.PluginManager.add( 'wordpress', function( editor ) {
|
||||||
|
|
||||||
editor.on( 'PastePostProcess', function( event ) {
|
editor.on( 'PastePostProcess', function( event ) {
|
||||||
// Remove empty paragraphs
|
// Remove empty paragraphs
|
||||||
each( dom.select( 'p', event.node ), function( node ) {
|
editor.$( 'p', event.node ).each( function( i, node ) {
|
||||||
if ( dom.isEmpty( node ) ) {
|
if ( dom.isEmpty( node ) ) {
|
||||||
dom.remove( node );
|
dom.remove( node );
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if ( tinymce.isIE ) {
|
||||||
|
editor.$( 'a', event.node ).find( 'font, u' ).each( function( i, node ) {
|
||||||
|
dom.remove( node, true );
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.8-alpha-39915';
|
$wp_version = '4.8-alpha-39916';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue