[BUGFIX] RTE in frontend with IE9: Use IE8 standards mode (TYPO3 4.5)
authorStanislas Rolland <typo3@sjbr.ca>
Thu, 8 Mar 2012 20:41:43 +0000 (15:41 -0500)
committerStanislas Rolland <typo3@sjbr.ca>
Mon, 12 Mar 2012 16:49:14 +0000 (17:49 +0100)
Problem: TYPO3 4.5 uses ExtJS 3.3 which does not fully support IE9.
Solution: When using RTE in FE, add meta tag instructing IE9 to use
IE8 standards mode.

Change-Id: I6f170a00e5e4f6a80449aed6f9f2a6737ed6a108
Resolves: #34100
Releases: 4.5
Reviewed-on: http://review.typo3.org/9506
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Steffen Ritter
Reviewed-by: Stanislas Rolland
Tested-by: Stanislas Rolland
typo3/sysext/rtehtmlarea/pi2/class.tx_rtehtmlarea_pi2.php

index d87d284..610d983 100644 (file)
@@ -2,7 +2,7 @@
 /***************************************************************
 *  Copyright notice
 *
-*  (c) 2005-2011 Stanislas Rolland <typo3(arobas)sjbr.ca>
+*  (c) 2005-2012 Stanislas Rolland <typo3(arobas)sjbr.ca>
 *  All rights reserved
 *
 *  This script is part of the TYPO3 project. The TYPO3 project is
@@ -210,6 +210,9 @@ class tx_rtehtmlarea_pi2 extends tx_rtehtmlarea_base {
                 * =======================================
                 */
                $pageRenderer = $this->getPageRenderer();
+                       // Add metatag for IE9 to use IE8 standards mode
+                       // ExtJS 3.3 does not support IE9 standards mode
+               $pageRenderer->addMetaTag('<meta http-equiv="X-UA-Compatible" content="IE=8" />');
                        // Preloading the pageStyle and including RTE skin stylesheets
                $this->addPageStyle();
                $this->addSkin();