Ticket #7783: 7783.patch

File 7783.patch, 1.8 KB (added by Garry Yao, 13 years ago)
  • _source/plugins/link/dialogs/anchor.js

     
    5050                                // Empty anchor
    5151                                if ( range.collapsed )
    5252                                {
    53                                         if ( CKEDITOR.env.ie && CKEDITOR.env.version < 9 )
    54                                                 attributes['class'] = 'cke_anchor_empty';
     53                                        if ( CKEDITOR.plugins.link.synAnchorSelector )
     54                                                attributes[ 'class' ] = 'cke_anchor_empty';
    5555
    56                                         if ( CKEDITOR.env.ie && CKEDITOR.env.version < 8 )
     56                                        if ( CKEDITOR.plugins.link.emptyAnchorFix )
    5757                                        {
    5858                                                attributes[ 'contenteditable' ] = 'false';
    5959                                                attributes[ 'data-cke-editable' ] = 1;
  • _source/plugins/link/plugin.js

     
    4747                                // Show the arrow cursor for the anchor image (FF at least).
    4848                                'cursor:auto;' +
    4949                        '}' +
    50                         ( ( CKEDITOR.env.ie && CKEDITOR.env.version > 8 ) ? 'a[name]:empty,' : '' ) +
    51                         'a.cke_anchor_empty' +
     50                        ( CKEDITOR.plugins.link.synAnchorSelector ? 'a.cke_anchor_empty' : 'a[name]:empty,' ) +
    5251                        '{' +
    5352                                // Make empty anchor selectable on IE.
    5453                                'display:inline-block;' +
     
    275274        // elements must be used for them.
    276275        fakeAnchor : CKEDITOR.env.opera || CKEDITOR.env.webkit,
    277276
    278         // For browsers that don't support CSS3 a[name]:empty().
    279         synAnchorSelector : CKEDITOR.env.ie && CKEDITOR.env.version < 9,
     277        // For browsers that don't support CSS3 a[name]:empty(), note IE9 is included because of #7783.
     278        synAnchorSelector : CKEDITOR.env.ie,
    280279
    281280        // For browsers that have editing issue with empty anchor.
    282281        emptyAnchorFix : CKEDITOR.env.ie && CKEDITOR.env.version < 8,
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy