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:
@@ -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
Binary file not shown.
Reference in New Issue
Block a user