TinyMCE: preserve empty image alt attributes.
Props afercia. Fixes #39912 for trunk. git-svn-id: https://develop.svn.wordpress.org/trunk@40110 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ddc4850a04
commit
e5ce2174fc
|
@ -382,13 +382,15 @@ tinymce.PluginManager.add( 'wpeditimage', function( editor ) {
|
|||
src: imageData.url,
|
||||
width: width || null,
|
||||
height: height || null,
|
||||
alt: imageData.alt,
|
||||
title: imageData.title || null,
|
||||
'class': classes.join( ' ' ) || null
|
||||
};
|
||||
|
||||
dom.setAttribs( imageNode, attrs );
|
||||
|
||||
// Preserve empty alt attributes.
|
||||
editor.$( imageNode ).attr( 'alt', imageData.alt || '' );
|
||||
|
||||
linkAttrs = {
|
||||
href: imageData.linkUrl,
|
||||
rel: imageData.linkRel || null,
|
||||
|
|
Loading…
Reference in New Issue