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:
parent
93dd8e28be
commit
14ed6963a2
|
@ -331,7 +331,7 @@ tinymce.PluginManager.add( 'wpeditimage', function( editor ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function hasTextContent( node ) {
|
function hasTextContent( node ) {
|
||||||
return node && !! ( node.textContent || node.innerText );
|
return node && !! ( node.textContent || node.innerText ).replace( /\ufeff/g, '' );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Verify HTML in captions
|
// Verify HTML in captions
|
||||||
|
|
Loading…
Reference in New Issue