Ticket #8527: 8527_2.patch

File 8527_2.patch, 1.7 KB (added by Garry Yao, 12 years ago)
  • _source/plugins/link/plugin.js

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    4848                                // Show the arrow cursor for the anchor image (FF at least).
    4949                                'cursor:auto;' +
    5050                        '}' +
    51                         ( CKEDITOR.env.ie ? (
     51                        ( CKEDITOR.plugins.link.emptyAnchorFix ? (
    5252                                'a.cke_anchor_empty' +
    5353                                '{' +
    5454                                        // Make empty anchor selectable on IE.
     55                                        'height:1.15em;' +
    5556                                        'display:inline-block;' +
     57                                        'vertical-align:text-bottom;' +
    5658                                '}'
    5759                                ) : '' ) +
    58                         'img.cke_anchor' +
    59                         '{' +
    60                                 basicCss +
    61                                 'width:16px;' +
    62                                 'min-height:15px;' +
    63                                 // The default line-height on IE.
    64                                 'height:1.15em;' +
    65                                 // Opera works better with "middle" (even if not perfect)
    66                                 'vertical-align:' + ( CKEDITOR.env.opera ? 'middle' : 'text-bottom' ) + ';' +
    67                         '}');
     60                        ( CKEDITOR.plugins.link.fakeAnchor? (
     61                                'img.cke_anchor' +
     62                                '{' +
     63                                        basicCss +
     64                                        'width:16px;' +
     65                                        'min-height:15px;' +
     66                                        // The default line-height on IE.
     67                                        'height:1.15em;' +
     68                                        // Opera works better with "middle" (even if not perfect)
     69                                        'vertical-align:' + ( CKEDITOR.env.opera ? 'middle' : 'text-bottom' ) + ';' +
     70                                '}'
     71                                ) : '' )
     72                        );
    6873
    6974                // Register selection change handler for the unlink button.
    7075                 editor.on( 'selectionChange', function( evt )
     
    290295        synAnchorSelector : CKEDITOR.env.ie,
    291296
    292297        // For browsers that have editing issue with empty anchor.
    293         emptyAnchorFix : CKEDITOR.env.ie && CKEDITOR.env.version < 8,
     298        emptyAnchorFix : CKEDITOR.env.ie,
    294299
    295300        tryRestoreFakeAnchor : function( editor, element )
    296301        {
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy