[BUGFIX][t3editor] (De-)Activating does not work in Chrome
authorSteffen Gebert <steffen.gebert@typo3.org>
Fri, 10 Feb 2012 21:48:00 +0000 (22:48 +0100)
committerSteffen Gebert <steffen.gebert@typo3.org>
Mon, 13 Feb 2012 17:54:31 +0000 (18:54 +0100)
The checkbox "Deactivate t3editor" does not work in modern Chrome
versions (e.g. 18). It works in Firefox, but didn't even work while
integrating the code into TYPO3 in Chrome.

Prototype recognizes it as Webkit and thus does not disable/enable it,
which was a pretty weird implementation, which is now removed.

Change-Id: I9660af7c754d25b1321c329e9d67f80ba6d71db8
Fixes: #33515
Releases: 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/9011
Reviewed-by: Steffen Gebert
Tested-by: Steffen Gebert
typo3/sysext/t3editor/res/jslib/t3editor.js

index 8dc1c2d..c5800d3 100644 (file)
@@ -276,9 +276,7 @@ T3editor.prototype = {
  * toggle between enhanced editor (t3editor) and simple textarea
  */
 T3editor.toggleEditor = function(checkbox, index) {
-       if (!Prototype.Browser.MobileSafari
-               && !Prototype.Browser.WebKit) {
-
+       if (!Prototype.Browser.MobileSafari) {
                if (index == undefined) {
                        if (top.TYPO3.BackendUserSettings) {
                                top.TYPO3.BackendUserSettings.ExtDirect.set(