Ticket #39912: 39912.diff
File 39912.diff, 814 bytes (added by , 8 years ago) |
---|
-
src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js
389 389 390 390 dom.setAttribs( imageNode, attrs ); 391 391 392 // Preserve empty alt attributes. 393 if ( ! dom.getAttrib( imageNode, 'alt' ) ) { 394 dom.$$( imageNode ).attr( 'alt', '' ); 395 } 396 392 397 linkAttrs = { 393 398 href: imageData.linkUrl, 394 399 rel: imageData.linkRel || null, … … 1026 1031 editor.on( 'beforeGetContent', function( event ) { 1027 1032 if ( event.format !== 'raw' ) { 1028 1033 editor.$( 'img[id="__wp-temp-img-id"]' ).attr( 'id', null ); 1029 } 1034 } 1030 1035 }); 1031 1036 1032 1037 editor.on( 'BeforeSetContent', function( event ) {