Better getRecordTitle() function introducing label_userFunc.
[Packages/TYPO3.CMS.git] / typo3 / file_edit.php
index 87f1635..f29cd42 100755 (executable)
@@ -2,7 +2,7 @@
 /***************************************************************
 *  Copyright notice
 *
 /***************************************************************
 *  Copyright notice
 *
-*  (c) 1999-2004 Kasper Skaarhoj (kasperYYYY@typo3.com)
+*  (c) 1999-2005 Kasper Skaarhoj (kasperYYYY@typo3.com)
 *  All rights reserved
 *
 *  This script is part of the TYPO3 project. The TYPO3 project is
 *  All rights reserved
 *
 *  This script is part of the TYPO3 project. The TYPO3 project is
@@ -41,7 +41,7 @@
  *   74: class SC_file_edit
  *   93:     function init()
  *  143:     function main()
  *   74: class SC_file_edit
  *   93:     function init()
  *  143:     function main()
- *  206:     function printContent()
+ *  205:     function printContent()
  *
  * TOTAL FUNCTIONS: 3
  * (This index is automatically created/updated by the extension "extdeveval")
  *
  * TOTAL FUNCTIONS: 3
  * (This index is automatically created/updated by the extension "extdeveval")
@@ -172,7 +172,7 @@ class SC_file_edit {
                                // Edit textarea:
                        $code.='
                                <div id="c-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.'" />
                                        t3lib_div::formatForTextarea($fileContent).
                                        '</textarea>
                                        <input type="hidden" name="file[editfile][0][target]" value="'.$this->target.'" />
@@ -195,7 +195,6 @@ class SC_file_edit {
                $this->content.= $this->doc->sectionEnd();
                $this->content.=$code;
 
                $this->content.= $this->doc->sectionEnd();
                $this->content.=$code;
 
-               $this->content.=$this->doc->endPage();
        }
 
        /**
        }
 
        /**
@@ -204,6 +203,8 @@ class SC_file_edit {
         * @return      void
         */
        function printContent() {
         * @return      void
         */
        function printContent() {
+               $this->content.= $this->doc->endPage();
+               $this->content = $this->doc->insertStylesAndJS($this->content);
                echo $this->content;
        }
 }
                echo $this->content;
        }
 }