X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Fbutton%2Fplugin.js;h=765522944b9cdc39fa746910bb7d389d69f28a73;hp=80c48c1c7725254c7665fabef54af2b086eb52a0;hb=f0610347140239143439a511ee2bd48cb784f470;hpb=4e70ea24db840898be8cc21c950363a52a2a6aba diff --git a/_source/plugins/button/plugin.js b/_source/plugins/button/plugin.js index 80c48c1..7655229 100644 --- a/_source/plugins/button/plugin.js +++ b/_source/plugins/button/plugin.js @@ -89,7 +89,11 @@ CKEDITOR.ui.button.prototype = }, execute : function() { - this.button.click( editor ); + // IE 6 needs some time before execution (#7922) + if ( CKEDITOR.env.ie && CKEDITOR.env.version < 7 ) + CKEDITOR.tools.setTimeout( function(){ this.button.click( editor ); }, 0, this ); + else + this.button.click( editor ); } }; @@ -206,8 +210,9 @@ CKEDITOR.ui.button.prototype = output.push( ' onkeydown="return CKEDITOR.tools.callFunction(', keydownFn, ', event);"' + - ' onfocus="return CKEDITOR.tools.callFunction(', focusFn,', event);"' + - ' onclick="CKEDITOR.tools.callFunction(', clickFn, ', this); return false;">' + + ' onfocus="return CKEDITOR.tools.callFunction(', focusFn,', event);" ' + + ( CKEDITOR.env.ie ? 'onclick="return false;" onmouseup' : 'onclick' ) + // #188 + '="CKEDITOR.tools.callFunction(', clickFn, ', this); return false;">' + '