Fixed bug #15818: htmlArea RTE: Erratic behaviour of toolbar in some browsers
authorStanislas Rolland <typo3@sjbr.ca>
Tue, 28 Sep 2010 07:23:19 +0000 (07:23 +0000)
committerStanislas Rolland <typo3@sjbr.ca>
Tue, 28 Sep 2010 07:23:19 +0000 (07:23 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-4@8915 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/rtehtmlarea/ChangeLog
typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js

index 4312b5c..8658d61 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 
        * Fixed bug #15820: htmlArea RTE: Failure to install AllowClipboard Helper extension raises js error
        * Fixed bug #15730: htmlArea RTE: Problem editing a new list entry in list of items with inline markup
+       * Fixed bug #15818: htmlArea RTE: Erratic behaviour of toolbar in some browsers
 
 2010-09-26  Stanislas Rolland  <typo3@sjbr.ca>
 
index 515a4d1..ce20692 100644 (file)
@@ -2,6 +2,7 @@
 
        * Fixed bug #15820: htmlArea RTE: Failure to install AllowClipboard Helper extension raises js error
        * Fixed bug #15730: htmlArea RTE: Problem editing a new list entry in list of items with inline markup
+       * Fixed bug #15818: htmlArea RTE: Erratic behaviour of toolbar in some browsers
 
 2010-09-26  Stanislas Rolland  <typo3@sjbr.ca>
 
index fbad2b2..293d0b1 100644 (file)
@@ -147,7 +147,9 @@ HTMLArea.Config = function (editorId) {
                },
                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 @@ Ext.ux.HTMLAreaButton = Ext.extend(Ext.Button, {
         */
        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);
        },