X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Ffakeobjects%2Fplugin.js;h=f81bdb6e0056df38a2c1bee65140a9d5c2471d16;hb=refs%2Ftags%2Fv3.6.6;hp=d4ebce58c109a90d425da1ad40006c9166ebeeb1;hpb=f0610347140239143439a511ee2bd48cb784f470;p=ckeditor.git diff --git a/_source/plugins/fakeobjects/plugin.js b/_source/plugins/fakeobjects/plugin.js index d4ebce5..f81bdb6 100644 --- a/_source/plugins/fakeobjects/plugin.js +++ b/_source/plugins/fakeobjects/plugin.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -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;