[BUGFIX] t3editor not visible with TYPO3 on Windows
[Packages/TYPO3.CMS.git] / typo3 / sysext / t3editor / classes / class.tx_t3editor.php
index 46f4f0b..b9b03ce 100644 (file)
@@ -224,7 +224,11 @@ class tx_t3editor implements t3lib_Singleton {
                        )
                );
                $T3Editor_template = addslashes($T3Editor_template);
-               $T3Editor_template = str_replace(LF, "' + '", $T3Editor_template);
+               $T3Editor_template = str_replace(
+                       array(CR, LF),
+                       array('', "' + '"),
+                       $T3Editor_template
+               );
 
                return '\'' . $T3Editor_template . '\'';
        }