Fixed bug #12566: htmlArea RTE: Selecting element from status bar does not work in...
authorStanislas Rolland <typo3@sjbr.ca>
Wed, 11 Nov 2009 21:25:39 +0000 (21:25 +0000)
committerStanislas Rolland <typo3@sjbr.ca>
Wed, 11 Nov 2009 21:25:39 +0000 (21:25 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6402 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/rtehtmlarea/ChangeLog
typo3/sysext/rtehtmlarea/htmlarea/plugins/StatusBar/status-bar.js

index b49b472..d9af8c0 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-11-11  Stanislas Rolland  <typo3@sjbr.ca>
+
+       * Fixed bug #12566: htmlArea RTE: Selecting element from status bar does not work in Safari
+
 2009-11-11  Francois Suter  <francois@typo3.org>
 
        * Cleanup #12552: Scheduler: Code cleanup: Corrected inconsistent use of full stops in language labels
index be2db39..f6ee7bb 100644 (file)
@@ -1,3 +1,7 @@
+2009-11-11  Stanislas Rolland  <typo3@sjbr.ca>
+
+       * Fixed bug #12566: htmlArea RTE: Selecting element from status bar does not work in Safari
+
 2009-11-10  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Fixed bug #12115: htmlArea RTE "Create link" button doesn't become clickable when using keyboard to select text in Safari/Chrome
index 195a859..2f3e467 100644 (file)
@@ -178,10 +178,9 @@ StatusBar = HTMLArea.Plugin.extend({
                                element.href = "#";
                                element.ancestor = ancestor;
                                element.editor = this.editor;
+                               HTMLArea._addEvent(element, (HTMLArea.is_ie ? "click" : "mousedown"), this.statusBarHandlerFunctRef);
                                if (!HTMLArea.is_opera) {
-                                       HTMLArea._addEvents(element, ["click", "contextmenu"], this.statusBarHandlerFunctRef);
-                               } else {
-                                       HTMLArea._addEvents(element, ["mousedown", "click"], this.statusBarHandlerFunctRef);
+                                       HTMLArea._addEvent(element, "contextmenu", this.statusBarHandlerFunctRef);
                                }
                                element.title = ancestor.style.cssText;
                                text = ancestor.nodeName.toLowerCase();