Ticket #8945: 8945_2.patch

File 8945_2.patch, 2.2 KB (added by Frederico Caldeira Knabben, 12 years ago)
  • _source/plugins/fakeobjects/plugin.js

     
    8282                var attributes =
    8383                {
    8484                        'class' : className,
    85                         src : CKEDITOR.getUrl( 'images/spacer.gif' ),
    8685                        'data-cke-realelement' : encodeURIComponent( realElement.getOuterHtml() ),
    8786                        'data-cke-real-node-type' : realElement.type,
    8887                        alt : label,
     
    9089                        align : realElement.getAttribute( 'align' ) || ''
    9190                };
    9291
     92                // Do not set "src" on high-contrast so the alt text is displayed. (#8945)
     93                if ( !CKEDITOR.env.hc )
     94                        attributes.src = CKEDITOR.getUrl( 'images/spacer.gif' );
     95
    9396                if ( realElementType )
    9497                        attributes[ 'data-cke-real-element-type' ] = realElementType;
    9598
     
    123126                var attributes =
    124127                {
    125128                        'class' : className,
    126                         src : CKEDITOR.getUrl( 'images/spacer.gif' ),
    127129                        'data-cke-realelement' : encodeURIComponent( html ),
    128130                        'data-cke-real-node-type' : realElement.type,
    129131                        alt : label,
     
    131133                        align : realElement.attributes.align || ''
    132134                };
    133135
     136                // Do not set "src" on high-contrast so the alt text is displayed. (#8945)
     137                if ( !CKEDITOR.env.hc )
     138                        attributes.src = CKEDITOR.getUrl( 'images/spacer.gif' );
     139
    134140                if ( realElementType )
    135141                        attributes[ 'data-cke-real-element-type' ] = realElementType;
    136142
  • _source/plugins/wysiwygarea/plugin.js

     
    11951195                        else if ( CKEDITOR.env.gecko )
    11961196                        {
    11971197                                editor.addCss( 'html { height: 100% !important; }' );
    1198                                 editor.addCss( 'img:-moz-broken { -moz-force-broken-image-icon : 1;     width : 24px; height : 24px; }' );
     1198                                editor.addCss( 'img:-moz-broken { -moz-force-broken-image-icon : 1;     min-width : 24px; min-height : 24px; }' );
    11991199                        }
    12001200                        // Remove the margin to avoid mouse confusion. (#8835)
    12011201                        else if ( CKEDITOR.env.ie && CKEDITOR.env.version < 8 && editor.config.contentsLangDirection == 'ltr' )
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy