Index: typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js
===================================================================
--- typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js (révision 8899)
+++ typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js (copie de travail)
@@ -147,7 +147,9 @@
},
htmlareabutton: {
cls: 'button',
- overCls: 'buttonHover'
+ overCls: 'buttonHover',
+ // Erratic behaviour of click event in WebKit and IE browsers
+ clickEvent: (Ext.isWebKit || Ext.isIE) ? 'mousedown' : 'click'
},
htmlareacombo: {
cls: 'select',
@@ -285,13 +287,11 @@
*/
initEventListeners: function () {
this.addListener({
- click: {
- fn: this.onButtonClick
- },
hotkey: {
fn: this.onHotKey
}
});
+ this.setHandler(this.onButtonClick, this);
// Monitor toolbar updates in order to refresh the state of the button
this.mon(this.getToolbar(), 'update', this.onUpdateToolbar, this);
},