* Feature #6705: htmlArea RTE: Display all classes of an element in the statusbar
authorStanislas Rolland <typo3@sjbr.ca>
Tue, 13 Nov 2007 21:13:51 +0000 (21:13 +0000)
committerStanislas Rolland <typo3@sjbr.ca>
Tue, 13 Nov 2007 21:13:51 +0000 (21:13 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2693 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/rtehtmlarea/ChangeLog
typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js

index b650e63..442c0b0 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-11-13  Stanislas Rolland  <stanislas.rolland@fructifor.ca>
+
+       * Feature #6705: htmlArea RTE: Display all classes of an element in the statusbar
+
 2007-11-13  Bernhard Kraft  <kraftb@kraftb.at>
 
        * Fixed bug #633: Menu doesn't expand if ".special" is set
@@ -9,6 +13,9 @@
 2007-11-12  Oliver Hader  <oh@inpublica.de>
 
        * (minor) Fixed bug #6696: Parts of the TYPO3 back-end do not work correctly with prototype.js 1.6.0
+
+2007-11-12  Stanislas Rolland  <stanislas.rolland@fructifor.ca>
+
        * Feature #6579 continued: Backtracking on the use of Prototype.js by htmlArea RTE.
 
 2007-11-11  Ingmar Schlecht  <ingmar@typo3.org>
index 4c4c665..cd23123 100644 (file)
@@ -1,3 +1,7 @@
+2007-11-13  Stanislas Rolland  <stanislas.rolland@fructifor.ca>
+
+* Feature #6705: htmlArea RTE: Display all classes of an element in the statusbar
+
 2007-11-12  Stanislas Rolland  <stanislas.rolland@fructifor.ca>
 
        * Feature #6579 continued: Backtracking on the use of Prototype.js by htmlArea RTE.
index 9056cf0..91d9c9c 100644 (file)
@@ -1648,8 +1648,10 @@ HTMLArea.prototype.updateToolbar = function(noStatus) {
                                if (el.className) {
                                        txtClass = "";
                                        cls = el.className.trim().split(" ");
-                                       for(j = cls.length; j > 0;) {
-                                               if(!HTMLArea.reservedClassNames.test(cls[--j])) { txtClass = "." + cls[j]; }
+                                       for (j = 0; j < cls.length; ++j) {
+                                               if (!HTMLArea.reservedClassNames.test(cls[j])) {
+                                                       txtClass += "." + cls[j];
+                                               }
                                        }
                                        txt += txtClass;
                                }