Ticket #3380: 3380.patch
File 3380.patch, 1.9 KB (added by , 14 years ago) |
---|
-
_source/plugins/elementspath/plugin.js
92 92 ' href="javascript:void(\'', name, '\')"' + 93 93 ' tabindex="-1"' + 94 94 ' title="', editor.lang.elementsPath.eleTitle.replace( /%1/, name ), '"' + 95 ' onfocus="return CKEDITOR._.elementsPath.focus(', index, ', event );"' + 95 96 ' onkeydown="return CKEDITOR._.elementsPath.keydown(\'', this.name, '\',', index, ', event);"' + 96 97 extra , 97 98 ' onclick="return CKEDITOR._.elementsPath.click(\'', this.name, '\',', index, ');">', … … 175 176 // alert( ev.getKeystroke() ); 176 177 } 177 178 return true; 178 } 179 }, 180 focus : function( index, ev ) 181 { 182 // FF2: prevent focus event been bubbled up to editor container, which caused unexpected editor focus. 183 if ( CKEDITOR.env.gecko && CKEDITOR.env.version < 10900 ) 184 ev.preventBubble(); 185 } 179 186 }; -
_source/plugins/button/plugin.js
232 232 233 233 focus : function( index, ev ) 234 234 { 235 var instance = CKEDITOR.ui.button._.instances[ index ]; 235 var instance = CKEDITOR.ui.button._.instances[ index ], 236 retVal; 236 237 237 238 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; 239 245 } 240 246 }; 241 247