[BUGFIX] Set selected CSS class on image in RTE 92/46892/2
authorMarkus Klein <markus.klein@typo3.org>
Wed, 24 Feb 2016 20:09:55 +0000 (21:09 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 25 Feb 2016 13:44:46 +0000 (14:44 +0100)
Fix a copy&paste error in the javascript to set the selected class
on the image.

Resolves: #73657
Releases: master, 7.6
Change-Id: I8b7e3580185221f98d16c8fd48fe9f9fc21cfd52
Reviewed-on: https://review.typo3.org/46892
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/rtehtmlarea/Resources/Public/JavaScript/EditImage.js

index a38d972..967e89e 100644 (file)
@@ -106,8 +106,8 @@ define(['jquery', 'TYPO3/CMS/Rtehtmlarea/SelectImage'], function($, SelectImage)
                                selectedImageRef.style.cssFloat = value ? value : "";
                        }
 
-                       if (SelectImage.classesImage) {
-                               $element = $('t3js-iClass');
+                       if (EditImage.classesImage) {
+                               $element = $('#t3js-iClass');
                                if ($element) {
                                        var iClass;
                                        if ($element.find('option').length > 0) {
@@ -220,7 +220,7 @@ define(['jquery', 'TYPO3/CMS/Rtehtmlarea/SelectImage'], function($, SelectImage)
                        }
 
                        $element = $('#t3js-iClass');
-                       if ($element && SelectImage.classesImage) {
+                       if ($element && EditImage.classesImage) {
                                $element.val(selectedImageRef.className);
                        }