Ticket #3380: 3380_2.patch

File 3380_2.patch, 1.6 KB (added by Garry Yao, 15 years ago)
  • _source/plugins/elementspath/plugin.js

     
    9292                                                                ' href="javascript:void(\'', name, '\')"' +
    9393                                                                ' tabindex="-1"' +
    9494                                                                ' title="', editor.lang.elementsPath.eleTitle.replace( /%1/, name ), '"' +
     95                                                                ( ( CKEDITOR.env.gecko && CKEDITOR.env.version < 10900 ) ?
     96                                                                ' onfocus="event.preventBubble();"' : '' ) +
     97                                                                ' hidefocus="true" ' + 
    9598                                                                ' onkeydown="return CKEDITOR._.elementsPath.keydown(\'', this.name, '\',', index, ', event);"' +
    9699                                                                extra ,
    97100                                                                ' onclick="return CKEDITOR._.elementsPath.click(\'', this.name, '\',', index, ');">',
  • _source/plugins/button/plugin.js

     
    232232
    233233        focus : function( index, ev )
    234234        {
    235                 var instance = CKEDITOR.ui.button._.instances[ index ];
     235                var instance = CKEDITOR.ui.button._.instances[ index ],
     236                        retVal;
    236237
    237238                if ( instance.onfocus )
    238                         return ( instance.onfocus( instance, new CKEDITOR.dom.event( ev ) ) !== false );
     239                        retVal = ( instance.onfocus( instance, new CKEDITOR.dom.event( ev ) ) !== false );
     240
     241                // FF2: prevent focus event been bubbled up to editor container, which caused unexpected editor focus.
     242                if ( CKEDITOR.env.gecko && CKEDITOR.env.version < 10900 )
     243                        ev.preventBubble();
     244                return retVal;
    239245        }
    240246};
    241247
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy