[BUGFIX] Use correct tokenizer for JavaScript in T3Editor 41/45341/3
authorDaniel Goerz <ervaude@gmail.com>
Thu, 17 Dec 2015 20:05:46 +0000 (21:05 +0100)
committerMarkus Klein <markus.klein@typo3.org>
Thu, 17 Dec 2015 22:28:15 +0000 (23:28 +0100)
Change-Id: Iaf83e3f2d0a6a4b0cf795e4a6ef2a127cf0421df
Resolves: #72303
Releases: master
Reviewed-on: https://review.typo3.org/45341
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/t3editor/Classes/Form/Element/T3editorElement.php
typo3/sysext/t3editor/Classes/T3editor.php [changed mode: 0644->0755]

index b2dcb0b..686aa54 100644 (file)
@@ -229,7 +229,7 @@ class T3editorElement extends AbstractFormElement
                 $parserfile = array($relPath . 'tokenizetyposcript.js', $relPath . 'parsetyposcript.js');
                 break;
             case self::MODE_JAVASCRIPT:
-                $parserfile = array('tokenizetyposcript.js', 'parsejavascript.js');
+                $parserfile = array('tokenizejavascript.js', 'parsejavascript.js');
                 break;
             case self::MODE_CSS:
                 $parserfile = array('parsecss.js');
old mode 100644 (file)
new mode 100755 (executable)
index e4d15f4..87ffb9f
@@ -229,7 +229,7 @@ class T3editor implements \TYPO3\CMS\Core\SingletonInterface
                 $parserfile = array($relPath . 'tokenizetyposcript.js', $relPath . 'parsetyposcript.js');
                 break;
             case self::MODE_JAVASCRIPT:
-                $parserfile = array('tokenizetyposcript.js', 'parsejavascript.js');
+                $parserfile = array('tokenizejavascript.js', 'parsejavascript.js');
                 break;
             case self::MODE_CSS:
                 $parserfile = array('parsecss.js');