]> git.mjollnir.org Git - moodle.git/commitdiff
when element is frozen should not escape html entities in htmleditor.
authorjamiesensei <jamiesensei>
Mon, 16 Jul 2007 06:04:20 +0000 (06:04 +0000)
committerjamiesensei <jamiesensei>
Mon, 16 Jul 2007 06:04:20 +0000 (06:04 +0000)
lib/form/htmleditor.php

index fc145f73f22bcb2e4407c5dd06dca7acf897eb8c..20d1109a888f8e442bc57720e87e5a01da189d93 100644 (file)
@@ -84,5 +84,16 @@ class MoodleQuickForm_htmleditor extends MoodleQuickForm_textarea{
         }
     } //end func toHtml
 
+    /**
+     * What to display when element is frozen.
+     *
+     * @access    public
+     * @return    string
+     */
+    function getFrozenHtml()
+    {
+        $html = format_text($this->getValue());
+        return $html . $this->_getPersistantData();
+    } //end func getFrozenHtml
 }
 ?>
\ No newline at end of file