### Eclipse Workspace Patch 1.0
#P moodle
Index: lib/form/format.php
===================================================================
RCS file: /cvsroot/moodle/moodle/lib/form/format.php,v
retrieving revision 1.5
diff -u -r1.5 format.php
--- lib/form/format.php	19 Dec 2006 07:03:13 -0000	1.5
+++ lib/form/format.php	11 Jan 2007 09:17:40 -0000
@@ -36,15 +36,18 @@
             $elementLabel = get_string('format');
         }
         HTML_QuickForm_element::HTML_QuickForm_element($elementName, $elementLabel, $attributes);
-        $this->_persistantFreeze = true;
         $this->_type = 'format';
 
         $this->_useHtmlEditor=$useHtmlEditor;
-        if ($this->_useHtmlEditor==null){
+        if ($this->_useHtmlEditor === null){
             $this->_useHtmlEditor=can_use_html_editor();
         }
         if ($this->_useHtmlEditor){
+            $this->_persistantFreeze = true;
             $this->freeze();
+        } else {
+            $this->_persistantFreeze = false;
+            $this->unfreeze();
         }
     } //end constructor
 
