X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Ffakeobjects%2Fplugin.js;h=5da98a1fd333d7b49764cfed380f33d4b1be5cc5;hp=f55922a7ea1eefdae1ca49ed619ac3101bee2e77;hb=6e682412d5cc0dfaedb376482e585bf2989c6863;hpb=2f22c0c38f17e75be5541089076885442aaa2377 diff --git a/_source/plugins/fakeobjects/plugin.js b/_source/plugins/fakeobjects/plugin.js index f55922a..5da98a1 100644 --- a/_source/plugins/fakeobjects/plugin.js +++ b/_source/plugins/fakeobjects/plugin.js @@ -82,7 +82,6 @@ For licensing, see LICENSE.html or http://ckeditor.com/license var attributes = { 'class' : className, - src : CKEDITOR.getUrl( 'images/spacer.gif' ), 'data-cke-realelement' : encodeURIComponent( realElement.getOuterHtml() ), 'data-cke-real-node-type' : realElement.type, alt : label, @@ -90,6 +89,10 @@ For licensing, see LICENSE.html or http://ckeditor.com/license align : realElement.getAttribute( 'align' ) || '' }; + // Do not set "src" on high-contrast so the alt text is displayed. (#8945) + if ( !CKEDITOR.env.hc ) + attributes.src = CKEDITOR.getUrl( 'images/spacer.gif' ); + if ( realElementType ) attributes[ 'data-cke-real-element-type' ] = realElementType; @@ -123,7 +126,6 @@ For licensing, see LICENSE.html or http://ckeditor.com/license var attributes = { 'class' : className, - src : CKEDITOR.getUrl( 'images/spacer.gif' ), 'data-cke-realelement' : encodeURIComponent( html ), 'data-cke-real-node-type' : realElement.type, alt : label, @@ -131,6 +133,10 @@ For licensing, see LICENSE.html or http://ckeditor.com/license align : realElement.attributes.align || '' }; + // Do not set "src" on high-contrast so the alt text is displayed. (#8945) + if ( !CKEDITOR.env.hc ) + attributes.src = CKEDITOR.getUrl( 'images/spacer.gif' ); + if ( realElementType ) attributes[ 'data-cke-real-element-type' ] = realElementType;