JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.6.4
[ckeditor.git] / _source / plugins / fakeobjects / plugin.js
index f55922a..5da98a1 100644 (file)
@@ -82,7 +82,6 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                var attributes =\r
                {\r
                        'class' : className,\r
-                       src : CKEDITOR.getUrl( 'images/spacer.gif' ),\r
                        'data-cke-realelement' : encodeURIComponent( realElement.getOuterHtml() ),\r
                        'data-cke-real-node-type' : realElement.type,\r
                        alt : label,\r
@@ -90,6 +89,10 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                        align : realElement.getAttribute( 'align' ) || ''\r
                };\r
 \r
+               // Do not set "src" on high-contrast so the alt text is displayed. (#8945)\r
+               if ( !CKEDITOR.env.hc )\r
+                       attributes.src = CKEDITOR.getUrl( 'images/spacer.gif' );\r
+\r
                if ( realElementType )\r
                        attributes[ 'data-cke-real-element-type' ] = realElementType;\r
 \r
@@ -123,7 +126,6 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                var attributes =\r
                {\r
                        'class' : className,\r
-                       src : CKEDITOR.getUrl( 'images/spacer.gif' ),\r
                        'data-cke-realelement' : encodeURIComponent( html ),\r
                        'data-cke-real-node-type' : realElement.type,\r
                        alt : label,\r
@@ -131,6 +133,10 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                        align : realElement.attributes.align || ''\r
                };\r
 \r
+               // Do not set "src" on high-contrast so the alt text is displayed. (#8945)\r
+               if ( !CKEDITOR.env.hc )\r
+                       attributes.src = CKEDITOR.getUrl( 'images/spacer.gif' );\r
+\r
                if ( realElementType )\r
                        attributes[ 'data-cke-real-element-type' ] = realElementType;\r
 \r