Added feature #10206: htmlArea RTE: Allow to hide any button
authorStanislas Rolland <typo3@sjbr.ca>
Tue, 20 Jan 2009 22:35:15 +0000 (22:35 +0000)
committerStanislas Rolland <typo3@sjbr.ca>
Tue, 20 Jan 2009 22:35:15 +0000 (22:35 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4806 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/rtehtmlarea/ChangeLog
typo3/sysext/rtehtmlarea/class.tx_rtehtmlarea_base.php
typo3/sysext/rtehtmlarea/doc/manual.sxw

index d7bb8ff..e43cacf 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-01-20  Stanislas Rolland  <typo3@sjbr.ca>
+
+       * Added feature #10206: htmlArea RTE: Allow to hide any button
+
 2009-01-20  Steffen Kamper  <info@sk-typo3.de>
 
        * Fixed bug #9774: Incorrect validation of allowed classes in RTE transformation
index e69bbc2..3004efb 100644 (file)
@@ -1,3 +1,7 @@
+2009-01-20  Stanislas Rolland  <typo3@sjbr.ca>
+
+       * Added feature #10206: htmlArea RTE: Allow to hide any button
+
 2009-01-19  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Added feature #10181: htmlArea RTE: Move status bar to plugin
index eeb52fa..632b722 100644 (file)
@@ -70,14 +70,6 @@ class tx_rtehtmlarea_base extends t3lib_rteapi {
                'showhelp',             // Has no content yet
                );
 
-               // Always show these toolbar buttons (TYPO3 button name)
-       var $conf_toolbar_show = array (
-               'undo',
-               'redo',
-               //'showhelp',
-               'about',
-               );
-
                // The order of the toolbar: the name is the TYPO3-button name
        var $defaultToolbarOrder;
 
@@ -673,13 +665,6 @@ class tx_rtehtmlarea_base extends t3lib_rteapi {
                                $show = $plugin->applyToolbarConstraints($show);
                        }
                }
-                       // Adding the always show buttons
-               $show = array_unique(array_merge($show, $this->conf_toolbar_show));
-               $toolbarOrder = array_unique(array_merge($toolbarOrder, $this->conf_toolbar_show));
-               foreach ($this->conf_toolbar_show as $buttonId) {
-                       if (!in_array($buttonId, $this->toolbarOrderArray)) $this->toolbarOrderArray[] = $buttonId;
-               }
-
                        // Getting rid of the buttons for which we have no position
                $show = array_intersect($show, $toolbarOrder);
                $this->toolbar = $show;
index 5d335f4..09a67ab 100644 (file)
Binary files a/typo3/sysext/rtehtmlarea/doc/manual.sxw and b/typo3/sysext/rtehtmlarea/doc/manual.sxw differ