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

Props spocke.
Fixes #41259.

git-svn-id: https://develop.svn.wordpress.org/trunk@41319 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2017-08-26 16:34:00 +00:00
parent 93dd8e28be
commit 14ed6963a2
1 changed files with 1 additions and 1 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