* Fixed bug #7857: htmlArea RTE: hidePStyleItems does not work anymore
authorStanislas Rolland <typo3@sjbr.ca>
Sat, 15 Mar 2008 15:14:57 +0000 (15:14 +0000)
committerStanislas Rolland <typo3@sjbr.ca>
Sat, 15 Mar 2008 15:14:57 +0000 (15:14 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3425 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/rtehtmlarea/ChangeLog
typo3/sysext/rtehtmlarea/extensions/BlockElements/class.tx_rtehtmlarea_blockelements.php

index b7d144d..ed72147 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-03-15  Stanislas Rolland  <typo3@sjbr.ca>
+
+       * Fixed bug #7857: htmlArea RTE: hidePStyleItems does not work anymore
+
 2008-03-14  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Fixed bug #7862: htmlArea RTE: incorrect nesting of ol/ul inside definition lists
index 6346c66..dc454b2 100644 (file)
@@ -1,3 +1,7 @@
+2008-03-15  Stanislas Rolland  <typo3@sjbr.ca>
+
+       * Fixed bug #7857: htmlArea RTE: hidePStyleItems does not work anymore
+
 2008-03-14  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Fixed bug #7862: htmlArea RTE: incorrect nesting of ol/ul inside definition lists
index d631fe7..d004497 100644 (file)
@@ -107,22 +107,22 @@ class tx_rtehtmlarea_blockelements extends tx_rtehtmlareaapi {
                        if (is_array($this->thisConfig['buttons.']) && is_array($this->thisConfig['buttons.']['formatblock.'])) {
                                        // Removing elements
                                if ($this->thisConfig['buttons.']['formatblock.']['removeItems']) {
-                                       $hideItems =  t3lib_div::trimExplode(',', $this->htmlAreaRTE->cleanList($this->thisConfig['buttons.']['formatblock.']['removeItems']), 1);
+                                       $hideItems =  t3lib_div::trimExplode(',', $this->htmlAreaRTE->cleanList(strtolower($this->thisConfig['buttons.']['formatblock.']['removeItems'])), 1);
                                }
                                        // Restriction clause
                                if ($this->thisConfig['buttons.']['formatblock.']['restrictToItems']) {
-                                       $restrictTo =  t3lib_div::trimExplode(',', $this->htmlAreaRTE->cleanList('none,'.$this->thisConfig['buttons.']['formatblock.']['restrictTo']), 1);
+                                       $restrictTo =  t3lib_div::trimExplode(',', $this->htmlAreaRTE->cleanList('none,'.strtolower($this->thisConfig['buttons.']['formatblock.']['restrictTo'])), 1);
                                }
                                        // Elements order
                                if ($this->thisConfig['buttons.']['formatblock.']['orderItems']) {
-                                       $blockElementsOrder = 'none,'.$this->thisConfig['buttons.']['formatblock.']['orderItems'];
+                                       $blockElementsOrder = 'none,'.strtolower($this->thisConfig['buttons.']['formatblock.']['orderItems']);
                                }
                                $prefixLabelWithTag = ($this->thisConfig['buttons.']['formatblock.']['prefixLabelWithTag']) ? true : $prefixLabelWithTag;
                                $postfixLabelWithTag = ($this->thisConfig['buttons.']['formatblock.']['postfixLabelWithTag']) ? true : $postfixLabelWithTag;
                        }
                                // Processing old style configuration for hiding paragraphs
                        if ($this->thisConfig['hidePStyleItems']) {
-                               $hideItems = array_merge($hideItems, t3lib_div::trimExplode(',', $this->htmlAreaRTE->cleanList($this->thisConfig['hidePStyleItems']), 1));
+                               $hideItems = array_merge($hideItems, t3lib_div::trimExplode(',', $this->htmlAreaRTE->cleanList(strtolower($this->thisConfig['hidePStyleItems'])), 1));
                        }
                                // Applying User TSConfig restriction
                        $blockElementsOrder = array_diff(t3lib_div::trimExplode(',', $this->htmlAreaRTE->cleanList($blockElementsOrder), 1), $hideItems);