TinyMCE: fix cases where an additional empty link is created while updating an image with a link.

Props spocke.
Fixes #41259.
Built from https://develop.svn.wordpress.org/trunk@41319


git-svn-id: http://core.svn.wordpress.org/trunk@41150 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz
2017-08-26 16:34:46 +00:00
parent 98995d46d1
commit c56801657a
4 changed files with 3 additions and 3 deletions

View File

@@ -331,7 +331,7 @@ tinymce.PluginManager.add( 'wpeditimage', function( editor ) {
}
function hasTextContent( node ) {
return node && !! ( node.textContent || node.innerText );
return node && !! ( node.textContent || node.innerText ).replace( /\ufeff/g, '' );
}
// Verify HTML in captions

File diff suppressed because one or more lines are too long