* Changed default font to for code textareas to "monospace"
authorMichael Stucki <michael.stucki@typo3.org>
Mon, 26 Dec 2005 21:16:59 +0000 (21:16 +0000)
committerMichael Stucki <michael.stucki@typo3.org>
Mon, 26 Dec 2005 21:16:59 +0000 (21:16 +0000)
* Changed the tab-in-textarea and the above fixed-font features to be changed by TCA. See Core API "defaultExtras" section for details.
* Changed module pointer of BE module titles (Web, File, Tools, etc.)

git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@935 709f56b5-9817-0410-a4d7-c38de5d9e867

14 files changed:
ChangeLog
t3lib/class.t3lib_fullsearch.php
t3lib/class.t3lib_matchcondition.php
t3lib/class.t3lib_tceforms.php
t3lib/stddb/tables.php
t3lib/stddb/tbl_be.php
typo3/file_edit.php
typo3/mod/tools/em/index.php
typo3/stylesheet.css
typo3/sysext/cms/tbl_cms.php
typo3/sysext/install/mod/class.tx_install.php
typo3/sysext/tstemplate_info/class.tx_tstemplateinfo.php
typo3/tab.js
typo3/wizard_tsconfig.php

index 12900d1..bf6efee 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-12-26  Michael Stucki  <michael@typo3.org>
+
+       * Changed default font to for code textareas to "monospace"
+       * Changed the tab-in-textarea and the above fixed-font features to be changed by TCA. See Core API "defaultExtras" section for details.
+       * Changed module pointer of BE module titles (Web, File, Tools, etc.)
+
 2005-12-25  Sebastian Kurfuerst  <sebastian@garbage-group.de>
 
        * Fixed error where deleted pages appear in the page tree when preview is activated. t3lib_pageselect->where_hid_del had to be changed.
index 604240b..d44dfd9 100755 (executable)
@@ -433,7 +433,7 @@ class t3lib_fullsearch {
                                        $rowArr[]=$this->csvValues($row);
                                }
                                if (count($rowArr))     {
-                                       $out.='<textarea name="whatever" rows="20" wrap="off"'.$GLOBALS["SOBE"]->doc->formWidthText($this->formW,"","off").'>'.t3lib_div::formatForTextarea(implode(chr(10),$rowArr)).'</textarea>';
+                                       $out.='<textarea name="whatever" rows="20" wrap="off"'.$GLOBALS["SOBE"]->doc->formWidthText($this->formW,"","off").' class="fixed-font">'.t3lib_div::formatForTextarea(implode(chr(10),$rowArr)).'</textarea>';
                                        if (!$this->noDownloadB)        {
                                                $out.='<BR><input type="submit" name="download_file" value="Click to download file" onClick="document.location=\''.$this->downloadScript.'\';">';               // document.forms[0].target=\'_blank\';
                                        }
@@ -468,7 +468,7 @@ class t3lib_fullsearch {
                                $xmlObj->renderFooter();
                                if ($GLOBALS['TYPO3_DB']->sql_num_rows($res))   {
                                        $xmlData=$xmlObj->getResult();
-                                       $out.='<textarea name="whatever" rows="20" wrap="off"'.$GLOBALS["SOBE"]->doc->formWidthText($this->formW,"","off").'>'.t3lib_div::formatForTextarea($xmlData).'</textarea>';
+                                       $out.='<textarea name="whatever" rows="20" wrap="off"'.$GLOBALS["SOBE"]->doc->formWidthText($this->formW,"","off").' class="fixed-font">'.t3lib_div::formatForTextarea($xmlData).'</textarea>';
                                        if (!$this->noDownloadB)        {
                                                $out.='<BR><input type="submit" name="download_file" value="Click to download file" onClick="document.location=\''.$this->downloadScript.'\';">';               // document.forms[0].target=\'_blank\';
                                        }
index 82a8a35..bfc32fe 100644 (file)
@@ -105,8 +105,7 @@ class t3lib_matchCondition {
                $string = trim($string);
                $string = substr($string,1,strlen($string)-2);
                $parts = explode('][',$string);
-               reset($parts);
-               while(list(,$val)=each($parts)) {
+               foreach ($parts as $val)        {
                        $pcs = explode('=',$val,2);
                        $switchKey = trim($pcs[0]);
                        switch($switchKey)      {
@@ -244,7 +243,9 @@ class t3lib_matchCondition {
                                                        $point = strcspn($test,'=<>');
                                                        $theVarName = substr($test,0,$point);
                                                        $nv = $this->getGP_ENV_TSFE(trim($theVarName));
-                                                       if ($this->testNumber(substr($test,$point) ,$nv)) {return true;}
+                                                       $testValue = substr($test,$point);
+
+                                                       if ($this->testNumber($testValue,$nv)) {return true;}
                                                }
                                        }
                                break;
@@ -256,7 +257,9 @@ class t3lib_matchCondition {
                                                        $point = strcspn($test,'=');
                                                        $theVarName = substr($test,0,$point);
                                                        $nv = $this->getGP_ENV_TSFE(trim($theVarName));
-                                                       if ($this->matchWild($nv,trim(substr($test,$point+1)))) {return true;}
+                                                       $testValue = substr($test,$point+1);
+
+                                                       if ($this->matchWild($nv,trim($testValue))) {return true;}
                                                }
                                        }
                                break;
@@ -327,31 +330,19 @@ class t3lib_matchCondition {
        }
 
        /**
-        * Matching two strings against each other, supporting a "*" wildcard in either end of the $needle
+        * Matching two strings against each other, supporting a "*" wildcard
         *
         * @param       string          The string in which to find $needle.
         * @param       string          The string to find in $haystack
-        * @return      boolean         Returns true if $needle matches or is found in (according to wildcards) in $haystack. Eg. if $haystack is "Netscape 6.5" and $needle is "Net*" or "Netscape*" then it returns true.
+        * @return      boolean         Returns true if $needle matches or is found in (according to wildcards) in $haystack. Eg. if $haystack is "Netscape 6.5" and $needle is "Net*" or "Net*ape" then it returns true.
         */
        function matchWild($haystack,$needle)   {
                if ($needle && $haystack)       {
-                       if (substr($needle,0,1)=='*')   {$mode.='before';}
-                       if (substr($needle,-1,1)=='*')  {$mode.='after';}
-                       switch($mode)   {
-                               case 'before':
-                                       $matchStr = substr($needle,1);
-                                       if (substr($haystack,-strlen($matchStr))==$matchStr) return true;
-                               break;
-                               case 'after':
-                                       if (strpos(' '.$haystack,substr($needle,0,-1))==1)      return true;
-                               break;
-                               case 'beforeafter':
-                                       if (strstr($haystack,substr($needle,1,-1)))     return true;
-                               break;
-                               default:
-                                       if ($needle==$haystack) return true;
-                               break;
-                       }
+                       $regex = '/^'.preg_quote($needle,'/').'$/';
+                       $regex = str_replace('\\*', '.*', $regex);      // 1st fix: Replace \* with .* because * is our wildcard
+                       $regex = str_replace('\\\\.*', '\\*', $regex);  // 2nd fix: Match needle if the * was escaped
+
+                       if (preg_match($regex, $haystack, $res)) return true;
                }
        }
 
index 49e435e..39e8eb2 100755 (executable)
@@ -1032,9 +1032,18 @@ class t3lib_TCEforms     {
                                } else {
                                        $wrap = ($config['wrap'] ? $config['wrap'] : 'virtual');
                                }
+
+                               $classes = array();
+                               if ($specConf['fixed-font'])    { $classes[] = 'fixed-font'; }
+                               if ($specConf['enable-tab'])    { $classes[] = 'enable-tab'; }
+
+                               if (count($classes))    {
+                                       $class = ' class="'.implode(' ',$classes).'"';
+                               } else $class='';
+
                                $iOnChange = implode('',$PA['fieldChangeFunc']);
                                $item.= '
-                                                       <textarea name="'.$PA['itemFormElName'].'"'.$this->formWidthText($cols,$wrap).' rows="'.$rows.'" wrap="'.$wrap.'" onchange="'.htmlspecialchars($iOnChange).'"'.$PA['onFocus'].'>'.
+                                                       <textarea name="'.$PA['itemFormElName'].'"'.$this->formWidthText($cols,$wrap).$class.' rows="'.$rows.'" wrap="'.$wrap.'" onchange="'.htmlspecialchars($iOnChange).'"'.$PA['onFocus'].'>'.
                                                        t3lib_div::formatForTextarea($PA['itemFormElValue']).
                                                        '</textarea>';
                                $item = $this->renderWizards(array($item,$altItem),$config['wizards'],$table,$row,$field,$PA,$PA['itemFormElName'],$specConf,$RTEwouldHaveBeenLoaded);
index b1018d7..f19e6b7 100755 (executable)
@@ -197,7 +197,8 @@ $TCA['pages'] = Array (
                                        )
                                ),
                                'softref' => 'TSconfig'
-                       )
+                       ),
+                       'defaultExtras' => 'fixed-font : enable-tab',
                ),
                'php_tree_stop' => Array (
                        'exclude' => 1,
index bced8c7..28b6059 100755 (executable)
@@ -369,7 +369,8 @@ $TCA['be_users'] = Array (
                                        )
                                ),
                                'softref' => 'TSconfig'
-                       )
+                       ),
+                       'defaultExtras' => 'fixed-font : enable-tab',
                ),
                'createdByAction' => Array('config'=>array('type'=>'passthrough'))
        ),
@@ -608,7 +609,8 @@ $TCA['be_groups'] = Array (
                                        )
                                ),
                                'softref' => 'TSconfig'
-                       )
+                       ),
+                       'defaultExtras' => 'fixed-font : enable-tab',
                ),
                'hide_in_lists' => Array (
                        'label' => 'Hide in lists:',
index 7109b90..e650772 100755 (executable)
@@ -172,7 +172,7 @@ class SC_file_edit {
                                // Edit textarea:
                        $code.='
                                <div id="c-edit">
-                                       <textarea rows="30" name="file[editfile][0][data]" wrap="off"'.$this->doc->formWidthText(48,'width:98%;height:80%','off').'>'.
+                                       <textarea rows="30" name="file[editfile][0][data]" wrap="off"'.$this->doc->formWidthText(48,'width:98%;height:80%','off').' class="fixed-font enable-tab">'.
                                        t3lib_div::formatForTextarea($fileContent).
                                        '</textarea>
                                        <input type="hidden" name="file[editfile][0][target]" value="'.$this->target.'" />
index a3772e2..11bbaa3 100755 (executable)
@@ -1333,7 +1333,7 @@ EXTENSION KEYS:
                                                        $outCode.= 'File: <b>'.substr($editFile,strlen($absPath)).'</b> ('.t3lib_div::formatSize(filesize($editFile)).')<br />';
                                                        $info.= 'MD5: <b>'.md5(str_replace(chr(13),'',$fileContent)).'</b> (File)<br />';
                                                        if($saveFlag)   $info.= 'MD5: <b>'.md5(str_replace(chr(13),'',$submittedContent['file'])).'</b> (Saved)<br />';
-                                                       $outCode.= '<textarea name="edit[file]" rows="'.$numberOfRows.'" wrap="off"'.$this->doc->formWidthText(48,'width:98%;height:70%','off').'>'.t3lib_div::formatForTextarea($fileContent).'</textarea>';
+                                                       $outCode.= '<textarea name="edit[file]" rows="'.$numberOfRows.'" wrap="off"'.$this->doc->formWidthText(48,'width:98%;height:70%','off').' class="fixed-font enable-tab">'.t3lib_div::formatForTextarea($fileContent).'</textarea>';
                                                        $outCode.= '<input type="hidden" name="edit[filename]" value="'.$editFile.'" />';
                                                        $outCode.= '<input type="hidden" name="CMD[editFile]" value="'.htmlspecialchars($editFile).'" />';
                                                        $outCode.= '<input type="hidden" name="CMD[showExt]" value="'.$extKey.'" />';
index b23b3b5..60e21e3 100755 (executable)
@@ -164,7 +164,7 @@ TABLE.typo3-CSM TR.typo3-CSM-itemRow TD { padding: 1px 5px 1px 5px; }
 TABLE.typo3-CSM TR.typo3-CSM-itemRow { height: 13px; cursor: pointer; }
 
 /* Top menu (alt_topmenu_dummy.php) */
-BODY#typo3-alt-topmenu-dummy-php {     background-image: url(gfx/alt_topmenu_back_dummy.gif); }
+BODY#typo3-alt-topmenu-dummy-php { background-image: url(gfx/alt_topmenu_back_dummy.gif); }
 BODY#typo3-alt-topmenu-dummy-php-iconmenu { background-image: url(gfx/alt_topmenu_back_full.gif); margin-top: 8px; margin-left: 6px; }
 TABLE#typo3-topMenu TR TD {white-space: nowrap; vertical-align: top; }
 TABLE#typo3-topMenu TR TD.c-logout, TABLE#typo3-topMenu TR TD.c-admin {padding-left: 20px;}
@@ -218,11 +218,11 @@ TABLE#typo3-about-modules TR.c-mainitem TD IMG { vertical-align: middle;  paddin
 /* Vertical Module Menu script, left frame (alt_menu.php): */
 BODY#typo3-alt-menu-php { margin: 2px 0px 0px 2px; }
 BODY#typo3-alt-menu-php A { text-decoration: none; }
-TABLE#typo3-vmenu TR.c-mainitem TD { background-color: #D9D9D8; padding: 1px 1px 1px 1px; border: #9BA1A8 1px solid; vertical-align: middle; width: 100px; }
+TABLE#typo3-vmenu TR.c-mainitem TD { background-color: #D9D9D8; padding: 1px 1px 1px 1px; border: #9BA1A8 1px solid; vertical-align: middle; width: 100px; cursor:pointer; }
 TABLE#typo3-vmenu TR.c-mainitem TD SPAN.c-label A { text-decoration : underline; }
 TABLE#typo3-vmenu TR.c-mainitem TD IMG { vertical-align: middle; margin-right: 2px;}
-TABLE#typo3-vmenu TR.c-mainitem TD SPAN.c-label { position: relative; top: 1px; cursor: default; }
-TABLE#typo3-vmenu TR.c-mainitem TD SPAN.c-iconCollapse { position:absolute; left:90px; cursor:pointer; }
+TABLE#typo3-vmenu TR.c-mainitem TD SPAN.c-label { position: relative; top: 1px; }
+TABLE#typo3-vmenu TR.c-mainitem TD SPAN.c-iconCollapse { position:absolute; left:90px; }
 TABLE#typo3-vmenu TR.c-mainitem-HL TD { background-color: #AAAAAA; padding: 1px 1px 1px 1px; border: #9BA1A8 1px solid; vertical-align: middle;}
 TABLE#typo3-vmenu TR.c-mainitem-HL TD SPAN.c-label A { text-decoration : underline; }
 TABLE#typo3-vmenu TR.c-mainitem-HL TD IMG { vertical-align: middle; margin-right: 2px;}
@@ -497,6 +497,8 @@ TABLE.warningbox TD { padding: 20px 20px 20px 20px; font-weight: bold; }
 DIV.diff-r {background-color: red; color:black; padding: 3 3 3 3;}
 DIV.diff-g {background-color: green; color:black; padding: 3 3 3 3;}
 IMG.absmiddle { vertical-align: middle; }
+TEXTAREA.fixed-font { font-family: monospace; font-size: 11px; }
+
 .smallCheckboxes { width:12px; height:12px; margin:0 0 0 0; }
 .uppercase { text-transform : uppercase; }
 .tableheader TD { font-weight: bold; padding-left: 2px; padding-right: 2px; }
index ee108e1..6c4c562 100755 (executable)
@@ -264,7 +264,8 @@ $TCA['fe_users'] = Array (
                                        )
                                ),
                                'softref' => 'TSconfig'
-                       )
+                       ),
+                       'defaultExtras' => 'fixed-font : enable-tab',
                )
        ),
        'types' => Array (
@@ -358,7 +359,8 @@ $TCA['fe_groups'] = Array (
                                        )
                                ),
                                'softref' => 'TSconfig'
-                       )
+                       ),
+                       'defaultExtras' => 'fixed-font : enable-tab',
                )
        ),
        'types' => Array (
@@ -688,6 +690,7 @@ $TCA['sys_template'] = Array (
                                'wrap' => 'OFF',
                                'softref' => 'TStemplate,email[subst],url[subst]'
                        ),
+                       'defaultExtras' => 'fixed-font : enable-tab',
                ),
                'resources' => Array (
                        'label' => 'Resources:',
@@ -801,7 +804,8 @@ $TCA['sys_template'] = Array (
                                ),
                                'wrap' => 'OFF',
                                'softref' => 'TStemplate,email[subst],url[subst]'
-                       )
+                       ),
+                       'defaultExtras' => 'fixed-font : enable-tab',
                ),
                'editorcfg' => Array (
                        'label' => 'Backend Editor Configuration:',
@@ -810,7 +814,8 @@ $TCA['sys_template'] = Array (
                                'rows' => 4,
                                'cols' => 48,
                                'wrap' => 'OFF'
-                       )
+                       ),
+                       'defaultExtras' => 'fixed-font : enable-tab',
                ),
                'description' => Array (
                        'label' => 'Description:',
@@ -880,7 +885,8 @@ $TCA['static_template'] = Array (
                                'cols' => '48',
                                'rows' => '10',
                                'wrap' => 'OFF'
-                       )
+                       ),
+                       'defaultExtras' => 'fixed-font : enable-tab',
                ),
                'include_static' => Array (
                        'label' => 'Include static:',
@@ -900,7 +906,8 @@ $TCA['static_template'] = Array (
                                'rows' => 10,
                                'cols' => 48,
                                'wrap' => 'OFF'
-                       )
+                       ),
+                       'defaultExtras' => 'fixed-font : enable-tab',
                ),
                'editorcfg' => Array (
                        'label' => 'Backend Editor Configuration:',
@@ -909,7 +916,8 @@ $TCA['static_template'] = Array (
                                'rows' => 4,
                                'cols' => 48,
                                'wrap' => 'OFF'
-                       )
+                       ),
+                       'defaultExtras' => 'fixed-font : enable-tab',
                ),
                'description' => Array (
                        'label' => 'Description:',
index 2f734e5..8d179a3 100755 (executable)
@@ -927,7 +927,7 @@ REMOTE_ADDR was '".t3lib_div::getIndpEnv("REMOTE_ADDR")."' (".t3lib_div::getIndp
                                <input type="hidden" name="TYPO3_INSTALL[FILE][name]" value="'.$this->INSTALL["typo3conf_files"].'">
                                '.($this->allowFileEditOutsite_typo3conf_dir?'<input type="hidden" name="TYPO3_INSTALL[FILE][EDIT_path]" value="'.$this->INSTALL["FILE"]["EDIT_path"].'">':'').'
                                <input type="hidden" name="TYPO3_INSTALL[FILE][prevMD5]" value="'.md5($fileContent).'">
-                               <textarea rows="30" name="TYPO3_INSTALL[FILE]['.md5($this->INSTALL["typo3conf_files"]).']" wrap="off"'.$this->formWidthText(48,"width:98%;height:80%","off").'>'.t3lib_div::formatForTextarea($fileContent).'</textarea><BR>
+                               <textarea rows="30" name="TYPO3_INSTALL[FILE]['.md5($this->INSTALL["typo3conf_files"]).']" wrap="off"'.$this->formWidthText(48,"width:98%;height:80%","off").' class="fixed-font enable-tab">'.t3lib_div::formatForTextarea($fileContent).'</textarea><BR>
                                <input type="checkbox" name="TYPO3_INSTALL[FILE][win_to_unix_br]" value="1"'.(TYPO3_OS=="WIN"?"":" checked").'> Convert Windows linebreaks (13-10) to Unix (10)<BR>
                                <input type="checkbox" name="TYPO3_INSTALL[FILE][backup]" value="1"'.(@is_file($backupFile) ? ' checked' : '').'> Make backup copy (rename to '.basename($backupFile).')<BR>
                                '.
@@ -989,7 +989,7 @@ REMOTE_ADDR was '".t3lib_div::getIndpEnv("REMOTE_ADDR")."' (".t3lib_div::getIndp
                $buf=$this->messageFunc_nl2br;
                $this->messageFunc_nl2br=0;
                $this->message($headCode,"DEBUG information",'Please copy/paste the information from this text field into an email or bug-report as "Debug System Information" whenever you wish to get support or report problems. This information helps others to check if your system has some obvious misconfiguration and you\'ll get your help faster!<BR>
-               <form action=""><textarea rows="10" '.$this->formWidthText(80,"","off").' wrap="OFF">'.t3lib_div::formatForTextarea(implode(chr(10),$debugInfo)).'</textarea></form>');
+               <form action=""><textarea rows="10" '.$this->formWidthText(80,"","off").' wrap="off" class="fixed-font">'.t3lib_div::formatForTextarea(implode(chr(10),$debugInfo)).'</textarea></form>');
                $this->messageFunc_nl2br=$buf;
 
                $getEnvArray = array();
@@ -3174,7 +3174,7 @@ From sub-directory:
                }
                if (count($out))        {
                        $col = t3lib_div::intInRange(count($out),2,10);
-                       $outputStr = '<textarea cols=40 rows='.$col.' wrap="off">'.htmlspecialchars(implode($out,chr(10))).'</textarea>';
+                       $outputStr = '<textarea cols=40 rows='.$col.' wrap="off" class="fixed-font">'.htmlspecialchars(implode($out,chr(10))).'</textarea>';
                        return '<form action="">'.$outputStr.'</form>';
                };
        }
index 16d7b95..cc2d7d0 100644 (file)
@@ -341,7 +341,7 @@ class tx_tstemplateinfo extends t3lib_extobjbase {
                                }
                        }
                        if ($e["constants"])    {
-                               $outCode='<textarea name="data[constants]" rows="'.$numberOfRows.'" wrap="off"'.$this->pObj->doc->formWidthText(48,"width:98%;height:70%","off").'>'.t3lib_div::formatForTextarea($tplRow["constants"]).'</textarea>';
+                               $outCode='<textarea name="data[constants]" rows="'.$numberOfRows.'" wrap="off"'.$this->pObj->doc->formWidthText(48,"width:98%;height:70%","off").' class="fixed-font">'.t3lib_div::formatForTextarea($tplRow["constants"]).'</textarea>';
                                $outCode.='<input type="Hidden" name="e[constants]" value="1">';
                                $theOutput.=$this->pObj->doc->spacer(15);
                                $theOutput.=$this->pObj->doc->section("Constants:","");
@@ -355,7 +355,7 @@ class tx_tstemplateinfo extends t3lib_extobjbase {
                                        if (filesize($path)<(30*1024))  {
                                                $fileContent = t3lib_div::getUrl($path);
                                                $outCode='File: <b>'.$e[file].'</b><BR>';
-                                               $outCode.='<textarea name="edit[file]" rows="'.$numberOfRows.'" wrap="off"'.$this->pObj->doc->formWidthText(48,"width:98%;height:70%","off").'>'.t3lib_div::formatForTextarea($fileContent).'</textarea>';
+                                               $outCode.='<textarea name="edit[file]" rows="'.$numberOfRows.'" wrap="off"'.$this->pObj->doc->formWidthText(48,"width:98%;height:70%","off").' class="fixed-font">'.t3lib_div::formatForTextarea($fileContent).'</textarea>';
                                                $outCode.='<input type="Hidden" name="edit[filename]" value="'.$e[file].'">';
                                                $outCode.='<input type="Hidden" name="e[file]" value="'.htmlspecialchars($e[file]).'">';
                                                $theOutput.=$this->pObj->doc->spacer(15);
@@ -368,7 +368,7 @@ class tx_tstemplateinfo extends t3lib_extobjbase {
                                }
                        }
                        if ($e["config"])       {
-                               $outCode='<textarea name="data[config]" rows="'.$numberOfRows.'" wrap="off"'.$this->pObj->doc->formWidthText(48,"width:98%;height:70%","off").'>'.t3lib_div::formatForTextarea($tplRow["config"]).'</textarea>';
+                               $outCode='<textarea name="data[config]" rows="'.$numberOfRows.'" wrap="off"'.$this->pObj->doc->formWidthText(48,"width:98%;height:70%","off").' class="fixed-font">'.t3lib_div::formatForTextarea($tplRow["config"]).'</textarea>';
 
                                if (t3lib_extMgm::isLoaded("tsconfig_help"))    {
                                        $url=$BACK_PATH."wizard_tsconfig.php?mode=tsref";
index dd32c30..6180fbb 100644 (file)
@@ -30,10 +30,8 @@ function changeTextareaElements()    {
        document.textAreas = document.getElementsByTagName("textarea");
 
        for(i=0; i<document.textAreas.length; i++)      {
-                       // Don't change if the class parameter contains "disable-tab"
-               if(document.textAreas[i].className && document.textAreas[i].className.search(/(^| )disable-tab( |$)/) != -1)    {
-                       continue;
-               } else {
+                       // Only change if the class parameter contains "enable-tab"
+               if(document.textAreas[i].className && document.textAreas[i].className.search(/(^| )enable-tab( |$)/) != -1)     {
                        document.textAreas[i].textAreaID = i;
                        makeAdvancedTextArea(document.textAreas[i]);
                }
index f6a3194..ef64d43 100755 (executable)
@@ -332,7 +332,7 @@ class SC_wizard_tsconfig {
                                $links[]='<a href="#" onclick="mixerField(\'Outdent\');return false;">'.$LANG->getLL('tsprop_mixer_outdent',1).'</a>';
                                $links[]='<a href="#" onclick="mixerField(\'Wrap\',unescape(\''.rawurlencode($obj_string).'\'));return false;">'.$LANG->getLL('tsprop_mixer_wrap',1).'</a>';
                                $links[]='<a href="#" onclick="mixerField(\'Transfer\');return false;">'.$LANG->getLL('tsprop_mixer_transfer',1).'</a>';
-                               $out.='<textarea rows="5" name="mixer" wrap="off"'.$this->doc->formWidthText(48,'','off').'></textarea>';
+                               $out.='<textarea rows="5" name="mixer" wrap="off"'.$this->doc->formWidthText(48,'','off').' class="fixed-font enable-tab"></textarea>';
                                $out.='<br /><strong>'.implode('&nbsp; | &nbsp;',$links).'</strong>';
                                $out.='<hr />';
                        }